From 21a13652df728c9571f899caf4949d5d46f49db7 Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 1 May 2024 17:39:45 +0000 Subject: deploy: 7ca41565c4e70b212cb88a4d18c18fa35768df6d --- tools/restic.html | 265 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 265 insertions(+) create mode 100644 tools/restic.html (limited to 'tools/restic.html') diff --git a/tools/restic.html b/tools/restic.html new file mode 100644 index 0000000..d51063e --- /dev/null +++ b/tools/restic.html @@ -0,0 +1,265 @@ + + + + + + restic - Notes + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+
+

restic(1)

+

Create new snapshot repository

+
# Create a local backup repository.
+restic -r <path> init
+
+# Create a backup repository on a remote host.
+restic -r sftp:user@host:<path> init
+
+

Example: Restore file pattern from latest snapshot

+

Restore files matching <file_pattern> from the latest snapshot (pseudo +snapshot ID) into <dest>.

+
restic -r <repo> restore -i <file_pattern> --target <dest> latest
+
+

Mount snapshots

+

Mount snapshots as user filesystem (fuse) to given mount point.

+
restic -r <repo> mount <mntpoint>
+
+# Mounted snapshots can be limited by host.
+restic -r <repo> mount --host <host> <mntpoint>
+
+# Mounted snapshots can be limited by path (abs path).
+restic -r <repo> mount --path <abspath> <mntpoint>
+
+

Repository maintenance

+

Check the repository for errors and report them.

+
restic -r <repo> check
+
+

Check the repository for non-referenced data and remove it.

+
restic -r <repo> prune
+
+

References

+ + +
+ + +
+
+ + + +
+ + + + + + + + + + + + + + + + + + +
+ + -- cgit v1.2.3