Backup/restore through the CLI
In Proxmox, the entire backup and restore process can be managed from the command line in case the GUI becomes inaccessible.
Backup using the CLI
The command to commit backup for both KVM and LXC virtual machines is the same. The following is the command format for backup:
# vzdump <vmid> <options>
There is a long list of vzdump
options that can be used with the command. The following are just a few of the most commonly used ones:
Options |
Description |
---|---|
-all
|
The default value is |
-bwlimit
|
This adjusts the backup bandwidth in KBPS. |
-compress
|
The default value is LZO. This sets the compression type or disables compression. The available options are |
-mailto
|
This is the e-mail address used to send a backup report. |
-maxfiles
|
This contains an integer number. This sets the maximum number of backup files to be kept. |
-mode
|
The default value... |