Does not backup "%userprofile%\scripts\"

Hi,

I have included “%userprofile%\scripts” in a backup. It’s a folder full of .cmd scripts. I just realized, it does not backup them. I have set filters to exclude *.avi and *.mp4 (“ending is avi”). I have not set any exclusion filters. Still, from my scripts folder, it included 2 files, from around 60 to the backup. They are no hidden/system files. I have no idea.

In the backup definitions folder view there is an exclamation mark at the scripts folder, what does Duplicati think? SYSTEM, ADMINISTRATORS and the user have full access rights.

???

Also, it makes me nervous.

“Source: 8,93 MB
Backup 4,81 GB / 8 Versions”

Well, the source files are more like 1 Gig.

In the restore I find crazy branches by case… like:
c:
C:

And in each of them:
c:\users
c:\Users\

Seems like once again I can nuke it all away and start over again.

Can you clarify? Sounds contradictory to say you set filters to exclude, but that you have not set any exclusion filters.

Filters can be really tricky, and if not careful it can be easy to exclude or include more than you intend.

Not really sure how you’d end up with “c:” and “C:” in your restore file browse screen.

Looks like this happens if you are inconsistent with the case when manually entering Source Data paths. I manually entered one with a lower case “c:” and saw the problem you did:

1

2

1 Like

I found out, it basically does not backup most of my files. It’s not a surprise it tells about 8 MByte of backup size, where it should be a few Gigs.

I’ve uploaded a screenshot where the weirdness can be seen. So here you can see the filters, which should be unrelated. There is just one file in this screenshot which gets uploaded. I have re-inherited/applied access rights in that folder. Full access for administrators, the current user, and SYSTEM. I have double checked on file level. Same access rights, same owner of the files. Still it does not backup most of them.

I created a test backup, there it was possible to include all files. So there must be something wrong with the existing backup definitions. Recreating db did not help here.

SOLVED! Exclude files which contain… That “foobar2000\running” filter. I don’t know, why I/Duplicati added “[” and “]” there. But those caused the problem.

The brackets made it a regex pattern, and probably caused the unpredicted results. Glad you figured it out.

Haha, probably matched if one of the characters between the brackets was in the file name :smiley: