Berimor66 / duplicati

Automatically exported from code.google.com/p/duplicati
0 stars 0 forks source link

problem with junction in source folder #733

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello!
It seems that duplicati doesn't work with junctions(hard-links) as source 
folder. It just creates empty backup set, or outputs error-message.

What steps will reproduce the problem?

1. The c:\temp\test-duplicity\src folder is junction.

2. Duplicati.CommandLine.exe backup --no-encryption c:\temp\test-duplicity\src 
file:///temp/test-duplicity/trg/

Outputs:
startIndex cannot be larger than length of string.
Parameter name: startIndex

Duplicati Version: 1.3.3, Windows Vista

Original issue reported on code.google.com by ruvim.pi...@gmail.com on 24 Oct 2012 at 3:38

GoogleCodeExporter commented 9 years ago
Did you try --symlink-policy=follow? Have a look at 
http://code.google.com/p/duplicati/issues/detail?id=144#c13 for more 
information about how Duplicati treats symlinks.

Does it help?

Original comment by rst...@gmail.com on 24 Oct 2012 at 5:36

GoogleCodeExporter commented 9 years ago
The error message does not sound like it is related to the actual hardlink.
Can you try:

Duplicati.CommandLine.exe backup --no-encryption --debug-output 
c:\temp\test-duplicity\src file:///temp/test-duplicity/trg/

Original comment by kenneth@hexad.dk on 24 Oct 2012 at 9:22

GoogleCodeExporter commented 9 years ago
The debug-output option doesn't change anything. The output is the same.

The "src" folder is junction to the sibling "src1" regular folder.
And the following command (for src1) works fine:
Duplicati.CommandLine.exe backup --no-encryption c:\temp\test-duplicity\src1 
file:///temp/test-duplicity/trg/

Original comment by ruvim.pi...@gmail.com on 24 Oct 2012 at 12:14

GoogleCodeExporter commented 9 years ago
I didn't try "symlink-policy" option. The default behavior "store" for symlinks 
is what I need now. Maybe I will use "ignore" later ;)

I have faced a problem with the hard links, no the symlinks.

Original comment by ruvim.pi...@gmail.com on 24 Oct 2012 at 12:24

GoogleCodeExporter commented 9 years ago
I got the empty backup set on another machine (Windows Server 2008 R2 64-bit, 
and Duplicati 1.3.3 64bit).

Original comment by ruvim.pi...@gmail.com on 24 Oct 2012 at 12:31

GoogleCodeExporter commented 9 years ago
The error message:
 "startIndex cannot be larger than length of string.
Parameter name: startIndex"

When do you see that? If this is an error produced by Duplicati, then 
--debug-output should change it to include a stacktrace.

Original comment by kenneth@hexad.dk on 24 Oct 2012 at 12:35

GoogleCodeExporter commented 9 years ago
Duplicati.CommandLine.exe backup --no-encryption --debug-output 
c:\temp\test-duplicity\src file:///temp/test-duplicity/trg/ 1>stdout.log 
2>stderr.log

The stdout.log is empty. The stderr.log is attached.

Original comment by ruvim.pi...@gmail.com on 24 Oct 2012 at 12:48

Attachments:

GoogleCodeExporter commented 9 years ago
Hmm, that is weird.

I will try to reproduce this on my own machine then.
What command do I write to replicate your setup?

mklink src src1
?

Original comment by kenneth@hexad.dk on 26 Oct 2012 at 8:20

GoogleCodeExporter commented 9 years ago
mklink /J src src1
-- to create directory junction src to the directory src1

Original comment by ruvim.pi...@gmail.com on 27 Oct 2012 at 2:02