Global configuration is stored in /etc/vzdump.conf
. The file uses a
simple colon separated key/value format. Each line has the following
format:
OPTION: value
Blank lines in the file are ignored, and lines starting with a #
character are treated as comments and are also ignored. Values from
this file are used as default, and can be overwritten on the command
line.
We currently support the following options:
bwlimit
: <integer> (0 - N)
(default = 0
)
compress
: <0 | 1 | gzip | lzo | zstd>
(default = 0
)
dumpdir
: <string>
exclude-path
: <string>
ionice
: <integer> (0 - 8)
(default = 7
)
lockwait
: <integer> (0 - N)
(default = 180
)
mailnotification
: <always | failure>
(default = always
)
mailto
: <string>
maxfiles
: <integer> (1 - N)
mode
: <snapshot | stop | suspend>
(default = snapshot
)
pigz
: <integer>
(default = 0
)
pool
: <string>
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
)
Use these retention options instead of those from the storage configuration.
keep-all
=<boolean>
keep-daily
=<N>
keep-hourly
=<N>
keep-last
=<N>
keep-monthly
=<N>
keep-weekly
=<N>
keep-yearly
=<N>
remove
: <boolean>
(default = 1
)
script
: <string>
stdexcludes
: <boolean>
(default = 1
)
stopwait
: <integer> (0 - N)
(default = 10
)
storage
: <string>
tmpdir
: <string>
zstd
: <integer>
(default = 1
)
Example vzdump.conf
Configuration.
tmpdir: /mnt/fast_local_disk storage: my_backup_storage mode: snapshot bwlimit: 10000