On Mon, 2011-06-27 at 03:01 +0530, Faheem Mitha wrote:
> I'm running the following command as a local copy command.
> 
> faheem@bulldog:/mnt/data$ sudo rsync -abvz --super /data/ .
> 
> Origin directory
> 
> faheem@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@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?

From the man page:

-b, --backup

        [...] Note that if you don’t specify --backup-dir, (1) the
        --omit-dir-times option will be implied, [...]

-- 
Matt

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
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 via email to