platform-deployments/systemd/lilith-backup-postgres.service
Quinn Ftw 3dbd4375d3 chore(conf.d): 🔧 Update configuration service files in conf.d directory
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-02-18 13:42:49 -08:00

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