572
edits
Changes
→INVESTIGATION 4: USING PYTHON TO AUTOMATE MANAGING VIRTUAL MACHINES
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 />
</code>