<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jointwork</id>
	<title>OpenVZ Virtuozzo Containers Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jointwork"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/Jointwork"/>
	<updated>2026-05-15T17:13:33Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Backup_of_a_running_container_with_vzdump&amp;diff=6060</id>
		<title>Backup of a running container with vzdump</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Backup_of_a_running_container_with_vzdump&amp;diff=6060"/>
		<updated>2008-06-08T11:59:09Z</updated>

		<summary type="html">&lt;p&gt;Jointwork: /* Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Vzdump is a utility to make consistent snapshots of running OpenVZ containers. It basically creates a tar archive of the container's private area, which also includes the CT configuration files.&lt;br /&gt;
&lt;br /&gt;
There are several ways to provide consistency:&lt;br /&gt;
&lt;br /&gt;
* Stop the CT during backup (very long downtime)&lt;br /&gt;
* Use rsync and suspend/resume (minimal downtime)&lt;br /&gt;
* Use LVM2 (no downtime)&lt;br /&gt;
&lt;br /&gt;
Vzdump stores the backup on the disk in a single file. This file should go to a tape backup for archiving.&lt;br /&gt;
&lt;br /&gt;
== Download ==&lt;br /&gt;
Download vzdump rpm or deb packages from http://download.openvz.org/contrib/utils/vzdump/ or for newest version, check http://www.proxmox.com/cms_proxmox/en/technology/oss-software/openvz/&lt;br /&gt;
&lt;br /&gt;
For rpm based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://www.proxmox.com/cms_proxmox/cms/upload/vzdump/vzdump-1.0-2.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For Debian based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://www.proxmox.com/cms_proxmox/cms/upload/vzdump/vzdump_1.0-2_all.deb&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
For rpm based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;rpm -i vzdump-1.0-2.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For Debian based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;dpkg -i vzdump_1.0-2_all.deb&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Synopsis ==&lt;br /&gt;
&lt;br /&gt;
 vzdump OPTIONS [--all | &amp;lt;CTID&amp;gt;]&lt;br /&gt;
       --compress              compress dump file (gzip)&lt;br /&gt;
       --dumpdir DIR           store resulting files in DIR&lt;br /&gt;
       --xdelta                create a differential backup using xdelta&lt;br /&gt;
       --mailto EMAIL          send notification mail to EMAIL&lt;br /&gt;
       --stop                  stop/start container if running&lt;br /&gt;
       --suspend               suspend/resume container when running&lt;br /&gt;
       --snapshot              use LVM snapshot when running&lt;br /&gt;
       --restore FILENAME      restore FILENAME&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Use a running container, for example install this: [[Proxmox Mail Gateway in container]].&lt;br /&gt;
&lt;br /&gt;
=== Backup ===&lt;br /&gt;
&lt;br /&gt;
Simply dump CT 777 — no snapshot, just archive the container private area and configuration files to the default dump directory (usually &amp;lt;code&amp;gt;/vz/dump/&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
 vzdump 777&lt;br /&gt;
&lt;br /&gt;
Use rsync and suspend/resume to create a snapshot (minimal downtime).&lt;br /&gt;
&lt;br /&gt;
 vzdump --suspend 777&lt;br /&gt;
&lt;br /&gt;
Backup all containers and send notification mails to root.&lt;br /&gt;
&lt;br /&gt;
 vzdump --suspend --all --mailto root&lt;br /&gt;
&lt;br /&gt;
Use LVM2 to create snapshots (no downtime).&lt;br /&gt;
&lt;br /&gt;
 vzdump --dumpdir /space/backup --snapshot 777&lt;br /&gt;
&lt;br /&gt;
Note that using LVM2 and vzdump to create snapshots requires 512Mb of free space in your VG as described  [http://weblogs.amtex.nl/index.php?blog=2&amp;amp;title=using_vzdump_snapshot_to_backup_without_downtime&amp;amp;more=1&amp;amp;c=1&amp;amp;tb=1&amp;amp;pb=1 here].&lt;br /&gt;
&lt;br /&gt;
=== Restore ===&lt;br /&gt;
&lt;br /&gt;
Restore the above backup to CT 600:&lt;br /&gt;
&lt;br /&gt;
 vzdump --restore /space/backup/vzdump-777.tar 600&lt;br /&gt;
&lt;br /&gt;
== Bugs ==&lt;br /&gt;
&lt;br /&gt;
vzdump will fail under Debian Etch in version 1.0-2 if it is invoked with parameter &amp;quot;--snapshot&amp;quot; and if the logical volume name contains a hyphen.&lt;br /&gt;
One possible workaround is to rename the logical volume in question thus it doesn't contain any hyphen.&lt;br /&gt;
A bug report was sent to proxmox on 02 June 2008.&lt;br /&gt;
Other distributions or versions may be affected, too.&lt;br /&gt;
&lt;br /&gt;
[[Category: HOWTO]]&lt;/div&gt;</summary>
		<author><name>Jointwork</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Backup_of_a_running_container_with_vzdump&amp;diff=6054</id>
		<title>Backup of a running container with vzdump</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Backup_of_a_running_container_with_vzdump&amp;diff=6054"/>
		<updated>2008-06-06T11:25:56Z</updated>

		<summary type="html">&lt;p&gt;Jointwork: /* Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Vzdump is a utility to make consistent snapshots of running OpenVZ containers. It basically creates a tar archive of the container's private area, which also includes the CT configuration files.&lt;br /&gt;
&lt;br /&gt;
There are several ways to provide consistency:&lt;br /&gt;
&lt;br /&gt;
* Stop the CT during backup (very long downtime)&lt;br /&gt;
* Use rsync and suspend/resume (minimal downtime)&lt;br /&gt;
* Use LVM2 (no downtime)&lt;br /&gt;
&lt;br /&gt;
Vzdump stores the backup on the disk in a single file. This file should go to a tape backup for archiving.&lt;br /&gt;
&lt;br /&gt;
== Download ==&lt;br /&gt;
Download vzdump rpm or deb packages from http://download.openvz.org/contrib/utils/vzdump/ or for newest version, check http://www.proxmox.com/cms_proxmox/en/technology/oss-software/openvz/&lt;br /&gt;
&lt;br /&gt;
For rpm based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://www.proxmox.com/cms_proxmox/cms/upload/vzdump/vzdump-1.0-2.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For Debian based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://www.proxmox.com/cms_proxmox/cms/upload/vzdump/vzdump_1.0-2_all.deb&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
For rpm based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;rpm -i vzdump-1.0-2.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For Debian based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;dpkg -i vzdump_1.0-2_all.deb&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Synopsis ==&lt;br /&gt;
&lt;br /&gt;
 vzdump OPTIONS [--all | &amp;lt;CTID&amp;gt;]&lt;br /&gt;
       --compress              compress dump file (gzip)&lt;br /&gt;
       --dumpdir DIR           store resulting files in DIR&lt;br /&gt;
       --xdelta                create a differential backup using xdelta&lt;br /&gt;
       --mailto EMAIL          send notification mail to EMAIL&lt;br /&gt;
       --stop                  stop/start container if running&lt;br /&gt;
       --suspend               suspend/resume container when running&lt;br /&gt;
       --snapshot              use LVM snapshot when running&lt;br /&gt;
       --restore FILENAME      restore FILENAME&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Use a running container, for example install this: [[Proxmox Mail Gateway in container]].&lt;br /&gt;
&lt;br /&gt;
=== Backup ===&lt;br /&gt;
&lt;br /&gt;
Simply dump CT 777 — no snapshot, just archive the container private area and configuration files to the default dump directory (usually &amp;lt;code&amp;gt;/vz/dump/&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
 vzdump 777&lt;br /&gt;
&lt;br /&gt;
Use rsync and suspend/resume to create a snapshot (minimal downtime).&lt;br /&gt;
&lt;br /&gt;
 vzdump --suspend 777&lt;br /&gt;
&lt;br /&gt;
Backup all containers and send notification mails to root.&lt;br /&gt;
&lt;br /&gt;
 vzdump --suspend --all --mailto root&lt;br /&gt;
&lt;br /&gt;
Use LVM2 to create snapshots (no downtime).&lt;br /&gt;
&lt;br /&gt;
 vzdump --dumpdir /space/backup --snapshot 777&lt;br /&gt;
&lt;br /&gt;
Note that using LVM2 and vzdump to create snapshots requires 512Mb of free space in your VG as described  [http://weblogs.amtex.nl/index.php?blog=2&amp;amp;title=using_vzdump_snapshot_to_backup_without_downtime&amp;amp;more=1&amp;amp;c=1&amp;amp;tb=1&amp;amp;pb=1 here].&lt;br /&gt;
&lt;br /&gt;
=== Restore ===&lt;br /&gt;
&lt;br /&gt;
Restore the above backup to CT 600:&lt;br /&gt;
&lt;br /&gt;
 vzdump --restore /space/backup/vzdump-777.tar 600&lt;br /&gt;
&lt;br /&gt;
== Bugs ==&lt;br /&gt;
&lt;br /&gt;
vzdump will fail under Debian Etch in version 1.0-2 if it is invoked with parameter &amp;quot;--snapshot&amp;quot; and if the logical volume name contains a hyphen.&lt;br /&gt;
One possible workaround is to rename the logical volume in question thus it doesn't contain any hyphen.&lt;br /&gt;
A bug report was sent to proxmox on 02 June 2008.&lt;br /&gt;
Other distributions or versions may be affected to.&lt;br /&gt;
&lt;br /&gt;
[[Category: HOWTO]]&lt;/div&gt;</summary>
		<author><name>Jointwork</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Backup_of_a_running_container_with_vzdump&amp;diff=6053</id>
		<title>Backup of a running container with vzdump</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Backup_of_a_running_container_with_vzdump&amp;diff=6053"/>
		<updated>2008-06-06T11:22:11Z</updated>

		<summary type="html">&lt;p&gt;Jointwork: /* Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Vzdump is a utility to make consistent snapshots of running OpenVZ containers. It basically creates a tar archive of the container's private area, which also includes the CT configuration files.&lt;br /&gt;
&lt;br /&gt;
There are several ways to provide consistency:&lt;br /&gt;
&lt;br /&gt;
* Stop the CT during backup (very long downtime)&lt;br /&gt;
* Use rsync and suspend/resume (minimal downtime)&lt;br /&gt;
* Use LVM2 (no downtime)&lt;br /&gt;
&lt;br /&gt;
Vzdump stores the backup on the disk in a single file. This file should go to a tape backup for archiving.&lt;br /&gt;
&lt;br /&gt;
== Download ==&lt;br /&gt;
Download vzdump rpm or deb packages from http://download.openvz.org/contrib/utils/vzdump/ or for newest version, check http://www.proxmox.com/cms_proxmox/en/technology/oss-software/openvz/&lt;br /&gt;
&lt;br /&gt;
For rpm based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://www.proxmox.com/cms_proxmox/cms/upload/vzdump/vzdump-1.0-2.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For Debian based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://www.proxmox.com/cms_proxmox/cms/upload/vzdump/vzdump_1.0-2_all.deb&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
For rpm based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;rpm -i vzdump-1.0-2.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For Debian based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;dpkg -i vzdump_1.0-2_all.deb&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Synopsis ==&lt;br /&gt;
&lt;br /&gt;
 vzdump OPTIONS [--all | &amp;lt;CTID&amp;gt;]&lt;br /&gt;
       --compress              compress dump file (gzip)&lt;br /&gt;
       --dumpdir DIR           store resulting files in DIR&lt;br /&gt;
       --xdelta                create a differential backup using xdelta&lt;br /&gt;
       --mailto EMAIL          send notification mail to EMAIL&lt;br /&gt;
       --stop                  stop/start container if running&lt;br /&gt;
       --suspend               suspend/resume container when running&lt;br /&gt;
       --snapshot              use LVM snapshot when running&lt;br /&gt;
       --restore FILENAME      restore FILENAME&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Use a running container, for example install this: [[Proxmox Mail Gateway in container]].&lt;br /&gt;
&lt;br /&gt;
=== Backup ===&lt;br /&gt;
&lt;br /&gt;
Simply dump CT 777 — no snapshot, just archive the container private area and configuration files to the default dump directory (usually &amp;lt;code&amp;gt;/vz/dump/&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
 vzdump 777&lt;br /&gt;
&lt;br /&gt;
Use rsync and suspend/resume to create a snapshot (minimal downtime).&lt;br /&gt;
&lt;br /&gt;
 vzdump --suspend 777&lt;br /&gt;
&lt;br /&gt;
Backup all containers and send notification mails to root.&lt;br /&gt;
&lt;br /&gt;
 vzdump --suspend --all --mailto root&lt;br /&gt;
&lt;br /&gt;
Use LVM2 to create snapshots (no downtime).&lt;br /&gt;
&lt;br /&gt;
 vzdump --dumpdir /space/backup --snapshot 777&lt;br /&gt;
&lt;br /&gt;
Note that using LVM2 and vzdump to create snapshots requires 512Mb of free space in your VG as described  [http://weblogs.amtex.nl/index.php?blog=2&amp;amp;title=using_vzdump_snapshot_to_backup_without_downtime&amp;amp;more=1&amp;amp;c=1&amp;amp;tb=1&amp;amp;pb=1 here].&lt;br /&gt;
&lt;br /&gt;
=== Restore ===&lt;br /&gt;
&lt;br /&gt;
Restore the above backup to CT 600:&lt;br /&gt;
&lt;br /&gt;
 vzdump --restore /space/backup/vzdump-777.tar 600&lt;br /&gt;
&lt;br /&gt;
== Bugs ==&lt;br /&gt;
&lt;br /&gt;
vzdump will fail under Debian Etch in version 1.0-2 if it is invoked with parameter &amp;quot;--snapshot&amp;quot; and if the logical volume name contains a hyphen.&lt;br /&gt;
One possible workaround is to rename the logical volume in question thus it doesn't contain any hyphen.&lt;br /&gt;
A bug report was sent to proxmox on 02 June 2008.&lt;br /&gt;
Other Distributions or Versions may be affected to.&lt;br /&gt;
&lt;br /&gt;
[[Category: HOWTO]]&lt;/div&gt;</summary>
		<author><name>Jointwork</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Backup_of_a_running_container_with_vzdump&amp;diff=6021</id>
		<title>Backup of a running container with vzdump</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Backup_of_a_running_container_with_vzdump&amp;diff=6021"/>
		<updated>2008-06-02T05:10:08Z</updated>

		<summary type="html">&lt;p&gt;Jointwork: /* Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Vzdump =&lt;br /&gt;
Vzdump is a utility to make consistent snapshots of running OpenVZ VEs. It basically creates a tar archive of the VE private area, which also includes the VE configuration files.&lt;br /&gt;
&lt;br /&gt;
There are several ways to provide consistency:&lt;br /&gt;
&lt;br /&gt;
- Stop the VE during backup (very long downtime)&lt;br /&gt;
&lt;br /&gt;
- Use rsync and suspend/resume (minimal downtime)&lt;br /&gt;
&lt;br /&gt;
- Use LVM2 (no downtime)&lt;br /&gt;
&lt;br /&gt;
Vzdump stores the backup on the disk in a single file. This file should go to a tape backup for archiving.&lt;br /&gt;
&lt;br /&gt;
== Download ==&lt;br /&gt;
Download vzdump rpm or deb packages from http://download.openvz.org/contrib/utils/vzdump/ or for newest version, check http://www.proxmox.com/cms_proxmox/en/technology/oss-software/openvz/&lt;br /&gt;
&lt;br /&gt;
For rpm based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://www.proxmox.com/cms_proxmox/cms/upload/vzdump/vzdump-1.0-2.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For Debian based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://www.proxmox.com/cms_proxmox/cms/upload/vzdump/vzdump_1.0-2_all.deb&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
For rpm based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;rpm -i vzdump-1.0-2.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For Debian based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;dpkg -i vzdump_1.0-2_all.deb&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Synopsis ==&lt;br /&gt;
&lt;br /&gt;
 vzdump OPTIONS [--all | &amp;lt;CTID&amp;gt;]&lt;br /&gt;
       --compress              compress dump file (gzip)&lt;br /&gt;
       --dumpdir DIR           store resulting files in DIR&lt;br /&gt;
       --xdelta                create a differential backup using xdelta&lt;br /&gt;
       --mailto EMAIL          send notification mail to EMAIL&lt;br /&gt;
       --stop                  stop/start container if running&lt;br /&gt;
       --suspend               suspend/resume container when running&lt;br /&gt;
       --snapshot              use LVM snapshot when running&lt;br /&gt;
       --restore FILENAME      restore FILENAME&lt;br /&gt;
&lt;br /&gt;
= Examples =&lt;br /&gt;
Use a running container, for example install this: [[Proxmox Mail Gateway in VE]]&lt;br /&gt;
&lt;br /&gt;
== Backup == &lt;br /&gt;
&lt;br /&gt;
Simply dump CT 777 - no snapshot, just archive the container private area and configuration files to the default dump directory (usually /vz/dump/).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;vzdump 777&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use rsync and suspend/resume to create a snapshot (minimal downtime).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;vzdump --suspend 777&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Backup all containers and send notification mails to root.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;vzdump --suspend --all --mailto root&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use LVM2 to create snapshots (no downtime).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;vzdump --dumpdir /space/backup --snapshot 777&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that using LVM2 and vzdump to create snapshots requires 512Mb of free space in your VG as described  [http://weblogs.amtex.nl/index.php?blog=2&amp;amp;title=using_vzdump_snapshot_to_backup_without_downtime&amp;amp;more=1&amp;amp;c=1&amp;amp;tb=1&amp;amp;pb=1 here].&lt;br /&gt;
&lt;br /&gt;
== Restore == &lt;br /&gt;
&lt;br /&gt;
Restore above backup to CT 600&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;vzdump --restore /space/backup/vzdump-777.tar 600&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: HOWTO]]&lt;br /&gt;
&lt;br /&gt;
= Bugs =&lt;br /&gt;
&lt;br /&gt;
vzdump will fail under Debian Etch in version 1.0-2 (tested) if it is invoked with parameter &amp;quot;--snapshot&amp;quot; and if the logical volume name contains a hyphen.&lt;br /&gt;
One possible workaround is to rename the logical volume in question thus it doesn't contain any hyphen.&lt;br /&gt;
A bug report was sent to proxmox on 02 June 2008.&lt;/div&gt;</summary>
		<author><name>Jointwork</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Backup_of_a_running_container_with_vzdump&amp;diff=6020</id>
		<title>Backup of a running container with vzdump</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Backup_of_a_running_container_with_vzdump&amp;diff=6020"/>
		<updated>2008-06-02T04:55:02Z</updated>

		<summary type="html">&lt;p&gt;Jointwork: added bug section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Vzdump =&lt;br /&gt;
Vzdump is a utility to make consistent snapshots of running OpenVZ VEs. It basically creates a tar archive of the VE private area, which also includes the VE configuration files.&lt;br /&gt;
&lt;br /&gt;
There are several ways to provide consistency:&lt;br /&gt;
&lt;br /&gt;
- Stop the VE during backup (very long downtime)&lt;br /&gt;
&lt;br /&gt;
- Use rsync and suspend/resume (minimal downtime)&lt;br /&gt;
&lt;br /&gt;
- Use LVM2 (no downtime)&lt;br /&gt;
&lt;br /&gt;
Vzdump stores the backup on the disk in a single file. This file should go to a tape backup for archiving.&lt;br /&gt;
&lt;br /&gt;
== Download ==&lt;br /&gt;
Download vzdump rpm or deb packages from http://download.openvz.org/contrib/utils/vzdump/ or for newest version, check http://www.proxmox.com/cms_proxmox/en/technology/oss-software/openvz/&lt;br /&gt;
&lt;br /&gt;
For rpm based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://www.proxmox.com/cms_proxmox/cms/upload/vzdump/vzdump-1.0-2.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For Debian based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://www.proxmox.com/cms_proxmox/cms/upload/vzdump/vzdump_1.0-2_all.deb&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
For rpm based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;rpm -i vzdump-1.0-2.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For Debian based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;dpkg -i vzdump_1.0-2_all.deb&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Synopsis ==&lt;br /&gt;
&lt;br /&gt;
 vzdump OPTIONS [--all | &amp;lt;CTID&amp;gt;]&lt;br /&gt;
       --compress              compress dump file (gzip)&lt;br /&gt;
       --dumpdir DIR           store resulting files in DIR&lt;br /&gt;
       --xdelta                create a differential backup using xdelta&lt;br /&gt;
       --mailto EMAIL          send notification mail to EMAIL&lt;br /&gt;
       --stop                  stop/start container if running&lt;br /&gt;
       --suspend               suspend/resume container when running&lt;br /&gt;
       --snapshot              use LVM snapshot when running&lt;br /&gt;
       --restore FILENAME      restore FILENAME&lt;br /&gt;
&lt;br /&gt;
= Examples =&lt;br /&gt;
Use a running container, for example install this: [[Proxmox Mail Gateway in VE]]&lt;br /&gt;
&lt;br /&gt;
== Backup == &lt;br /&gt;
&lt;br /&gt;
Simply dump CT 777 - no snapshot, just archive the container private area and configuration files to the default dump directory (usually /vz/dump/).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;vzdump 777&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use rsync and suspend/resume to create a snapshot (minimal downtime).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;vzdump --suspend 777&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Backup all containers and send notification mails to root.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;vzdump --suspend --all --mailto root&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use LVM2 to create snapshots (no downtime).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;vzdump --dumpdir /space/backup --snapshot 777&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that using LVM2 and vzdump to create snapshots requires 512Mb of free space in your VG as described  [http://weblogs.amtex.nl/index.php?blog=2&amp;amp;title=using_vzdump_snapshot_to_backup_without_downtime&amp;amp;more=1&amp;amp;c=1&amp;amp;tb=1&amp;amp;pb=1 here].&lt;br /&gt;
&lt;br /&gt;
== Restore == &lt;br /&gt;
&lt;br /&gt;
Restore above backup to CT 600&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;vzdump --restore /space/backup/vzdump-777.tar 600&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: HOWTO]]&lt;br /&gt;
&lt;br /&gt;
= Bugs =&lt;br /&gt;
&lt;br /&gt;
vzdump will fail under Debian Etch in version 1.0.2 (tested) if it is invoked with parameter &amp;quot;--snapshot&amp;quot; and if the logical volume name contains a hyphen.&lt;br /&gt;
One possible workaround is to rename the logical volume in question thus it doesn't contain any hyphen.&lt;br /&gt;
A bug report was sent to proxmox on 02 June 2008.&lt;/div&gt;</summary>
		<author><name>Jointwork</name></author>
		
	</entry>
</feed>