Skip to content

Commit

Permalink
(simatec) Backup Path in adminTab added
Browse files Browse the repository at this point in the history
  • Loading branch information
simatec committed Nov 2, 2023
1 parent f9efdcb commit 5e1e1d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion admin/tab_m.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ var $dialogCommandProgress;
var lastMessage = '';
var storageTyp = '';
var restoreIfWait = 5000;
var backupDir = null;

function initDialog() {
$dialogCommand = $('#dialog-command');
Expand Down Expand Up @@ -99,7 +100,7 @@ function load(settings, onChange) {
});
}
});
console.log('current theme: ' + currentTheme());
//console.log('current theme: ' + currentTheme());

sendTo(null, 'getFileSystemInfo', null, function (obj) {
if (obj && obj.diskState && obj.storage && obj.diskFree) {
Expand All @@ -124,6 +125,10 @@ function load(settings, onChange) {
} else if (obj && obj.systemOS == 'win') {
restoreIfWait = 18000;
}

if (obj && obj.backupDir) {
backupDir = obj.backupDir;
}
});

fillBackupOptions(settings);
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ function startAdapter(options) {
}

try {
adapter.sendTo(obj.from, obj.command, { systemOS: systemInfo, dockerDB: dbInfo }, obj.callback);
adapter.sendTo(obj.from, obj.command, { systemOS: systemInfo, dockerDB: dbInfo, backupDir: path.join(tools.getIobDir(), 'backups') }, obj.callback);
} catch (err) {
err && adapter.log.error(err);
}
Expand Down

0 comments on commit 5e1e1d9

Please sign in to comment.