Outils pour utilisateurs

Outils du site


tech:notes_sauvegardes_backup_avec_restic

Différences

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

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:notes_sauvegardes_backup_avec_restic [2025/12/04 12:55] Jean-Baptistetech: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:         98347 blobs / 8.590 GiB remaining:         98347 blobs / 8.590 GiB
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 '/DATA$/ {print $1}') | grep remaining
 +remaining:         87662 blobs / 417.746 MiB
 +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"
 +  Added:   0 B
 +  Removed: 0 B
 ~~~ ~~~
  
tech/notes_sauvegardes_backup_avec_restic.1764849340.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki