Changes

Jump to: navigation, search

OPS335 Lab 1 draft

1,133 bytes added, 21:06, 10 January 2016
rsync & cron
For this lab you have to set up password-less login for the root user on the host to the root user on each of the VMs.
= Rsync = Rsync is a very versatile backup tool. As the name suggests it's used for synchronising files typically across a network. It works over the SSH protocol so if you have ssh working - you can use rsync & cron as well. You're going to use your host machine to backup files from the virtual machines. To make it simpler we won't have any incremental backups and the backups will be automated so don't rely on these too much, but they may save you some time over the many weeks in this course. On your host run the following commands: <source lang=bash>mkdir -p /backup/vm1rsync -avz 192.168.x.2:/etc /backup/vm1/</source> If rsync asked for a password - make sure you completed the SSH keys part of the lab, and that you're using the correct user. If you get a different error - perhaps rsync is not installed. What you should see is all the files from vm1 being copied over. Rerun the command. Notice that the second time nothing is copied over - that's because there would be no point, none of the files have changed on vm1. Create a new file in vm1's /etc/ directory, and rerun rsync. Notice that only that file gets copied over. = Cron =

Navigation menu