OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: Taomyn on October 11, 2021, 04:03:00 pm

Title: How to test Google Drive configuration backups
Post by: Taomyn on October 11, 2021, 04:03:00 pm
What's the best way to test the Google Backup config backups I have been creating for several years are actually fine? It's such a long time since I set it up and also not sure if I have the original key file to decode them after a complete loss of the firewall.
Title: Re: How to test Google Drive configuration backups
Post by: oneplane on October 11, 2021, 04:08:36 pm
Download them from your google drive, import them into a virtual box vm to test them.
Title: Re: How to test Google Drive configuration backups
Post by: Taomyn on October 11, 2021, 04:13:22 pm
Download them from your google drive, import them into a virtual box vm to test them.


Sorry, but that's not exactly convenient, I'm not interested in having to use Virtual Box for a simple file check.
Title: Re: How to test Google Drive configuration backups
Post by: Patrick M. Hausen on October 11, 2021, 04:13:51 pm
https://github.com/punktDe/vagrant-opnsense
Title: Re: How to test Google Drive configuration backups
Post by: abulafia on October 11, 2021, 04:36:32 pm
1. Download config (backup) from Opnsense GUI
2. Download from Google Drive
3. Diff.
4. Be happy.
Title: Re: How to test Google Drive configuration backups
Post by: Taomyn on October 11, 2021, 04:54:34 pm
1. Download config (backup) from Opnsense GUI
2. Download from Google Drive
3. Diff.
4. Be happy.


They are not encrypted the same way, uses different keys, so I need to know how to manually decrypt the file from Google Drive so I can then run a diff as you suggest.
Title: Re: How to test Google Drive configuration backups
Post by: fabian on October 11, 2021, 06:37:15 pm
You need the OpenSSL command installed. I posted it years ago on this forum.
Maybe you can find it.
Title: Re: How to test Google Drive configuration backups
Post by: abulafia on October 11, 2021, 09:00:16 pm
They are not encrypted the same way, uses different keys, so I need to know how to manually decrypt the file from Google Drive so
Apologies - I had naively assumed that the backup to gdrive was made in plain text and protected by the usual GDriveaccess control.

Just checked my own setup and indeed the backups are encrypted. Thankfully I did save the key somewhere. So I'll need to test it as well. *Follows thread*
Title: Re: How to test Google Drive configuration backups
Post by: Taomyn on October 11, 2021, 09:01:32 pm
You need the OpenSSL command installed. I posted it years ago on this forum.
Maybe you can find it.


I believe it's this one? https://forum.opnsense.org/index.php?topic=5060.0

Will test it tomorrow.
Title: Re: How to test Google Drive configuration backups
Post by: Taomyn on October 11, 2021, 09:04:11 pm
Apologies - I had naively assumed that the backup to gdrive was made in plain text and protected by the usual GDriveaccess control.


No worries, hopefully the thread I found thanks to fabian will sort us out.