From 2367c227645db518955fc142ddf6b4c5787eab42 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Fri, 27 Jan 2017 00:05:04 +0200 Subject: [PATCH] Parametrize dump-wikis.sh and backup mediawiki sites in dump-wikis.sh refs #6916 --- releng/doc/dump-mysql-db.sh | 0 releng/doc/dump-wikis.sh | 14 +++++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) mode change 100644 => 100755 releng/doc/dump-mysql-db.sh mode change 100644 => 100755 releng/doc/dump-wikis.sh 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/ -- 2.47.1