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:
2
Makefile
2
Makefile
@@ -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
|
||||
Reference in New Issue
Block a user