#!/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/