From 5aa37acdaa39f03b28dfda6a5cb13339b41eddf7 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Wed, 28 Dec 2022 15:32:00 +0100 Subject: [PATCH] repair snapshots: cleanup command help --- cmd/restic/cmd_repair_snapshots.go | 33 ++++++++++++++---------------- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/cmd/restic/cmd_repair_snapshots.go b/cmd/restic/cmd_repair_snapshots.go index e50d34b9d..5e9ec4130 100644 --- a/cmd/restic/cmd_repair_snapshots.go +++ b/cmd/restic/cmd_repair_snapshots.go @@ -15,28 +15,25 @@ var cmdRepairSnapshots = &cobra.Command{ Use: "snapshots [flags] [snapshot ID] [...]", Short: "Repair snapshots", Long: ` -The "repair snapshots" command allows to repair broken snapshots. -It scans the given snapshots and generates new ones where -damaged tress and file contents are removed. -If the broken snapshots are deleted, a prune run will -be able to refit the repository. +The "repair snapshots" command repairs broken snapshots. It scans the given +snapshots and generates new ones with damaged directories and file contents +removed. If the broken snapshots are deleted, a prune run will be able to +clean up the repository. -The command depends on a good state of the index, so if -there are inaccurancies in the index, make sure to run -"repair index" before! +The command depends on a correct index, thus make sure to run "repair index" +first! -WARNING: -======== -Repairing and deleting broken snapshots causes data loss! -It will remove broken dirs and modify broken files in -the modified snapshots. +WARNING +======= -If the contents of directories and files are still available, -the better option is to redo a backup which in that case is -able to "heal" already present snapshots. -Only use this command if you need to recover an old and -broken snapshot! +Repairing and deleting broken snapshots causes data loss! It will remove broken +directories and modify broken files in the modified snapshots. + +If the contents of directories and files are still available, the better option +is to run "backup" which in that case is able to heal existing snapshots. Only +use the "repair snapshots" command if you need to recover an old and broken +snapshot! EXIT STATUS ===========