Backup API Method

Started by ccesario, September 17, 2018, 03:10:20 PM

Previous topic - Next topic
Hi folks, is there anyway to do backup (config.xml) using API functions?!

Best regards
Carlos

currently no, but you can use a backup service like nextcloud to do automatic backups.

Specifically, you mean pull a config.xml from a running system via API call?


Cheers,
Franco

Quote from: franco on September 17, 2018, 05:46:07 PM
Specifically, you mean pull a config.xml from a running system via API call?


Cheers,
Franco

Yes @Franco,

The ideia is pull config.xml using API or HTTP method. I need put the backups files (config.xml) in my repository.

Best regards

Carlos

September 18, 2018, 08:25:18 AM #4 Last Edit: September 18, 2018, 08:28:22 AM by namezero111111
We are using the following to push config.xml + some other stuff via FTPS.

You can modify the upload logic to push elsewhere instead, like via ssh or git or something.

EDIT: When we migrated to opnsense, we changed from pull to push because we felt while more inconvenient it was best the firewalls initiate the backup rather than allowing external access that would be able to pull config.xml and such.

I've made a ticket we'll discuss internally.

https://github.com/opnsense/core/issues/2731


Cheers,
Franco