mtime of symlink not restored

Brendan Brewster <[email protected]> Sat, 7 Jul 2012 17:25:28 -0400
Newsgroups gmane.comp.sysutils.backup.dar.general
Message-ID <CA+-ctj5cpOduG1Z6m=CA8G556ubei+xhzoQ2_MM7asQOs8O-=w@mail.gmail.com>
--===============6759897159085979159==
Content-Type: multipart/alternative; boundary=047d7b2e4cde4caacc04c4440617

--047d7b2e4cde4caacc04c4440617
Content-Type: text/plain; charset=ISO-8859-1

Hi,

I'm a beginner using dar and was just testing and playing with dar. One
thing came up that I was not expecting, restoring a symlink doesn't seem to
be getting it's original mtime. Please see below and let me know if I'm
doing something wrong or if there is any further information I can provide.
Note that in my test below, I am restoring to an empty directory and also
note that I have built and am running dar under Cygwin.

$ dar -O ignore-owner -v -x dartest -R testdar-restore/; echo $?
Warning: using insecure memory!
User target found on command line:
        ignore-owner
Opening the archive using the multi-slice abstraction layer...
Reading the archive header...
Opening construction layer...
Considering cyphering layer...
No cyphering layer opened
Opening escape sequence abstraction layer...
Opening the compression layer...
All layers have been created successfully
Locating archive contents...
Reading archive contents...
Restoring file's data: /home/Br3wski3/testdar-restore/hello
Restoring file's data: /home/Br3wski3/testdar-restore/hello.hl
Restoring file's data: /home/Br3wski3/testdar-restore/hello.sl


 --------------------------------------------
 3 inode(s) restored
    including 1 hard link(s)
 0 inode(s) not restored (not saved in archive)
 0 inode(s) not restored (overwriting policy decision)
 0 inode(s) ignored (excluded by filters)
 0 inode(s) failed to restore (filesystem error)
 0 inode(s) deleted
 --------------------------------------------
 Total number of inode(s) considered: 3
 --------------------------------------------
 EA restored for 0 inode(s)
 --------------------------------------------
0

$ dar -O ignore-owner -v -d dartest -R testdar-restore/; echo $?
Warning: using insecure memory!
User target found on command line:
        ignore-owner
Opening the archive using the multi-slice abstraction layer...
Reading the archive header...
Opening construction layer...
Considering cyphering layer...
No cyphering layer opened
Opening escape sequence abstraction layer...
Opening the compression layer...
All layers have been created successfully
Locating archive contents...
Reading archive contents...
OK   /home/Br3wski3/testdar-restore/hello
OK   /home/Br3wski3/testdar-restore/hello.hl
DIFF /home/Br3wski3/testdar-restore/hello.sl: difference of last
modification date: Sat Jul  7 17:08:17 2012 <--> Sat Jul  7 17:15:42 2012


 --------------------------------------------
 2 item(s) treated
 1 item(s) do not match those on filesystem
 0 item(s) ignored (excluded by filters)
 --------------------------------------------
 Total number of items considered: 3
 --------------------------------------------
Some file comparisons failed
5

$ ls -l testdar*
testdar:
total 3
-rw-r--r--+ 2 Br3wski3 None 6 Jul  7 17:08 hello
-rw-r--r--+ 2 Br3wski3 None 6 Jul  7 17:08 hello.hl
lrwxrwxrwx  1 Br3wski3 None 5 Jul  7 17:08 hello.sl -> hello

testdar-restore:
total 3
-rw-r--r--+ 2 Br3wski3 None 6 Jul  7 17:08 hello
-rw-r--r--+ 2 Br3wski3 None 6 Jul  7 17:08 hello.hl
lrwxrwxrwx  1 Br3wski3 None 5 Jul  7 17:15 hello.sl -> hello


Any help, guidance or feedback is greatly appreciated.

Thanks,
Brendan

--047d7b2e4cde4caacc04c4440617
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,<div><br></div><div>I&#39;m a beginner using dar and was just testing an=
d playing with dar. One thing came up that I was not expecting, restoring a=
 symlink doesn&#39;t seem to be getting it&#39;s original mtime. Please see=
 below and let me know if I&#39;m doing something wrong or if there is any =
further information I can provide. Note that in my test below, I am restori=
ng to an empty directory and also note that I have built and am running dar=
 under Cygwin.</div>

<div><br></div><div><div>$ dar -O ignore-owner -v -x dartest -R testdar-res=
tore/; echo $?</div><div>Warning: using insecure memory!</div><div>User tar=
get found on command line:</div><div>=A0 =A0 =A0 =A0 ignore-owner</div><div=
>Opening the archive using the multi-slice abstraction layer...</div>

