2006-01-13 22:50:32 +00:00
|
|
|
if [ $# -ne 1 ]; then
|
|
|
|
echo "$0: ccollect dir"
|
|
|
|
exit 23
|
|
|
|
fi
|
|
|
|
|
2005-12-08 13:18:07 +00:00
|
|
|
NAME=$1
|
2005-12-08 13:46:18 +00:00
|
|
|
TARNAME=${NAME}.tar.bz2
|
2005-12-08 13:18:07 +00:00
|
|
|
|
2005-12-08 13:46:18 +00:00
|
|
|
DHOST=nico@creme.schottelius.org
|
|
|
|
DDIR=www/org/schottelius/linux/ccollect/
|
|
|
|
DESTINATION="$DHOST:$DDIR"
|
|
|
|
|
2006-01-13 22:48:07 +00:00
|
|
|
tar cvfj "$TARNAME" \
|
2005-12-08 13:18:07 +00:00
|
|
|
--exclude=.git \
|
2006-01-13 22:48:07 +00:00
|
|
|
--exclude="conf/sources/*/destination/*" "$NAME"
|
2005-12-08 13:46:18 +00:00
|
|
|
|
|
|
|
scp "${TARNAME}" "$DESTINATION"
|
|
|
|
|
|
|
|
ssh "$DHOST" "( cd $DDIR; tar xfj \"$TARNAME\" )"
|