Sample Header Ad - 728x90

borg - Exclude a Folder with some Exceptions

1 vote
0 answers
3786 views
Using borg create , I want to exclude a folder, but with some exceptions. Specifically, I want to exclude all paths subordinate to the AppData folder, except for the ones that are bookmark related, which would be paths that contain these strings: 1. places.sqlite 2. bookmarkbackups 3. Bookmarks My thoughts were, first **exclude** what you don't want, and then **include** exceptions: borg create --list --dry-run --exclude /*/AppData/* --include /*places.sqlite* --include /*bookmarkbackups* --include /*Bookmarks* /path/to/rep::$(date '+%Y-%m-%d') /windows/user/folder Apparently, there is no --include argument. So, how do I achieve this?
Asked by Lonnie Best (5415 rep)
Dec 20, 2021, 04:44 PM
Last activity: Jan 14, 2022, 11:08 AM