Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Backup of a running container with vzdump

No change in size, 21:50, 1 March 2008
Examples: VE -> CT, container, use template:note
= Examples =
Use a running VEcontainer, for example install this: http://wiki.openvz.org/Proxmox_Mail_Gateway_in_VE[[Proxmox Mail Gateway in VE]]
== Backup ==
Simply dump VE CT 777 - no snapshot, just archive the VE container private area and configuration files to the default dump directory (usually /vz/dump/).
<pre>vzdump 777</pre>
<pre>vzdump --suspend 777</pre>
Backup all VEs containers and send notification mails to root.
<pre>vzdump --suspend --all --mailto root</pre>
<pre>vzdump --dumpdir /space/backup --snapshot 777</pre>
* {{Note that |using LVM2 and vzdump to create snapshots requires 512Mb of free space in your VG as [http://weblogs.amtex.nl/index.php?blog=2&title=using_vzdump_snapshot_to_backup_without_downtime&more=1&c=1&tb=1&pb=1 described here]}}
== Restore ==
Restore above backup to VE CT 600
<pre>vzdump --restore /space/backup/vzdump-777.tar 600</pre>
[[Category: HOWTO]]