<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 11, 2013 at 7:54 PM, Scott Wiersdorf <span dir="ltr"><<a href="mailto:scott@ipartner.net" target="_blank">scott@ipartner.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Sat, May 11, 2013 at 09:56:34AM +0530, Lokesh Walase wrote:<br>
> In "cp" command, we have "-i" option, which prompts before overwriting.<br>
> I read the man page of "rsync" and didnt find anything like that here.<br>
><br>
> So I m interested in adding this feature to the "rsync" command.<br>
> I have downloaded the source code of "rsync" but I m confused from where to<br>
> start and what to read.<br>
<br>
</div>This could turn a large sync into an aborted nightmare; I would<br>
recommend perhaps instead writing a shell script (for example) that<br>
would first do a --dry-run with --itemize-changes, parse that and<br>
present it to the user for confirmation if any file changes are<br>
detected. If the confirmation is given, re-run everything without the<br>
--dry-run, otherwise exit.<br></blockquote><div><br></div><div>Thanks Scott for the suggestion, sounds cool :)<br></div><div>Will implement it  !!<br><br><br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<br>
Scott<br>
<span><font color="#888888">--<br>
Scott Wiersdorf<br>
<a href="mailto:scott@ipartner.net" target="_blank">scott@ipartner.net</a><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/%7Eesr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Lokesh Walase<br></div>
</div></div>