From 0a6da2506c38681f7138f3787c6f0dd20696ad0d Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 23 Sep 2018 01:10:23 +0200 Subject: o Adding back mw-backend role for mw.yml. o Adding backup scripts for mediawiki. o Fixing broken Debian logo. o Adding .pdf as valid file updload type. --- ansible/roles/mw-backend/files/bin/mw-dump-backup | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 ansible/roles/mw-backend/files/bin/mw-dump-backup (limited to 'ansible/roles/mw-backend/files/bin/mw-dump-backup') diff --git a/ansible/roles/mw-backend/files/bin/mw-dump-backup b/ansible/roles/mw-backend/files/bin/mw-dump-backup new file mode 100644 index 0000000..5530b03 --- /dev/null +++ b/ansible/roles/mw-backend/files/bin/mw-dump-backup @@ -0,0 +1,9 @@ +#!/bin/bash + +set -euo pipefail + +exec php /usr/share/mediawiki/maintenance/dumpBackup.php \ + --full \ + --include-files \ + --uploads \ + > /mediawiki-backup/content-dump.xml -- cgit v1.2.3