mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-06 21:36:30 +00:00
Add more examples to schedule create (#1473)
Partially addresses #1464 Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
This commit is contained in:
committed by
KubeKween
parent
079444410f
commit
b3c6e5e483
@@ -47,8 +47,19 @@ func NewCreateCommand(f client.Factory, use string) *cobra.Command {
|
||||
| 4 | Month | 1-12,* |
|
||||
| 5 | Day of Week | 0-7,* |`,
|
||||
|
||||
Example: `velero create schedule NAME --schedule="0 */6 * * *"`,
|
||||
Args: cobra.ExactArgs(1),
|
||||
Example: ` # Create a backup every 6 hours
|
||||
velero create schedule NAME --schedule="0 */6 * * *"
|
||||
|
||||
# Create a backup every 6 hours with the @every notation
|
||||
velero create schedule NAME --schedule="@every 6h"
|
||||
|
||||
# Create a daily backup of the web namespace
|
||||
velero create schedule NAME --schedule="@every 1d" --included-namespaces web
|
||||
|
||||
# Create a weekly backup, each living for 90 days (2160 hours)
|
||||
velero create schedule NAME --schedules="@every 7d" --ttl 2160h0m0s
|
||||
`,
|
||||
Args: cobra.ExactArgs(1),
|
||||
Run: func(c *cobra.Command, args []string) {
|
||||
cmd.CheckError(o.Complete(args, f))
|
||||
cmd.CheckError(o.Validate(c, args, f))
|
||||
|
||||
Reference in New Issue
Block a user