I currently use a script in a timer that:
- Create LVM snapshots
- mount the snapshots under
- run restic under
/tmp/restic/$nameback to the original locations, backing up those locations and some that I currently do not snapshot first, but sill excluding everything else
- clean up
Sadly, this causes snapshots to pile that have different
path fields as I add services to backup.
I also do not want to explicitely maintain a blacklist, but want to keep it as a “whitelist”, though I’d prefer if I generally would see “
/var/lib” as path, regardless of the whitelisted subfolders I actuallly care to back up.
As I know that I will not be able to change the old
path entries, I’d like to get this nice now, before the number of “legacy” backups becomes too large.
I have seen that there is
--files-from-verbatim, though its documentation is not clear whether it works as I need it, or if it actually doesn’t change anything, so before rewriting my scripts to make use of that, I wanted to know whether it will actually work how I want it.
Thank you in advance!