Skip to content

Commit

Permalink
Add schedule command info to quickstart
Browse files Browse the repository at this point in the history
Signed-off-by: Nolan Brubaker <[email protected]>
Co-authord-by: Giancarlo Rubio <[email protected]>
Signed-off-by: Nolan Brubaker <[email protected]>
  • Loading branch information
Nolan Brubaker committed Jul 26, 2018
1 parent 39c0300 commit fe9d61a
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
```
Expand Down Expand Up @@ -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
[26]: https://github.com/heptio/ark/releases
[30]: https://godoc.org/github.com/robfig/cron

0 comments on commit fe9d61a

Please sign in to comment.