summaryrefslogtreecommitdiff
path: root/share/hydractl/site-pack
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-27 14:45:36 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-27 14:45:36 -0300
commit1f25194c5ab63ee588fa66f09cf30f5994490455 (patch)
treefac630f43fb1c5e488f24a50f9839d7c6160e6da /share/hydractl/site-pack
parent402782207daaea438316c4ef9b38f3e5198beb03 (diff)
downloadhydra-1f25194c5ab63ee588fa66f09cf30f5994490455.tar.gz
hydra-1f25194c5ab63ee588fa66f09cf30f5994490455.tar.bz2
Renaming actions and adding backup function
Diffstat (limited to 'share/hydractl/site-pack')
-rwxr-xr-xshare/hydractl/site-pack29
1 files changed, 0 insertions, 29 deletions
diff --git a/share/hydractl/site-pack b/share/hydractl/site-pack
deleted file mode 100755
index 2d1175b..0000000
--- a/share/hydractl/site-pack
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-#
-# Pack a website.
-#
-# TODO: put on $SITES/backups/site/$SITE, with htaccess and correct
-# ownership/permission.
-# TODO: optionally backup database before packing
-
-# Arguments
-SITES="/var/sites"
-SITE="$1"
-PACK="$1.tar.bz2"
-
-if [ -z "$SITE" ]; then
- hydra_action_usage
- exit 1
-elif [ ! -d "$SITES/$SITE" ]; then
- echo "No such site $SITE"
- exit 1
-fi
-
-mkdir -p $SITES/backups/$SITE
-cd $SITES/backups/$SITE
-
-tar jcvf $PACK $SITES/$SITE
-md5sum $PACK > $PACK.md5
-sha1sum $PACK > $PACK.sha1
-
-echo "Saved $SITES/backups/$SITE/$PACK"