TSF – Giải pháp IT toàn diện cho doanh nghiệp SMB | HCM

P15 - Backup and Restore VM in Proxmox VE

🚀 Proxmox VE P15 – Backup and Restore VMs (Full Step-by-Step Guide)

Data protection is one of the most critical responsibilities of any system administrator.
In Proxmox VE, having a proper backup and restore strategy ensures your infrastructure can quickly recover from hardware failure, accidental deletion, or ransomware attacks.

In this complete guide, you will learn how to:

  • 📦 Configure backup storage

  • 🗂 Create manual VM backups

  • ⏱ Schedule automatic backup jobs

  • 🔄 Restore virtual machines safely

  • ⚙ Understand backup modes and best practices

Whether you are running a homelab or managing a production cluster, mastering Proxmox backup is essential.


🎯 Why Backup is Critical in Proxmox

Without backups, risks include:

  • ❌ Data loss due to hardware failure

  • ❌ VM corruption

  • ❌ Accidental deletion

  • ❌ Ransomware damage

  • ❌ Cluster misconfiguration

Proxmox provides built-in backup tools that are reliable, efficient, and easy to automate.


🧩 Understanding Proxmox Backup Basics

Proxmox supports multiple backup types:

  • 💤 Stop mode (VM stopped during backup)

  • 🔁 Suspend mode

  • ⚡ Snapshot mode (recommended for most cases)

Backup file format:

 
.vma.zst

These files can be stored on:

  • Local storage

  • NFS

  • SMB

  • Proxmox Backup Server (PBS)


🗄 Step 1 – Configure Backup Storage

Before creating backups, ensure you have backup storage configured.

Navigate to:

Datacenter → Storage → Add

Choose your storage type:

  • NFS

  • Directory

  • SMB/CIFS

  • Proxmox Backup Server

Make sure:

  • Content type includes “VZDump backup file”

  • Storage is accessible from all nodes (if clustered)

Verify storage status is active.


📦 Step 2 – Create Manual Backup of a VM

To manually backup a VM:

  1. Select the VM

  2. Click Backup

  3. Choose storage

  4. Select mode:

    • Snapshot (recommended)

    • Suspend

    • Stop

  5. Click Backup

Proxmox will generate a backup file under:

 
/var/lib/vz/dump/

Monitor progress in the Task Viewer.


⏱ Step 3 – Create Scheduled Backup Job

Automating backups ensures consistency and protection.

Go to:

Datacenter → Backup → Add

Configure:

  • Node (or all nodes)

  • Storage

  • Schedule (e.g., daily at 02:00)

  • Selection mode:

    • All VMs

    • Selected VMs

  • Backup mode (Snapshot recommended)

  • Retention policy (Keep last X backups)

Click Create.

Your backup job is now scheduled.


🔄 Step 4 – Restore a Virtual Machine

To restore a VM:

  1. Navigate to storage → Backups

  2. Select backup file

  3. Click Restore

  4. Choose:

    • Target node

    • VM ID

    • Storage

  5. Click Restore

Proxmox will recreate the VM with its original configuration.

Restore time depends on:

  • Backup size

  • Storage speed

  • Network performance (if remote storage)


💻 Restore Using CLI (Optional)

You can also restore via command line:

List backups:

 
qmrestore <backup-file> <VMID>

Example:

 
qmrestore vzdump-qemu-100-2026_02_14-02_00_00.vma.zst 200

This restores the backup to VM ID 200.


⚙ Understanding Backup Modes

Snapshot Mode (Recommended)

  • Minimal downtime

  • Uses QEMU snapshot mechanism

  • Best for production

Suspend Mode

  • Pauses VM briefly

  • Slightly more consistent

Stop Mode

  • VM completely stopped

  • Safest but causes downtime

Choose mode based on workload sensitivity.


🛠 Common Backup Issues

❌ Storage not configured for backup content
❌ Insufficient disk space
❌ VM lock errors
❌ NFS permission problems
❌ Backup job not scheduled correctly

Always verify backup logs after execution.


🔐 Best Practices for Production

✔ Use dedicated backup storage
✔ Follow 3-2-1 backup strategy
✔ Test restore regularly
✔ Use Proxmox Backup Server for deduplication
✔ Monitor backup job logs
✔ Encrypt offsite backups

Backups are useless unless restore is tested.


📊 Recommended Backup Strategy

For small environments:

  • Daily snapshot backup

  • Keep last 7 days

For production:

  • Daily incremental backups

  • Weekly full backup

  • Monthly offsite copy

Consider integrating with:

  • Proxmox Backup Server

  • External NAS replication

  • Cloud backup storage


🧠 Cluster Considerations

If running Proxmox cluster:

  • Ensure all nodes can access backup storage

  • Centralize backup job configuration

  • Test restore to different nodes

Backups can be restored to any cluster node.


🎯 Conclusion

Backup and Restore in Proxmox VE is a fundamental skill for virtualization administrators.

In this guide, you have learned how to:

  • Configure backup storage

  • Create manual backups

  • Schedule automatic jobs

  • Restore VMs safely

  • Apply production best practices

A proper backup strategy transforms your infrastructure from vulnerable to resilient.

No production environment should run without verified backups.

See also related articles

P15 – Backup and Restore VM in Proxmox VE

P15 – Backup and Restore VM in Proxmox VE 🚀 Proxmox VE P15 – Backup and Restore VMs (Full Step-by-Step Guide) Data protection is one of the most critical responsibilities of any system administrator.In Proxmox VE, having a proper backup and restore strategy ensures your infrastructure can quickly recover from...

Read More

P14 – How to Remove Cluster Group Safely on Proxmox

Proxmox VE 9 P14: How to Remove Cluster Group Safely In Proxmox (Step-by-Step Guide) 🚀 Proxmox VE 9 – How to Remove Cluster Group (Step-by-Step) In some scenarios, you may need to remove a Proxmox cluster configuration completely, especially when: ❌ A node failed permanently ❌ The cluster was misconfigured...

Read More