Use --stats flag without explicitly using --create or --prune #138

Closed
opened 2019-01-27 20:07:32 +00:00 by witten · 2 comments
Owner

As revealed in #137, it would be nice to specify borgmatic --stats with the default verbosity level of zero. However, the aggressive validation here prevents that:

if args.stats and not (args.create or args.prune):
    raise ValueError('The --stats option can only be used with the --create or --prune options')

A solution could be to tone down the validation check so that if you're providing --stats and only implicitly relying on borgmatic to prune, create, and check, then everything still works.

@clickwir

As revealed in #137, it would be nice to specify `borgmatic --stats` with the default verbosity level of zero. However, the aggressive validation here prevents that: ```python if args.stats and not (args.create or args.prune): raise ValueError('The --stats option can only be used with the --create or --prune options') ``` A solution could be to tone down the validation check so that if you're providing `--stats` and only implicitly relying on borgmatic to prune, create, and check, then everything still works. @clickwir
Author
Owner

Implemented. Will be part of the next release.

Implemented. Will be part of the next release.
Author
Owner

Just released in borgmatic 1.2.15.

Just released in borgmatic 1.2.15.
Sign in to join this conversation.
No Milestone
No Assignees
1 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#138
No description provided.