Add 4 and update 16 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 20s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 20s
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
# shellcheck disable=SC1091
|
||||
source "${AGENT_PATH}/common.sh" || _die "Failed to source common.sh"
|
||||
source "$(dirname "$0")/_volumes.sh"
|
||||
_check_required_env_vars "BACKUP_FILE" "TEMP_DIR" "VOLUME_NAME" "CONTAINER_NAME"
|
||||
|
||||
# Simple Object Storage Restore Script
|
||||
@@ -12,7 +14,8 @@ bash ./uninstall.sh || _die "Failed to uninstall service before restore"
|
||||
|
||||
echo "Restoring data for ${CONTAINER_NAME} from ${BACKUP_FILE}..."
|
||||
|
||||
datarestore "volume=${VOLUME_NAME}" || _die "Failed to restore data from backup file"
|
||||
# shellcheck disable=SC2046
|
||||
restore_items $(get_simple_object_server_volumes) || _die "Failed to restore data from backup file"
|
||||
|
||||
echo "Restore complete. Reinstalling service..."
|
||||
|
||||
|
Reference in New Issue
Block a user