OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: ccesario on September 17, 2018, 03:10:20 pm

Title: Backup API Method
Post by: ccesario on September 17, 2018, 03:10:20 pm
Hi folks, is there anyway to do backup (config.xml) using API functions?!

Best regards
Carlos
Title: Re: Backup API Method
Post by: fabian on September 17, 2018, 05:42:25 pm
currently no, but you can use a backup service like nextcloud to do automatic backups.
Title: Re: Backup API Method
Post by: 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
Title: Re: Backup API Method
Post by: ccesario on September 17, 2018, 09:00:57 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
Title: Re: Backup API Method
Post by: namezero111111 on September 18, 2018, 08:25:18 am
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.
Title: Re: Backup API Method
Post by: franco on September 18, 2018, 11:54:38 am
I've made a ticket we'll discuss internally.

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


Cheers,
Franco