572
edits
Changes
m
→INVESTIGATION 4: USING PYTHON TO AUTOMATE MANAGING VIRTUAL MACHINES
else:<br />
for machine in ('centos1','centos2','centos3'):<br />
print('Backing up' + machine)<br />
os.system('gzip < /var/lib/libvirt/images/' + machine + '.qcow2 > ~YourRegularUsername/backups/' + machine + '.qcow2.gz')<br />