CLI:Canasta backup schedule set
From canasta
canasta > 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 installation directory.
Use --purge-older-than to automatically purge old backups after each scheduled backup.
canasta backup schedule set [cron expression] [flags]
Examples
# Schedule daily backups at 2:00 AM canasta backup schedule set -i myinstance "0 2 * * *" # Schedule hourly backups canasta backup schedule set -i myinstance "0 * * * *" # Schedule daily backups and purge anything older than 30 days canasta backup schedule set -i myinstance --purge-older-than 30d "0 2 * * *"
Flags
| Flag | Shorthand | Description | Default | Required |
|---|---|---|---|---|
--help |
-h |
help for set | ||
--purge-older-than |
Purge backups older than this after each scheduled backup (e.g., 30d, 6m) | |||
--id |
-i |
Canasta instance ID | instance associated with current directory | |
--verbose |
-v |
Verbose output |