diff --git a/app/deploy/systemd/teknav-backup.service b/app/deploy/systemd/teknav-backup.service new file mode 100644 index 0000000..ee373da --- /dev/null +++ b/app/deploy/systemd/teknav-backup.service @@ -0,0 +1,13 @@ +[Unit] +Description=Backup Teknav PostgreSQL database +After=postgresql.service + +[Service] +Type=oneshot +User=teknav +Group=teknav +EnvironmentFile=/etc/teknav/backend.env +ExecStart=/opt/teknav/current/scripts/systemd-backup.sh +Nice=10 +IOSchedulingClass=best-effort +IOSchedulingPriority=7