Forum Discussion
XC Backup via API
Hi Floks,
I would like to automate the backup (and restore if needed!) of my XC configurations via the API.
What is the best way, can I save all the configurations at once, should I save the namespaces completely, one by one or should I save each object of a namespace (pool, healthcheck, HTTP LB, App FW...)? Or maybe it's doable per service? In short, what is the smartest way to make a complete backup of the confs?
Thanks.
Hi AlsDevC, here is a bash script that uses the XC API to backup the configuration of your tenant, specific namespace, or object.
https://github.com/f5devcentral/f5-professional-services/tree/main/tools/f5-xc-backup
Regards,
3 Replies
- Miguel_Alvarado
Employee
Hi AlsDevC, here is a bash script that uses the XC API to backup the configuration of your tenant, specific namespace, or object.
https://github.com/f5devcentral/f5-professional-services/tree/main/tools/f5-xc-backup
Regards,- AlsDevC
Altocumulus
Hi Miguel,
Many thanks. Maybe i'll adapt it to restore automaticaly a piece of configuration (LB or pool for exemple), certainly with ansible. If something works correctly, i'll share it.
BR.
Did not know about this script. Nice!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com