Last active
March 22, 2018 17:35
-
-
Save ncdc/bae3836c31abeb7036f69795f0350459 to your computer and use it in GitHub Desktop.
Ark backup target UX brainstorming
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a backup target | |
$ ark backuptarget create s3-us-east-1 --provider aws --config region=us-east-1,bucket=foo | |
# Work the default target | |
$ ark backuptarget default get | |
s3-us-east-1 | |
$ ark backuptarget default set s3-us-west-1 | |
# Create volume targets | |
$ ark volumetarget create aws-us-east-1 --provider aws --config region=us-east-1,credentialsFile=/foo | |
# Create backup using default target | |
$ ark backup create b1 --include-namespaces nginx | |
Backup b1 requested. | |
# Create backup to a specific target | |
$ ark backup create b1 --include-namespaces nginx --target s3-us-east-1 | |
Backup b1 requested. | |
# Create a replication policy for all backups | |
$ ark replicationpolicy create my-policy \ | |
--backup-targets s3-us-east-1,s3-us-west-1 \ | |
--volume-targets aws-us-east-1,aws-us-east-2 \ | |
--all-backups | |
# Create a replication policy for specific backups | |
$ ark replicationpolicy create my-policy \ | |
--backup-targets s3-us-east-1,s3-us-west-1 \ | |
--volume-targets aws-us-east-1,aws-us-east-2,aws-us-west-1 \ | |
--label-selector backup-class=critical | |
# View backup info | |
$ ark backup get b1 | |
NAME STATUS CREATED EXPIRES SELECTOR BACKUP REPLICAS PV REPLICAS | |
b1 Completed 2018-03-22 06:09:57 -0700 PDT 29d <none> 2/2 3/3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment