From 402782207daaea438316c4ef9b38f3e5198beb03 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 27 Sep 2011 14:43:16 -0300 Subject: More backup actions --- share/hydractl/site-restore | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 share/hydractl/site-restore (limited to 'share/hydractl/site-restore') diff --git a/share/hydractl/site-restore b/share/hydractl/site-restore new file mode 100755 index 0000000..493fc30 --- /dev/null +++ b/share/hydractl/site-restore @@ -0,0 +1,22 @@ +#!/bin/bash +# +# Restore a website from backup +# + +# Load. +source $APP_BASE/lib/hydra/functions || exit 1 +hydra_config_load + +SITE="$3" + +if [ -z "$SITE" ]; then + hydra_action_usage + exit 1 +fi + +hydra_backup_environment $* + +# Check if there's already a site folder and backup it +# Check installed platforms: trac, drupal, pmwiki +# Drupal: check symlinks +# Fix permissions -- cgit v1.2.3