[Unit]
Description=GuruConnect PostgreSQL Backup
Documentation=https://git.azcomputerguru.com/azcomputerguru/guru-connect

[Service]
Type=oneshot
User=guru
Group=guru
WorkingDirectory=/home/guru/guru-connect/server

# Environment variables (database password)
EnvironmentFile=/home/guru/guru-connect/server/.env

# Run backup script
ExecStart=/bin/bash /home/guru/guru-connect/server/backup-postgres.sh

# Logging
StandardOutput=journal
StandardError=journal
SyslogIdentifier=guruconnect-backup
