@ -50,25 +50,24 @@ feature. Every backup to **Google Drive** will be encrypted with the same
algorithm used in the manual backup so it's quite easy to restore to a new
algorithm used in the manual backup so it's quite easy to restore to a new
installed machine.
installed machine.
After set-up, the backup feature will do first store of the OPNsense
After set-up, the backup feature will run a first backup of the OPNsense
config file and subsequently a daily new backup of changed config
configuration file. Then, if the configuration is subsequently changed, a new backup will be run. Only one backup is run per day after configuration changes.
content.
----------------------
----------------------
Setup Google API usage
Setup Google API usage
----------------------
----------------------
The instructions below apply to a standard Google account. Some of the settings appear slightly differently for G Suite accounts.
The instructions below apply to a standard Google account. Some of the settings appear slightly differently for Google Workspace (formerly G Suite) accounts.
A standard Google account can be created at https://accounts.google.com.
A standard Google account can be created `here <https://accounts.google.com/signup?hl=en>`__.
1. Set up a Google Project
1. Set up a Google Project
==========================
==========================
First you need to set up a project in the Google developer console:
First you need to set up a project in the Google developer console.
- Go to https://console.developers.google.com/project and log into your Google account.
- Go to the `developer console <https://console.developers.google.com/project>`__ and log into your Google account.
- On the "Manage resources" page that appears, click on the **+ CREATE PROJECT** button:
- On the "Manage resources" page that appears, click on the **+ CREATE PROJECT** button:
..image:: ./images/google_manage_resources.png
..image:: ./images/google_manage_resources.png
@ -142,7 +141,7 @@ The next thing is to create a folder in Google Drive and share it to the service
..image:: ./images/google_drive_send.png
..image:: ./images/google_drive_send.png
- Now double-click on the folder to open it and take a note of the folder ID from the url - you will need it later. The folder ID is the last piece of the URL after ``/folders/``:
- Now double-click on the folder to open it and take a note of the folder ID from the URL - you will need it later. The folder ID is the last piece of the URL after ``/folders/``:
..image:: ./images/google_drive_folder_id.png
..image:: ./images/google_drive_folder_id.png
@ -150,7 +149,7 @@ The next thing is to create a folder in Google Drive and share it to the service
3. Set up the account in OPNsense
3. Set up the account in OPNsense
=================================
=================================
Now we can put it all together in OPNsense.
Now put it all together in OPNsense.
- Log into your OPNsense firewall and go to the backup feature. It is located at :menuselection:`System --> Configuration --> Backups`.
- Log into your OPNsense firewall and go to the backup feature. It is located at :menuselection:`System --> Configuration --> Backups`.
- Scroll down to the Google Drive section and and enter the following values:
- Scroll down to the Google Drive section and and enter the following values: