Skip to content

Custom Cron Job Intervall #5952

Answered by szaimen
JL710 asked this question in Ideas
Jan 24, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi, we simply use the recommended default for cronjobs of every 5min which is recommended in the Nextcloud docs and we have no intention to change this.

However you could do the following:

  1. Edit your cronjobs with sudo crontab -u root -e (and choose your editor of choice if not already done. I'd recommend nano)
  2. add a new line to this file if not already present: */2 * * * * docker ps --format "{{.Names}}" | grep -q "^nextcloud-aio-nextcloud$" && docker exec --user www-data nextcloud-aio-nextcloud php cron.php which will run the command every 2 minutes.
  3. Now save and close the file (when using nano are the shortcouts for this Ctrl + o -> Enter and close the editor with Ctrl + x)
  4. And you are…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JL710
Comment options

Answer selected by szaimen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants