Velero CLI setup
For Velero related tasks/sample. It's better to setup the Velero CLI. It can perform various task against the Velero server deployed on the cluster.
Download the appropriate release from here https://github.com/vmware-tanzu/velero/releases and then follow the steps:
Note: Below commands are Linux specific
- Open a command line and change directory to the Velero CLI download.
-
To unzip the download file:
tar -xzf velero-<VERSION>-<PLATFORM>.tar.gz cd velero-<VERSION>-<PLATFORM>/
-
To change the permissions and put the Velero CLI in the system path:
chmod +x velero
-
To make the Velero CLI globally available, move the CLI to the system path:
cp velero /usr/local/bin/velero
-
Verify the installation:
velero version
Should see something like:
velero version Client: Version: v1.4.2