The Backup feature in the developer console for creating backups is great. I would however like the possibility to automate this. Is there a way to do so from the cf command line app?
Thanks
The Backup feature in the developer console for creating backups is great. I would however like the possibility to automate this. Is there a way to do so from the cf command line app?
Thanks
We did this by developing a small Node.js application which is running on the cloud in the same space and which backups our maria and mongo db every night automatically.
EDIT: You can download the code from here: https://github.com/theonlyandone/cf-backup-app
Despite the answer from Matthias Winzeler saying it's not possible, in fact it's totally possible to automate MariaDB backups through the command line.
I developed a plugin for the CF CLI: https://github.com/gsmachado/cf-mariadb-backup-plugin
In future I could extend such plugin to backup any kind of service that is supported by the Cloud Foundry Provider's API (in this case, Swisscom AppCloud API).
It's not possible from the
cf cli
, but there's an API endpoint for triggering backups.See for more Info Service Backup and Restore in docs.developer.swisscom.com
Fresh from the press: Swisscom Application Cloud cf CLI Plugin can also automate backup and restore.
from 0.1.0 release notes