diff --git a/.restic/restic-do b/.restic/restic-do index c8f8591..51f8c81 100755 --- a/.restic/restic-do +++ b/.restic/restic-do @@ -89,8 +89,32 @@ Stopped $backup_stopped $(cat ~/.restore-info/tmp/backup-log-${script_started}.txt) EOMAIL ;; - prune) - echo "not implemented yet" ;; + maintenance) + restic forget -r "$repo" -v --prune \ + --keep-last 2 --keep-daily 7 --keep-weekly 5 --keep-monthly 6 --keep-yearly 3 \ + > ~/.restore-info/tmp/maint-forget-log-${script_started}.txt + forget_exit_code="$?" + + restic -r "$repo" check --read-data-subset=10% \ + > ~/.restore-info/tmp/maint-check-log-${script_started}.txt + check_exit_code="$?" + + maint_done=$(date +%k%M%S) + + cat <