Changes

Jump to: navigation, search

OPS335 Lab 1

84 bytes added, 10:27, 19 January 2017
Performing Incremental Backups
<ol><li value="5">Create the sub-directory '''/root/bin'''</li>
<li>You should know how to create full backups of your VMs in your OPS235 course. Create a Bash shell script called '''/root/bin/fullbackup.bash''' that will backup all of your other vms (i.e. vm1, vm2, and vm3) one at a time using the '''gzip''' command to your host machine into the directory path-name: '''/backup/full/'''</li>
<li>Set execute permissions, and run the shell script to verify that you shell script works.</li>
<li>It is also recommended to backup to your USB key as well (qcow2 images and xml config files).</li></ol>
=== Performing Incremental Backups ===
An incremental backup is a backup of only files that have changed since the last backup. In your case, it may be a good idea to perform incremental backups of your '''/etc/ ''' directory for your VMs upon startup. We will be using the '''rsync''' command to perform incremental backups for all of your VMs.
'''Rsync''' is a very versatile backup tool. As the name suggests, rsync is used for <u>synchronizing</u> files typically across a network. It works over the '''SSH''' protocol, which is useful in our situation since we are running ssh on our server and VMs. You are going to use your ''host machine'' to backup files from the ''virtual machines''.
13,420
edits

Navigation menu