commands
restic — Inspect backup snapshots
List snapshots from a prepared repository; use interactive credentials, never embed them in commands. Repository checks and restore drills are separate. Use a fresh private workspace; live operations are VM-only.
Formal Syntax & Structure
linux syntaxlinux
restic -r REPO snapshotsParameters & Attributes
| Name | Type | Description |
|---|---|---|
| -r | option | Repository location |
| REPO | operand | Private repository |
| snapshots | operand | List snapshots |
Return Value
exit status and output
The snapshots operation lists snapshot IDs and metadata after accessing the repository. Inspect any repository/authentication errors; successful listing does not verify every stored data block or restoration.
Working Example
Example Snippetlinux
restic -r ./restic-repo snapshots