Made release script more portabel, added some more space saving statistic

This commit is contained in:
Nico Schottelius 2005-12-08 14:46:18 +01:00
parent 9d4b03b38a
commit 3bb1987dcb
2 changed files with 16 additions and 1 deletions

View file

@ -9,3 +9,9 @@ Hard links are such a nice thing ;-)
4.1M /home/nico/backupdir/daily.2005-12-08-10:53.28531
4.1M /home/nico/backupdir/daily.2005-12-08-10:53.28554
4.1M /home/nico/backupdir/daily.2005-12-08-10:53.28577
srwali01:/etc/ccollect/sources# du -sh /mnt/hdbackup/wl6/
186M /mnt/hdbackup/wl6/
srwali01:/etc/ccollect/sources# du -sh /mnt/hdbackup/wl6/*
147M /mnt/hdbackup/wl6/taeglich.2005-12-08-14:42.312
147M /mnt/hdbackup/wl6/taeglich.2005-12-08-14:45.588

View file

@ -1,6 +1,15 @@
NAME=$1
TARNAME=${NAME}.tar.bz2
tar cvfj ${NAME}.tar.bz2 \
DHOST=nico@creme.schottelius.org
DDIR=www/org/schottelius/linux/ccollect/
DESTINATION="$DHOST:$DDIR"
tar cvfj "$TARNAME"
--exclude=.git \
--exclude="conf/sources/*/destination/*" \
"$NAME"
scp "${TARNAME}" "$DESTINATION"
ssh "$DHOST" "( cd $DDIR; tar xfj \"$TARNAME\" )"