Skip to content

Latest commit

 

History

History
81 lines (57 loc) · 1.47 KB

README.md

File metadata and controls

81 lines (57 loc) · 1.47 KB

Velero

Velero installation

  • Create velero namespace:
oc create new-project velero
  • Add velero label to your volumesnapshotclass:
oc edit volumesnapshotclass/csi-vsphere-vsc

labels:
  velero.io/csi-volumesnapshot-class: "true"
  • Complete values-paas.yaml
  • Install velero helm chart:
helm install velero -f values-paas.yaml .

Velero client installation

Folow below instructions to install velero client:

https://github.com/vmware-tanzu/velero/releases/download/v1.10.2/velero-v1.10.2-linux-amd64.tar.gz
tar xzf velero-v1.10.2-linux-amd64.tar.gz
mv velero-v1.10.2-linux-amd64/velero /usr/local/bin/

Backup creation using velero client

velero  backup create $BACKUP_NAME

Some options:

  • --include-namespaces
  • --exclude-namespaces
  • --snapshot-volumes=true

Note: default value for -include-namespaces is *

Restoring backup using velero client

velero restore create --from-backup $BACKUP_NAME

Some options:

  • --restore-volumes=true

Schedule backup using velero cleint

velero schedule create $SCHEDULE_BACKUP_NAME --schedule="0 0 * * *"

Some options:

  • --include-namespaces
  • --exclude-namespaces
  • --snapshot-volumes=true

Note: default value for -include-namespaces is *

Some useful velero client commands

velero backup get
velero backup describe $BACKUP_NAME
velero backup logs $BACKUP_NAME

velero restore get
velero restore describe $RESTORE_NAME

velero schedule get