Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CVgbozhYmuEhiEJHffRXCV
17 lines
393 B
Plaintext
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
|