objectif
Mettre en place une sauvegarde dédupliquée et chiffrée rapidement.
code minimal
export RESTIC_REPOSITORY=/srv/restic
export RESTIC_PASSWORD_FILE=/etc/restic.pass
restic init
restic backup /srv/data
utilisation
restic snapshots
restic restore latest --target /tmp/restore
variante(s) utile(s)
# repo S3 compatible
export RESTIC_REPOSITORY=s3:https://s3.data.pm/bucket/repo
restic init
notes
- conservez
RESTIC_PASSWORD_FILEavec permissions strictes. - planifiez
forget --prunepour la rétention.