13,420
edits
Changes
no edit summary
|-
|<blockquote>'''Script #1: Backup VM images:''' [ [https://scs.senecac.on.ca/~elizabeth.kopiec/backupVM.bash backupVM.bash] ]<br>'''Sample output:''' [ [https://scs.senecac.on.ca/~elizabeth.kopiec/VMBackupOutput.png Output Image] ]<br><br>'''Scripting Skills:'''<blockquote><ul><li>If and Else If (elif) - With numerical and string comparisons in the test statement</li><li>User Input (read statement)</li><li>For loop with a hard coded list</li><li>Echoing a variable to grep to validate input</li><li>Checking exit status of previous command (should be a review from ULI101)</li><li>gzip command</li><li>Environment variables</li><li>x</li><li>x</li></ul></blockquote><br><br>'''Practical Consideration for scripting in lab 2:'''<br><blockquote> TBD<br><br>
|[[Image:vm-backup-text.png|thumb|left|175px275px|When executed as '''root''' or using '''sudo''' command, allows for selection of VM images in '''/var/lib/libvirt/images''' directory and backs-up user's home directory (allow option to copy all or by vm #]]
|}