Outils pour utilisateurs

Outils du site


linux:restic (lu 13483 fois)

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
linux:restic [26-09-2025 15:04] – créée edmc73linux:restic [27-04-2026 20:37] (Version actuelle) edmc73
Ligne 1: Ligne 1:
 ====== restic ====== ====== restic ======
  
 +===== Documentation =====
 +
 +restic permet de faire des backup sous forme de snapshots de **fichier local** uniquement (ou montage nfs, sshfs etc...) vers un chemin local ou à distance via sftp et plein d'autre storage cloud.
 +
 +  * Doc officiel -> https://restic.readthedocs.io/en/latest/010_introduction.html
 +  * Interface Web -> https://github.com/garethgeorge/backrest
 +    * Doc de backrest -> https://garethgeorge.github.io/backrest/introduction/getting-started
 +
 +
 +===== Installation =====
   apt install restic   apt install restic
   restic self-update   restic self-update
Ligne 29: Ligne 39:
  
 --- https://www.shpv.fr/blog/restic-sauvegarde/ --- https://www.shpv.fr/blog/restic-sauvegarde/
 +
 +
 +===== ZeroByte =====
 +
 +WebApp pour restic
 +
 +Installation sur LXC -> https://community-scripts.org/scripts/zerobyte
 +
 +Faire un montage pour les dépôts
 +
 +  pct set 100 -mp0 /media/nas/restic-repo,mp=/var/lib/zerobyte/repositories
 +
 +Ne pas oublier les droits
 +  chown 100000:100000 /media/nas/restic-repo
 +
 +Pour que le montage des volumes se fasse, mettre l'option Container / Options / Features / FUSE
 +
 +Attention lors du backup, il peut y avoir ce genre de problème
 +<code>
 +ERROR: rsync: [sender] readlink_stat("/proc/976153/root/var/lib/zerobyte/volumes/QQZ5W9aQ/_data") failed: Permission denied (13)
 +ERROR: rsync: [sender] readlink_stat("/proc/976153/root/var/lib/zerobyte/volumes/QzwNHc82/_data") failed: Permission denied (13)
 +ERROR: rsync: [sender] readlink_stat("/proc/976153/root/var/lib/zerobyte/volumes/fTn6r-lO/_data") failed: Permission denied (13)
 +ERROR: rsync: [sender] readlink_stat("/proc/976153/root/var/lib/zerobyte/volumes/s64x8ikT/_data") failed: Permission denied (13)
 +</code>
 +
 +La solution est d'exclure le dossier ''/var/lib/zerobyte/volumes''
 +
 +  * Soit en créant un job de backup uniquement pour ce container et d'ajouter un ''exclude-path'' (recommandé)
 +
 +<code>
 +vi /etc/pve/jobs.cfg
 +
 +vzdump: backup-b3ea23cc-eca0
 +        schedule 21:00
 +        enabled 1
 +        fleecing 0
 +        mode snapshot
 +        notes-template {{guestname}}
 +        notification-mode notification-system
 +        repeat-missed 0
 +        storage datastoreHome
 +        vmid 105
 +        exclude-path /var/lib/zerobyte/volumes
 +</code>
 +
 +Important ensuite de reload les services qui vont bien
 +  systemctl reload-or-restart pvescheduler.service pveproxy.service pvedaemon.service
 +
 +Attention, si vous modifiez le backup dans l'interface web, il faudra recommencer l'opération.
 +
 +
 +  * Soit, si vous faite vos backup via ''proxmox-backup-client'', ajouter un fichier ''.pxarexclude'' à la racine
 +<code>
 +vi /.pxarexclude
 +
 +/var/lib/zerobyte/volumes/**
 +</code>
linux/restic.1758899059.txt.gz · Dernière modification : de edmc73