aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/backup-restore
blob: a5bfd42c1f34b6836ef44ecb4095cdf77bc3d641 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
#
# Backup restoration.
#

# Load.
source $APP_BASE/lib/hydra/functions || exit 1
hydra_config_load

# Check restore strategy.
if [ "$1" == "localhost" ]; then
  hydra_backup_environment_local $2 restore
else
  hydra_backup_environment_remote $1 restore
fi

duplicity restore file:///$BACKUPDIR/ $RESTOREDIR/