Even though Tanzu Mission Control will manage your data protection amd lifecycle velero on the cluster, at times it may be useful to have the velero cli.
Download and install the Velero cli from TKG 1.2.1 at https://www.vmware.com/go/get-tkg.
Follow the Tanzu Mission Control docs to create a data protection cloud provider account.
Note: Do this step regardless if you are deploying TKG to vSphere or AWS.
The scripts to prepare the YAML to deploy velero depend on a parameters to be set. Ensure the following are set in params.yaml
based upon your environment:
tmc.data-protection-backup-location-name: my-tmc-data-protection-account-name
Orchestrate commands for the tmc
cli to enable data protection on the cluster and then setup a daily backup.
./scripts/dataprotection.sh $(yq r $PARAMS_YAML shared-services-cluster.name)
Ensure schedule is created and the first backup is starting
velero schedule get
velero backup get | grep daily