Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
18.7 Legacy Series
»
Backup API Method
« previous
next »
Print
Pages: [
1
]
Author
Topic: Backup API Method (Read 4805 times)
ccesario
Jr. Member
Posts: 83
Karma: 1
Backup API Method
«
on:
September 17, 2018, 03:10:20 pm »
Hi folks, is there anyway to do backup (config.xml) using API functions?!
Best regards
Carlos
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Backup API Method
«
Reply #1 on:
September 17, 2018, 05:42:25 pm »
currently no, but you can use a backup service like nextcloud to do automatic backups.
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Backup API Method
«
Reply #2 on:
September 17, 2018, 05:46:07 pm »
Specifically, you mean pull a config.xml from a running system via API call?
Cheers,
Franco
Logged
ccesario
Jr. Member
Posts: 83
Karma: 1
Re: Backup API Method
«
Reply #3 on:
September 17, 2018, 09:00:57 pm »
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
Logged
namezero111111
Jr. Member
Posts: 94
Karma: 10
Re: Backup API Method
«
Reply #4 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.
«
Last Edit: September 18, 2018, 08:28:22 am by namezero111111
»
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Backup API Method
«
Reply #5 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
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
18.7 Legacy Series
»
Backup API Method