Changes

Jump to: navigation, search

OPS245 Lab 2

No change in size, 15:46, 1 October 2021
m
INVESTIGATION 4: USING PYTHON TO AUTOMATE MANAGING VIRTUAL MACHINES
&nbsp;&nbsp;exit()<br />
else:<br />
&nbsp;&nbsp;for machine in {('centos1','centos2','centos3'}):<br />
&nbsp;&nbsp;&nbsp;&nbsp;print('Backing up' + machine)<br />
&nbsp;&nbsp;&nbsp;&nbsp;os.system('gzip < /var/lib/libvirt/images/' + machine + '.qcow2 > ~YourRegularUsername/backups/' + machine + '.qcow2.gz')<br />
572
edits

Navigation menu