(fwd from email@example.com) thanks and patch
dwd at bell-labs.com
Fri Mar 22 04:24:07 EST 2002
On Thu, Mar 21, 2002 at 08:58:21AM -0800, jeremy bornstein wrote:
> On Thu, Mar 21, 2002 at 08:39:44AM -0600, Dave Dykstra wrote:
> > You probably ought to use the --whole-file option of rsync then because
> > the rolling checksums are only going to slow you down.
> Ah, thanks!
> > > Oh, do you mean you fiddle the mtimes of the source files to be the same
> > > as those of the destination files, and you want rsync to therefore
> > > not transfer them?
> > >
> > > Rather than going to all that trouble, why not just have your script
> > > produce an exclude file?
> No, that isn't it. (Btw I don't seem to have received the original
> mail from Martin, only Dave's quoted version of it.)
> After determining the list of files to transfer with the patched
> rsync, based on mod dates, I encrypt each modified file and set the
> encrypted file's mod date to match the mod date of the *local* file.
> > Yes, and use --ignore-times to always transfer the files you select.
> This isn't necessary. Only files to be transferred are encrypted, and
> the encrypted files are placed in a directory all their own--a
> different directory than where the original source files are. Thus
> the second time I call rsync--when the actual transfers are
> performed--rsync only sees the files which have already been encrypted
> and which are intended for transfer. It's only necessary to ensure
> that rsync doesn't delete files absent in the source tree--which is
> fine with me since the dest tree is a backup, after all.
Oh, I see, you want to use your new --date-only option on the first pass
when you're determining which files to transfer, before you encrypt them.
I guess that makes sense; I can't think of another easy to do what you want
to do. Pretty obscure case though.
More information about the rsync