chore(ops): harden deployment and runtime setup
This commit is contained in:
parent
1d7e7c41c9
commit
c35bd5877e
30 changed files with 534 additions and 61 deletions
13
scripts/backup.sh
Executable file
13
scripts/backup.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env sh
|
||||
set -eu
|
||||
|
||||
BACKUP_DIR="${BACKUP_DIR:-backups}"
|
||||
STAMP="$(date +%Y%m%d-%H%M%S)"
|
||||
TARGET="${BACKUP_DIR}/funktechnik-data-${STAMP}.tar.gz"
|
||||
|
||||
mkdir -p "$BACKUP_DIR"
|
||||
tar -czf "$TARGET" data public/uploads
|
||||
|
||||
echo "Backup erstellt: $TARGET"
|
||||
echo "Hinweis: .env wird aus Sicherheitsgruenden nicht automatisch gesichert."
|
||||
echo "Bitte .env separat und sicher ausserhalb des Repositories sichern."
|
||||
Loading…
Add table
Add a link
Reference in a new issue