Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
hypervisor:virtbackup [2012/09/21 15:56] giancarlo |
hypervisor:virtbackup [2012/09/24 11:37] (current) giancarlo |
| |
====== Virt-backup.pl: backup and restore ====== | ====== Virt-backup.pl: backup and restore ====== |
| |
# wget http://repo.firewall-services.com/misc/virt/virt-backup.pl | # wget http://repo.firewall-services.com/misc/virt/virt-backup.pl |
# chmod +x virt-backup.pl | # chmod +x virt-backup.pl |
| |
| # nano -w virt-backup.pl |
| # lvcreate path |
| - $opts{lvcreate} = '/usr/sbin/lvcreate -c 512'; |
| + $opts{lvcreate} = '/sbin/lvcreate -c 512'; |
| # lvremove path |
| - $opts{lvremove} = '/usr/sbin/lvremove'; |
| + $opts{lvremove} = '/sbin/lvremove'; |
| |
| |
| # apt-get install libxml-simple-perl libsys-virt-perl libfile-which-perl |
</code> | </code> |
</WRAP> | </WRAP> |
# nano -w /etc/fstab | # nano -w /etc/fstab |
| |
+ UUID=0a413f6c-50cd-45c7-ba1c-0a413f6c1ac6 /vmbck ext4 defaults,auto,_netdev 0 0 | + UUID=0a413f6c-50cd-45c7-ba1c-0a413f6c1ac6 /var/lib/libvirt/backup ext4 defaults,auto,_netdev 0 0 |
</code> | </code> |
</WRAP> | </WRAP> |