Docker Compose stack (n8n, PostgreSQL 16, Redis 7, 1 worker) with: - nginx local proxy on port 8088, YunoHost TLS termination config - helper scripts: backup/restore/import/export/update - .env.example, README with architecture, ops commands, to-do list Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
19 lines
701 B
Bash
Executable file
19 lines
701 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
ROOT="$(dirname "$SCRIPT_DIR")"
|
|
COMPOSE="$ROOT/compose/docker-compose.yml"
|
|
|
|
TIMESTAMP=$(date +"%Y%m%d_%H%M%S")
|
|
OUTPUT_DIR="$ROOT/imports/credentials/export_$TIMESTAMP"
|
|
mkdir -p "$OUTPUT_DIR"
|
|
|
|
echo "[export-credentials] WARNUNG: Export enthält unverschlüsselte Credentials!"
|
|
echo "[export-credentials] Exportiere → $OUTPUT_DIR"
|
|
docker compose -f "$COMPOSE" exec n8n \
|
|
n8n export:credentials --all --output="/imports/credentials/export_$TIMESTAMP/"
|
|
|
|
echo "[export-credentials] Fertig."
|
|
echo "[export-credentials] WICHTIG: Export-Verzeichnis sichern und nach Gebrauch löschen!"
|
|
ls -lh "$OUTPUT_DIR"
|