Add 4 and update 16 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 20s

This commit is contained in:
Your Name
2025-08-30 18:30:35 +12:00
parent 292c336f08
commit 5858b4e048
20 changed files with 95 additions and 25 deletions

View File

@@ -1,15 +1,16 @@
#!/bin/bash
source "${AGENT_PATH}/common.sh"
source "$(dirname "$0")/_volumes.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"
# shellcheck disable=SC2046
restore_items $(get_caddy_volumes) || _die "Failed to restore data from backup file"
# reinstall service
./install.sh || _die "Failed to reinstall service after restore"