Skip to content

Commit cc1df1c

Browse files
authored
Merge pull request #32 from buildplan/dev
Added --find and --dump commands for searching files across snapshots and extracting individual files Added --recovery-kit to generate a compact script that would serve as a disaster recovery kit to facilitate recovery
2 parents 3191734 + ba5783a commit cc1df1c

File tree

3 files changed

+189
-50
lines changed

3 files changed

+189
-50
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ For those familiar with setting up backup scripts, here is a fast track to get y
8888
- `sudo ./restic-backup.sh --install-scheduler` — Interactive schedule wizard (systemd/cron).
8989
- `sudo ./restic-backup.sh --uninstall-scheduler` — Remove the installed schedule.
9090
- `sudo ./restic-backup.sh --restore` — Interactive restore wizard with dry-run preview.
91+
- `sudo ./restic-backup.sh --dump <id> <path>` - Dump a single file from a snapshot to stdout.
9192
- `sudo ./restic-backup.sh --background-restore <snapshot> <dest>` — Non-blocking background restore (logs to /tmp).
9293
- `sudo ./restic-backup.sh --sync-restore <snapshot> <dest>` — Blocking restore suitable for cron/automation.
9394
- `sudo ./restic-backup.sh --forget` — Apply retention policy (optionally prunes).
@@ -97,6 +98,8 @@ For those familiar with setting up backup scripts, here is a fast track to get y
9798
- `sudo ./restic-backup.sh --snapshots` — List snapshots.
9899
- `sudo ./restic-backup.sh --snapshots-delete` — Interactively delete snapshots (irreversible).
99100
- `sudo ./restic-backup.sh --ls [snapshot_id] [path ...]` — List files/dirs within a snapshot (paged with `less`).
101+
- `sudo ./restic-backup.sh --find <pattern...>` - Search for files/dirs across all snapshots (e.g., --find \"*.log\" -l).
102+
- `sudo ./restic-backup.sh --recovery-kit` - Generate a self-contained recovery script (with embedded password).
100103

101104
Tip: `--verbose` is interactive; cron should use the default quiet mode. The script auto-reexecs with sudo if not run as root.
102105

0 commit comments

Comments
 (0)