1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

First version of auto-upload backup to Google Cloud.

This commit is contained in:
Ylian Saint-Hilaire 2020-08-21 01:57:03 -07:00
parent 335d05a8ec
commit 9d1b0f6134
71 changed files with 1975 additions and 1840 deletions

View file

@ -1462,6 +1462,10 @@ function CreateMeshCentralServer(config, args) {
}, config.settings.watchdog.interval);
obj.debug('main', "Started watchdog timer.");
}
// Test
obj.db.performCloudBackup("C:\\Users\\Default.DESKTOP-9CGK2DI\\Desktop\\AmtWebApp\\meshcentral-backups\\meshcentral-autobackup-2020-08-20-20-11.zip");
});
});
};
@ -2705,7 +2709,10 @@ function mainStart() {
if (nodeVersion < 8) { modules.push('util.promisify'); }
// Setup encrypted zip support if needed
if (config.settings.autobackup && config.settings.autobackup.zippassword) { modules.push('archiver-zip-encrypted'); }
if (config.settings.autobackup && config.settings.autobackup.zippassword) {
modules.push('archiver-zip-encrypted');
if (config.settings.autobackup.googledrive == true) { if (nodeVersion >= 8) { modules.push('googleapis'); } else { config.settings.autobackup.googledrive = false; } } // Enable Google Drive Support
}
// Setup common password blocking
if (wildleek == true) { modules.push('wildleek@2.0.0'); }