mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fix autobackup defaults and zip level for performance (#6518)
* Fix autobackup defaults and zip level for performance * Add zipcompression configuration option
This commit is contained in:
parent
7d59210d05
commit
b71c69e81d
4 changed files with 19 additions and 23 deletions
|
@ -7627,10 +7627,9 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
|||
}
|
||||
|
||||
function serverUserCommandAutoBackup(cmdData) {
|
||||
var backupResult = parent.db.performBackup(function (msg) {
|
||||
cmdData.result = parent.db.performBackup(function (msg) {
|
||||
try { ws.send(JSON.stringify({ action: 'serverconsole', value: msg, tag: cmdData.command.tag })); } catch (ex) { }
|
||||
});
|
||||
if (backupResult == 0) { cmdData.result = 'Starting auto-backup...'; } else { cmdData.result = 'Backup alreay in progress.'; }
|
||||
}
|
||||
|
||||
function serverUserCommandBackupConfig(cmdData) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue