run backuptask as separate process
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user