<div>Reading the archive header...</div><div>Opening construction layer...<=
/div><div>Considering cyphering layer...</div><div>No cyphering layer opene=
d</div><div>Opening escape sequence abstraction layer...</div><div>Opening =
the compression layer...</div>

<div>All layers have been created successfully</div><div>Locating archive c=
ontents...</div><div>Reading archive contents...</div><div>Restoring file&#=
39;s data: /home/Br3wski3/testdar-restore/hello</div><div>Restoring file&#3=
9;s data: /home/Br3wski3/testdar-restore/hello.hl</div>

<div>Restoring file&#39;s data: /home/Br3wski3/testdar-restore/<a href=3D"h=
ttp://hello.sl">hello.sl</a></div><div><br></div><div><br></div><div>=A0---=
-----------------------------------------</div><div>=A03 inode(s) restored<=
/div>

<div>=A0 =A0 including 1 hard link(s)</div><div>=A00 inode(s) not restored =
(not saved in archive)</div><div>=A00 inode(s) not restored (overwriting po=
licy decision)</div><div>=A00 inode(s) ignored (excluded by filters)</div><=
div>=A00 inode(s) failed to restore (filesystem error)</div>

<div>=A00 inode(s) deleted</div><div>=A0-----------------------------------=
---------</div><div>=A0Total number of inode(s) considered: 3</div><div>=A0=
--------------------------------------------</div><div>=A0EA restored for 0=
 inode(s)</div>

<div>=A0--------------------------------------------</div><div>0</div><div>=
<br></div><div>$ dar -O ignore-owner -v -d dartest -R testdar-restore/; ech=
o $?</div><div>Warning: using insecure memory!</div><div>User target found =
on command line:</div>

<div>=A0 =A0 =A0 =A0 ignore-owner</div><div>Opening the archive using the m=
ulti-slice abstraction layer...</div><div>Reading the archive header...</di=
v><div>Opening construction layer...</div><div>Considering cyphering layer.=
..</div>

<div>No cyphering layer opened</div><div>Opening escape sequence abstractio=
n layer...</div><div>Opening the compression layer...</div><div>All layers =
have been created successfully</div><div>Locating archive contents...</div>

<div>Reading archive contents...</div><div>OK =A0 /home/Br3wski3/testdar-re=
store/hello</div><div>OK =A0 /home/Br3wski3/testdar-restore/hello.hl</div><=
div>DIFF /home/Br3wski3/testdar-restore/<a href=3D"http://hello.sl">hello.s=
l</a>: difference of last modification date: Sat Jul =A07 17:08:17 2012 &lt=
;--&gt; Sat Jul =A07 17:15:42 2012</div>

<div><br></div><div><br></div><div>=A0-------------------------------------=
-------</div><div>=A02 item(s) treated</div><div>=A01 item(s) do not match =
those on filesystem</div><div>=A00 item(s) ignored (excluded by filters)</d=
iv>
<div>
=A0--------------------------------------------</div><div>=A0Total number o=
f items considered: 3</div><div>=A0----------------------------------------=
----</div><div>Some file comparisons failed</div><div>5</div><div><br></div=
>
<div>
$ ls -l testdar*</div><div>testdar:</div><div>total 3</div><div>-rw-r--r--+=
 2 Br3wski3 None 6 Jul =A07 17:08 hello</div><div>-rw-r--r--+ 2 Br3wski3 No=
ne 6 Jul =A07 17:08 hello.hl</div><div>lrwxrwxrwx =A01 Br3wski3 None 5 Jul =
=A07 17:08 <a href=3D"http://hello.sl">hello.sl</a> -&gt; hello</div>

<div><br></div><div>testdar-restore:</div><div>total 3</div><div>-rw-r--r--=
+ 2 Br3wski3 None 6 Jul =A07 17:08 hello</div><div>-rw-r--r--+ 2 Br3wski3 N=
one 6 Jul =A07 17:08 hello.hl</div><div>lrwxrwxrwx =A01 Br3wski3 None 5 Jul=
 =A07 17:15 <a href=3D"http://hello.sl">hello.sl</a> -&gt; hello</div>

</div><div><br></div><div><br></div><div>Any help, guidance or feedback is =
greatly appreciated.</div><div><br></div><div>Thanks,</div><div>Brendan</di=
v>

--047d7b2e4cde4caacc04c4440617--


--===============6759897159085979159==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
--===============6759897159085979159==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Dar-discussions mailing list
Dar-discussions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/dar-discussions

--===============6759897159085979159==--