pbackup
The
pbackup
utility is run on the so-called Backup Server. It connects via SSH to the servers where some or all virtual machines are to be backed up and puts the tarballs into the
/vz/vmprivate/backups
directory. Later on, the virtual machine backups can be restored from this directory.
Syntax
pbackup
[
backup_options
]
server
[...] [
vm_options
]
You may specify any number of server names or IP addresses in the command-line.
Notes:
1. This section describes only backup options for virtual machines. For backup options that can be used with Containers, see
pbackup
.
2. The backup settings in the
/etc/vzbackup.conf
file do not apply to virtual machines. To change some of the backup-related settings for virtual machines, you can use the
prlsrvctl
utility.
Backup Options
Name
|
Description
|
-n
<credentials>
|
Set the Backup Server, i.e. the server that will be used for storing the resulting virtual machine backups. If this parameter is omitted, the specified virtual machines will be backed up to the server where they are hosted.
The Backup Server can be specified in this format:
user
[:
password
]@
server_IP_address_or_hostname
[:
port
]
|
--ssh-opts
<options>
|
Options to be passed to
ssh
. See examples in the global backup configuration file.
|
-F, -I
|
Create a full backup. A full backup contains all virtual machine data.
|
-i
|
Make an incremental backup or, if no full backups are available, a full backup. An incremental backup contains only the file that were changed since the previous full or incremental backup.
|
Virtual Machine Options
Name
|
Description
|
-e
<vm_ID|vm_name>
[...]
|
The virtual machines to back up on the server. Virtual machines can be specified using both their IDs and their names.
|
-x
<vm_ID|vm_name>
[...]
|
The virtual machines that need not be backed up (virtual machines to exclude). Virtual machines can be specified using both their IDs and their names.
|
|