tech:notes_sauvegardes_backup_avec_restic
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:notes_sauvegardes_backup_avec_restic [2025/12/04 12:55] – Jean-Baptiste | tech:notes_sauvegardes_backup_avec_restic [2025/12/04 18:19] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 47: | Ligne 47: | ||
| Maintenance | Maintenance | ||
| ~~~bash | ~~~bash | ||
| - | restic check | + | restic check --read-data |
| restic prune | restic prune | ||
| Ligne 67: | Ligne 67: | ||
| - | Tailles des snapshots | + | |
| + | ### Tailles des snapshots | ||
| + | |||
| + | A partir de la version 0.17 | ||
| + | ~~~bash | ||
| + | restic snapshots --json add5377d | jq | ||
| + | ~~~ | ||
| + | |||
| + | Sinon | ||
| ~~~ | ~~~ | ||
| + | # Affiche la taille restant après effacement | ||
| $ restic forget --dry-run --prune add5377d | grep remaining | $ restic forget --dry-run --prune add5377d | grep remaining | ||
| remaining: | remaining: | ||
| Ligne 88: | Ligne 97: | ||
| Total objects: 589 (589) | Total objects: 589 (589) | ||
| Total size: 8.600 GiB (9234283006 Byte) | Total size: 8.600 GiB (9234283006 Byte) | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | $ restic forget --dry-run --prune $(restic snapshots --tag blob | awk '/ | ||
| + | remaining: | ||
| + | unused size after prune: 0 B (0.00% of remaining size) | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | Diff entre deux snapshots | ||
| + | ~~~bash | ||
| + | restic snapshots --latest 2 --tag blob | grep /Work$ | ||
| + | restic diff -v f462cfae a230e52f | ||
| + | ~~~ | ||
| + | |||
| + | Différences de tailles entre deux snapshots | ||
| + | ~~~ | ||
| + | $ restic diff f462cfae a230e52f | egrep " | ||
| + | Added: | ||
| + | Removed: 0 B | ||
| ~~~ | ~~~ | ||
tech/notes_sauvegardes_backup_avec_restic.1764849340.txt.gz · Dernière modification : de Jean-Baptiste
