Home > Manage CAP Gateways > Install a CAP Gateway
Export to PDFAfter creating a CAP Gateway in Cloud Backup for IaaS + PaaS, you need to install the gateway in your cloud environment. Before installation, note the following:
Follow the steps below to install the CAP Gateway:
Select a gateway and click Get package.
In the Get package panel, follow the steps below:
In the Get package step, copy the SAS URL for package to your clipboard.
Locate the Google VM instance/Azure VM/Azure Storage VM where the gateway will be installed, then execute the following wget command to download the installation package to your instance/VM. Replace ‘CAPGateway_SerialNumber.tar.gz’ in the command with the actual downloaded package name and replace ‘sas url’ with the SAS URL copied in the Get package step.
wget -O CAPGateway.tar.gz "{package sas url}"
*Note: The ‘O’ in the command is the uppercase letter 'O', not the number zero '0'.
In the SAS URL for configuration file/Signed URL for configuration file step, copy the passphrase and URL for the configuration file to your clipboard.
To protect Microsoft Azure service, copy the SAS URL and passphrase to your clipboard.

To protect Google Cloud service, copy the Signed URL and passphrase to your clipboard.

After downloading, execute the following command line to extract the package contents to the ./cap directory.
sudo tar -xzf CAPGateway.tar.gz -C ./cap
*Note: Before running the command, ensure the ./cap directory exists. You can verify its existence with the following command:
mkdir -p./cap
Execute the following command line to grant permissions for the install sh.script included in the extracted package:
sudo chmod +x ./cap/install.sh
Execute the following command line to run the install.sh script. Replace ‘passphrase’ and ‘url for configuration file’ in the command with actual values copied from the Get package panel.
sudo ./cap/install.sh -p "passphrase" -s "url for configuration file"
To protect Microsoft Azure service, replace ‘url for configuration file’ with the SAS URL for configuration file copied from the Get package panel > SAS URL for configuration file step.
To protect Google Cloud service, replace ‘url for configuration file’ with the Signed URL for configuration file copied from the Get package panel > Signed URL for configuration file step.
If you need to update your CAP Gateway configurations, such as the passphrase and url for configuration file, you can execute the following command. Replace ‘passphrase’ and ‘url for configuration file’ in the command with actual values copied from the Get package panel.
sudo ./cap/install.sh -p "passphrase" -s "SAS url" -c
After downloading the installation package, you can run the following command to verify its checksum. Compare the result with the hash value displayed in the Get package panel to ensure the checksum is correct. Replace ‘CAPGateway_SerialNumber.tar.gz’ in the command with the actual downloaded package name
sudo sha256sum ./CAPGateway_SerialNumber.tar.gz
If you want to uninstall the CAP Gateway, locate the unzipped package folder, and execute the following command lines:
sudo chmod +x ./cap/uninstall.sh
sudo ./cap/uninstall.sh