No more restore mapping
This commit is contained in:
+1
-6
@@ -388,13 +388,8 @@ function restoreApp(app, addonsToRestore, backupId, callback) {
|
||||
settings.getBackupConfig(function (error, backupConfig) {
|
||||
if (error) return callback(new BackupsError(BackupsError.INTERNAL_ERROR, error));
|
||||
|
||||
var directoryMapping = [{
|
||||
source: '/',
|
||||
destination: path.join(paths.APPS_DATA_DIR, app.id)
|
||||
}];
|
||||
|
||||
async.series([
|
||||
api(backupConfig.provider).restore.bind(null, backupConfig, backupId, directoryMapping),
|
||||
api(backupConfig.provider).restore.bind(null, backupConfig, backupId, path.join(paths.APPS_DATA_DIR, app.id)),
|
||||
addons.restoreAddons.bind(null, app, addonsToRestore)
|
||||
], callback);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user