render-systemd to generate the systemd units and install them on the host.
cron
Cron specs define scheduled jobs for a sitectl context. Each spec records which context to run on, what schedule to use, which job components to run, and where to store output. Use render-systemd to turn a spec into systemd units you can install on the host.add
Create or update a cron spec with the given name. A cron spec stores the schedule, target context, job components, output directory, and retention policy for a scheduled job. Once saved, use render-systemd to generate the systemd units and install them on the host.| Flag | Default | Description |
|---|---|---|
--component | [] | Job component to include. Repeat to select multiple. |
--cron-context | sitectl context this cron spec will execute against. | |
--docker-prune | false | Run docker system prune -af after a successful run. |
--output-dir | Host directory where dated output artifacts are stored. | |
--preserve-first-of-month | true | Keep artifacts created on day 01 of the month when pruning. |
--retention-days | 14 | Delete non-monthly artifacts older than this many days. |
--schedule | systemd OnCalendar expression, e.g. daily or --* 03:00:00. |
list
List configured cron specsdelete
Delete a cron specrun
Run a configured cron spec nowinstalled
List installed sitectl systemd cron units on a context hostcomponents
List available cron components for the active or selected contextrender-systemd
Print the systemd .service and .timer unit files for the named cron spec, along with step-by-step instructions for installing them on the target host. For remote contexts, copy the units to the host manually and install them there.Typical workflow
- Check what job components are available for the context:
- Create a spec:
- Preview the systemd units and install them:

