Don't emit warnings on "Excluding special files to prevent Borg from hanging" #1079
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
I'm running Borgmatic through Cron. This also automatically sends me emails if Borgmatic emits errors or warnings, which is great.
However, every time Borgmatic runs (which is everyday), I get this (unnecessary) email in my inbox:
How can I disable this warning, while still ensuring that I keep getting notified on actual errors?
borgmatic version
1.7.7
borgmatic installation method
Debian package
Operating system and version
Debian GNU/Linux 12
If you want to disable warnings and only see errors, you can try the
--verbosity -1flag. Alternatively, a better solution might be to explicitly add those special file paths to your configured excludes. That's what the warning is warning you about—that these paths that you've implicitly asked to be included (because they're found within your source directories) are getting auto-excluded. But if you manually exclude them, the warnings should go away.Side note: You may want to consider upgrading borgmatic. The version you're using is over two years old at this point!
Thanks, I'll try that!
To be honest I don't understand why those specific paths are "special". I just included the entire
/etcdirectory, and apparently those two SystemD service files and that Docker file are considered "special".I'm fine with them getting auto-excluded, but I don't need to be notified about it daily ;)
Borgmatic 1.7.7 is the version in the latest Debian stable (bookworm) repository.
If you're interested, here's some info about a couple common "special" file types:
The reason they're excluded is because Borg will hang upon reading them when its
--read-specialflag is set (which is incidentally set when borgmatic database hooks are used).If you're willing to install borgmatic outside the normal Debian
aptmechanism, then there are a few other ways to install that will get you a newer version.Hmm, it turns out these files are symlinks (?) to
/dev/null:I don't have these old versions of PHP installed any longer, so I guess I can just delete them.
The Docker file is a block device, I've read. I'll just add that to the excludes explicitly.
Thanks for the help!
Sounds good!