Add support for borg's "--exclude-from" flag
The --exclude-from
flag lets you specify a file, in which you can put paths to exclude from backups.
IIRC, you can use regular expressions (at least the *
operator works, I tested that).
This will make it easy to handle complex exclude rules.
My current exclude file looks like this, for example:
*.thumbnails*
*~
*.dropbox*
lost+found/*
*[Tt]rash*
.gvfs
*cache*
*Cache*
.Private
*.directory
*.part
*._sync_*
*_sync.log
*.qcow2
/home/philipp/tmp/
/home/philipp/.temp/
/home/philipp/.local/share/baloo/
/home/philipp/.wine/
/home/philipp/.steam/
/home/philipp/.local/share/Steam/
/home/philipp/Spiele/Steam/