docs: Add 16, update 2 and remove 2 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 9s

This commit is contained in:
j
2026-01-26 21:17:15 +13:00
parent eebd3efcf3
commit 70dab12114
20 changed files with 411 additions and 541 deletions

21
graylog/backup.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
# shellcheck disable=SC1091
source "${AGENT_PATH}/common.sh"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${SCRIPT_DIR}/_volumes.sh"
_check_required_env_vars "CONTAINER_NAME"
# BACKUP SCRIPT
# Creates a backup of all Graylog data volumes
# Stop containers before backup
docker compose -p "${CONTAINER_NAME}" stop || _die "Failed to stop Graylog stack"
# Backup all volumes
# shellcheck disable=SC2046
backup_items $(get_graylog_volumes) || _die "Failed to create backup"
# Restart containers
docker compose -p "${CONTAINER_NAME}" start || _die "Failed to restart Graylog stack"
echo "Backup created successfully"