version 1.2, 2006/11/29 16:45:33 |
version 1.6, 2010/04/21 23:15:41 |
|
|
#!/bin/sh |
#!/bin/sh |
|
|
|
RSYNC=`which rsync` |
|
|
|
if [ $? != 0 ]; then |
|
sudo pkg_add -i rsync |
|
RSYNC=`which rsync` |
|
if [ $? != 0 ]; then |
|
echo RSYNC not installed! |
|
exit |
|
fi |
|
fi |
|
|
RELEASEDIR=/usr/release |
RELEASEDIR=/usr/release |
|
|
rsync -avP $RELEASEDIR/ rrlhcmp30100:/home/ftp/pub/OpenBSD/`uname -r`/`machine`/ |
ls $RELEASEDIR | grep -v ^site > $RELEASEDIR/index.txt |
|
rsync -avP $RELEASEDIR/ \ |
|
us.holligan.net:/var/www/ftp/pub/OpenBSD/`uname -r`/`machine`/ |
|
|
|
ls $RELEASEDIR > $RELEASEDIR/index.txt |
|
rsync -avP $RELEASEDIR/ \ |
|
rrlhcmp30100:/home/ftp/pub/OpenBSD/`uname -r`/`machine`/ |