diff options
Diffstat (limited to 'ansible/roles/mediawiki/files/bin/mw-dump-backup')
-rw-r--r-- | ansible/roles/mediawiki/files/bin/mw-dump-backup | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ansible/roles/mediawiki/files/bin/mw-dump-backup b/ansible/roles/mediawiki/files/bin/mw-dump-backup new file mode 100644 index 0000000..eb98d7d --- /dev/null +++ b/ansible/roles/mediawiki/files/bin/mw-dump-backup @@ -0,0 +1,9 @@ +#!/bin/bash + +set -euo pipefail + +exec sudo -u www-data php /usr/share/mediawiki/maintenance/dumpBackup.php \ + --full \ + --include-files \ + --uploads \ + > /opt/mediawiki/backup/content-dump.xml |