Notes Backup with Google Drive - eliranwong/UniqueBible GitHub Wiki

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.sqlite" 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 "enablePlugins" 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".

How to setup the Google Drive API

See Setting up Google Drive API