How to Backup Videos to Google Drive
Google Drive is an inexpensive Cloud Storage solution. Now you can have Shinobi automatically backup footage right onto Google Drive.
Date Added : Mon Jun 15 2020 15:57:20 GMT+0000 (Coordinated Universal Time)
Last Updated : Tue Jul 09 2024 23:39:38 GMT+0000 (Coordinated Universal Time)
This is a lengthy process compared to other Cloud Backup methods. Please read each step carefully.
Enable the Drive API in your Google Account
Steps mentioned are sourced from https://developers.google.com/drive/api/v3/enable-drive-api
- Go to the Google API Console.
- Select a project.
- In the sidebar on the left, expand APIs & auth and select APIs.
- In the displayed list of available APIs, click the Drive API link and click Enable API.
Get the OAuth Credentials
- Go to the Google API Console.
- Select a project. The one you enabled Drive API for.
- Click the menu in the top left and navigate to API & Services then Credentials
- Select the name for the desired credential set in the OAuth 2.0 Client IDs table.
- At the top of the page click Download JSON.
- You will now have a file named credentials.json.
If you do not have one please follow along in the next section.
Creating the OAuth 2.0 Client ID
Continuing from the previous section at Step 3.
- At the top of the page click Create Credentials and select OAuth Client ID.
- Set Application Type as Desktop App.
- Set the Name to help you distinguish it in your Credentials tables.
- Close the success dialog and follow the steps from the previous section in this article, "Get the OAuth Credentials".
Finally, Enabling Google Drive Backup in Shinobi
- Login to your Shinobi account, the one with your cameras.
- Click your name in the top, the main menu, and select Settings.
- Scroll down to Google Drive.
- Paste the contents of your credentials.json file in the OAuth Credentials field.
- Save the settings to enable the OAuth Gateway. The Settings window will close.
- Re-open the Settings and got back down to Google Drive then click Get Code.
-
A prompt will appear. Choose the account that will have files uploaded to its Google Drive.
- you may need to disable popup blockers to see the prompt.
- Once authenticated you will be redirected. This page may appear as a broken page on localhost, this is ok! You are provided a Code in the URL bar of this page. You can paste this in the OAuth Code field.
-
Press Save to enable Google Drive.
- Upon re-opening your settings you will see that OAuth Code field is now blank or says "Authorized. Token Set." after a page refresh. This is fine, it means that your Code has been accepted and a Token has been generated.
Now all videos completed recording will automatically upload to your Google Drive.
Enjoy!