NSX script nsx_backup_cleaner script won't clean the NSX directory when configured as backup along with SDDC manager backup location.
search cancel

NSX script nsx_backup_cleaner script won't clean the NSX directory when configured as backup along with SDDC manager backup location.

book

Article ID: 312080

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

If NSX clean up is NSX clean up is failing with  message "Cleanup script works only in folders, that contains subfolders "cluster-node-backups", "ccp-backups" and "inventory-summary"" then the user can work it around using the attached script.

Symptoms:
Script will say - "Cleanup script works only in folders, that contains subfolders "cluster-node-backups", "ccp-backups" and "inventory-summary""

Environment

VMware Cloud Foundation 4.4.x
VMware Cloud Foundation 4.4.1

Cause

NSX script does not clean up if it finds any other directory in the root directory of the backup. Because SDDC manager backup is also there in the same location, the NSX script was failing.

Resolution

VMware is aware of this issue and working to resolve this in a future release.

Workaround:
Use the attached script.

Additional Information

Note : Please follow the link Remove Old Backups to Remove NSX old backup documentation, for further details on execution and the various options.


Attachments

nsx_backup_cleaner.py get_app