<br><br><div class="gmail_quote">On Mon, Nov 10, 2008 at 10:54 AM, Cameron Simpson <span dir="ltr"><<a href="mailto:cs@zip.com.au">cs@zip.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On 10Nov2008 09:56, L <<a href="mailto:yuanlux@gmail.com">yuanlux@gmail.com</a>> wrote:<br>
| I use rsync to sync a mirror site. I wnat to exclude files that were created<br>
| more than 10 days ago. I have  a long list of excludes in a file. But I want<br>
| a dynamic option.<br>
| what is the option for this in rsync ?<br>
<br>
</div></div>As far as I'm aware there isn't one. The include/exclude stuff is<br>
entirely pathname based. I have in the past done a recursive _listing_<br>
of a mirror site, chosen files out of that, and constructed an<br>
include/exclude file on that basis. This was automated with a script.<br>
<br>
In my case the example was a GNU archive with multiple versions of<br>
packages; I wished only to mirror the "latest" package.<br>
<br>
If you can construct (via, perhaps, "rsync -n" and some postprocessing)<br>
a list of the remote files that you want, or do not want, it is a pretty<br>
easy task to convert that into an include/exclude list automatically. Then<br>
you just use that in a wrapper script for calling rsync.<br>
<br>
Cheers,<br>
--</blockquote><div><h2>at the bottom of rsync example page @</h2><a href="http://www.samba.org/rsync/examples.html">http://www.samba.org/rsync/examples.html</a><br><br>it says<br><br><h2>Fancy footwork with remote file lists</h2>


<pre><small><br>One little known feature of rsync is the fact that when run over a<br>remote shell (such as rsh or ssh) you can give any shell command as<br>the remote file list. The shell command is expanded by your remote<br>
shell before rsync is called. For example, see if you can work out<br>what this does:<br><br> rsync -avR remote:'`find /home -name "*.[ch]"`' /tmp/<br><br>note that that is backquotes enclosed by quotes (some browsers don't<br>
show that correctly).<br></small></pre><br>not sure how to make this work.<br><br>Y<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Cameron Simpson <<a href="mailto:cs@zip.com.au">cs@zip.com.au</a>> DoD#743<br>
<a href="http://www.cskk.ezoshosting.com/cs/" target="_blank">http://www.cskk.ezoshosting.com/cs/</a><br>
<br>
MS-DOS: "... an OS originally designed for a microprocessor that modern<br>
kitchen appliances would sneer at...."<br>
        - Dave Trowbridge, _Computer Technology Review_, Aug '90<br>
<font color="#888888"><br>
--<br>
fedora-list mailing list<br>
<a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>
To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-list</a><br>
Guidelines: <a href="http://fedoraproject.org/wiki/Communicate/MailingListGuidelines" target="_blank">http://fedoraproject.org/wiki/Communicate/MailingListGuidelines</a><br>
</font></blockquote></div><br>