932
edits
Changes
m
→Part 3: Using Shell Scripts for VM Backup & Management: - putting backups in normal users backups directory
do<br>
echo "Backing up VM #$num"<br>
gzip < /var/lib/libvirt/images/centos$num.qcow2 > ~/backups/centos$num.qcow2.gz<br>
<br> echo "VM #$num BACKUP DONE"<br>
done<br><br>
done<br>
echo "Backing up VM #$numanswer"<br>
gzip < /var/lib/libvirt/images/centos$numanswer.qcow2 > ~/backups/centos$numanswer.qcow2.gz<br><br>
echo "VM #$numanswer BACKUP DONE"<br>
else<br>