Skip to content

Backup with Google Drive

Oliver Tseng edited this page Jul 24, 2022 · 4 revisions

Introduction

This plugin allows you to backup and restore files in UBA to your Google Drive account.

Files to be backed up are in the plugins/menu/GoogleDriveUtility/files_to_backup.txt file.

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/Google Drive Backup.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/Google Drive Backup.py" to "UniqueBible/plugins/shutdown/".

Remarks on File Restoration

To offer an extra backup, UBA saves a copy of an the current file as with the _backup suffix before it is replaced by the google drive file being downloaded.

How to setup the Google Drive API

See Setting up Google Drive API

Clone this wiki locally