]> git.proxmox.com Git - pve-docs.git/blame - vzdump.1-synopsis.adoc
firewall: add documentation for proxmox-firewall
[pve-docs.git] / vzdump.1-synopsis.adoc
CommitLineData
1f554f76
DM
1*vzdump* `help`
2
3*vzdump* `{<vmid>}` `[OPTIONS]`
4
5Create backup.
6
013dc89f 7`<vmid>`: `<string>` ::
1f554f76 8
04ce4dfa 9The ID of the guest system you want to backup.
1f554f76 10
2489d6df 11`--all` `<boolean>` ('default =' `0`)::
1f554f76 12
04ce4dfa 13Backup all known guest systems on this host.
1f554f76 14
2489d6df 15`--bwlimit` `<integer> (0 - N)` ('default =' `0`)::
1f554f76 16
4a407cfd 17Limit I/O bandwidth (in KiB/s).
1f554f76 18
c5aa7e14 19`--compress` `<0 | 1 | gzip | lzo | zstd>` ('default =' `0`)::
1f554f76
DM
20
21Compress dump file.
22
2489d6df 23`--dumpdir` `<string>` ::
1f554f76
DM
24
25Store resulting files to specified directory.
26
2489d6df 27`--exclude` `<string>` ::
1f554f76 28
04ce4dfa 29Exclude specified guest systems (assumes --all)
1f554f76 30
4a407cfd 31`--exclude-path` `<array>` ::
1f554f76 32
c6d5bae8 33Exclude certain files/directories (shell globs). Paths starting with '/' are anchored to the container's root, other paths match relative to each subdirectory.
1f554f76 34
907e4bc3
TL
35`--fleecing` `[[enabled=]<1|0>] [,storage=<storage ID>]` ::
36
37Options for backup fleecing (VM only).
38
2489d6df 39`--ionice` `<integer> (0 - 8)` ('default =' `7`)::
1f554f76 40
159464a9 41Set IO priority when using the BFQ scheduler. For snapshot and suspend mode backups of VMs, this only affects the compressor. A value of 8 means the idle priority is used, otherwise the best-effort priority is used with the specified value.
1f554f76 42
2489d6df 43`--lockwait` `<integer> (0 - N)` ('default =' `180`)::
1f554f76
DM
44
45Maximal time to wait for the global lock (minutes).
46
2489d6df 47`--mailnotification` `<always | failure>` ('default =' `always`)::
1f554f76 48
c6d5bae8 49Deprecated: use notification targets/matchers instead. Specify when to send a notification mail
1f554f76 50
2489d6df 51`--mailto` `<string>` ::
1f554f76 52
c6d5bae8 53Deprecated: Use notification targets/matchers instead. Comma-separated list of email addresses or users that should receive email notifications.
1f554f76 54
0695fdaf 55`--maxfiles` `<integer> (1 - N)` ::
1f554f76 56
0695fdaf 57Deprecated: use 'prune-backups' instead. Maximal number of backup files per guest system.
1f554f76 58
2489d6df 59`--mode` `<snapshot | stop | suspend>` ('default =' `snapshot`)::
1f554f76
DM
60
61Backup mode.
62
2489d6df 63`--node` `<string>` ::
1f554f76
DM
64
65Only run if executed on this node.
66
7af2edf9
TL
67`--notes-template` `<string>` ::
68
4e7f60c2 69Template string for generating notes for the backup(s). It can contain variables which will be replaced by their values. Currently supported are \{\{cluster\}\}, \{\{guestname\}\}, \{\{node\}\}, and \{\{vmid\}\}, but more might be added in the future. Needs to be a single line, newline and backslash need to be escaped as '\n' and '\\' respectively.
7af2edf9
TL
70+
71NOTE: Requires option(s): `storage`
72
c6d5bae8
TL
73`--notification-mode` `<auto | legacy-sendmail | notification-system>` ('default =' `auto`)::
74
75Determine which notification system to use. If set to 'legacy-sendmail', vzdump will consider the mailto/mailnotification parameters and send emails to the specified address(es) via the 'sendmail' command. If set to 'notification-system', a notification will be sent via PVE's notification system, and the mailto and mailnotification will be ignored. If set to 'auto' (default setting), an email will be sent if mailto is set, and the notification system will be used if not.
76
82551b2b
TL
77`--notification-policy` `<always | failure | never>` ('default =' `always`)::
78
c6d5bae8 79Deprecated: Do not use
82551b2b
TL
80
81`--notification-target` `<string>` ::
82
c6d5bae8 83Deprecated: Do not use
82551b2b
TL
84
85`--performance` `[max-workers=<integer>] [,pbs-entries-max=<integer>]` ::
4e7f60c2
TL
86
87Other performance-related settings.
88
2489d6df 89`--pigz` `<integer>` ('default =' `0`)::
1f554f76 90
c2993fe5 91Use pigz instead of gzip when N>0. N=1 uses half of cores, N>1 uses N as thread count.
1f554f76 92
9226ccbc
TL
93`--pool` `<string>` ::
94
95Backup all known guest systems included in the specified pool.
96
7af2edf9
TL
97`--protected` `<boolean>` ::
98
99If true, mark backup(s) as protected.
100+
101NOTE: Requires option(s): `storage`
102
0695fdaf 103`--prune-backups` `[keep-all=<1|0>] [,keep-daily=<N>] [,keep-hourly=<N>] [,keep-last=<N>] [,keep-monthly=<N>] [,keep-weekly=<N>] [,keep-yearly=<N>]` ('default =' `keep-all=1`)::
739d4d64
TL
104
105Use these retention options instead of those from the storage configuration.
106
2489d6df 107`--quiet` `<boolean>` ('default =' `0`)::
1f554f76
DM
108
109Be quiet.
110
2489d6df 111`--remove` `<boolean>` ('default =' `1`)::
1f554f76 112
0695fdaf 113Prune older backups according to 'prune-backups'.
1f554f76 114
2489d6df 115`--script` `<string>` ::
1f554f76
DM
116
117Use specified hook script.
118
2489d6df 119`--stdexcludes` `<boolean>` ('default =' `1`)::
1f554f76 120
04ce4dfa 121Exclude temporary files and logs.
1f554f76 122
2489d6df 123`--stdout` `<boolean>` ::
1f554f76
DM
124
125Write tar to stdout, not to a file.
126
2489d6df 127`--stop` `<boolean>` ('default =' `0`)::
1f554f76 128
1e3f8156 129Stop running backup jobs on this host.
1f554f76 130
2489d6df 131`--stopwait` `<integer> (0 - N)` ('default =' `10`)::
1f554f76 132
04ce4dfa 133Maximal time to wait until a guest system is stopped (minutes).
1f554f76 134
907e4bc3 135`--storage` `<storage ID>` ::
1f554f76
DM
136
137Store resulting file to this storage.
138
2489d6df 139`--tmpdir` `<string>` ::
1f554f76
DM
140
141Store temporary files to specified directory.
142
c5aa7e14
TL
143`--zstd` `<integer>` ('default =' `1`)::
144
c6d5bae8 145Zstd threads. N=0 uses half of the available cores, if N is set to a value bigger than 0, N is used as thread count.
c5aa7e14 146