OPNsense Forum

Archive => 19.1 Legacy Series => Topic started by: marcri on June 29, 2019, 07:47:22 pm

Title: backup (again)
Post by: marcri on June 29, 2019, 07:47:22 pm
Hi,

yes I know, the only thing I need to backup is the config.xml.  >:(

But that is not always true. I need custom files from squid, sensei, suricata, unbound and all the stuff like check_mk, statistics, cronjobs, installed pkgs etc etc...

So again the question: what is the best way to backup the complete system? I'm a linux user, so I used rsync to a remote system to keep my files. But is it possible to restore a complete system with rsync like under linux? Or should i just dump with dd???
Title: Re: backup (again)
Post by: franco on June 30, 2019, 08:59:07 am
You can build a plugin with your custom files, it will create a "package" you can use on other installations as well or for simple restore purposes.

https://docs.opnsense.org/development/examples/helloworld.html

You only need to package files on the disk, no menu or GUI or anything...

https://github.com/opnsense/plugins/tree/master/devel/helloworld


Cheers,
Franco