When entering Include/Exclude on the web ui for a Backup, it only lists non-hidden files or directories. For example directories such as /files/.ssh and /files/.personal are not selectable in the Include/Exclude popup. Is there a way to get the Include/Exclude popup chooser to display these hidden directories?
Likely not; but the point I wanted to make is that the file/folder selection approach to filtering is a very basic one and likely only applicable to very simple usecase. For something slightly more advanced — and hidden files selection Id argue is not was most casual users will trouble themselves with doing — regular expression or even wildcard syntax will be no appropriate. for that you don’t need to select anything, but just type the filter definition manually.
At this point I would not even bother with UI, instead I would open a filters file in a proper text editor and accomplish all that I need there.
So… in .duplicacy-web/filter/localhost/, do I just edit the numbered file (say “0”) and add something like +.my-directory-to-backup/
?
If you want to make sure you’re editing the right filter file directly, why not use the UI to add a line first? TBH I don’t see why you wouldn’t want to use the UI anyway…
Under Backup tab, click Edit (under Include/Exclude column). As well as selecting files/folders on the left, you can click the Add… button, for adding the more advanced filters.