Editing Backup of a running container with vzdump
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 10: | Line 10: | ||
== Download == | == Download == | ||
− | Download vzdump rpm or deb packages from http://download.openvz.org/contrib/utils/vzdump/ or for newest version, check http:// | + | 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/ |
+ | |||
+ | For rpm based systems: | ||
+ | <pre>wget http://www.proxmox.com/cms_proxmox/cms/upload/vzdump/vzdump-1.1-2.noarch.rpm</pre> | ||
For Debian based systems: | For Debian based systems: | ||
− | <pre>wget http:// | + | <pre>wget http://www.proxmox.com/cms_proxmox/cms/upload/vzdump/vzdump_1.1-2_all.deb</pre> |
− | |||
− | |||
− | |||
== Installation == | == Installation == | ||
For rpm based systems: | For rpm based systems: | ||
− | <pre>rpm -i vzdump-1.2 | + | <pre>rpm -i vzdump-1.1-2.noarch.rpm</pre> |
For Debian based systems: | For Debian based systems: | ||
− | <pre>dpkg -i vzdump_1. | + | <pre>dpkg -i vzdump_1.1-2_all.deb</pre> |
== Synopsis == | == Synopsis == | ||
Line 31: | Line 31: | ||
vzdump OPTIONS [--all | <VMID>] | vzdump OPTIONS [--all | <VMID>] | ||
− | --exclude | + | |
+ | --exclude VPSID exclude VPSID (assumes --all) | ||
--exclude-path REGEX exclude certain files/directories. You | --exclude-path REGEX exclude certain files/directories. You | ||
can use this option more than once to specify | can use this option more than once to specify | ||
multiple exclude paths | multiple exclude paths | ||
− | --stdexcludes exclude | + | --stdexcludes exclude temorary files and logs |
--compress compress dump file (gzip) | --compress compress dump file (gzip) | ||
− | |||
− | |||
--dumpdir DIR store resulting files in DIR | --dumpdir DIR store resulting files in DIR | ||
− | + | --tmpdir DIR store temporary files in DIR. --suspend and --stop are using this directory to store a copy of the VM. | |
− | --tmpdir DIR store temporary files in DIR. --suspend and --stop | ||
− | |||
--mailto EMAIL send notification mail to EMAIL. You can use | --mailto EMAIL send notification mail to EMAIL. You can use | ||
this option more than once to specify multiple | this option more than once to specify multiple | ||
receivers | receivers | ||
− | --stop stop/start | + | --stop stop/start VPS if running |
− | --suspend suspend/resume | + | --suspend suspend/resume VPS when running |
--snapshot use LVM snapshot when running | --snapshot use LVM snapshot when running | ||
--size MB LVM snapshot size (default 1024) | --size MB LVM snapshot size (default 1024) | ||
Line 54: | Line 51: | ||
lock. vzdump uses a global lock file to make | lock. vzdump uses a global lock file to make | ||
sure that only one instance is running | sure that only one instance is running | ||
− | (running | + | (running sereral instance puts too much load |
on a server). Default is 180 (3 hours). | on a server). Default is 180 (3 hours). | ||
--stopwait MINUTES maximal time to wait until a VM is stopped. | --stopwait MINUTES maximal time to wait until a VM is stopped. | ||
− | + | --restore FILENAME restore FILENAME | |
+ | |||
== Examples == | == Examples == | ||
Use a running container, for example install this: [[Proxmox Mail Gateway in container]]. | Use a running container, for example install this: [[Proxmox Mail Gateway in container]]. | ||
Line 80: | Line 78: | ||
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&title=using_vzdump_snapshot_to_backup_without_downtime&more=1&c=1&tb=1&pb=1 here]. | 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&title=using_vzdump_snapshot_to_backup_without_downtime&more=1&c=1&tb=1&pb=1 here]. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Restore === | === Restore === | ||
Line 122: | Line 83: | ||
Restore the above backup to CT 600: | Restore the above backup to CT 600: | ||
− | |||
− | |||
vzdump --restore /space/backup/vzdump-777.tar 600 | vzdump --restore /space/backup/vzdump-777.tar 600 | ||
− | |||
− | |||
== Bugs == | == Bugs == | ||
Line 162: | Line 119: | ||
Other distributions or versions may be affected, too. | Other distributions or versions may be affected, too. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category: HOWTO]] | [[Category: HOWTO]] |