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/04 12:56] giancarlo |
hypervisor:virtbackup [2012/09/24 11:37] 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> |
</code> | </code> |
</WRAP> | </WRAP> |
| |
| To mount iscsi partition at boot: |
| <WRAP prewrap center> |
| <code> |
| # blkid |
| ... |
| /dev/mapper/iscsi2-backup: UUID="0a413f6c-50cd-45c7-ba1c-0a413f6c1ac6" TYPE="ext4" |
| |
| # nano -w /etc/fstab |
| |
| + UUID=0a413f6c-50cd-45c7-ba1c-0a413f6c1ac6 /var/lib/libvirt/backup ext4 defaults,auto,_netdev 0 0 |
| </code> |
| </WRAP> |
| |
| |
**Live backup of LVM virtual machine by snapshot** | **Live backup of LVM virtual machine by snapshot** |
| |
<WRAP right 35% rightalign lo> | <WRAP right 35% rightalign lo> |
x ⇒ | [[hypervisor:fromesxi|Migrate from esxi 4.1]] ⇒ |
</WRAP> | </WRAP> |
<WRAP left 35% leftalign lo> | <WRAP left 35% leftalign lo> |