duplicacy icon indicating copy to clipboard operation
duplicacy copied to clipboard

filters don't understand symlinks

Open elandorr opened this issue 5 years ago • 2 comments

Hello!

I found another bug that is easier to reproduce. I was studying https://forum.duplicacy.com/t/filters-include-exclude-patterns/1089/7 and set up my filters accordingly.

Filters seem to treat symlinks as files first, and then subsequently follow them and treat the directory as a directory.

+test/test1/*
+test/
-*

Should include test1 and everything below. If test is a regular directory, this works, if it is a symlink, test gets excluded:

Listing
test is excluded by pattern -*

To make it work:

+test/test1/*
+test/
+test
-*

results in

Listing
test is included by pattern +test
test/ is included by pattern +test/
Listing test/
test/test2/ is excluded by pattern -*
test/test1/ is included by pattern +test/test1/*

Not sure if this is maybe even intended behavior, but it's rather counter intuitive for new users I suppose.

Edit: related to #428

elandorr avatar Jan 24 '20 07:01 elandorr

There are plenty of problems in Duplicacy with symlinks and they are not being fixed, unfortunately... What you are describing was also discussed here Filters and patterns - include specific folders. But there also issues in the way lower-level symlinks are handled - they are being stored silently and also restored, but junctions are converted to symlinks in Windows making strange side effects possible... If you have many symlinks to backup I'd advise to be careful with Duplicacy for this purpose...

dgcom avatar Jan 25 '20 00:01 dgcom

Is there some way to disable symlink following at all?

callegar avatar Sep 14 '23 09:09 callegar