forked from TrueCloudLab/restic
Add help texts which cross-line prune/forget
This commit is contained in:
parent
27d0909302
commit
458448357c
2 changed files with 12 additions and 2 deletions
|
@ -27,7 +27,13 @@ type CmdForget struct {
|
||||||
func init() {
|
func init() {
|
||||||
_, err := parser.AddCommand("forget",
|
_, err := parser.AddCommand("forget",
|
||||||
"removes snapshots from a repository",
|
"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})
|
&CmdForget{global: &globalOpts})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|
|
@ -22,7 +22,11 @@ type CmdPrune struct {
|
||||||
func init() {
|
func init() {
|
||||||
_, err := parser.AddCommand("prune",
|
_, err := parser.AddCommand("prune",
|
||||||
"removes content from a repository",
|
"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})
|
&CmdPrune{global: &globalOpts})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|
Loading…
Add table
Reference in a new issue