Server backups play a crucial role in server maintenance that would be useful when you require restoration of your valuable data. Hire MyAdmin helps the server management teams to design backup strategies effectively based on the organizational needs. Along with our Server Management Services, we will also handle backups and VM restoring from backups. This article discusses how our experts or professional team will restore a Proxmox VM from backups.
Restore Proxmox VM from backup – Why is it needed?
It’s essential to create and manage data backups in the business to provide recovery in case of corrupted or accidentally deleted data, malware or virus attacks, upgrading or migrating servers, and recovering from hardware failures. However, a backup with updates is necessary for data recovery from emergency cases.
Steps to restore Proxmox VM from backup:
The below-mentioned steps have been followed by our dedicated support engineers for restoring and backing up of Proxmox VM:
1) Configure backup storage
The backup storage location is defined by our experts before performing the VM backup. The location for backup is enabled using the steps as follows:
- Go to Datacenter > Storage and choose the storage location for backup.
- Tap on the Edit button.
- Should ensure to choose the Backups/VZDump backup file under the section of Content.
- Click on the OK button.
Now, the backups are available for storing purposes via the storage medium.
2) Stop the Proxmox VM
It’s been always recommended that users should close down the VM before doing a data backup.It assures that the VM is maintained up-to-date and it doesn’t operate during the process of backup.
3) Back up the Proxmox VM
We are required to log into the VM through SSH for creating a backup from the command line using the commands given below:
cd /var/ lib/vz/dump
vzdump 501
A backup file will be created with the name of VM 501 that is located in the /var/lib/vz/dump.
We can also consider an alternative method using a control panel to create the backup.
- Choose the virtual machine for backup.
- Go to Backup > Backup now.
- Select the destination for storage, backup mode and compression.
- Click on the Backup button finally.
It’s better to save a backup set that would be helpful for us to restore the files in emergency cases. Hire MyAdmin’s support engineers will assist the server owners by providing them with scheduled Proxmox VM backups that could execute the automatic operations for specific duration and days.
The backups are scheduled based on the GUI performing the steps below:
- Go to Datacenter > Backup and Add > Create Backup Job.
- Choose the details like destination storage, node, time, days of a week, etc.
- Make sure that the job for backup is Enabled.
Restore Proxmox VM from backup – How do we do it?
Let’s get into the in-detail information about restoring the VM Proxmox. The VM is restored usually through the GUI and command lines. We use the command line for VM restoring as it is easier to do. For example, the command of qmrestore is used to recover the KVM VM 501 from backup of VM.
qmrestore vzdump-qemu-019-2018_10_14-15_13_31.vma 501
The pct restore command is used for restoring LXC container. The following steps are considered to recover VM through GUI, such as:
- Go to the VM to be moved.
- Tap on the Backup button and choose the generated backup file.
- Click on the Restore tab.
- Specify the location to restore the VM in the field of restore.
- Click on Restore.
Conclusion
Maintenance of regular backups for your VM for easier and quick data recovery is necessary as your business-critical data should be safe and protected. This blog has demonstrated how our technical support engineers will back up and restore the Proxmox VM.