version 1.5, 2010/02/25 16:24:00 |
version 1.11, 2015/10/12 00:35:14 |
|
|
RSYNC=`which rsync` |
RSYNC=`which rsync` |
|
|
if [ $? != 0 ]; then |
if [ $? != 0 ]; then |
sudo pkg_add -i rsync |
doas pkg_add -i rsync |
RSYNC=`which rsync` |
RSYNC=`which rsync` |
if [ $? != 0 ]; then |
if [ $? != 0 ]; then |
echo RSYNC not installed! |
echo RSYNC not installed! |
|
|
fi |
fi |
fi |
fi |
|
|
RELEASEDIR=/usr/release |
. /etc/release.conf |
|
RELEASEDIR=$RELEASE |
|
|
ls $RELEASEDIR > $RELEASEDIR/index.txt |
ls $RELEASEDIR | grep -v '^site' > $RELEASEDIR/index.txt |
|
rsync -avP $RELEASEDIR/ \ |
|
--files-from ${RELEASEDIR}/index.txt \ |
|
us.holligan.net:/var/www/ftp/pub/OpenBSD-stable/`uname -r`/`machine`/ |
|
|
|
rsync -avP /usr/ports/packages/`machine`/ftp/ \ |
|
us.holligan.net:/var/www/ftp/pub/OpenBSD-stable/`uname -r`/packages/`machine`/ |
|
|
|
ls $RELEASEDIR > $RELEASEDIR/index.txt |
rsync -avP $RELEASEDIR/ \ |
rsync -avP $RELEASEDIR/ \ |
us.holligan.net:/var/www/ftp/pub/OpenBSD/`uname -r`/`machine`/ |
--files-from ${RELEASEDIR}/index.txt \ |
|
rrlhcsta0100:/var/www/ftp/pub/OpenBSD/`uname -r`/`machine`/ |
|
|
|
rsync -avP /usr/ports/packages/`machine`/all/ \ |
|
rrlhcsta0100:/var/www/ftp/pub/OpenBSD/`uname -r`/packages/`machine`/ |
|
|