Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018BAUeCFpDkRD6tU5wGsc1C
30 lines
814 B
Desktop File
30 lines
814 B
Desktop File
[Unit]
|
|
Description=Sauvegarde PostgreSQL Xpeditis (WAL-G + dump logique chiffre)
|
|
Documentation=file:///opt/xpeditis/data-node/backup/pg-backup.sh
|
|
After=docker.service network-online.target
|
|
Requires=docker.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
User=root
|
|
Environment=COMPOSE_DIR=/opt/xpeditis/data-node
|
|
Environment=ENV_FILE=/opt/xpeditis/data-node/.env.data
|
|
ExecStart=/opt/xpeditis/data-node/backup/pg-backup.sh
|
|
TimeoutStartSec=3h
|
|
|
|
# Le script ecrit dans /var/lib/xpeditis/dumps et pilote Docker : on ne peut pas
|
|
# aller beaucoup plus loin dans le confinement sans le casser.
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectHome=true
|
|
ProtectKernelTunables=true
|
|
ProtectControlGroups=true
|
|
RestrictSUIDSGID=true
|
|
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=xpeditis-backup
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|