1
0
Fork 0
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:
PTR 2024-11-10 14:49:11 +01:00 committed by GitHub
parent 7d59210d05
commit b71c69e81d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 19 additions and 23 deletions

View file

@ -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) {