- "Data, Meet rsync."
- It's Time To Get in rsync
- That Secure Feeling
- Moving On
That Secure Feeling
Before I finish today's Walkabout, there is one other thing we should visit, and that is secure data synchronization. It is possible to use ssh as the transfer agent for rsync. We do this with the "-e ssh" parameter.
rsync -av -e ssh /home/marcel/
Mail sciserv:/mnt/backups/
marcel/
The remote system (sciserv) asks for a user name and password, something that may not be necessary when creating public shares. The sharp-eyed will notice that the above command has only one colon between the backup server and the path. The path is also interesting because in every example before, I used the symbolic name for the backup area; but in this case, the full path is specified. That's because when using ssh, rsync will, by default, write into the home directory of the authenticating account which may well be different from the share defined in /etc/rsyncd.conf.