[Slackbuilds-users] rsync script
Martin Lefebvre
dadexter at sekurity.com
Sat Jul 7 19:10:56 UTC 2007
Hey guys,
I wrote this tiny script to sync slackbuilds using rsync... it should work
on both 11.0 and 12.0. Problem is, I still run 11.0, and I was wondering is
a kind soul with too much time on his hands (I can't be the only one) would
mind testing it on 12.0 to see if it works?
-------------- next part --------------
#!/bin/sh
set -e
SLACKVER=$(cat /etc/slackware-version | cut -d " " -f 2 | cut -d . -f -2)
TARGET=${TARGET:-/var/cache/sbo/}
RSYNC=$(which rsync)
SOURCE="rsync://slackbuilds.org/slackbuilds/${SLACKVER}/"
echo "Syncing builds from ${SOURCE} to ${TARGET}"
if [ ! -d ${TARGET} ]; then
mkdir -p ${TARGET}
fi
${RSYNC} -rvz --delete ${SOURCE} ${TARGET}
More information about the Slackbuilds-users
mailing list