Google Drive Backup

Started by rcrules, March 04, 2019, 09:29:17 PM

Previous topic - Next topic
@rcrules: Thank you a lot for posting the detailled tutorial. I followed it step for step and was able to succesfully set up an automated backup for all my OPNsenses.

Thank you for putting this together. This guide helped me set up Google Drive backup.

Hey, thank you very much for the information! I had the same problem and didnt know what to do! You did an amazing job!

One clarification I believe for Page 9. The password that should be entered in the OPNsense backups configuration page should be a strong password for encryption of the backups, not the default "notasecret" password that applies to the p12 key. Given that the p12 key password is a standard password used by Google for all keys generated, I believe OPNsense itself supplies that password when using the key.

rcrules, would you be able to update the official docs (see link provided above) so that others maybe be able to do this easier in the future?

I have prepared an updated how-to on GitHub and submitted a PR for it. Hopefully that will assist people (assuming it is accepted)

January 20, 2021, 09:38:35 PM #21 Last Edit: June 26, 2021, 07:58:32 AM by Greelan
The updated how-to is now available: https://docs.opnsense.org/manual/how-tos/cloud_backup.html?#setup-google-api-usage

Hello @Greelan,

Cannot thank you enough for your efforts that helped me (a basic newbie) get an extra level backup reassurance.

Kind regards.


Worked perfectly. Thanks very much for the detailed steps with screen shots.

This is a great help. It was desperately needed, than you.
I did follow it and am up and running, just one point. Maybe things changed since the guide was written but I was stuck in :
"3. Set up the account in OPNsense"
Email Address - enter the email address of the service account you created

It took me some time to realize it would only work if I used the user ID instead of the email address in this field in OPN. If I used the email I would get failure when finishing and pushing the "Setup/Test Google Drive" button.

Can you explain your comment further?

Of course.
According to this helpful post that is now committed to docs, when setting up the directory in OPN, we enter the email address. I got an error every time I did and pressed Test.
I changed from email i.e. user@opnsense-backups-888-iam-gserviceaccount.com as a value in the email field to it's Unique ID value in the developer console. Only then it would be accepted.



It is perfectly possible there's something else that I needed to do to accept the email as per the instructions but I have gone over the steps multiple times.

Thanks for clarifying. That's interesting. My backup is still happily working with the service account email address. That's the first I have heard of the email address causing an issue

Yes I did find it odd. It probably works as-written and is something on my side. I thought it would be good to share in case something changed google-side for new setups or a setting somewhere causes this and is not quite obvious.