10-28-2023 02:39 AM
Has anyone found a simple way to automate the deletion of old DNAC Backups?
Our DNAC is set to backup to a Linux server each night, however, unless we remember to regularly go to the DNAC backup page and delete old backups the Linux server eventually runs out of disk space, and then the DNAC backups fail! As the DNAC Backup process doesn't send success/failure notifications the failures can go unnoticed for prolonged periods.
It would be fairly simple to create a LINUX CRON job to delete all the files older than (for example) 14 days, but I'm not sure if this would then cause a problem with the DNAC GUI which may not reflect they were deleted??
I'd be interested to see how others have solved the problem...
10-09-2024 08:38 AM
Nobody will log in daily to do backup housekeeping. And the script from the Cisco guys uses the API, which means the backup is deleted via DNA Center procedures and not "offline" on the backup server.
10-09-2024 08:44 AM
It's supported in the virtual appliance on ESXi (current only platform that supports the VA ova) on 2.3.7.6 yes. On the on-prem appliance, no it is not a feature yet as Tomas mentioned. Once we move the code on the on-prem to the same code that runs on the OVA VA, then the feature will exist on both. But that shouldn't happen till at least mid next year.
@a.janssen it doesn't matter how the script achieves the backup deletion/retention, it is still not supported by TAC.
10-09-2024 08:30 PM
The fact that there is no function built in yet and likely won't be until next year is laughable for something that stores so much info in its backups. You could easily be backing up 500Gb a day depending on your network and backup policy.
If TAC wanted to argue that automating the provided API for backup deletion voids support, then I would argue you need to remove the API as that's a load of BS.
11-05-2024 05:51 AM
Hi everyone, is there any news for on-prem version to support automatic backup retention?
Thank you.
RegardS
11-06-2024 05:47 AM
The story is still the same as I posted above previously. On-prem will not support any backup retention until it moves to the same platform code that the ESXi VA supports. This is slated for mid next year (2025).
11-06-2024 05:50 AM
Would running the cron job on the red hat linux server that clears files older than 21 days (weekly backup) in the backup folder be supported?
Or does it need to be manually deleted from DNAC interface?
Thanks
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide