Commit e768f3a6 authored by Daniel Schubert's avatar Daniel Schubert 🎯

17 improved

parent 6c64d812
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment