Excluding MS Office temporary files?


#23

Other than suggesting you put an asterisk (*) after the leading dot (.) resulting in .*\x7E$[^\], nope.

If that doesn’t work and you haven’t ready it yet, maybe this page on using filters can help.


#24

Yeah, doesn’t work either. I’ve read the link you’ve provided. I’m not sure what I’m missing here but the filter is definitely not working for me. Any other ideas?


#25

Can you provide an example path / filename of what you’re trying to exclude? Maybe I can make a similar file on my system and test a few filters.


#26

Thank you. The interesting part is that it actually filters correctly when I’m testing it with the “Test-filters” in the command line section. But when I’m running the job, it still comes with the same error not excluding these open office ~$ files.

Error: Failed to process path => The process cannot access the file because it is being used by another process.

Here is an example of one of the files ~$Salvation Army 1 x 30 radio 23.5.18.xlsx

I have more files, they are all under a network location starting with the letter Z (mapped drive on the server)


#27

I finally got it working.

The expression that worked was:

-[.\\x7E$[^\]]


#28

Glad you figured it out! :slight_smile:

Sorry I didn’t notice the missing brackets earlier as they are what Duplicati uses to tell the difference between a regular expression (like what you needed) and a straight plain text file name.

For future readers, the -[.\\x7E$[^\]] raw “Edit as text” version you figured out should end up looking like this in the “Edit as list” GUI.

image


#29

I found another way that works. I’ve seen it in other forums. Duplicati supports VSS. This will still backup all the files, including the locked ones.

The way to configure it:

Go to settings -> advanced options -> snapshot-policy -> set it to be required (default is off)

Now everything will work without the need of filters or exclusions.

See screenshot attachedsnapshot


#30

Thanks for the followup!

Yes, using VSS will allow stop the warnings but it does it in a different way. Where filters will simply not try to backup the files, using VSS (without filters) those same files WILL be backed up. So it does take a little more destination space and bandwidth using VSS.

It should also be noted that some users can’t use VSS due to account permissions, so having the filters as a fallback solution is good. :slight_smile: