Backup¶
Infrastructure backup complète : système, configurations, snapshots LXC.
Les médias ne sont pas sauvegardés (données régénérables depuis les sources).
Le datastore PBS est sécurisé en local sur sdb (rsync nightly) et en offsite Google Drive.
Stratégie 3-2-1¶
- 3 copies : Production + PBS local (rpool/pbs) + Google Drive offsite
- 2 supports : NVMe ZFS (PBS datastore) + Cloud (Google Drive)
- 1 offsite : Google Drive réplication quotidienne
- PBS secondary :
sdbext4 (rsync 02:30) — protection résidence locale
Flux Quotidien¶
| Heure | Initiateur | Action | Contenu | Destination |
|---|---|---|---|---|
| 23:00 | Host | Snapshots LXC via PBS | LXC 100, 101, 102, 103, 104, 105 | rpool/pbs (storage pbs-backups) |
| 02:30 | Host cron | rsync PBS secondary | rpool/pbs → /mnt/pbs-secondary | sdb ext4 (label pbs-secondary) |
| 04:00 | LXC 102 | Sync chunks PBS | Datastore complet | Google Drive /pbs |
| 05:00 | Host | Backup configs host Backup configs LXC |
/etc/pve/, scriptsdocker-compose, configs |
Google Drive /proxmox Google Drive /lxc-data |
Architecture¶
┌───────────────────────────────────────────────────┐
│ Host │
│ ┌───────────────────────┐ │
│ │ Proxmox VE │ │
│ └───────────────────────┘ │
│ │ │
│ ├─ /usr/local/bin/ │
│ ├─ backup-proxmox-host.sh │
│ └─ backup-docker-configs.sh │
│ │ │
│ ┌───────────────────────┐ │
│ │ /mnt/lxc-data/ │ ──────► .tar.gz │
│ └───────────────────────┘ │
│ ┌───────────────────────┐ │
│ │ Rclone (v1.72.1) │ │
│ │ Token OAuth GDrive │ ──────► Google Drive │
│ │ /root/.config/rclone/ │ │
│ └───────────────────────┘ │
└───────────────────────────────────────────────────┘
│
│ pct
▼
┌───────────────────────────────────────────────────┐
│ LXC 102 │
│ ┌──────────────────────┐ │
│ │ Proxmox Backup Server│ │
│ │ Datastore: 100GB │ │
│ └──────────────────────┘ │
│ │ │
│ ├─ /usr/local/bin/ │
│ └─ pbs-sync-gdrive-optimal.sh │
│ │ │
│ ┌───────────────────────┐ │
│ │ /mnt/datastore/ │ (chunks) │
│ └───────────────────────┘ │
│ ┌───────────────────────┐ │
│ │ Rclone (v1.72.1) │ │
│ │ Token OAuth GDrive │ ──────► Google Drive │
│ │ /root/.config/rclone/ │ │
│ └───────────────────────┘ │
└───────────────────────────────────────────────────┘