-
Notifications
You must be signed in to change notification settings - Fork 99
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
feat: add optional check for existence of source directories #53
feat: add optional check for existence of source directories #53
Conversation
@witten Now: |
So I think you found a legitimate bug in the current code! It looks like when database hooks are enabled and a non-existent directory is given in
Anyway, I think the bug you've uncovered occurs in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes you have so far look good!
Interesting, I'll work on that bug next, just to do one thing per PR. |
This is great. Thank you! |
Yes, I just checked, and this is what's happening. I don't understand why Borg raises an error when I have database hooks configured and pass a non-existent directory in this command though: borg create --one-file-system --read-special --list --filter AMEx- /home/divyansh/Desktop/bkt2::{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f} /home/divyansh/Desktop/os12 /root/.borgmatic --dry-run --list As you said, even when the source directory does not exist, it should just give a warning and continue. Also, this (similar) command works (when I don't have database hooks configured): borg create --list --filter AMEx- /home/divyansh/Desktop/bkt2::{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f} /home/divyansh/Desktop/os12 /root/.borgmatic --stats --debug --show-rc |
I'm gonna move this discuss over to https://projects.torsion.org/borgmatic-collective/borgmatic/issues/655! I'll respond there. |
Resolves #501.
Will add tests once I know if this is correct.