cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
14040
Views
53
Helpful
17
Replies

DNA Backup houskeeping

KristofB
Level 1
Level 1

Hi,

Our DNA backups are scheduled daily.

Analytics (NFS based) backup seem to be incremental, but automation data (SFTP based) backup are not. Those backups add 15GB to our server every day… How can I keep control of the used space?   

 

I could create a script to delete backups on the server, but what do I have to delete? Backup seem to be divided over 8 folders? And would DNA sync to that removal? 

Or can I script something from DNA to delete old backups? (via API's?)  

 

Thank you!

 

Kristof

17 Replies 17

On the remote backup server.

 

Sylvain.

andriio
Level 1
Level 1

Is there something new with Subject? we hit similar issue & would like to understand how to automate backup purging.
problem is our repository is a bit security hardened & there is no opportunity even to install python of needed version.
in such a hardened envs operating team would expect DNAC's API to suggest needed calls.

The simplest way to handle it in that situation is simply to delete folders based on age in a crontab on your repository server. This will delete any backup folders that are older than 7 days for example:

0 0 * * * find /{your directory}/* -mtime +7 -exec rm {} \;

 

Happy to help! Please mark as helpful/solution if applicable.
Get in touch: https://torbjorn.dev