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> |