tldr:
Long story but i got a new computer and i though of using the symlink backup style a little differently.
The issue is that this new style requires changing the symlink regex quite a bit so i want to know how are you using my symlink filters file to decide how to continue!
You know that i work @ GitHub - TheBestPessimist/duplicacy-utils: Utilities for Windows for Duplicacy, which contains both a powershell script and also 2 variants for the filters
file for symlink and non-symlink.
@NiJoao , @Christoph and other users of my filters, I need your input on this one!
Right now i have the following computer layout (the new version):
PS C:\duplicacy repositories\tbp-nuc> dir
Directory: C:\duplicacy repositories\tbp-nuc
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 12-Dec-18 20:39 .duplicacy
d----l 12-Dec-18 19:37 C__all_link
d----l 12-Dec-18 19:38 C__Users_link
-a---- 12-Dec-18 18:26 26002432 z.exe
Basically I have a repository in a specific folder which has 2 symlinks: one for my c:/Users/
folder and another to a different folder.
Let’s take a regex example from issue NetHood, PrintHood, etc. · Issue #20 · TheBestPessimist/duplicacy-utils · GitHub :
-
Original:
e:(?i)^[^/]+/Users/[^/]+/\.?NetHood
-
Proposal:
e:(?i)^[^/]*Users[^/]*/[^/]+/\.?NetHood
(note that i omitted the last /
since it is wrong, that will be fixed disregarding what comes out of this discussion)
You can see that in my new layout the NetHood
folder is included:
2018-12-29 17:34:31.868 DEBUG PATTERN_INCLUDE C__Users_link/Default/NetHood is included
as the folder structure is \users symlink\myuser\NetHood
instead of \asymlink\users\myuser\NetHood
.
With my proposal (which looks a bit dirty and difficult), the normal pattern will not work anymore.
-
What do you think about the proposed regex change?
-
How do you use symlinks? Do you just symlink the whole “c” directory like i did up until now? Right now i don’t wanna symlink the whole of it anymore.
-
A third question would be: should i add the new version along the old one? just have something like
e:(?i)^[^/]+/Users/[^/]+/\.?NetHood <- this is the old version
e:(?i)^[^/]*Users[^/]*/[^/]+/\.?NetHood <- this is the new one
and during backup see what sticks matches?