aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/mw-backend/files
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/mw-backend/files')
-rw-r--r--ansible/roles/mw-backend/files/bin/mw-dump-backup2
-rw-r--r--ansible/roles/mw-backend/files/bin/mw-dump-db3
-rw-r--r--ansible/roles/mw-backend/files/bin/mw-make-backup2
-rw-r--r--ansible/roles/mw-backend/files/opt/mediawiki/semantic-media-wiki/composer.json6
4 files changed, 4 insertions, 9 deletions
diff --git a/ansible/roles/mw-backend/files/bin/mw-dump-backup b/ansible/roles/mw-backend/files/bin/mw-dump-backup
index 5530b03..0e21eb2 100644
--- a/ansible/roles/mw-backend/files/bin/mw-dump-backup
+++ b/ansible/roles/mw-backend/files/bin/mw-dump-backup
@@ -6,4 +6,4 @@ exec php /usr/share/mediawiki/maintenance/dumpBackup.php \
--full \
--include-files \
--uploads \
- > /mediawiki-backup/content-dump.xml
+ > /opt/mediawiki/backup/content-dump.xml
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
diff --git a/ansible/roles/mw-backend/files/bin/mw-make-backup b/ansible/roles/mw-backend/files/bin/mw-make-backup
index 18c48e2..e99b909 100644
--- a/ansible/roles/mw-backend/files/bin/mw-make-backup
+++ b/ansible/roles/mw-backend/files/bin/mw-make-backup
@@ -2,4 +2,4 @@
set -euo pipefail
-exec borg create /mediawiki-borg::mediawiki-{now:%Y%m%d-%H%M%S} /mediawiki-backup
+exec borg create /opt/mediawiki/borg::mediawiki-{now:%Y%m%d-%H%M%S} /opt/mediawiki/backup
diff --git a/ansible/roles/mw-backend/files/opt/mediawiki/semantic-media-wiki/composer.json b/ansible/roles/mw-backend/files/opt/mediawiki/semantic-media-wiki/composer.json
deleted file mode 100644
index f1c00f4..0000000
--- a/ansible/roles/mw-backend/files/opt/mediawiki/semantic-media-wiki/composer.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "require": {
- "mediawiki/semantic-result-formats": "2.5",
- "mediawiki/semantic-media-wiki": "2.5.8"
- }
-}