[Unit] Description=dilib PostgreSQL local backup After=postgresql.service [Service] Type=oneshot User=postgres Group=postgres ExecStart=/bin/bash /opt/dilib-dashboard/scripts/backup.sh /var/lib/postgresql/dilib-backups UMask=0077 NoNewPrivileges=true PrivateTmp=true