Skip to content

Monitoring Backups

Procédures vérification et monitoring infrastructure backup.

Vérifications Hebdomadaires

État PBS

# LXC 102 running
pct status 102

# Derniers backups
pct exec 102 -- proxmox-backup-manager task list --limit 10

# Espace datastore (<80%)
df -h /mnt/pve/pbs-datastore/datastore/

Google Drive

# Structure complète
pct exec 102 -- rclone lsd gdrive:backup/homeserver/

# Taille upload PBS
pct exec 102 -- rclone size gdrive:backup/homeserver/pbs/

# Derniers backups configs
pct exec 102 -- rclone ls gdrive:backup/homeserver/configs/ | head -5

Logs Scripts

# Host - dernières 50 lignes
tail -50 /var/log/backup-proxmox-host.log

# LXC 102 - logs backup
pct exec 102 -- tail -50 /var/log/pbs-sync-gdrive.log
pct exec 102 -- tail -50 /var/log/backup-docker-configs.log
pct exec 102 -- tail -50 /var/log/backup-documentation.log

Vérifications Mensuelles

Test Restauration

Drill mensuel : restaurer backup test pour valider procédure.

Voir ../recovery/testing.md.

Quota Google Drive

# Vérifier espace disponible
pct exec 102 -- rclone about gdrive:

Review Rétention

Vérifier rétention PBS adéquate selon usage :

# Config actuelle
grep "prune-backups" /etc/pve/storage.cfg

Alertes à Implémenter

  • Email notification échec backup PBS
  • Email notification échec sync Google Drive
  • Alerte espace datastore PBS <20% libre
  • Alerte quota Google Drive proche limite

Métriques

# Nombre backups par LXC
pct exec 102 -- proxmox-backup-manager task list | grep "backup.*100"
pct exec 102 -- proxmox-backup-manager task list | grep "backup.*101"

# Taille moyenne backups
du -sh /mnt/pve/pbs-datastore/datastore/ct/100/
du -sh /mnt/pve/pbs-datastore/datastore/ct/101/

Troubleshooting

Backup échoué

  1. Consulter logs :

    pct exec 102 -- proxmox-backup-manager task list --limit 20
    pct exec 102 -- proxmox-backup-manager task log <task-upid>
    

  2. Vérifier espace :

    df -h /mnt/pve/pbs-datastore/datastore/
    

  3. Vérifier LXC source running :

    pct status 100
    pct status 101
    

Upload Google Drive échoué

  1. Vérifier OAuth :

    pct exec 102 -- rclone lsd gdrive:
    

  2. Renouveler token si nécessaire :

    pct exec 102 -- rclone config reconnect gdrive:
    

  3. Vérifier quota :

    pct exec 102 -- rclone about gdrive: