Skip to content

Commit

Permalink
Update README for restic
Browse files Browse the repository at this point in the history
  • Loading branch information
barrucadu committed Jan 27, 2024
1 parent 98f7c5a commit b50a74e
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -73,26 +73,27 @@ Tools

### Backups

Backups are managed by `shared/backups` and uploaded to S3 with [Duplicity][].
Backups are managed by `shared/restic-backups` and uploaded to [Backblaze B2][]
with [restic][].

Check the status of a backup collection with:
List all the snapshots with:

```bash
nix run .#backups # for the current host
nix run .#backups status # for the current host
nix run .#backups status <hostname> # for another host
nix run .#backups # all snapshots
nix run .#backups -- snapshots --host <hostname> # for a specific host
nix run .#backups -- snapshots --tag <tag> # for a specific tag
```

Restore a backup to `/tmp/backup-restore` with:
Restore a snapshot to `<restore-dir>` with:

```bash
nix run .#backups restore # for the current host
nix run .#backups restore <hostname> # for another host
nix run .#backups restore <snapshot> [<restore-dir>]
```

Change the restore target by setting `$RESTORE_DIR`.
If unspecified, the snapshot is restored to `/tmp/restic-restore-<snapshot>`.

[Duplicity]: https://duplicity.gitlab.io/
[Backblaze B2]: https://www.backblaze.com/
[restic]: https://restic.net/

### Secrets

Expand Down

0 comments on commit b50a74e

Please sign in to comment.