Duplicati backup filters configuration

Duplicati is a free backup tool which is my current choice for cloud backups.


Some time ago I wrote a post about Restic which is a nice backup tool, but at the time of writing this... It lacks backup files compression. It doesn't have built-in scheduler. It has only command line interface. It has some "cost effectiveness" issues regarding Backblaze B2 integration. It is hard to tell/verify which files are excluded from backup.

All of those makes me wonder if there is some other (preferably open source) tool. As for now it's Duplicati.

Duplicati regex filters

The main problem with regexes in Duplicati (at least for me) was .NET syntax. If you want to write anything more sophisticated than examples from the official documentation you should test it on http://regexstorm.net/tester first.



Will match every file inside anotherdir except directory itself (it is useful construction for every auto-generated cache).


Matches every .DS_Store file (which is useful for Mac OS X).


Matches every directory/file inside images directory which name doesn't start with _original.


Will match every somedirectory/ inside sources/ dir no matter how deeply nested it is (or even if it is not nested at all). These paths matches regex above:

  • something/sources/first/second/third/somedirectory/
  • something/sources/somedirectory/
  • something/sources/another/dir/somedirectory/

NOTE For reasons I don't understand:


Does also match test/sources/sth/cache/ directory itself that is why I use \S+ instead of .+ when I don't want to exclude cache directories only files/folders inside them.

IMPORTANT If you decide to play with filters it is good to know that Source data panel inside Source data section works "live". duplicati_source_data_panel You may edit filters list as text and then go back to filters list view. duplicati_filters_edit_as_text-1 So after adding a filter inside Filters panel you can preview included/excluded files directly inside Source data panel. Source data panel is updated when you remove focus (click outside) Filters edit box. duplicati_filters_focus_out


Here are my Duplicati filters. You may use them as a starting point if you wish (just paste them after clicking "Edit as text" in Filters inside Source Data section):

-%HOME%/Calibre Library/
-%HOME%/VirtualBox VMs/


Files restoring is easy but you should be aware of the fact that if you select let say /Users/username/your/foldername the foldername itself won't be restored, just files inside it. I don't know if it is normal but for me it was a little tricky.


https://duplicati.readthedocs.io/en/latest/appendix-d-filters/ https://docs.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-language-quick-reference https://docs.microsoft.com/en-us/dotnet/standard/base-types/regular-expressions http://regexstorm.net/tester