
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 20s
14 lines
325 B
Bash
Executable File
14 lines
325 B
Bash
Executable File
#!/bin/bash
|
|
source "${AGENT_PATH}/common.sh"
|
|
source "$(dirname "$0")/_volumes.sh"
|
|
_check_required_env_vars
|
|
|
|
_stop_container "$CONTAINER_NAME"
|
|
|
|
# shellcheck disable=SC2046
|
|
backup_items $(get_caddy_volumes) || _die "Failed to create backup"
|
|
|
|
_start_container "$CONTAINER_NAME"
|
|
|
|
echo "Backup created successfully: $BACKUP_FILE"
|