tldr/pages/common/restic.md
Lucas Gabriel Schneider 8211b80c17
multiple pages: rephrase without adjectives (#3846)
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com>
2020-02-11 18:53:43 +01:00

896 B

restic

A backup program that aims to be fast, secure and efficient. More information: https://restic.net.

  • Initialize a backup repository in the specified local directory:

restic init -r {{path/to/repository}}

  • Backup a directory to the repository:

restic -r {{path/to/repository}} backup {{path/to/directory}}

  • Show backup snapshots currently stored in the repository:

restic -r {{path/to/repository}} snapshots

  • Restore a specific backup snapshot to a target directory:

restic -r {{path/to/repository}} restore {{snapshot_id}} {{path/to/target}}

  • Restore a specific path from a specific backup to a target directory:

restic -r {{path/to/repository}} --include {{path/to/restore}} --target {{path/to/target}} restore {{snapshot_id}}

  • Clean up the repository and keep only the most recent snapshot of each unique backup:

restic forget --keep-last 1 --prune