30 lines
891 B
Desktop File
30 lines
891 B
Desktop File
[Unit]
|
|
Description=Lilith Platform - PostgreSQL Database Backups (16 databases)
|
|
Documentation=file:///var/home/lilith/Code/@projects/@lilith/lilith-platform/deployments/scripts/lilith-backup-postgres.sh
|
|
After=network-online.target docker.service
|
|
Wants=network-online.target
|
|
OnFailure=lilith-backup-notify-failure@%n.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
|
|
# Run the backup script
|
|
ExecStart=/var/home/lilith/Code/@projects/@lilith/lilith-platform/deployments/scripts/lilith-backup-postgres.sh
|
|
|
|
# Resource scheduling — run as background task
|
|
Nice=10
|
|
IOSchedulingClass=idle
|
|
|
|
# Run as platform user (has Docker network access and config file)
|
|
User=lilith
|
|
|
|
# Allow enough time for 16 large databases
|
|
TimeoutStartSec=3600
|
|
|
|
# Capture stdout+stderr to journal with unit identifier
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=lilith-backup-postgres
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|