Scroll to navigation

VIRTNBDRESTORE(1) User Commands VIRTNBDRESTORE(1)

NAME

virtnbdrestore - restore utility for libvirt

DESCRIPTION

usage: virtnbdrestore [-h] [-a {dump,restore,verify}] -i INPUT -o OUTPUT

[-u UNTIL] [-s SEQUENCE] [-d DISK] [-n] [-f SOCKETFILE]
[-r] [-c] [-D] [-N NAME] [-B BUFFSIZE] [-U URI] [--user USER] [--ssh-user SSH_USER] [--password PASSWORD] [-P NBD_PORT] [-I NBD_IP] [--tls] [--tls-cert TLS_CERT] [-L LOGFILE] [--nocolor] [-v] [-V]

Restore virtual machine disks

options:

show this help message and exit

General options:

Action to perform: (default: restore)
Directory including a backup set
Restore target directory
Restore only until checkpoint, point in time restore.
Restore image based on specified backup files.
Process only disk matching target dev name. (default: None)
Disable progress bar
Use specified file for NBD Server socket (default: /var/tmp/virtnbdbackup.2638356)
Copy raw images as is during restore. (default: False)
Adjust vm configuration during restore. (default: False)
Register/define VM after restore. (default: False)
Define restored domain with specified name
Buffer size to use during verify (default: 8192)

Remote Restore options:

Libvirt connection URI. (default: qemu:///session)
User to authenticate against libvirtd. (default: None)
User to authenticate against remote sshd: used for remote copy of files. (default: abi)
Password to authenticate against libvirtd. (default: None)
Port used by remote NBD Service, should be unique for each started backup. (default: 10809)
IP used to bind remote NBD service on (default: hostname returned by libvirtd)
Enable and use TLS for NBD connection. (default: False)
Path to TLS certificates used during offline backup and restore. (default: /etc/pki/qemu/)

Logging options:

Path to Logfile (default: /home/abi/virtnbdrestore.log)
Disable colored output (default: False)

Debug options:

Enable debug output
Show version and exit

EXAMPLES

# Dump backup metadata:
virtnbdrestore -i /backup/ -o dump
# Verify checksums for existing data files in backup:
virtnbdrestore -i /backup/ -o verify
# Complete restore with all disks:
virtnbdrestore -i /backup/ -o /target
# Complete restore, adjust config and redefine vm after restore:
virtnbdrestore -cD -i /backup/ -o /target
# Complete restore, adjust config and redefine vm with name 'foo':
virtnbdrestore -cD --name foo -i /backup/ -o /target
# Restore only disk 'vda':
virtnbdrestore -i /backup/ -o /target -d vda
# Point in time restore:
virtnbdrestore -i /backup/ -o /target --until virtnbdbackup.2
# Restore and process specific file sequence:
virtnbdrestore -i /backup/ -o /target --sequence vdb.full.data,vdb.inc.virtnbdbackup.1.data
# Restore to remote system:
virtnbdrestore -U qemu+ssh://root@remotehost/system --ssh-user root -i /backup/ -o /remote_target
April 2024 virtnbdrestore 2.9