From 6bbced900cd900bc8c382dcc6798243649749aab Mon Sep 17 00:00:00 2001 From: Halvor Haukvik Date: Mon, 5 Feb 2018 04:18:52 -0500 Subject: [PATCH] restic: add page (#1943) --- pages/common/restic.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/restic.md diff --git a/pages/common/restic.md b/pages/common/restic.md new file mode 100644 index 000000000..2249da7b1 --- /dev/null +++ b/pages/common/restic.md @@ -0,0 +1,23 @@ +# restic + +> Fast, secure, efficient backup program. + +- Initialize a backup repository in the specified local directory: + +`restic init -r {{path/to/repository}}` + +- Backup folder "my_folder" to the repository: + +`restic -r {{path/to/repository}} backup {{path/to/my_folder}}` + +- 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}}` + +- Clean up the repository and keep only the most recent snapshot of each unique backup: + +`restic forget --keep-last 1 --prune`