Rsync over ssh for backing up some files

  1. Make a file with the ssh user and password called /etc/backupcredentials_ssh
    1. Make a directory on the backup server called /mnt/backup/this_hostname/
      • Make sure it is owned by backup_user
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.