Disables autorestart for database backup cronjob

Prevents the daily database backup cronjob from restarting automatically.
This ensures that the backup process only runs according to the defined schedule,
avoiding unintended backups outside of the scheduled time.
This commit is contained in:
Moritz Utcke
2025-06-09 12:09:50 -03:00
parent e48cd6acde
commit feef273c8c

View File

@@ -72,4 +72,4 @@ prod: install-dependencies prisma-studio backup-database-cronjob update-dwd-klim
backup-database-cronjob:
- pm2 delete daily-db-backup
pm2 start bash --name "daily-db-backup" --cron "0 0 * * *" -- backup-database.bash
pm2 start bash --name "daily-db-backup" --no-autorestart --no-start --cron "0 0 * * *" -- backup-database.bash