Francois Collard
2006-Jun-13 11:00 UTC
Compare ignoring the size AND file suffix: (not/) compressed files in a directory tree
Hello all, Here, we use rsync for years to share software tests distributions between from France to USA, Singapore and London, and all is working fine. But to save space we also need to compress files depending on their access time, and on purpose uncompress automatically before use. This makes rsync useless because it makes, of course re-transfer and deletions. when a new file is detected because of compression. So, trying to automatically r'synchronize trees that can contain gzip files on one side I should find a way to a filter on .gz extenssion in name and use only date comparison (size nor content comparison). As .gz files keep original dates. But if you may have any hints or memory of a post on this, would be great to me. I'm sure some have or will have the same needs. I will post my solution (ksh script) if you don't mind...when It'll be finished... Best regards, Francois To find out more about Reuters visit www.about.reuters.com Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd.
Matt McCutchen
2006-Jun-13 15:16 UTC
Compare ignoring the size AND file suffix: (not/) compressed files in a directory tree
On Tue, 2006-06-13 at 12:49 +0200, Francois Collard wrote:> So, trying to automatically r'synchronize trees that can contain gzip > files on one side > I should find a way to a filter on .gz extenssion in name > and use only date comparison (size nor content comparison). As .gz > files keep original dates.Rsync's experimental filter patch adds options to send file data through a filter program on the source or destination. You might be able to use it. It also offers the -T, --time-only quick check behavior you want. Matt
Francois Collard
2006-Jun-13 18:09 UTC
Compare ignoring the size AND file suffix: (not/) compressed files in a directory tree
Thank you Matt, for your prompt answer and expert advice ! I'll test it asap. Regards Francois -----Original Message----- From: Matt McCutchen [mailto:hashproduct@gmail.com] On Behalf Of Matt McCutchen Sent: 13 June 2006 17:17 To: Francois Collard Cc: rsync@lists.samba.org Subject: Re: Compare ignoring the size AND file suffix: (not/) compressed files in a directory tree On Tue, 2006-06-13 at 12:49 +0200, Francois Collard wrote:> So, trying to automatically r'synchronize trees that can contain gzip > files on one side > I should find a way to a filter on .gz extenssion in name > and use only date comparison (size nor content comparison). As .gz > files keep original dates.Rsync's experimental filter patch adds options to send file data through a filter program on the source or destination. You might be able to use it. It also offers the -T, --time-only quick check behavior you want. Matt To find out more about Reuters visit www.about.reuters.com Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd.