From fe9d61a9a72d7e7f451b100a9988f85de70b3dc6 Mon Sep 17 00:00:00 2001 From: Nolan Brubaker Date: Wed, 25 Jul 2018 18:59:47 -0400 Subject: [PATCH] Add schedule command info to quickstart Signed-off-by: Nolan Brubaker Co-authord-by: Giancarlo Rubio Signed-off-by: Nolan Brubaker --- docs/quickstart.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/quickstart.md b/docs/quickstart.md index d560bc059..62ab4e86c 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -64,6 +64,20 @@ Make sure that you install somewhere in your PATH. ark backup create nginx-backup --selector 'backup notin (ignore)' ``` +1. (Optional) Create regularly scheduled backups based on a cron expression using the `app=nginx` label selector: + + ``` + ark schedule create nginx-daily --schedule="0 1 * * *" --selector app=nginx + ``` + + Alternatively, you can use some non-standard shorthand cron expressions: + + ``` + ark schedule create nginx-daily --schedule="@daily" --selector app=nginx + ``` + + See the [cron package's documentation][30] for more usage examples. + 1. Simulate a disaster: ``` @@ -146,4 +160,5 @@ kubectl delete -f examples/nginx-app/base.yaml [3]: cloud-common.md [18]: debugging-restores.md -[26]: https://github.com/heptio/ark/releases \ No newline at end of file +[26]: https://github.com/heptio/ark/releases +[30]: https://godoc.org/github.com/robfig/cron