Misleading help in prune #808

Closed
opened 2024-01-03 11:16:46 +00:00 by debuglevel · 1 comment
Contributor

What I'm trying to do and why

I just stumbled upon this help:

# borgmatic prune --help
usage: borgmatic prune [--repository REPOSITORY] [--stats] [--list] [--oldest TIMESPAN] [--newest TIMESPAN] [--older TIMESPAN] [--newer TIMESPAN] [-h]

Prune archives according to the retention policy (with Borg 1.2+, run compact afterwards to actually free space)
                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I thought this action would automatically run compact afterwards, but when I looked into the source it does not seem to do that. Now I think this is just a hint, that the user should run compact afterwards to actually free space.

It might be a good idea to remove or change this hint; e.g. "with Borg 1.2+, you have to run compact afterwards to actually free space". As I'm not a native speaker, I better refrain from submitting a pull request ;-).

Steps to reproduce

No response

Actual behavior

No response

Expected behavior

No response

Other notes / implementation ideas

No response

borgmatic version

No response

borgmatic installation method

No response

Borg version

No response

Python version

No response

Database version (if applicable)

No response

Operating system and version

No response

### What I'm trying to do and why I just stumbled upon this help: ``` # borgmatic prune --help usage: borgmatic prune [--repository REPOSITORY] [--stats] [--list] [--oldest TIMESPAN] [--newest TIMESPAN] [--older TIMESPAN] [--newer TIMESPAN] [-h] Prune archives according to the retention policy (with Borg 1.2+, run compact afterwards to actually free space) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ``` I thought this action would automatically run `compact` afterwards, but when I looked into the source it does not seem to do that. Now I think this is just a hint, that the *user* should `run compact afterwards to actually free space`. It might be a good idea to remove or change this hint; e.g. "with Borg 1.2+, *you have to* run compact afterwards to actually free space". As I'm not a native speaker, I better refrain from submitting a pull request ;-). ### Steps to reproduce _No response_ ### Actual behavior _No response_ ### Expected behavior _No response_ ### Other notes / implementation ideas _No response_ ### borgmatic version _No response_ ### borgmatic installation method _No response_ ### Borg version _No response_ ### Python version _No response_ ### Database version (if applicable) _No response_ ### Operating system and version _No response_
Owner

Thanks for taking the time to file this. I've modified the help to hopefully clarify this point so that the next user won't be tripped up by this important detail!

Thanks for taking the time to file this. I've modified the help to hopefully clarify this point so that the next user won't be tripped up by this important detail!
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#808
No description provided.