summaryrefslogtreecommitdiff
path: root/share/hydractl/backup-sites
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl/backup-sites')
-rwxr-xr-xshare/hydractl/backup-sites14
1 files changed, 14 insertions, 0 deletions
diff --git a/share/hydractl/backup-sites b/share/hydractl/backup-sites
new file mode 100755
index 0000000..883566e
--- /dev/null
+++ b/share/hydractl/backup-sites
@@ -0,0 +1,14 @@
+#!/bin/bash
+#
+# Pack multiple websites.
+#
+
+if [ -z "$1" ]; then
+ sites="`ls /var/sites`"
+else
+ sites="$*"
+fi
+
+for site in $sites; do
+ hydractl backup-site $site
+done