summaryrefslogtreecommitdiff
path: root/share/hydractl/backup-restore-site
blob: 493fc3000bc0738f640d2617ff5700f138b5bba8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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