特殊:Badtitle/NS100:OpenVZ/VZDump
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/OpenVZ/VZDump }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/af | • {{#if: UbuntuHelp:OpenVZ/VZDump|Afrikaans| [[::OpenVZ/VZDump/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/ar | • {{#if: UbuntuHelp:OpenVZ/VZDump|العربية| [[::OpenVZ/VZDump/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/az | • {{#if: UbuntuHelp:OpenVZ/VZDump|azərbaycanca| [[::OpenVZ/VZDump/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/bcc | • {{#if: UbuntuHelp:OpenVZ/VZDump|جهلسری بلوچی| [[::OpenVZ/VZDump/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/bg | • {{#if: UbuntuHelp:OpenVZ/VZDump|български| [[::OpenVZ/VZDump/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/br | • {{#if: UbuntuHelp:OpenVZ/VZDump|brezhoneg| [[::OpenVZ/VZDump/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/ca | • {{#if: UbuntuHelp:OpenVZ/VZDump|català| [[::OpenVZ/VZDump/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/cs | • {{#if: UbuntuHelp:OpenVZ/VZDump|čeština| [[::OpenVZ/VZDump/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/de | • {{#if: UbuntuHelp:OpenVZ/VZDump|Deutsch| [[::OpenVZ/VZDump/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/el | • {{#if: UbuntuHelp:OpenVZ/VZDump|Ελληνικά| [[::OpenVZ/VZDump/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/es | • {{#if: UbuntuHelp:OpenVZ/VZDump|español| [[::OpenVZ/VZDump/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/fa | • {{#if: UbuntuHelp:OpenVZ/VZDump|فارسی| [[::OpenVZ/VZDump/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/fi | • {{#if: UbuntuHelp:OpenVZ/VZDump|suomi| [[::OpenVZ/VZDump/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/fr | • {{#if: UbuntuHelp:OpenVZ/VZDump|français| [[::OpenVZ/VZDump/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/gu | • {{#if: UbuntuHelp:OpenVZ/VZDump|ગુજરાતી| [[::OpenVZ/VZDump/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/he | • {{#if: UbuntuHelp:OpenVZ/VZDump|עברית| [[::OpenVZ/VZDump/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/hu | • {{#if: UbuntuHelp:OpenVZ/VZDump|magyar| [[::OpenVZ/VZDump/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/id | • {{#if: UbuntuHelp:OpenVZ/VZDump|Bahasa Indonesia| [[::OpenVZ/VZDump/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/it | • {{#if: UbuntuHelp:OpenVZ/VZDump|italiano| [[::OpenVZ/VZDump/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/ja | • {{#if: UbuntuHelp:OpenVZ/VZDump|日本語| [[::OpenVZ/VZDump/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/ko | • {{#if: UbuntuHelp:OpenVZ/VZDump|한국어| [[::OpenVZ/VZDump/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/ksh | • {{#if: UbuntuHelp:OpenVZ/VZDump|Ripoarisch| [[::OpenVZ/VZDump/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/mr | • {{#if: UbuntuHelp:OpenVZ/VZDump|मराठी| [[::OpenVZ/VZDump/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/ms | • {{#if: UbuntuHelp:OpenVZ/VZDump|Bahasa Melayu| [[::OpenVZ/VZDump/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/nl | • {{#if: UbuntuHelp:OpenVZ/VZDump|Nederlands| [[::OpenVZ/VZDump/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/no | • {{#if: UbuntuHelp:OpenVZ/VZDump|norsk| [[::OpenVZ/VZDump/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/oc | • {{#if: UbuntuHelp:OpenVZ/VZDump|occitan| [[::OpenVZ/VZDump/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/pl | • {{#if: UbuntuHelp:OpenVZ/VZDump|polski| [[::OpenVZ/VZDump/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/pt | • {{#if: UbuntuHelp:OpenVZ/VZDump|português| [[::OpenVZ/VZDump/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/ro | • {{#if: UbuntuHelp:OpenVZ/VZDump|română| [[::OpenVZ/VZDump/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/ru | • {{#if: UbuntuHelp:OpenVZ/VZDump|русский| [[::OpenVZ/VZDump/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/si | • {{#if: UbuntuHelp:OpenVZ/VZDump|සිංහල| [[::OpenVZ/VZDump/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/sq | • {{#if: UbuntuHelp:OpenVZ/VZDump|shqip| [[::OpenVZ/VZDump/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/sr | • {{#if: UbuntuHelp:OpenVZ/VZDump|српски / srpski| [[::OpenVZ/VZDump/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/sv | • {{#if: UbuntuHelp:OpenVZ/VZDump|svenska| [[::OpenVZ/VZDump/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/th | • {{#if: UbuntuHelp:OpenVZ/VZDump|ไทย| [[::OpenVZ/VZDump/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/tr | • {{#if: UbuntuHelp:OpenVZ/VZDump|Türkçe| [[::OpenVZ/VZDump/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/vi | • {{#if: UbuntuHelp:OpenVZ/VZDump|Tiếng Việt| [[::OpenVZ/VZDump/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/yue | • {{#if: UbuntuHelp:OpenVZ/VZDump|粵語| [[::OpenVZ/VZDump/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/zh | • {{#if: UbuntuHelp:OpenVZ/VZDump|中文| [[::OpenVZ/VZDump/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/zh-hans | • {{#if: UbuntuHelp:OpenVZ/VZDump|中文(简体)| [[::OpenVZ/VZDump/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OpenVZ/VZDump | UbuntuHelp:OpenVZ/VZDump | {{#if: | :}}OpenVZ/VZDump}}/zh-hant | • {{#if: UbuntuHelp:OpenVZ/VZDump|中文(繁體)| [[::OpenVZ/VZDump/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:OpenVZ/VZDump|:OpenVZ/VZDump|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :OpenVZ/VZDump/zh | | {{#ifexist: OpenVZ/VZDump/zh | | {{#ifeq: {{#titleparts:OpenVZ/VZDump|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:OpenVZ/VZDump|1|-1|}} | zh | | }}
Introduction
`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.
Download
VZDump can be obtained from Proxmox website.
Usage
`vzdump` can create backups in several ways. To get all available options, use:
# vzdump usage: /usr/sbin/vzdump OPTIONS [--all | VPSID] --exclude VPSID exclude VPSID (assumes --all) --exclude-path REGEX exclude certain files/directories --stdexcludes exclude temorary files and logs --compress compress dump file (gzip) --dumpdir DIR store resulting files in DIR --tmpdir DIR store temporary files in DIR --mailto EMAIL send notification mail to EMAIL. --quiet be quiet. --stop stop/start VPS if running --suspend suspend/resume VPS when running --snapshot use LVM snapshot when running --size MB LVM snapshot size --node CID only run on pve cluster node CID --lockwait MINUTES maximal time to wait for the global lock --stopwait MINUTES maximal time to wait until a VM is stopped --bwlimit KBPS limit I/O bandwidth; KBytes per second --restore FILENAME restore FILENAME
Special notes on LVM based deployments
`vzdump` is able to backup the running containers with 0 downtime once using lvm snapshots capabilities. Use: `--suspend` option to enable the use of the lvm snapshots. (!) Warrning: to be able to use `--suspend` option, you should have the `--dumpdir` argument pointing to a location different from the current LVM VG. Also, you should leave at least 512Mb (1G will surely be fine) of free space inside the containers LVM VG. Otherwise you won't be able to get `--suspend` for backups.