OPNsense Forum

English Forums => General Discussion => Topic started by: 9axqe on May 20, 2024, 05:45:46 PM

Title: Automatic encrypted UniFi Controller offsite backups
Post by: 9axqe on May 20, 2024, 05:45:46 PM
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?
Title: Re: Automatic encrypted UniFi Controller offsite backups
Post by: cookiemonster on May 20, 2024, 05:53:23 PM
openssl ?
Title: Re: Automatic encrypted UniFi Controller offsite backups
Post by: 9axqe on May 20, 2024, 06:08:04 PM
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.
Title: Re: Automatic encrypted UniFi Controller offsite backups
Post by: 9axqe on May 20, 2024, 06:15:02 PM
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.