From 81dcfea11a35da8f242cbe09b9c7f6886b8efba8 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Mon, 31 Aug 2020 21:40:47 +0200 Subject: [PATCH] dump: Mention tar output in command help text --- cmd/restic/cmd_dump.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/restic/cmd_dump.go b/cmd/restic/cmd_dump.go index 96af115db..4a9e57a37 100644 --- a/cmd/restic/cmd_dump.go +++ b/cmd/restic/cmd_dump.go @@ -19,8 +19,10 @@ var cmdDump = &cobra.Command{ Use: "dump [flags] snapshotID file", Short: "Print a backed-up file to stdout", Long: ` -The "dump" command extracts a single file from a snapshot from the repository and -prints its contents to stdout. +The "dump" command extracts files from a snapshot from the repository. If a +single file is selected, it prints its contents to stdout. Folders are output +as a tar file containing the contents of the specified folder. Pass "/" as +file name to dump the whole snapshot as a tar file. The special snapshot "latest" can be used to use the latest snapshot in the repository.