UiPath Documentation
automation-suite
2.2510
true
Automation Suite on Linux installation guide

How to exclude buckets from backup

Exclude specific buckets from Velero backup by setting the EXCLUDE_BUCKETS environment variable on the backup-hook-service deployment.

To exclude specific buckets from backup, take the following steps:

  1. Edit the backup-hook-service deployment:

    kubectl -n uipath-infra edit deployment backup-hook-service
    kubectl -n uipath-infra edit deployment backup-hook-service
    
  2. Add the EXCLUDE_BUCKETS environment variable to the backup-hook-service container's env section:

    - name: EXCLUDE_BUCKETS
      value: "bucket-name-1,bucket-name-2"
    - name: EXCLUDE_BUCKETS
      value: "bucket-name-1,bucket-name-2"
    
  3. Wait for the new pod to roll out:

    kubectl -n uipath-infra rollout status deployment/backup-hook-service
    kubectl -n uipath-infra rollout status deployment/backup-hook-service
    
  4. Verify the environment variable on the running pod:

    kubectl -n uipath-infra exec deploy/backup-hook-service -c backup-hook-service -- env | grep EXCLUDE
    kubectl -n uipath-infra exec deploy/backup-hook-service -c backup-hook-service -- env | grep EXCLUDE
    

    The expected output is as follows:

    EXCLUDE_BUCKETS=bucket-name-1,bucket-name-2
    EXCLUDE_BUCKETS=bucket-name-1,bucket-name-2
    
  5. Confirm that the excluded buckets are skipped on the next Velero backup:

    kubectl -n uipath-infra logs -f deploy/backup-hook-service -c backup-hook-service | grep -i 'skipping'
    kubectl -n uipath-infra logs -f deploy/backup-hook-service -c backup-hook-service | grep -i 'skipping'
    

Result

The specified buckets are skipped during future Velero backup runs. The backup-hook-service logs confirm each skipped bucket with output similar to the following:

[WARN] ... Skipping backup for bucket: 'bucket-name-1' Found in exclude list
[WARN] ... Skipping backup for bucket: 'bucket-name-1' Found in exclude list
  • Result

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated