Re: Check/compare modtime before deleting?

2010-08-20 Thread Chris
Thanks Matt.  I'll do some research on unison.

- Chris

On Thu, Aug 19, 2010 at 8:27 PM, Matt McCutchen m...@mattmccutchen.net wrote:
 On Thu, 2010-08-19 at 11:31 -0700, Chris wrote:
 I need to keep two identical copies of files on my desktop and laptop,
 so I want to use the -delete option.  But I don't want to delete files
 that are created after last sync.  Is there a way to keep files with
 modtime later than a file of a different name (a flag file created
 before each sync) when using the -delete option?

 No.  As soon as you have one side making arbitrary changes that you
 don't want to clobber, you need a stateful change-propagation tool such
 as unison (http://www.cis.upenn.edu/~bcpierce/unison/).

 --
 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


Check/compare modtime before deleting?

2010-08-19 Thread Chris
I need to keep two identical copies of files on my desktop and laptop,
so I want to use the -delete option.  But I don't want to delete files
that are created after last sync.  Is there a way to keep files with
modtime later than a file of a different name (a flag file created
before each sync) when using the -delete option?

Thanks and I appreciate any help.

-Chris
-- 
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


Re: Check/compare modtime before deleting?

2010-08-19 Thread Matt McCutchen
On Thu, 2010-08-19 at 11:31 -0700, Chris wrote:
 I need to keep two identical copies of files on my desktop and laptop,
 so I want to use the -delete option.  But I don't want to delete files
 that are created after last sync.  Is there a way to keep files with
 modtime later than a file of a different name (a flag file created
 before each sync) when using the -delete option?

No.  As soon as you have one side making arbitrary changes that you
don't want to clobber, you need a stateful change-propagation tool such
as unison (http://www.cis.upenn.edu/~bcpierce/unison/).

-- 
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