2
2
mirror of https://github.com/octoleo/restic.git synced 2024-05-31 16:10:49 +00:00

Add help texts which cross-line prune/forget

This commit is contained in:
Alexander Neumann 2016-08-20 18:33:24 +02:00
parent 27d0909302
commit 458448357c
2 changed files with 12 additions and 2 deletions

View File

@ -27,7 +27,13 @@ type CmdForget struct {
func init() {
_, err := parser.AddCommand("forget",
"removes snapshots from a repository",
"The forget command removes snapshots according to a policy.",
`
The forget command removes snapshots according to a policy. Please note
that this command really only deletes the snapshot object in the repo, which
is a reference to data stored there. In order to remove this (now
unreferenced) data after 'forget' was run successfully, see the 'prune'
command.
`,
&CmdForget{global: &globalOpts})
if err != nil {
panic(err)

View File

@ -22,7 +22,11 @@ type CmdPrune struct {
func init() {
_, err := parser.AddCommand("prune",
"removes content from a repository",
"The prune command removes rendundant and unneeded data from the repository",
`
The prune command removes rendundant and unneeded data from the repository.
For removing snapshots, please see the 'forget' command, then afterwards run
'prune'.
`,
&CmdPrune{global: &globalOpts})
if err != nil {
panic(err)