17 improved

This commit is contained in:
Daniel Schubert 2019-03-11 17:07:54 +01:00
parent 6c64d81204
commit e768f3a671
1 changed files with 5 additions and 1 deletions

View File

@ -21,7 +21,11 @@ function file_backup {
}
function upload {
/usr/bin/rsync -aze 'ssh -p 64322 -i /home/dany/.ssh/server-key' /home/dany/tmp/$BACKUPFILE-$NOW.tar.xz server-name-hier:/home/dany/backups/* >> backup.log 2>&1
/usr/bin/rsync -aze 'ssh -i /path/to/ssh-keyfile' \
/home/dany/tmp/$BACKUPFILE-$NOW.tar.xz server-name-hier:target-dir/ >> backup.log 2>&1
#oder
#scp /home/dany/tmp/$BACKUPFILE-$NOW.tar.xz server-name-hier:target-dir/ >> backup.log 2>&1
}
# Funktionsaufrufe