Cron is the server’s alarm clock: run this command at these times, forever. Backups, imports, cleanups, reports — if it repeats, it belongs in cron. Here is how to run it well in GoAdmio.
Create a job
- Go to Advanced » Cron Jobs.
- Choose the schedule: common intervals from the dropdowns, or the five-field syntax for anything exotic.
- Enter the command exactly as you would type it in a shell.
- Save. The job runs as your account, on schedule, whether you are logged in or not.
The schedule syntax in one minute
Five fields: minute, hour, day of month, month, day of week. 0 3 * * * is daily at 3 AM. */15 * * * * is every fifteen minutes. 0 4 * * 0 is 4 AM Sundays. When in doubt, use the dropdowns; exotic syntax is where cron typos live.
Commands that behave in cron
- Use absolute paths for scripts and interpreters: cron’s environment is minimal, and
pythonthat works in your shell may not resolve there. - Quote paths with spaces, and test the exact command in a shell first.
- Stagger heavy jobs: five accounts’ backups all at 3:00 is a nightly load spike; 3:00, 3:20, 3:40 is a quiet night.
Output and failure
Cron mails command output to the address set for it (the cron email in Basic GoAdmio Setup at server level). That is a feature: a failing job announces itself. But a chatty successful job mails you forever, so silence success and let errors speak: redirect routine output, keep error output.
Audit quarterly
Cron jobs accumulate like barnacles. Review the list: delete jobs for dead projects, fix ones that have been mailing errors into the void, and confirm the important ones still run. /go/cron gives admins the fleet view.
More in the Cron Jobs feature guide, the docs and at goadmio.com.
