usage: bazaarvcb backup [-h] [-q] [-d] [-l LOGFILE] [-H HOST] [-P PORT]
[-u USER] [-p PASSWORD]
[--mail {always,never,error}] [--mail-host HOST]
[--mail-port PORT] [--mail-mode {normal,ssl,tls}]
[--mail-login LOGIN] [--mail-password PASS]
[--mail-sender SENDER] [--mail-recipient RECIPIENT]
[--mail-header HEADER] [--exclude-disk DISK]
[--disk-format {zeroedthick,eagerzeroedthick,thin,2gbsparse}]
[--base BASE_DIR] [--hashing] [--consolidate]
[--profile] [--no-purge] [--roll-out COUNT]
[--shutdown] [--shutdown-timeout MINUTES] [--poweron]
[--poweron-after] [--agent COUNT]
[--listen ADDR[:PORT]] [--callback ADDR:PORT]
vmname target
positional arguments:
vmname the name or the .vmx path
target local or remote directory where to backup the VM
optional arguments:
-h, --help show this help message and exit
-q, --quiet don't display log on the console
-d, --debug increase debugging level
-l LOGFILE, --log LOGFILE
specify the logfile
host options:
-H HOST, --host HOST hostname or ip address of the ESXi server
-P PORT, --port PORT port
-u USER, --user USER username
-p PASSWORD, --password PASSWORD
password
mail options:
--mail {always,never,error}
when to send an email, default is never
--mail-host HOST name or IP of the mail relay
--mail-port PORT tcp port of the mail relay, (default depend of mode)
--mail-mode {normal,ssl,tls}
SMTP protocol
--mail-login LOGIN login for the mail relay
--mail-password PASS password for the mail relay
--mail-sender SENDER email address of the sender
--mail-recipient RECIPIENT
email address of one recipient, you can use multiple
option
--mail-header HEADER email address of one recipient, you can use multiple
option
backup options:
--exclude-disk DISK the full path of a disk to exclude, can be used
multiple time
--disk-format {zeroedthick,eagerzeroedthick,thin,2gbsparse}
only for remote backup, when vmkfstools is used,
default is to keep the same format
--base BASE_DIR a directory where to search for the most recent base
image
--hashing use block hashing to lower bandwidth
--consolidate consolidate snapshots if any
--profile enable profiling
--no-purge don't purge backup that have failed
--roll-out COUNT the number of backup to keep, 0 to never roll, <0 to
roll before to backup
--shutdown shutdown the VM before the backup (poweroff after
shutdown-timeout seconds), you probably want a
--poweron too
--shutdown-timeout MINUTES
time before to do a hard poweroff (default is 15 min)
--poweron start the VM after the snapshot, before to start the
backup
--poweron-after start the VM after the end of the backup
--jobname JOBNAME the name of the job, default is to use the vmname
--comment COMMENT a comment going into the report
--agent COUNT the number of agent to start on the remote ESXi
--listen (ADDR:)PORT the program expect to receive data from ESXi on this
port, default is 31031, it is already open on ESXi,
open it on your Windows or Linux host
--callback ADDR:PORT when the program is behind NAT, the address of your
Internet gateway to which the ESXi will send data back