This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#To exclude a domain, please add to its name "nobackup" | |
#First shutdown the guest, then use this command: virsh domrename oldname newname. | |
DATE=`date +%Y-%m-%d.%H:%M:%S` | |
LOG=/var/log/kvm-backup.$DATE.LOG | |
BACKUPROOT=/backup | |