Update backup.sh
This commit is contained in:
parent
b0d00934e5
commit
8b57aa2a04
|
@ -106,7 +106,8 @@ rm -f $prefix/$stamp/*
|
|||
rmdir $prefix/$stamp
|
||||
|
||||
# Sending data
|
||||
|
||||
if [ -n "${sshhost}" ]
|
||||
then
|
||||
for xfile_item in `ls ${prefix}/compressed`
|
||||
do
|
||||
scp -B -i ${sshkey} ${prefix}/compressed/${xfile_item} ${sshuser}@${sshhost}:${sshpath} > /dev/null
|
||||
|
@ -115,4 +116,5 @@ do
|
|||
rm -f ${prefix}/compressed/${xfile_item}
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue