mirror of
https://github.com/octoleo/restic.git
synced 2024-11-22 21:05:10 +00:00
Add help texts which cross-line prune/forget
This commit is contained in:
parent
27d0909302
commit
458448357c
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user