<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18812">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Trying rsync with --verbose and --progress
flags looks like the .rsync-filter</FONT></DIV>
<DIV><FONT size=2 face=Arial>only complicates the matter. The
filter first causes rsync to protect the files/directories</FONT></DIV>
<DIV><FONT size=2 face=Arial>that match, and then rsync later checks them to see
whether they are uptodate.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Is there a way to stop rsync from visiting a
subtree entirely? I was thinking I could</FONT></DIV>
<DIV><FONT size=2 face=Arial>add this (whatever it is) dynamically after the
subtree had been written.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Thanks,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Mike</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=mikefconnell@verizon.net href="mailto:mikefconnell@verizon.net">Mike
Connell</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=rsync@lists.samba.org
href="mailto:rsync@lists.samba.org">rsync@lists.samba.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, October 05, 2009 11:08
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> can a .rsync-filter improve
performance?</DIV>
<DIV><BR></DIV>
<DIV><FONT size=2 face=Arial>Hi,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I know certain subtrees I want to backup are
written once</FONT></DIV>
<DIV><FONT size=2 face=Arial>and never deleted.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>So to reduce the time it takes rsync to run, I
was thinking</FONT></DIV>
<DIV><FONT size=2 face=Arial>of putting the following .rsync-filter in each of
these subtrees:</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>P /**</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I can see this stops the files on the receiver
side from </FONT><FONT size=2 face=Arial>being </FONT></DIV>
<DIV><FONT size=2 face=Arial>deleted.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Does this filter also improve
performance?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT><FONT size=2
face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>It looks like it does. If I do a manual test
and delete</FONT></DIV>
<DIV><FONT size=2 face=Arial>a file in this subtree on the sender side, when I
look at the output</FONT></DIV>
<DIV><FONT size=2 face=Arial>from the "building file list", it does
</FONT><FONT size=2 face=Arial>not show the deleted file.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>So will this help improve performance (time it
takes to build file list and</FONT></DIV>
<DIV><FONT size=2 face=Arial>time it takes to update receiver)?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Is there a better way to prune, when you have
subtrees that are </FONT></DIV>
<DIV><FONT size=2 face=Arial>only written once and you don't need rsync to
keep visiting these</FONT></DIV>
<DIV><FONT size=2 face=Arial>subtrees?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Thanks,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Mike</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV></BLOCKQUOTE></BODY></HTML>