summaryrefslogtreecommitdiff
path: root/share/hydractl/backup-site
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-01-04 19:48:48 -0200
committerSilvio Rhatto <rhatto@riseup.net>2012-01-04 19:48:48 -0200
commit2aea93cd0be52618f2bad54c97060958e82840d2 (patch)
treef0363bdbe22c44acd06861ee14b6a2883a7093de /share/hydractl/backup-site
parent121eb7eb9326d2ff2f6f10095d781895cff6fb44 (diff)
downloadhydra-2aea93cd0be52618f2bad54c97060958e82840d2.tar.gz
hydra-2aea93cd0be52618f2bad54c97060958e82840d2.tar.bz2
Coding backup-copy-site
Diffstat (limited to 'share/hydractl/backup-site')
-rwxr-xr-xshare/hydractl/backup-site4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/hydractl/backup-site b/share/hydractl/backup-site
index d989ee3..914e3e4 100755
--- a/share/hydractl/backup-site
+++ b/share/hydractl/backup-site
@@ -7,14 +7,14 @@
source $APP_BASE/lib/hydra/functions || exit 1
hydra_config_load
-# Arguments
+# Basic parameters.
SITES="/var/sites"
SITE="$1"
PACK="$1.tar.bz2"
DATE="`date +%Y%m%d`"
DEST="$SITES/backups/site/$SITE/`facter hostname`/$DATE"
-# Syntax check
+# Syntax check.
if [ -z "$SITE" ]; then
hydra_action_usage
exit 1