aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/mw-backend/files/bin/mw-make-backup
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/mw-backend/files/bin/mw-make-backup')
-rw-r--r--ansible/roles/mw-backend/files/bin/mw-make-backup5
1 files changed, 5 insertions, 0 deletions
diff --git a/ansible/roles/mw-backend/files/bin/mw-make-backup b/ansible/roles/mw-backend/files/bin/mw-make-backup
new file mode 100644
index 0000000..18c48e2
--- /dev/null
+++ b/ansible/roles/mw-backend/files/bin/mw-make-backup
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+set -euo pipefail
+
+exec borg create /mediawiki-borg::mediawiki-{now:%Y%m%d-%H%M%S} /mediawiki-backup