canasta schedule
canasta > schedule
canasta schedule
Schedule recurring maintenance commands
Synopsis
Run a command inside one of an instance's containers on a recurring schedule: cache cleanup, a maintenance script, third-party housekeeping. Scheduling is the same on both orchestrators: each schedule is a crontab entry on the host where the instance runs (the instance's host for Compose, the control-plane node for Kubernetes) that runs canasta schedule run on the schedule. That host needs the cron package and a runnable canasta, as scheduled backups do.
Schedules are kept in config/schedules.yml, which backups capture and gitops distributes; a restore or a canasta gitops pull re-installs the crontab entries from it. Each run's output is appended to schedule-<name>.log in the instance directory, and canasta schedule list shows the result of the last run.
Subcommands
This command requires a subcommand:
- add — Add a recurring maintenance command
- list — List an instance's schedules
- remove — Remove a recurring maintenance command
- run — Run a schedule's command now
Global flags
| Flag | Shorthand | Description | Default | Required | Orchestrator |
|---|---|---|---|---|---|
--help |
-h |
Show help message and exit | Both | ||
--verbose |
-v |
Enable verbose output | Both |