1
edit
Changes
→Using rsync and cron to automate system backup
*Now verify that your new authentication method is working. Still on vm01 try to ssh to f16 as root. You should be able to login without entering a password. If you were successful then move on to the next step, otherwise repeat steps 3 and 4.
*Install mailx on vm01 if it's not already installed.
*Now, still as root on vm01, use the command 'crontab -e' to edit root's cron table. Insert the following line:(Instead of the IP Address "192.168.122.1", use the IP address of your host machine)
55 * * * * /usr/bin/rsync -avz 192.168.122.1:/etc/ /backup/etc
*At 55 minutes past the hour rsync should synchronize the /etc/ directory of f16 to the /backup/etc/ directory on vm01. If this time has passed and you don't want to wait an hour for the next time rsync runs, just edit root's cron table on vm01 and enter another time for the backup to take place.