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/05/20 16:05] 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 64: Ligne 64:
  
 restic prune restic prune
 +~~~
 +
 +
 +
 +### 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
 +remaining:         98347 blobs / 8.590 GiB
 +unused size after prune: 0 B (0.00% of remaining size)
 +
 +$ restic stats add5377d | grep -i size
 +Stats in restore-size mode:
 +              Total Size:  31.640 GiB
 +
 +$ restic stats --mode raw-data add5377d | grep -i size
 + Total Uncompressed Size:  9.152 GiB
 +              Total Size:  8.235 GiB
 +
 +$ rclone size e_nas:
 +Total objects: 589 (589)
 +Total size: 8.598 GiB (9232005166 Byte) 
 +
 +$ rclone size NAS_FTP:home/Backup/
 +Total objects: 589 (589)
 +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.1747749906.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki