Steps to backup a TANZU-HUB deployment using BBR (bosh backup and restore tool)
search cancel

Steps to backup a TANZU-HUB deployment using BBR (bosh backup and restore tool)

book

Article ID: 409558

calendar_today

Updated On:

Products

VMware Tanzu Application Service VMware Tanzu Application Platform VMware Tanzu Platform - Hub

Issue/Introduction

You want to backup a TANZU-HUB bosh deployment using BBR tool.  

Resolution

      1. Ssh to jumpbox/opsman vm. This is where your BBR backup command will be ran, choose a directory on this vm to store your back file. For the sake of the examples shown in the following steps, we are using /tmp on opsmanager vm.
      2. Source the desired foundation’s Bosh command-line credentials to your terminal session. (bosh cli)
      3. Run command ‘bosh vms’ in your terminal. 
      4. Find your Tanzu Hub deployment from step #3 in the terminal output. It will present itself as  ‘Deployment 'hub-123abc456def…’ 
      5. Use bbr command-line tool to create a 'backup' of the deployment by using the hub deployment name from step #4: bbr deployment -d <hub-deployment> backup -a ARTIFACT-PATH
        • # Backup Command Example: 
          bbr deployment -d hub-123abc456def backup -a /tmp
      6. Run above command in terminal.
      7. BBR back up created successfully? Terminal output from backup command will show result. If there is a issue/failure here, contact TANZU Support. If successful, a user may consider to move this file in S3 or other cloud backup service.
      8. Same process for bbr: ‘Restore’:  bbr deployment -d <hub-deployment> restore -a ARTIFACT-PATH
        • # Restore Command Example (be sure to append the file name to path): 
          bbr deployment -d hub-123abc456def restore -a /tmp/hub-123abc456def_abc…

 

*NOTE: Do not reset or remove the namespace. You will be unable to restore the data if you reset or remove the namespace.

Additional Information

1.) For more information on the BBR tool:

2.) TANZU-HUB BBR official Broadcom documentation: