Re: mtime of target directory

This is a discussion on Re: mtime of target directory within the Rsync forums, part of the Networking and Network Related category; Am Samstag, 24. September 2005 09:54 schrieb Wayne Davison: > On Fri, Sep 23, 2005 at 03:24:28AM +...


Go Back   Usenet Forums > Networking and Network Related > Rsync

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-24-2005
Hauke Laging
 
Posts: n/a
Default Re: mtime of target directory

Am Samstag, 24. September 2005 09:54 schrieb Wayne Davison:
> On Fri, Sep 23, 2005 at 03:24:28AM +0200, Hauke Laging wrote:
> > /mnt/novellserver/SYS/ /backup/novell/ziel


> > /mnt/novellserver/SYS/PUBLIC/ /backup/novell/ziel

>
> That's inconsistent in what gets copied.


Yes, if you like to put it that way but intentionally. The second case was
used for debugging purposes. I wanted the amount of data to be reduced and
thus chose one subdirectory only.

drwxr-xr-x 48 2005-09-24 12:39 tagesbackup_differentiell_2005-09-24/
drwxr-xr-x 568 2005-09-24 03:11 tagesbackup_differentiell_2005-09-24_/
lrwxrwxrwx 51 2005-09-24 03:03 ziel
-> /backup/novell/tagesbackup_differentiell_2005-09-24

That's part of the content of my backup directory. A script creates a
subdirectory and sets the symlink "ziel" to it so that the rsync call does
not have to care about the directory name (it is in another script).

In order to demonstrate the problem I have renamed the original directory
(to *_) for that day and created a new one. Please note thate the mtime of
that original directory is that of it's creation an not that of the rsync
source directory:

ls -ld /mnt/novellserver/SYS
drwxr-xr-x 1 root root 512 1985-12-31 23:00 /mnt/novellserver/SYS

That's on a netware volume but that should not make any difference I think.

Now I run rsync for the subdirectory PUBLIC:
drwxr-xr-x 296 2005-09-08 17:47 tagesbackup_differentiell_2005-09-24

The mtime of the target directory is changed to the one of the source
directory:

ls -ld /mnt/novellserver/SYS/PUBLIC
drwxr-xr-x 1 root root 512 2005-09-08 17:47 /mnt/novellserver/SYS/PUBLIC

I don't see any reason for once changing the mtime and once leaving it
untouched. It's not a real problem for me, I am just curious if that's a
bug (triggert by whatever). :-)


> Please clarify this. You say that /backup/novell/ziel is a symlink,
> right?


Right. It points to the empty directory
tagesbackup_differentiell_2005-09-24 in the same directory in both cases.
The commands are not run one after another with the same directory/target.


> If both of those commands are run exactly as you stated, then
> the directory that /backup/novell/ziel points to will be updated with
> the time of the source directory in both cases


I would not see the sense in this action but the point is: Both cases
behave differently!


Best regards

Hauke
--
Helfen Sie Open Source! Gegen Softwarepatente
http://www.patentfrei.de/
-----
http://www.hauke-laging.de/
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:24 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0