Open main menu

CDOT Wiki β

Changes

OPS245 Lab 2

1 byte added, 17:26, 1 October 2021
m
INVESTIGATION 4: USING PYTHON TO AUTOMATE MANAGING VIRTUAL MACHINES
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