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:
> > * Chris G <c...@isbd.net> [110308 14:30]:
> > > On Tue, Mar 08, 2011 at 02:50:26PM -0600, Derek Martin wrote:
> > > > On Tue, Mar 08, 2011 at 06:29:47PM +0000, Chris G wrote:
> > > > > On Tue, Mar 08, 2011 at 10:54:23AM -0600, Derek Martin wrote:
> > > > > > On Mon, Mar 07, 2011 at 03:37:45PM -0800, John Magolske wrote:
> > > > > > > After doing an rsync backup, the "N" preceding mailboxes with new 
> > > > > > > mail
> > > > > > > is removed from all mailboxes. I suppose this is a result of the 
> > > > > > > mbox
> > > > > > > files being touched somehow by the rsync process. Is there any 
> > > > > > > way to
> > > > > > > prevent this?
> > > > > > 
> > > > > > Use rsync -t.  This preserves the file modification times on the
> > > > > > mailboxes.  Note that it may be possible that there will be a race
> > > > > > condition causing mail folders which have mail delivered during the
> > > > > > rsync to not show new mail.  If this happens at all, it will most
> > > > > > likely be pretty rare (i.e. it will still be much better than losing
> > > > > > the N flag on *all* mailboxes every time).
> > > > > > 
> > > > > Surely "rsync -t" means *copy* the modification time to the 
> > > > > destination,
> > > > > what the OP wants is to preserve the modification and access times of
> > > > > the source files being copied (I think).
> > > > 
> > > > Surely you are mistaken.  :)
> > > > 
> > > In what the "rsync -t" means or in what the OP wanted?  :-)
> > > 
> > > OP, tell us what you want, do you want the *original* mailboxes to be
> > > 'N' still or do you want the copies to have the 'N'?
> > 
> > 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.

one neat thing, in Linux you can control enable or disable setting of atime 
with 

chattr +A file
chattr -A file

works for directories as well.

Richard

---
Name and OpenPGP keys available from pgp key servers

Reply via email to