aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/mw-backend/files/bin/mw-dump-db
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-09-23 11:36:13 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2018-09-23 13:15:21 +0200
commitdd49efbcad47f7d9e801bb12758183220dae9c86 (patch)
treea407f5f25407da39322be59dd351e45278be1093 /ansible/roles/mw-backend/files/bin/mw-dump-db
parentf7badd1323ed9e53e496c0b7f5b60a69a04d67b4 (diff)
downloadinfra-dd49efbcad47f7d9e801bb12758183220dae9c86.tar.gz
infra-dd49efbcad47f7d9e801bb12758183220dae9c86.tar.bz2
infra-dd49efbcad47f7d9e801bb12758183220dae9c86.tar.xz
infra-dd49efbcad47f7d9e801bb12758183220dae9c86.zip
o Replacing all custom semantic mediawiki configuration with a generic
composer setup. Should be possible to maintain all of the mediawiki code with composer now. o Adding scribunto and semantic-scribunto as extensions. o Moving borg and backup directory under /opt/mediawiki
Diffstat (limited to 'ansible/roles/mw-backend/files/bin/mw-dump-db')
-rw-r--r--ansible/roles/mw-backend/files/bin/mw-dump-db3
1 files changed, 2 insertions, 1 deletions
diff --git a/ansible/roles/mw-backend/files/bin/mw-dump-db b/ansible/roles/mw-backend/files/bin/mw-dump-db
index 0a82059..5a6699a 100644
--- a/ansible/roles/mw-backend/files/bin/mw-dump-db
+++ b/ansible/roles/mw-backend/files/bin/mw-dump-db
@@ -8,4 +8,5 @@ export PGUSER=$(sed -n 's,^.wgDBuser.*"\([^"]*\)".*,\1,p' /etc/mediawiki/LocalSe
export PGPASSWORD=$(sed -n 's,^.wgDBpassword.*"\([^"]*\)".*,\1,p' /etc/mediawiki/LocalSettings.php)
export PGPORT=$(sed -n 's,^.wgDBport.*"\([^"]*\)".*,\1,p' /etc/mediawiki/LocalSettings.php)
-exec pg_dump -b --format directory -f /mediawiki-backup/db
+rm -rf /opt/mediawiki/backup/db
+exec pg_dump -b --format directory -f /opt/mediawiki/backup/db