[plug] rsync send_files error

Russell Steicke russells at plug.linux.org.au
Sun Aug 25 18:39:46 WST 2002


On Fri, Aug 23, 2002 at 08:29:30PM +0800, Craig Ringer wrote:
...
> I'll be seeing you tomorrow and I'll give you a 7CD set of woody then if 
> you want. (Do you want the ISOs or actual  CDs?) I used them to create 
> an apt-move style local mirror, but it doesn't create a package pool 
> structure suitable for rsync updates. Anybody know how to create a 
> properly structured mirror from a collection of packages as built by 
> apt-move, or a single dir of all packages in a release?

I looked around for something to do this a few months ago when moving to
apt-proxy, didn't find anything, so did the deed with this attached (!!)
shell script.  It may need modification to create an rsync mirror, not 
sure.

-------------- next part --------------
#!/bin/bash

#ECHOC=echo
ECHOC=

Dest=/var/cache/apt-proxy/debian

cd /var/cache/apt/archives &&

for z in *.deb ; do
	
	Dir=${Dest}/$(apt-cache show $( \
		echo $z | \
		sed 's/_.*$//') | \
		grep '^Filename:' | \
		sed -e 's:^Filename..::' -e 's:[a-zA-Z0-9_\.+-]*$::')
	${ECHOC} mkdir -p ${Dir}
	${ECHOC} mv -v $z ${Dir}/$z
done


${ECHOC} chown -R aptproxy.nogroup /var/cache/apt-proxy




More information about the plug mailing list