run backuptask as separate process

This commit is contained in:
Girish Ramakrishnan
2018-11-16 11:48:02 -08:00
parent 5c9b6736f0
commit 0b86070fe9
5 changed files with 80 additions and 18 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ function compareDirectories(one, two, callback) {
}
function createBackup(callback) {
backups.backup({ username: 'test' }, function (error) { // this call does not wait for the backup!
backups.runBackupTask({ username: 'test' }, function (error) { // this call does not wait for the backup!
if (error) return callback(error);
function waitForBackup() {