You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nextcloud needs frequent background jobs to keep running properly.
Depending on the situation this "cron job" may take a very long time, overlapping with the default 5 minute delay between jobs. Which may end up running several instances of the job.
To mitigate this we have 2 options:
Use a systemd service+timer
Encapsulate the cronjob into a bash script that checks if it is already running
The systemd approach has official support and will (by default) not run on top of a previous run (if still running).
Run cron on docker with job output directed to stdout
You'd like a docker container that runs cron jobs, with the output of those cron jobs going to stdout so they are
accessible as docker logs. How do you do that?
Install cron, and set it up to run in the foreground
In your Dockerfile, apt-get -y install cron Use apk or whatever if you are running on alpine or another distribution
Set the command or entrypoint in your Dockerfile to run cron 9n the foreground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PostgreSQL cluster base backup automation made easy with PowerShell and Windows Task Scheduler or PgAgent. This script does the following: checks if there is enough free space to make a new backup (based on the last backup size), purges expired backups, creates a new folder for each backup, calls pb_basebackup to begin a tar gzip backup of every…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters