Added ability to backup remote DB

Added ability to restore DB
This commit is contained in:
Isaac Abadi
2022-04-21 19:29:50 -04:00
parent 091f81bb38
commit a288163644
19 changed files with 420 additions and 29 deletions

View File

@@ -7,8 +7,8 @@ const scheduler = require('node-schedule');
const TASKS = {
backup_local_db: {
run: utils.backupLocalDB,
title: 'Backup Local DB',
run: db_api.backupDB,
title: 'Backup DB',
job: null
},
missing_files_check: {
@@ -81,7 +81,8 @@ const setupTasks = async () => {
confirming: false,
data: null,
error: null,
schedule: null
schedule: null,
options: {}
});
} else {
// reset task if necessary