Changes

Jump to: navigation, search

OPS335 Lab 1

27 bytes added, 11:43, 21 January 2016
no edit summary
# Make certain that your '''vm1''' machine is running.
# Make certain that the rsync command is installed on your host machine and all your vms.
# On your '''host machine''', run the following commands:
<source lang=bash>mkdir -p /backup/vm1
rsync -avz 192.168.x.2x:/etc /backup/vm1/</source> # where 192.168.x.x is the IPADDR of your vm1
<ol><li value="3">If rsync prompts for a password, make certain that you completed the '''SSH key''' section above, and that you assigned the keys for the appropriate user. If you get a ''different error'', check to see that rsync is installed, and if not, install that application.</li><li>When the rsync command runs correctly, you should see all the files from vm1 being copied over to your host machine.</li><li>Run the rsync command again. Notice that the second time nothing is copied over to your host mahcine since none of the files have changed on your vm1 machine.</li><li>Create a new file in vm1's '''/etc/''' directory, and rerun '''rsync'''. Confirm on your '''host machine''' that only that file that was created on your vm1 machine actually got backed up to your host machine.</li><li>Repeat the above steps to create backups for your vm2 and vm3 machines on your host machine as well (for the respective directories: '''/backup/vm2''' and '''/backup/vm3''').</li></ol>
13,420
edits

Navigation menu