Skip to content

Notes Backup with Google Drive

Eliran Wong edited this page Mar 7, 2022 · 22 revisions

Introduction

This plugin allows you to backup bible notes to your Google Drive account or restores bible notes from Google Drive.

Bible book, chapter and verse notes are stored in file "note.sqlite", located in folder "marvelData".

The plugins describing here backup the file "note.qilite" to user's Google Drive account, where it can be used for restoration at any time.

Obviously, this feature requires internet connection.

Enable Plugins

Open "Set Config Flags" window from menu.

Check the item "enablePlugins"

Use Plugins

You can access these plugins through the main menu.

It is only visible after you turn on "enablePlugsins" mentioned above.

Automate Restoration on Startup

In case you want to automate notes restoration from google drive each time UBA starts up,

you can simply copy (copy, not move) the file "UniqueBible/plugins/menu/Notes from Google Drive.py" to "UniqueBible/plugins/startup/".

Automate Backup on Shutdown

In case you want to automate notes backup to google drive each time UBA shuts down,

you can simply copy (copy, not move) the file "UniqueBible/plugins/menu/Notes to Google Drive.py" to "UniqueBible/plugins/shutdown/".

Remarks on Note Restoration

The file "note.sqlite" saved in your Google Drive account is downloaded back to UBA.

To offer an extra backup, UBA saves a copy of an the current notes as "note.sqlite_backup" before it is replaced by the google drive file being downloaded. In case the restored notes are not what you want, you can go back to an earlier version simply by deleting the restored notes and renaming "note.sqlite_backup" back to "note.sqlite".

You need to setup

Before you can use this plugin, you need to set up once.

Enable Google Drive API

Go to: https://developers.google.com/drive/api/v3/quickstart/python

Select "Enable the Drive API"

Select "Next"

Select "Desktop app" and "Create"

Select "Download Client Configurations

credentials.json

Locate the file "credentials.json" from your Download folder and move it to UniqueBible root directory.

The 1st Run

Choose your google account

Select "Advanced"

(Do not worry! Our app do NOT collect any of your information.)

(Remarks: You credentials is stored locally on your device. It is used only for communicating with google-drive.)

(UBA does NOT collect your data.)

Select "Go to ..."

Select "Allow"

Select "Allow"

Clone this wiki locally