Open main menu

CDOT Wiki β

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:lab2vm-backup-image-0text.png|thumb|left|175px|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 various media optionscopy all or by vm #]]
|}
13,420
edits