does rsync not preserve directory mtimes?

Faheem Mitha faheem at email.unc.edu
Sun Jun 26 15:31:52 MDT 2011


Hi,

I'm running the following command as a local copy command.

faheem at bulldog:/mnt/data$ sudo rsync -abvz --super /data/ .

Origin directory

faheem at bulldog:/data$ ls -la
total 28
drwxr-xr-x  7 root     root     4096 Jun 26 08:34 .
drwxr-xr-x 25 root     root     4096 Apr 13 17:09 ..
drwxr-xr-x  2 owzar001 root     4096 Nov  6  2010 CTS
drwxr-xr-x  2 owzar001 owzar001 4096 Aug 27  2010 GAW
drwxr-xr-x  2 owzar001 owzar001 4096 Oct 21  2010 KOSIM
drwxr-xr-x  5 faheem   faheem   4096 Aug 11  2010 snppy
drwxrws---  9 faheem   faheem   4096 Jun 26 08:40 WebAPP

Destination directory

faheem at bulldog:/mnt/data$ ls -la
total 44
drwxr-xr-x  8 root     root      4096 Jun 26 11:54 .
drwxr-xr-x  3 root     root      4096 Jun 26 11:32 ..
drwxr-xr-x  2 owzar001 root      4096 Jun 26 11:54 CTS
drwxr-xr-x  2 owzar001 owzar001  4096 Jun 26 11:54 GAW
drwxr-xr-x  2 owzar001 owzar001  4096 Jun 26 11:54 KOSIM
drwx------  2 root     root     16384 Jun 26 11:24 lost+found
drwxr-xr-x  5 faheem   faheem    4096 Jun 26 11:54 snppy
drwxrws--- 10 faheem   faheem    4096 Jun 26 14:07 WebAPP

As you can see, the mtime for example of CTS is not preserved? Am I missing 
something?

Please CC me on any reply. Thanks.

                                                            Regards, Faheem


More information about the rsync mailing list