From: Tuukka Lehtonen Date: Thu, 26 Jan 2017 22:05:04 +0000 (+0200) Subject: Parametrize dump-wikis.sh and backup mediawiki sites in dump-wikis.sh X-Git-Tag: v1.28.0~91 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=2367c227645db518955fc142ddf6b4c5787eab42;p=simantics%2Fplatform.git Parametrize dump-wikis.sh and backup mediawiki sites in dump-wikis.sh refs #6916 --- diff --git a/releng/doc/dump-mysql-db.sh b/releng/doc/dump-mysql-db.sh old mode 100644 new mode 100755 diff --git a/releng/doc/dump-wikis.sh b/releng/doc/dump-wikis.sh old mode 100644 new mode 100755 index ae2a64dc3..de255c227 --- a/releng/doc/dump-wikis.sh +++ b/releng/doc/dump-wikis.sh @@ -1,9 +1,13 @@ #!/bin/bash +if [ $# -lt 3 ]; then + echo "Usage: $0 " + exit -1 +fi -major=1 -minor=25 -service=0 +major=$1 +minor=$2 +service=$3 ver=${major}.${minor}.${service} mkdir ${ver} @@ -19,3 +23,7 @@ IFS=$OLDIFS cd .. tar zcvf ${ver}.tar.gz ${ver} rm -rf ${ver} + +echo "Packing up mediawiki sites" +tar zcvf ${ver}-dev-site.tar.gz /var/www/http-dev.simantics.org/ +tar zcvf ${ver}-enduser-site.tar.gz /var/www/https-www.simantics.org/end_user_wiki/