Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Backup of a running container with vzdump

1,189 bytes added, 13:18, 26 November 2008
Added links to new rpm´s, updated syntax
Vzdump is a utility to make consistent snapshots of running OpenVZ containers(and KVM virtual machines if you are using [http://pve.proxmox.com Proxmox VE]. It basically creates a tar archive of the container's private area, which also includes the CT configuration files.
There are several ways to provide consistency:
For rpm based systems:
<pre>wget http://www.proxmox.com/cms_proxmox/cms/upload/vzdump/vzdump-1.01-21.noarch.rpm</pre>
For Debian based systems:
== Installation ==
For rpm based systems:
<pre>rpm -i vzdump-1.01-21.noarch.rpm</pre>
For Debian based systems:
== Synopsis ==
see also: <pre>man vzdump</pre> vzdump OPTIONS [--all | <CTIDVMID>]  --exclude VPSID exclude VPSID (assumes --all) --exclude-path REGEX exclude certain files/directories. You can use this option more than once to specify multiple exclude paths --stdexcludes exclude temorary files and logs
--compress compress dump file (gzip)
--dumpdir DIR store resulting files in DIR
--xdelta create tmpdir DIR store temporary files in DIR. --suspend and --stop are using this directory to store a differential backup using xdeltacopy of the VM. --mailto EMAIL send notification mail to EMAIL. You can use this option more than once to specify multiple receivers --stop stop/start container VPS if running --suspend suspend/resume container VPS when running
--snapshot use LVM snapshot when running
--size MB LVM snapshot size (default 1024)
--bwlimit KBPS limit I/O bandwidth; KBytes per second
--lockwait MINUTES maximal time to wait for the global
lock. vzdump uses a global lock file to make
sure that only one instance is running
(running sereral instance puts too much load
on a server). Default is 180 (3 hours).
--stopwait MINUTES maximal time to wait until a VM is stopped.
--restore FILENAME restore FILENAME
== Examples ==
Use a running container, for example install this: [[Proxmox Mail Gateway in container]].
31
edits