Rsync over ssh for backing up some files
- Make a file with the ssh user and password called
/etc/backupcredentials_ssh
- Make a directory on the backup server called
/mnt/backup/this_hostname/
- Make sure it is owned by
backup_user
- Make sure it is owned by
- Make a directory on the backup server called
rsync -av --delete -e ssh -l backup_user -i /etc/backupcredentials_ssh /mnt/backup backup_server:/mnt/backup/this_hostname/
This way I was able to avoid using a samba mount between the two.
Comments
No comments.