[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

mirroring subset of debian files with rsync



I'm trying to mirror a subset of the debian files (specifically everything
for sparc in the potato release).  In order to minimize the load on the
server I was trying to use rsync.  But it seems rsync's include/exclude
facility is either broken, or incorrectly documented.  I've tried quite
a number of different combinations of options, and I get either no files
at all, or it tries to download everything.

Before I give up on rsync and start using "mirror" via FTP (which I know
works because I use it in ways similar to this already), I thought I
would ask here to see if anyone had any idea how to make rsync actually
do what I want.

Here's the command I'm using now:

rsync --block-size=8192 --verbose --stats --recursive --compress --links --perms --times --timeout 300 --delete --delete-excluded --include '/dists/potato/main/binary-all/**' --include '/dists/potato/main/binary-sparc/**' --include '/dists/potato/main/disks-i386/**' --include '/dists/potato/main/source/**' --include '/dists/potato/contrib/binary-all/**' --include '/dists/potato/contrib/binary-sparc/**' --include '/dists/potato/contrib/source/**' --include '/dists/potato/non-free/binary-all/**' --include '/dists/potato/non-free/binary-sparc/**' --include '/dists/potato/non-free/source/**' --exclude '/**' 'download.sourceforge.net::debian/.' 'data/download.sourceforge.net'

As seen from the list, I'm trying to include every file that matches the
includes, and exclude whatever gets by all of them unmatched.  It's as
if rsync isn't doing the sequential match test like the docs say it does.

-- 
| Phil Howard - KA9WGN | My current boycotts: Amazon.Com, DVDs, Mattel, Sony
| phil-nospam@ipal.net +----------------------------------------------------
| Dallas - Texas - USA | My current websites: linuxhomepage.com, ham.org


Reply to: