
hJared Buck <JBuck814366460@aol.com> writes
Hey,
I know you can use rsync to make a mirror on your computer of all of the PG books. I'd like to do this but have it only download the zip files, excluding everything else. I am using windows for this purpose so I have cygwin installed with rsync available. I know there's a command line for rsync available on PG but I need to know how to change the line so i can tell rsync to get only the zip files and nothing else. Aaron told me some on here use it so i hope someone on here can help me :-d
Rsync has an exclude and include option, see the man page available at <http://optics.ph.unimelb.edu.au/help/rsync/rsync.html>. To answer the specific question including the options --include "*.zip" --exclude "*" in that specific order in the command line should do the job. The first rule tells rsync to download all the *.Zip files the second to exclude everything not matched by a prior rule. -- Great Internet Mersenne Prime Search http://www.mersenne.org/prime.htm Livejournal http://brett-dunbar.livejournal.com/ Brett Paul Dunbar To email me, use reply-to address