2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-05 12:57:53 +00:00

repair snapshots: cleanup command help

This commit is contained in:
Michael Eischer 2022-12-28 15:32:00 +01:00
parent 9c64a95df8
commit 5aa37acdaa

View File

@ -15,28 +15,25 @@ var cmdRepairSnapshots = &cobra.Command{
Use: "snapshots [flags] [snapshot ID] [...]", Use: "snapshots [flags] [snapshot ID] [...]",
Short: "Repair snapshots", Short: "Repair snapshots",
Long: ` Long: `
The "repair snapshots" command allows to repair broken snapshots. The "repair snapshots" command repairs broken snapshots. It scans the given
It scans the given snapshots and generates new ones where snapshots and generates new ones with damaged directories and file contents
damaged tress and file contents are removed. removed. If the broken snapshots are deleted, a prune run will be able to
If the broken snapshots are deleted, a prune run will clean up the repository.
be able to refit the repository.
The command depends on a good state of the index, so if The command depends on a correct index, thus make sure to run "repair index"
there are inaccurancies in the index, make sure to run first!
"repair index" before!
WARNING: WARNING
======== =======
Repairing and deleting broken snapshots causes data loss!
It will remove broken dirs and modify broken files in
the modified snapshots.
If the contents of directories and files are still available, Repairing and deleting broken snapshots causes data loss! It will remove broken
the better option is to redo a backup which in that case is directories and modify broken files in the modified snapshots.
able to "heal" already present snapshots.
Only use this command if you need to recover an old and If the contents of directories and files are still available, the better option
broken snapshot! 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 EXIT STATUS
=========== ===========