Files
MABEA/deploy/mabea-backup.service.template
patrickandClaude Sonnet 5 8e4c2608e3
CI / backend-tests (push) Successful in 2m50s
CI / frontend-build (push) Successful in 18s
feat(foundation): FOUND-006 strukturiertes Logging, FOUND-010 DB-Backup-Timer, IDENT-010 GTIN-Materialabgleich
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CVgbozhYmuEhiEJHffRXCV
2026-09-10 14:07:22 +02:00

17 lines
393 B
Plaintext

[Unit]
Description=MABEA PostgreSQL-Backup taeglich (FOUND-010, oneshot)
After=postgresql.service
Requires=postgresql.service
[Service]
Type=oneshot
Environment=DB_NAME=mabea
Environment=BACKUP_DIR=/opt/mabea/backups
Environment=AUFBEWAHRUNG_TAGE=14
ExecStart=/opt/mabea/repo/deploy/backup_datenbank.sh
NoNewPrivileges=true
ProtectHome=true
PrivateTmp=true
ReadWritePaths=/opt/mabea/backups