At 08:50 PM 4/4/01 -0700, you wrote:
>Once again I find myself in the throws of a major pain in the butt
>figuring out how to exclude the files under directories or at least
>the directories and the files.
>
>Apparently I don't use rsync in enough different circumstance for this
>to become routine.
>
>Every single time I want to use rsync for anytning more complex than
>the simplest on disk transfers. I land smack dab in a large hair
>pulling session about exclude rules.
>
>Currently trying to download the debian distro for my architecture.
I use the anonftpsync file to mirror the debian archive. I think I got it
from cdimage.debian.org. I lost my most recent version but maybe this will
help. I kept adding to the EXCLUDE until I got just the files I
needed. My mirror is about 6gig and has stable/testing/unstable for just
i386.
excerpt from anonftpsync
##########################
TO=/home/ftp/pub/debian
RSYNC_HOST=debian.uchicago.edu
RSYNC_DIR=debian/
EXCLUDE="--exclude *alpha.deb --exclude *m68k.deb --exclude \
*powerpc.deb --exclude stable/ --exclude bo/ \
--exclude binary-sparc/ --exclude binary-arm/ --exclude\
/Debian-1.3* --exclude binary-alpha/ --exclude binary-m68k/ \
--exclude binary-powerpc/ --exclude Incoming/ --exclude \
local/ --exclude bo-unstable/ --exclude bo-updates/ --exclude \
disk-alpha/ --exclude disks-arm/ --exclude disks-m68k/ \
--exclude disks-powerpc/ --exclude disks-sparc/ --exclude \
upgrade-alpha/ --exclude upgrade-sparc/ --exclude source/ \
--exclude binary-mips/ --exclude binary-hurd-i386/ --exclude \
binary-hppa/ --exclude upgrade-m68k/ --exclude disks-alpha/ \
--exclude binary-mipsel/ "
############################
rsync -rltvz --delete \
--exclude "Archive-Update-in-Progress-`hostname -f`" \
--exclude "project/trace/`hostname -f`" \
$EXCLUDE \
#############################
I hope this helps. I no longer have high speed access, When you get the
exclude the way you want it can you email me the final?
Scott S.
----
Work at home and make great money!
http://teamideals.com/leaders.cgi/dsharpe