From 9a7704fa2b69479646a687bda4b5eddace530bf9 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 5 Aug 2023 12:35:08 +0200 Subject: [PATCH] diff/dump/restore: describe snapshot:subfolder syntax in help text --- cmd/restic/cmd_diff.go | 4 ++++ cmd/restic/cmd_dump.go | 4 ++++ cmd/restic/cmd_restore.go | 3 +++ 3 files changed, 11 insertions(+) diff --git a/cmd/restic/cmd_diff.go b/cmd/restic/cmd_diff.go index 28e60f464..d9128e3ef 100644 --- a/cmd/restic/cmd_diff.go +++ b/cmd/restic/cmd_diff.go @@ -29,6 +29,10 @@ directory: * M The file's content was modified * T The type was changed, e.g. a file was made a symlink +To only compare files in specific subfolders, you can use the +":" syntax, where "subfolder" is a path within the +snapshot. + EXIT STATUS =========== diff --git a/cmd/restic/cmd_dump.go b/cmd/restic/cmd_dump.go index 9acae7ca8..348c64169 100644 --- a/cmd/restic/cmd_dump.go +++ b/cmd/restic/cmd_dump.go @@ -27,6 +27,10 @@ Pass "/" as file name to dump the whole snapshot as an archive file. The special snapshot "latest" can be used to use the latest snapshot in the repository. +To include the folder content at the root of the archive, you can use the +":" syntax, where "subfolder" is a path within the +snapshot. + EXIT STATUS =========== diff --git a/cmd/restic/cmd_restore.go b/cmd/restic/cmd_restore.go index 6ef8c99db..60e657a97 100644 --- a/cmd/restic/cmd_restore.go +++ b/cmd/restic/cmd_restore.go @@ -28,6 +28,9 @@ a directory. The special snapshot "latest" can be used to restore the latest snapshot in the repository. +To only restore a specific subfolder, you can use the ":" +syntax, where "subfolder" is a path within the snapshot. + EXIT STATUS ===========