Backing up through the command line
VZdump is used to backup both KVM-based virtual machines and OpenVZ containers. In Proxmox, a backup can also be performed through the command line.
How to do it...
Data can be backed up in Proxmox using the following command:
# vzdump <vmid> [options] [options] ..
VZdump has a wide range of options that can be used to perform a backup task. Here are just some of the most commonly used options:
Option |
Function |
---|---|
|
This option will backup all VMs in a Proxmox node. The default is set as 0. |
|
This is to adjust the backup bandwidth in KBPS. |
|
This is the e-mail address to send backup logs to. |
|
This value is to set the maximum number of backup files to keep. |
|
This is set as the backup mode. Available options are snapshot, stop, and suspend. The default is stop. |
|
This is a set compression method. Available options are LZO and Gzip. |
|
This is to remove older backups if more than the... |