app: add export route

Currently, the export route only creates the snapshot (the other side
of in-place import). In the future, the export route can export to a
custom backup config (like import).
This commit is contained in:
Girish Ramakrishnan
2020-12-06 19:38:50 -08:00
parent c6fd922fcd
commit 78752fde7a
5 changed files with 37 additions and 1 deletions
+1 -1
View File
@@ -598,7 +598,7 @@ function backup(app, args, progressCallback, callback) {
async.series([
progressCallback.bind(null, { percent: 10, message: 'Backing up' }),
backups.backupApp.bind(null, app, { /* options */ }, (progress) => {
backups.backupApp.bind(null, app, { snapshotOnly: !!args.snapshotOnly }, (progress) => {
progressCallback({ percent: 30, message: progress.message });
}),