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
On Mon, 2011-06-27 at 03:01 +0530, Faheem Mitha wrote:> 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?>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
On Sun, 26 Jun 2011, Matt McCutchen wrote:>> From the man page: > > -b, --backup > > [...] Note that if you don?t specify --backup-dir, (1) the > --omit-dir-times option will be implied, [...]Thanks for the fast explanation. I was using this flag out of force of habit. Regards, Faheem