Made release script more portabel, added some more space saving statistic
This commit is contained in:
parent
9d4b03b38a
commit
3bb1987dcb
2 changed files with 16 additions and 1 deletions
|
@ -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
|
11
release.sh
11
release.sh
|
@ -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\" )"
|
||||
|
|
Loading…
Reference in a new issue