/ Web developer toolset

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/

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.

If you decide to play with filters it is good to know that Source data panel inside Source data section works "live".
You may edit filters list as text and then go back to filters list view.
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.


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.



Duplicati backup filters configuration
Share this