<div dir="ltr">Thanks for the suggestions guys, making a separate app would be much easier than delving into the source, so I'll see if I can figure out a solution that way.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 3, 2014 at 8:12 AM,  <span dir="ltr"><<a href="mailto:devzero@web.de" target="_blank">devzero@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">yes, i`d second that.<br>
<br>
maybe you just try using metaflac to generate the appropriate list of files to sync and then feed that list to rsync.<br>
<br>
<br>
> Gesendet: Dienstag, 02. Dezember 2014 um 08:37 Uhr<br>
> Von: "Fabian Cenedese" <<a href="mailto:Cenedese@indel.ch">Cenedese@indel.ch</a>><br>
> An: <a href="mailto:rsync@lists.samba.org">rsync@lists.samba.org</a><br>
> Betreff: Re: Comparing FLAC header before syncing<br>
<div class="HOEnZb"><div class="h5">><br>
> At 02:<a href="tel:24%2002.12.2014" value="+12402122014">24 02.12.2014</a>, Mike Garey wrote:<br>
> >Hi all, I'd like to modify rsync to add a flag to compare the MD5 signature of the unencoded audio data in the header of a FLAC file to determine whether or not to transfer a file. Â<br>
> ><br>
> >The reason being that I've got a large number of FLAC files, many of which are corrupted in the destination volume, but many of which are valid but the tags have been modified.  The sizes of both the source and destination files are the exact same, regardless of whether they're corrupted or not.  If I were to rsync all files based on the modification date, it would overwrite these valid FLAC files whose tags have been altered, which I want to prevent.  I only want to rsync new files and files whose MD5 signatures don't match.<br>
> ><br>
> >If anyone could point me in the right direction of where in the source code I should concentrate my efforts to add this modification, it would help greatly.<br>
><br>
> You'd probably get a result faster with less problems (future updates) if you<br>
> separate your logic into a single program instead of incorporating it into rsync.<br>
> If you have a way of accessing both the source and dest then you can create<br>
> a list of files to sync and feed this to rsync with --files-from. Or you run your<br>
> script/program on the destination, check all files and create the list which<br>
> you can then transfer to the source and let rsync run. Or you have rsync run<br>
> on the destination if you have a server on or direct access to the source.<br>
><br>
> If you really want to change rsync you can probably look at -c (checksum)<br>
> which you may be able to adjust to use the header's checksum instead<br>
> of generating a file's checksum. But I don't know the source code.<br>
><br>
> bye  Fabi<br>
><br>
><br>
><br>
> --<br>
> Please use reply-all for most replies to avoid omitting the mailing list.<br>
> To unsubscribe or change options: <a href="https://lists.samba.org/mailman/listinfo/rsync" target="_blank">https://lists.samba.org/mailman/listinfo/rsync</a><br>
> Before posting, read: <a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a><br>
><br>
--<br>
Please use reply-all for most replies to avoid omitting the mailing list.<br>
To unsubscribe or change options: <a href="https://lists.samba.org/mailman/listinfo/rsync" target="_blank">https://lists.samba.org/mailman/listinfo/rsync</a><br>
Before posting, read: <a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a></div></div></blockquote></div><br></div>