This is an interesting solution, but this is a VCF environment. The language in the KB says, "The script fails if any other subfolders are present in the backup directory other than cluster-node-backups and inventory-summary."
The backup targets are managed by SDDC so there are extra folders present by default which will make the script fail if I'm reading that right. (See attached image).
-------------------------------------------
Original Message:
Sent: Dec 08, 2025 10:22 AM
From: Shen88
Subject: Using CRON to purge old NSX backups\SFTP backup server filling up
@HMyersJHA,
Please take a look at below.
https://techdocs.broadcom.com/us/en/vmware-cis/nsx/nsxt-dc/3-2/administration-guide/backing-up-and-restoring-the-nsx-manager/removing-old-backups.html#:~:text=Last%20Updated%20September%2029%2C%202025,time%20the%20script%20is%20run.
------------------------------
If you find this answer right, please 'Recommend' this post.
Thank you!
Regards,
Shen
Original Message:
Sent: Dec 08, 2025 09:55 AM
From: HMyersJHA
Subject: Using CRON to purge old NSX backups\SFTP backup server filling up
Periodically, our SFTP backup target fills the backups partition causing all SDDC, vCenter, SSPI and NSX backups to fail until we prune old NSX backups to make space. NSX is the only product that doesn't have pruning built in, so it fills the backup server to capacity until someone intervenes. Is anyone using CRON to purge old NSX backups? If so, what does the job look like? Is there a better solution?
-------------------------------------------