Skip to content
resticprofile

resticprofile

  • see also restic
  • you can always add the argument --name <profile_name> to select a specific profile, default is standard

list profiles

resticprofile profiles

list snapshots

resticprofile # uses the default profile
resticprofile --name default snapshots

list items in snapshot

  • latest is a special snapshot name, referring to the latest snapshot
resticprofile ls latest

mount backup

resticprofile mount /restic_restore
  • you can then browse the contents, for the latest snapshot for example:
ls /restic_restore/snapshots/latest/

prune and forget snapshots

use forget to delete old snapshots and prune to reclaim storage from unreferenced data.

preview a retention policy, for example keeping the latest 10 snapshots:

resticprofile --name default forget --keep-last 10 --prune --dry-run

apply the reviewed policy:

resticprofile --name default forget --keep-last 10 --prune

clean up unreferenced data, without deleting additional snapshots:

resticprofile --name default prune --dry-run
resticprofile --name default prune

delete a specific snapshot, use its ID:

resticprofile --name default forget SNAPSHOT_ID --prune --dry-run
# Remove --dry-run after reviewing the result.