The UniFi Controller backups are located here: /usr/local/share/java/unifi/data/backup/autobackup/
but I think this question applies to any file on opnsense, it's not really specific to UniFi controller.
I'm effectively looking for something able to encrypt a file on opnsense and upload it to a cloud service, google drive for example.
Does anyone have a recommendation?
openssl ?
thanks, but a little more details would be good – I cannot find any documentation stating that openssh can natively upload to google drive for example.
I can write a script that encrypts the files using openssl, then uploads them using gdrive for example, and run this script using cron – but that's a lot of work (for me).
My question was asking if there isn't already a solution to this out there that I haven't found yet.
Well, I think I have my first viable idea.
I found this:
https://lazyadmin.nl/home-network/backup-unifi-controller-to-cloud/
but I didn't like it, because a plugin upgrade will very likely mess this up.
Then I thought "rclone on opnsense maybe?" and tada (https://forum.opnsense.org/index.php?topic=14140.0).
I'll report back if I got this to work.