canasta backup schedule set
From Canasta Wiki
canasta > backup > backup schedule > set
canasta backup schedule set
Set a recurring backup schedule
Synopsis
Schedule recurring backups using a cron expression. This adds
or updates a crontab entry that runs canasta backup create
on the specified schedule. Backup output is logged to
backup.log in the instance directory.
Use --purge-older-than to automatically purge old backups
after each scheduled backup.
canasta backup schedule set [flags]
Examples
canasta backup schedule set '0 2 * * *'
Flags
| Flag | Shorthand | Description | Default | Required | Orchestrator |
|---|---|---|---|---|---|
--cron-expression |
Cron expression for the schedule | ✓ | Both | ||
--id |
-i |
Canasta instance ID | * | Both | |
--purge-older-than |
Purge backups older than this on each scheduled run | Both |
* Defaults to the Canasta instance matching the current directory, if any.
Global Flags
| Flag | Shorthand | Description | Default | Required | Orchestrator |
|---|---|---|---|---|---|
--help |
-h |
Show help message and exit | Both | ||
--verbose |
-v |
Enable verbose output | Both |