1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
|
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
.TH VIRTNBDBACKUP "1" "December 2025" "virtnbdbackup 2.42" "User Commands"
.SH NAME
virtnbdbackup \- backup utility for libvirt
.SH DESCRIPTION
usage: virtnbdbackup [\-h] \fB\-d\fR DOMAIN [\-l {copy,full,inc,diff,auto}]
.TP
[\-t {stream,raw}] [\-r] \fB\-o\fR OUTPUT [\-C CHECKPOINTDIR]
[\-\-scratchdir SCRATCHDIR] [\-S] [\-\-pause] [\-i INCLUDE]
[\-x EXCLUDE] [\-f SOCKETFILE] [\-n] [\-z [COMPRESS]]
[\-w WORKER] [\-F FREEZE_MOUNTPOINT] [\-e]
[\-\-no\-sparse\-detection] [\-T THRESHOLD] [\-U URI]
[\-\-user USER] [\-\-ssh\-user SSH_USER] [\-\-ssh\-port SSH_PORT]
[\-\-password PASSWORD] [\-P NBD_PORT] [\-I NBD_IP] [\-\-tls]
[\-\-tls\-cert TLS_CERT] [\-L] [\-\-quiet] [\-\-nocolor] [\-q]
[\-s] [\-k] [\-p] [\-v] [\-V]
.PP
Backup libvirt/qemu virtual machines
.SS "options:"
.TP
\fB\-h\fR, \fB\-\-help\fR
show this help message and exit
.SS "General options:"
.TP
\fB\-d\fR, \fB\-\-domain\fR DOMAIN
Domain to backup
.TP
\fB\-l\fR, \fB\-\-level\fR {copy,full,inc,diff,auto}
Backup level. (default: copy)
.TP
\fB\-t\fR, \fB\-\-type\fR {stream,raw}
Output type: stream or raw. (default: stream)
.TP
\fB\-r\fR, \fB\-\-raw\fR
Include full provisioned disk images in backup. (default: False)
.TP
\fB\-o\fR, \fB\-\-output\fR OUTPUT
Output target directory
.TP
\fB\-C\fR, \fB\-\-checkpointdir\fR CHECKPOINTDIR
Persistent libvirt checkpoint storage directory
.TP
\fB\-\-scratchdir\fR SCRATCHDIR
Target dir for temporary scratch file. (default: \fI\,/var/tmp\/\fP)
.TP
\fB\-S\fR, \fB\-\-start\-domain\fR
Start virtual machine if it is offline. (default: False)
.TP
\fB\-\-pause\fR
Pause virtual machine while starting backup job. (default: False)
.TP
\fB\-i\fR, \fB\-\-include\fR INCLUDE
Backup only disk with target dev name (\fB\-i\fR vda)
.TP
\fB\-x\fR, \fB\-\-exclude\fR EXCLUDE
Exclude disk(s) with target dev name (\fB\-x\fR vda,vdb)
.TP
\fB\-f\fR, \fB\-\-socketfile\fR SOCKETFILE
Use specified file for NBD Server socket (default: \fI\,/var/tmp/virtnbdbackup.43866\/\fP)
.TP
\fB\-n\fR, \fB\-\-noprogress\fR
Disable progress bar
.TP
\fB\-z\fR, \fB\-\-compress\fR [COMPRESS]
Compress with lz4 compression level. (default: False)
.TP
\fB\-w\fR, \fB\-\-worker\fR WORKER
Amount of concurrent workers used to backup multiple disks. (default: amount of disks)
.TP
\fB\-F\fR, \fB\-\-freeze\-mountpoint\fR FREEZE_MOUNTPOINT
If qemu agent available, freeze only filesystems on specified mountpoints within virtual machine (default: all)
.TP
\fB\-e\fR, \fB\-\-strict\fR
Change exit code if warnings occur during backup operation. (default: False)
.TP
\fB\-\-no\-sparse\-detection\fR
Skip detection of sparse ranges during incremental or differential backup. (default: False)
.TP
\fB\-T\fR, \fB\-\-threshold\fR THRESHOLD
Execute backup only if threshold is reached.
.SS "Remote Backup options:"
.TP
\fB\-U\fR, \fB\-\-uri\fR URI
Libvirt connection URI. (default: qemu:///system)
.TP
\fB\-\-user\fR USER
User to authenticate against libvirtd. (default: None)
.TP
\fB\-\-ssh\-user\fR SSH_USER
User to authenticate against remote sshd: used for remote copy of files. (default: root)
.TP
\fB\-\-ssh\-port\fR SSH_PORT
Port to connect to remote sshd: used for remote copy of files. (default: 22)
.TP
\fB\-\-password\fR PASSWORD
Password to authenticate against libvirtd. (default: None)
.TP
\fB\-P\fR, \fB\-\-nbd\-port\fR NBD_PORT
Port used by remote NBD Service, should be unique for each started backup. (default: 10809)
.TP
\fB\-I\fR, \fB\-\-nbd\-ip\fR NBD_IP
IP used to bind remote NBD service on (default: hostname returned by libvirtd)
.TP
\fB\-\-tls\fR
Enable and use TLS for NBD connection. (default: False)
.TP
\fB\-\-tls\-cert\fR TLS_CERT
Path to TLS certificates used during offline backup and restore. (default: /etc/pki/qemu/)
.SS "Logging options:"
.TP
\fB\-L\fR, \fB\-\-syslog\fR
Additionally send log messages to syslog (default: False)
.TP
\fB\-\-quiet\fR
Disable logging to stderr (default: False)
.TP
\fB\-\-nocolor\fR
Disable colored output (default: False)
.SS "Debug options:"
.TP
\fB\-q\fR, \fB\-\-qemu\fR
Use Qemu tools to query extents.
.TP
\fB\-s\fR, \fB\-\-startonly\fR
Only initialize backup job via libvirt, do not backup any data
.TP
\fB\-k\fR, \fB\-\-killonly\fR
Kill any running block job
.TP
\fB\-p\fR, \fB\-\-printonly\fR
Quit after printing estimated checkpoint size.
.TP
\fB\-v\fR, \fB\-\-verbose\fR
Enable debug output
.TP
\fB\-V\fR, \fB\-\-version\fR
Show version and exit
.SH EXAMPLES
.IP
# full backup of domain 'webvm' with all attached disks:
.IP
virtnbdbackup \-d webvm \-l full \-o /backup/
.IP
# incremental backup:
.IP
virtnbdbackup \-d webvm \-l inc \-o /backup/
.IP
# differential backup:
.IP
virtnbdbackup \-d webvm \-l diff \-o /backup/
.IP
# full backup, exclude disk 'vda':
.IP
virtnbdbackup \-d webvm \-l full \-x vda \-o /backup/
.IP
# full backup, backup only disk 'vdb':
.IP
virtnbdbackup \-d webvm \-l full \-i vdb \-o /backup/
.IP
# full backup, compression enabled:
.IP
virtnbdbackup \-d webvm \-l full \-z \-o /backup/
.IP
# full backup, create archive:
.IP
virtnbdbackup \-d webvm \-l full \-o \- > backup.zip
.IP
# full backup of vm operating on remote libvirtd:
.IP
virtnbdbackup \-U qemu+ssh://root@remotehost/system \-\-ssh\-user root \-d webvm \-l full \-o /backup/
|