Closed sergiolaverde0 closed 2 months ago
Not completely working as of this moment since the Artisan command called does not find any scheduled action.
Your script runs every minute. Laravel backup was set to every 4 minute for testing, and it does work for me. It does not find a command to run 3 minutes out of 4 for me, which is the way it should work.
2024-09-22 10:20:01 Running ['artisan' app:create-backup] .......... 1s DONE
⇂ '/usr/local/bin/php' 'artisan' app:create-backup > '/dev/null' 2>&1
INFO No scheduled commands are ready to run.
INFO No scheduled commands are ready to run.
INFO No scheduled commands are ready to run.
2024-09-22 10:24:03 Running ['artisan' app:create-backup] .......... 1s DONE
⇂ '/usr/local/bin/php' 'artisan' app:create-backup > '/dev/null' 2>&1
INFO No scheduled commands are ready to run.
INFO No scheduled commands are ready to run.
INFO No scheduled commands are ready to run.
An update to the entrypoint script to create the backup folder if missing might be needed later too.
I already added it, could this be maybe why it does not work for you?
Thank you so much for the PR! I really appreciate it, it helped a lot. Cron seems to be difficult to be used with non root permissions, if it even possible.
It does not find a command to run 3 minutes out of 4 for me, which is the way it should work
For me it failed to find it 55 times in a row before I stopped the container and assumed it to be broken. Weird, but if it is working now then it's all good.
It has been running on my production instance since I merged it in, and it is working well. Thank you!
Not completely working as of this moment since the Artisan command called does not find any scheduled action. An update to the entrypoint script to create the backup folder if missing might be needed later too.