Sample cron job should have --verbosity 1 #826

Closed
opened 2024-02-09 01:21:29 +00:00 by jstraceski · 3 comments

What I'm trying to do and why

The borgmatic cron job has --verbosity -1 when I believe that it should be --verbosity 1 (without the dash).

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 The [borgmatic](https://projects.torsion.org/borgmatic-collective/borgmatic/src/branch/main/sample/cron/borgmatic) cron job has `--verbosity -1` when I believe that it should be `--verbosity 1` (without the dash). ### 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 filing this. I believe that the -1 verbosity is actually intentional. Here's the commit message when that change was made:

Author: Jeffery To
Date:   Tue Dec 8 17:13:23 2020 +0800

    Reduce console output in sample crontab/systemd service files.
    
    As borgmatic will log to syslog in the sample crontab/systemd service
    files, this makes console output redundant. (cron will mail any console
    output to the root user; systemd will log any console output to syslog.)
    
    This adds --verbosity -1 to both files to reduce console output to the
    minimum.

If you have reason to believe this is incorrect, please let me know. Thanks!

Thanks for filing this. I believe that the `-1` verbosity is actually intentional. Here's the commit message when that change was made: ``` Author: Jeffery To Date: Tue Dec 8 17:13:23 2020 +0800 Reduce console output in sample crontab/systemd service files. As borgmatic will log to syslog in the sample crontab/systemd service files, this makes console output redundant. (cron will mail any console output to the root user; systemd will log any console output to syslog.) This adds --verbosity -1 to both files to reduce console output to the minimum. ``` If you have reason to believe this is incorrect, please let me know. Thanks!
witten added the
question / support
label 2024-02-09 02:12:00 +00:00
Author

Ah ok, I see, that makes a lot of sense. I realize now that when I had searched through the man entry for borgmatic for the -1 value I had actually been looking though the sudo man entry. I guess a follow up question would be if man is supposed to work for borgmatic in general, I see that the --help command is implemented here (https://torsion.org/borgmatic/docs/reference/command-line/). But regardless, thanks for the explanation!

Ah ok, I see, that makes a lot of sense. I realize now that when I had searched through the man entry for borgmatic for the `-1` value I had actually been looking though the sudo man entry. I guess a follow up question would be if man is supposed to work for borgmatic in general, I see that the --help command is implemented here (https://torsion.org/borgmatic/docs/reference/command-line/). But regardless, thanks for the explanation!
Owner

The borgmatic project does not include man pages, as --help and online documentation are the canonical sources of information. In theory, man pages could be included, but ideally I'd want them to be auto-generated from command-line arguments (the same way --help output is) so that docs don't have to be maintained in multiple places.

I'll close this for now, but please feel free to file another ticket if you encounter any other issues (documentation or otherwise).

The borgmatic project does not include man pages, as `--help` and online documentation are the canonical sources of information. In theory, man pages _could_ be included, but ideally I'd want them to be auto-generated from command-line arguments (the same way `--help` output is) so that docs don't have to be maintained in multiple places. I'll close this for now, but please feel free to file another ticket if you encounter any other issues (documentation or otherwise).
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#826
No description provided.