17 improved
This commit is contained in:
parent
6c64d81204
commit
e768f3a671
@ -21,7 +21,11 @@ function file_backup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function upload {
|
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
|
# Funktionsaufrufe
|
||||||
|
Loading…
Reference in New Issue
Block a user