Libro sobre Proxmox maestria
A Virtual Machine for a Virtual World
The entire backup process can be handled from the command line in case the GUI becomes inaccessible. The command to start a backup is as follows:
There is a long list of the vzdump options that can be used with the command. The following are just a few of the most commonly used ones:
Options -all
Default is 0. This option will back up all the available virtual machines in a Proxmox node.
Adjust the backup bandwidth in KBPS.
-compress Default is LZO. Sets the compression type or disables compression. The available options are 0, 1, gzip, and Izo.
-mailto
E-mail address to send backup report.
-maxfiles Integer number. Sets maximum number of backup files to be kept. Default is Stop. Sets backup mode. Available options are snapshot, stop, and suspend.
-mode
Default is 1. Removes older backups if more than the value entered in-maxfiles.
There are two commands available to restore the KVM and OpenVZ virtual machines. They are as follows:
⚫ For KVM machines, the command is as follows:
#qmrestore <backup_file> <vmid> <options>
0 or 1. This option allows overwriting the existing VM. Use this option with caution.
-unique 0 or 1. Assigns a unique random Ethernet address to the virtual network interface.
-force
For OpenVZ machines, the command is as follows:
#vzrestore <backup_file> <vmid> <options>
Options
-force 0 or 1. This option allows overwriting the existing VM. Use this option with caution.
-unique 0 or 1. Assigns a unique random Ethernet address to the virtual network interface.