On Fri, Mar 11, 2011 at 05:50:34PM +0000, Chris G wrote: > On Tue, Mar 08, 2011 at 02:40:06PM -0800, John Magolske wrote: > > I'd like the original (source) mailboxes to retain their N's, I'm not > > concerned about copying over this to the backup copy. > > > That's because rsync is changing the *access* time of the 'source' > mailboxes isn't it, I'm not sure you can stop it doing this.
YOU ABSOLUTELY CAN, by using rsync -t as I've said several times now. Please pay attention: $ mkdir rsyncto $ stat rsyncfrom/* File: `rsyncfrom/bar' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 805h/2053d Inode: 41984 Links: 1 Access: (0644/-rw-r--r--) Uid: (24574/demartin) Gid: ( 600/ staff) Access: 2011-03-08 15:45:52.000000000 -0500 Modify: 2011-03-08 15:45:52.000000000 -0500 Change: 2011-03-08 15:45:52.000000000 -0500 File: `rsyncfrom/baz' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 805h/2053d Inode: 41985 Links: 1 Access: (0644/-rw-r--r--) Uid: (24574/demartin) Gid: ( 600/ staff) Access: 2011-03-08 15:45:52.000000000 -0500 Modify: 2011-03-08 15:45:52.000000000 -0500 Change: 2011-03-08 15:45:52.000000000 -0500 File: `rsyncfrom/foo' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 805h/2053d Inode: 41983 Links: 1 Access: (0644/-rw-r--r--) Uid: (24574/demartin) Gid: ( 600/ staff) Access: 2011-03-08 15:45:52.000000000 -0500 Modify: 2011-03-08 15:45:52.000000000 -0500 Change: 2011-03-08 15:45:52.000000000 -0500 $ rsync -t rsyncfrom/* rsyncto/ $ stat rsyncto/* File: `rsyncto/bar' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 805h/2053d Inode: 736801 Links: 1 Access: (0644/-rw-r--r--) Uid: (24574/demartin) Gid: ( 600/ staff) Access: 2011-03-11 15:11:12.000000000 -0500 Modify: 2011-03-08 15:45:52.000000000 -0500 Change: 2011-03-11 15:11:12.000000000 -0500 File: `rsyncto/baz' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 805h/2053d Inode: 736802 Links: 1 Access: (0644/-rw-r--r--) Uid: (24574/demartin) Gid: ( 600/ staff) Access: 2011-03-11 15:11:12.000000000 -0500 Modify: 2011-03-08 15:45:52.000000000 -0500 Change: 2011-03-11 15:11:12.000000000 -0500 File: `rsyncto/foo' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 805h/2053d Inode: 736803 Links: 1 Access: (0644/-rw-r--r--) Uid: (24574/demartin) Gid: ( 600/ staff) Access: 2011-03-11 15:11:12.000000000 -0500 Modify: 2011-03-08 15:45:52.000000000 -0500 Change: 2011-03-11 15:11:12.000000000 -0500 $ stat rsyncfrom/* File: `rsyncfrom/bar' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 805h/2053d Inode: 41984 Links: 1 Access: (0644/-rw-r--r--) Uid: (24574/demartin) Gid: ( 600/ staff) Access: 2011-03-08 15:45:52.000000000 -0500 Modify: 2011-03-08 15:45:52.000000000 -0500 Change: 2011-03-08 15:45:52.000000000 -0500 File: `rsyncfrom/baz' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 805h/2053d Inode: 41985 Links: 1 Access: (0644/-rw-r--r--) Uid: (24574/demartin) Gid: ( 600/ staff) Access: 2011-03-08 15:45:52.000000000 -0500 Modify: 2011-03-08 15:45:52.000000000 -0500 Change: 2011-03-08 15:45:52.000000000 -0500 File: `rsyncfrom/foo' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 805h/2053d Inode: 41983 Links: 1 Access: (0644/-rw-r--r--) Uid: (24574/demartin) Gid: ( 600/ staff) Access: 2011-03-08 15:45:52.000000000 -0500 Modify: 2011-03-08 15:45:52.000000000 -0500 Change: 2011-03-08 15:45:52.000000000 -0500 When the rsync runs, the files are copied, and the copies retain *only* the modification time of the original; the access and change time of the copied files are different (not preserved from the original files). HOWEVER, NONE OF THE TIMES OF THE SOURCE FILES HAVE BEEN UPDATED. So, as I've already said several times now, rsync -t absolutely is the solution. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience.
pgpJ7pAtVozFF.pgp
Description: PGP signature