Backup Infrastructure Migration
Migrated from unreliable USB-based backups to Proxmox Backup Server with internal SATA drives. Backup jobs were failing roughly 40% of nights due to USB power management issues. Now a week of daily backups for 13 guests takes about 126 GiB on a 1TB drive, jobs run unattended, and a secondary node syncs a full copy every night.
- failed nights
- ~40% → none since the migration
- storage
- 6.2 TiB of backups in 126 GiB (98% less)
- coverage
- 13 guests × 7 daily backups, copied nightly to a second node
The Problem
What I Started With
- 3-node Proxmox cluster with ~420GB of VM data
- Backups stored on 4.5TB external USB drive shared via NFS
- Backup jobs failing ~40% of nights due to USB disconnects
- VMs would sometimes shut down unexpectedly when mount path disappeared mid-backup
- No redundancy - single point of failure for all backups
Why USB Storage Failed
- Power management: USB drives go to sleep, causing mount path instability
- Controller reliability: USB adds failure points between drive and system
- No enterprise features: No RAID, no hot-swap, no monitoring
- Mount lifecycle issues: Stale NFS mounts when drive reconnects
The Solution
Architecture Overview
Migrated to Proxmox Backup Server (PBS) with a distributed architecture across two nodes:
PBS BACKUP ARCHITECTURE
┌─────────────────────────────────────────────────────────────┐
│ PROXMOX CLUSTER │
│ │
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
│ │ pve01 │ │ pve02 │ │ pve03 │ │
│ │ VMs │ │ VMs │ │ VMs │ │
│ └────┬────┘ └────┬────┘ └────┬────┘ │
│ │ │ │ │
│ └────────────────┼────────────────┘ │
│ │ │
│ ▼ │
│ ┌─────────────────────┐ │
│ │ PBS Primary │ │
│ │ (pve01 - 1TB) │ │
│ │ Deduplication │ │
│ └──────────┬──────────┘ │
│ │ │
│ Auto Sync │
│ (2hr offset) │
│ │ │
│ ▼ │
│ ┌─────────────────────┐ │
│ │ PBS Secondary │ │
│ │ (pve02 - 731GB) │ │
│ │ Redundant Copy │ │
│ └─────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
Key Components
Internal SATA Storage
- Eliminated USB entirely - direct SATA connection
- 1TB drive on pve01 dedicated to PBS primary
- 1TB drive on pve02 partitioned: 200GB NFS (ISOs/templates) + 731GB PBS sync target
Proxmox Backup Server
- Chunk-level deduplication (98% storage savings, measured)
- Automatic verification of backup integrity
- Let's Encrypt certificates via ACME for secure web UI
- Native integration with Proxmox VE
Automatic Replication
- Primary syncs to secondary every night (2-hour offset from backups)
- If primary drive fails, secondary has complete copy
- Follows 3-2-1 backup principle (working toward offsite)
Deduplication Mechanics
Storage Comparison
Day 1: 100GB VM -> 100GB backup Day 2: 100GB (2GB changed) -> 100GB Day 3: 100GB (3GB changed) -> 100GB Total: 300GB for 3 days
Day 1: 100GB VM -> 100GB chunks Day 2: 100GB (2GB changed) -> +2GB Day 3: 100GB (3GB changed) -> +3GB Total: 105GB for 3 days Savings: 65%
- 420GB of live VM data
- 1TB backup drive capacity
- Before PBS: Could store 1-2 full backup rotations
- After PBS: 7 daily backups of 13 guests use about 13% of the drive
The Challenges
Symptom:
rsync: failed to stat '/mnt/pve/exthdd/iso/ubuntu.iso': No such file or directory External HDD mount point disappeared mid-migration
Root Cause:
- USB drive power management put drive to sleep during large file copy
- Mount path became stale
- rsync encountered non-existent path
Solution:
- Disabled USB autosuspend temporarily:
echo -1 > /sys/module/usbcore/parameters/autosuspend - Used
rsyncwith resume capability:rsync -av --partial --progress /source/ /dest/ - Monitored transfer with
watch -n 1 df -hto detect disconnects immediately
Lesson Learned:
USB reliability issues aren't always obvious. Understanding Linux power management, mount lifecycle, and resilient copy strategies is essential for safe data migrations.
Symptom:
ACME challenge failed: DNS TXT record not found
Root Cause:
- PBS uses different ACME plugin format than PVE
- Cloudflare API token needed specific permissions
- DNS propagation delay caused initial failures
Solution:
- Created Cloudflare API token with Zone:DNS:Edit permissions
- Configured PBS ACME plugin with correct credentials
- Added delay to allow DNS propagation before verification
Lesson Learned:
Certificate automation requires understanding both the ACME protocol and your DNS provider's API. Different Proxmox products have slightly different configurations.
Symptom:
df shows less usable space than expected on 1TB drive
Root Cause:
- ext4 reserves 5% for root by default (~50GB on 1TB)
- Default inode ratio wastes space for large-file workloads
Solution:
# Reduce reserved blocks from 5% to 1%
tune2fs -m 1 /dev/sda1
# Verify alignment for optimal performance
blockdev --getalignoff /dev/sda1
Lesson Learned:
Understanding tunable parameters (reserved blocks, inode ratio, alignment) maximizes usable capacity for specific workloads.
Results
- Backup jobs have been running clean since migration (was ~40% failure rate)
- 98% storage reduction through chunk-level deduplication (measured October 2026)
- Primary syncs to secondary nightly — if the drive fails, the other node has a full copy
- 7 daily backups of every guest (
keep-daily=7), with daily garbage collection - Nothing has needed manual intervention since it went live
- Following 3-2-1 principles, working toward an offsite copy
Lessons Learned
Observation: External USB drives are convenient for workstations but unsuitable for production backups.
Why:
- USB power management can't be fully disabled
- USB controllers add failure points
- Sleep mode causes mount path instability
- No inherent redundancy
Better Approach: Internal storage with proper enterprise features (RAID, hot-swap, monitoring).
Observation: PBS deduplication reduced storage requirements by 98%.
Measured (first garbage collection, October 2026):
- 13 guests, 7 daily backups each
- Logical backup data: 6.2 TiB
- Actually on disk: 126 GiB
- Dedup factor: 50.6x, so 98% savings
Impact: Can afford longer retention on smaller drives, improving disaster recovery capabilities.
Observation: Hardware fails. Single-instance backups are risky.
Scenario:
- pve01's SATA drive fails (no warning)
- Without sync: All backups lost
- With sync: pve02 has complete copy, restore unaffected
Investment: Minimal (second HDD + cron job)
Protection: Maximum (complete backup redundancy)
The Short Version
I was running a 3-node Proxmox cluster with ~420GB of VM data backed up to a 4.5TB external USB drive shared via NFS. Backup jobs were failing roughly 40% of nights — the USB drive's power management would put it to sleep mid-backup, stale the NFS mount path, and in some cases cause VMs to shut down unexpectedly when they lost access to the mount mid-write. Single point of failure, no redundancy, and gambling every night that nothing would break. I migrated to Proxmox Backup Server with internal SATA drives: a 1TB drive on pve01 as the primary PBS instance with chunk-level deduplication, and a 1TB drive on pve02 partitioned as both a 200GB NFS share for ISOs and a 731GB PBS sync target. Primary syncs to secondary on a 2-hour offset from the backup window, giving full node-level redundancy if either drive fails.
Three things broke during the migration. The USB drive went to sleep mid-rsync during the initial data move — fixed by disabling autosuspend temporarily and using rsync --partial so interrupted transfers resume rather than restart. The ACME DNS-01 challenge for the PBS Let's Encrypt certificate kept failing because Cloudflare's DNS propagation takes time before Let's Encrypt can verify the TXT record — adding a delay and ensuring the API token had Zone:DNS:Edit scope fixed it. And the 1TB ext4 filesystem reported less usable space than expected because ext4 reserves 5% for root by default — about 50GB on a 1TB drive — which is designed for OS disks, not backup workloads. tune2fs -m 1 reclaimed most of it. Since deployment: 100% backup success rate and a measured 98% storage reduction through deduplication: 6.2 TiB of backups stored in 126 GiB on disk.