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. You can backup multiple files like:

marvelData/note.sqlite
marvelData/journal.sqlite
marvelData/highlights.sqlite

Enable Plugins

Open "Set Config Flags" window from menu.

Check the item "enablePlugins"

Use Plugins

To backup files from UBA to Google drive, run the plugin "Google Drive Backup".

To restore files to UBA from Google drive, run the plugin "Google Drive Restore".

Automate Restoration on Startup

In case you want to automate file restoration from google drive each time UBA starts up, you can simply copy (copy, not move) the file "UniqueBible/plugins/menu/Google Drive Restore.py" to "UniqueBible/plugins/startup/".

Automate Backup on Shutdown

In case you want to automate file 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.

Google Drive folder

All backup files are located in the "UBA-backups" folder.

How to setup the Google Drive API

See Setting up Google Drive API

Clone this wiki locally