-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"--prune" Appended To "forget" Command - Unknown Flag #870
Comments
Does the flag show when you run |
I don't believe it does. Please see below:
|
Nope. which means... Well, i don't know what it means. Did you checkout the source yourself? And if so, from head? or from a tagged branch? Oh, I see. the 4.0 tagger branch has the issue. |
It was added to the main branch in You are probably looking at the most recent documentation and using an older binary. Either stop using the flag or rebuild your binary yourself from a recent enough master to include the above commit. |
Thank you for your help @middelink. I had downloaded the latest release. I think you're probably correct about me having a binary that the documentation is too new for. |
Ah, you've looked at the docs for the latest master (https://restic.readthedocs.io/en/latest/), the ones for the released version are here: https://restic.readthedocs.io/en/stable/ You can switch versions in the menu in the lower left corner. They are also both linked from the website https://restic.github.io. I'm going to close this for now, if you have any ideas on how to improve the docs (or the links to the docs), please add a comment. |
Output of
restic version
Expected behavior
I would expect, according to the following excerpt from the documentation (here), that the last 2 backups would be forgotten and then pruned in the same command.
From the documentation:
Actual behavior
Steps to reproduce the behavior
Try to run the "forget" command with a policy (--keep-last X) and append "--prune" to the end, like the following:
# ./restic -r BAKREPO/ --password-file .password forget --keep-last 2 --prune
The text was updated successfully, but these errors were encountered: