borgmatic check doesn't work if only repo checks are run #704

Closed
opened 2023-05-28 16:21:28 +00:00 by kaysond · 3 comments

Probably related to the changes to fix #688 This is an easy one so I deleted the template but please let me know if you need any more info.

If you run borgmatic check, and the archive checks are skipped, but the repo check isn't, the borg command fails because you're still passing both --repository-only and --glob-archives:

Reading check time from /root/.borgmatic/checks/dd22d39afc3a473af796348a2c054411368ea48a2c688b67cd7ed32dbed0e8e8/repository
Reading check time from /root/.borgmatic/checks/dd22d39afc3a473af796348a2c054411368ea48a2c688b67cd7ed32dbed0e8e8/archives/a47a4e53797d8a33427d8cd3201c607013e1a883195b3fbdebbe0454df566b7c
Skipping archives check due to configured frequency; 6 days, 10:12:03.845993 until next check
borg check --repository-only --glob-archives home-* --debug --show-rc 
--repository-only contradicts --first, --last, --glob-archives, --prefix and --verify-data arguments.
RemoteRepository: 140 B bytes sent, 837 B bytes received, 2 messages sent                                                                                                 terminating with error status, rc 2                                                     
Probably related to the changes to fix #688 This is an easy one so I deleted the template but please let me know if you need any more info. If you run `borgmatic check`, and the archive checks are skipped, but the repo check isn't, the borg command fails because you're still passing both `--repository-only` and `--glob-archives`: ``` Reading check time from /root/.borgmatic/checks/dd22d39afc3a473af796348a2c054411368ea48a2c688b67cd7ed32dbed0e8e8/repository Reading check time from /root/.borgmatic/checks/dd22d39afc3a473af796348a2c054411368ea48a2c688b67cd7ed32dbed0e8e8/archives/a47a4e53797d8a33427d8cd3201c607013e1a883195b3fbdebbe0454df566b7c Skipping archives check due to configured frequency; 6 days, 10:12:03.845993 until next check borg check --repository-only --glob-archives home-* --debug --show-rc ``` ``` --repository-only contradicts --first, --last, --glob-archives, --prefix and --verify-data arguments. RemoteRepository: 140 B bytes sent, 837 B bytes received, 2 messages sent terminating with error status, rc 2 ```
Owner

I reproduced this locally, and I suspect you are right about #688 changes being the cause. Thanks for filing this!

I reproduced this locally, and I suspect you are right about #688 changes being the cause. Thanks for filing this!
witten added the
bug
label 2023-05-31 02:48:44 +00:00
Owner

I've fixed this in main, and the fix will be part of the next release. Thanks again for finding this and reporting it! (It was indeed #688 fallout.)

I've fixed this in main, and the fix will be part of the next release. Thanks again for finding this and reporting it! (It was indeed #688 fallout.)
Owner

Just released as part of borgmatic 1.7.14!

Just released as part of borgmatic 1.7.14!
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#704
No description provided.