#!/bin/bash source "${AGENT_PATH}/common.sh" _check_required_env_vars # RESTORE SCRIPT # uninstall container before restore ./uninstall.sh || _die "Failed to uninstall service before restore" # restore data from backup file datarestore "$1" "$2" "volume=$DATA_VOLUME" "volume=$CONFIG_VOLUME" || _die "Failed to restore data from backup file" # reinstall service ./install.sh || _die "Failed to reinstall service after restore" echo "Restore complete! Service is running again."