็†ฑ้–€ๅˆ†้กž
 ่ผ‰ๅ…ฅไธญ…
็›ฎ้Œ„

๐Ÿ›ฐ Proxmox VE Backup & Restore Complete Guide: ZFS / NFS / PBS Comparison

    ๐Ÿ›ฐ Proxmox VE Backup & Restore Complete Guide: ZFS / NFS / PBS Comparison

    In virtualization management, backup and restore are critical to maintaining data integrity and minimizing downtime. Proxmox VE provides several flexible storage and backup mechanisms — including ZFS snapshots, NFS shared storage, and the Proxmox Backup Server (PBS). This article compares their architecture, use cases, and implementation examples.

    ๐Ÿ“ฆ Overview of Backup Methods

    MethodMechanismAdvantagesLimitations
    ZFS SnapshotBlock-level instant snapshotFast, minimal downtimeRequires ZFS storage pool
    NFS StorageExternal NAS mountCentralized, widely compatibleDependent on network performance
    PBS ServerOfficial backup serverDeduplication, compression, encryptionRequires separate installation

    ๐Ÿงฑ ZFS Snapshot Implementation

    When VMs reside on a ZFS volume, snapshots can be created and sent to another host efficiently:

    # Create snapshot
    zfs snapshot rpool/data/vm-101-disk-0@backup_20251111
    
    # Send snapshot to remote server
    zfs send rpool/data/vm-101-disk-0@backup_20251111 | ssh backup@10.0.0.5 zfs recv backups/pve101
    
    # List snapshots
    zfs list -t snapshot

    Ideal for quick rollback or small-scale environments.

    ๐ŸŒ NFS Network Storage + vzdump

    NFS is suitable for centralized backup repositories shared by multiple nodes:

    # Mount NFS share
    mkdir /mnt/backup_nfs
    mount -t nfs 10.0.0.10:/volume1/proxmox /mnt/backup_nfs
    
    # Add storage to Proxmox
    nano /etc/pve/storage.cfg
    
    nfs: backup-nfs
      path /mnt/backup_nfs
      server 10.0.0.10
      export /volume1/proxmox
      content backup
      maxfiles 5

    Manual backup example:

    vzdump 101 --mode snapshot --compress zstd --storage backup-nfs

    ๐Ÿงฎ Proxmox Backup Server (PBS) Setup

    PBS is an enterprise-grade deduplicated backup solution supporting AES encryption and integrity verification.

    # Register PBS repository
    pvesm add pbs backup-pbs --server 10.0.0.20 --datastore datastore1 --username backup@pbs --fingerprint 
    
    # Create backup job
    vzdump 101 --storage backup-pbs --mode snapshot --compress zstd --remove 0
    

    Restore using CLI or WebUI:

    qmrestore vzdump-qemu-101-2025_11_11-10_00_00.vma.zst 201 --storage local-lvm

    ๐Ÿ“Š Performance Comparison

    AspectZFSNFSPBS
    Speed★★★★★★★★☆☆★★★★☆
    DeduplicationNoLimitedFull
    SecurityBlock-levelDepends on NASAES + Token Auth
    Use CaseStandalone VMShared StorageEnterprise Backup

    ๐Ÿงญ Recommended Workflow

    ✅ Schedule vzdump jobs daily or weekly  
    ✅ Sync backups to NFS or PBS repository  
    ✅ Test restores periodically  
    ✅ Enable email notification in /etc/vzdump.conf  
    ✅ Clean old snapshots regularly  
      

    ๐Ÿ”— Related Articles

    ๐Ÿ“˜ Conclusion

    Backups are the last line of defense against data loss. ZFS snapshots are ideal for quick local recovery, NFS provides centralized storage, while PBS offers enterprise-grade deduplication and encryption. Choose the right combination based on your infrastructure scale and reliability needs.

    — WWFandy・Tech Notes

    ๐Ÿ”— ๅˆ†ไบซ้€™็ฏ‡ LINE Facebook X

    ๆฒ’ๆœ‰็•™่จ€:

    ๅผต่ฒผ็•™่จ€

    ๅญ—็ดš