From 87896b5f0d635cc0d9d3084021c092dd7363fb46 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Wed, 3 Feb 2021 22:11:07 -0800 Subject: [PATCH] Fixed MongoDumpPath in schema and sample config. --- meshcentral-config-schema.json | 41 +++++++++++++++++++++++++++------- sample-config-advanced.json | 2 +- 2 files changed, 34 insertions(+), 9 deletions(-) diff --git a/meshcentral-config-schema.json b/meshcentral-config-schema.json index bd4cc148..e7b815e4 100644 --- a/meshcentral-config-schema.json +++ b/meshcentral-config-schema.json @@ -11,7 +11,6 @@ "mongoDb": { "type": "string" }, "mongoDbName": { "type": "string" }, "mongoDbChangeStream": { "type": "boolean" }, - "mongoDumpPath": { "type": "string" }, "WANonly": { "type": "boolean", "default": false, "description": "When enabled, only MeshCentral WAN features are enabled and agents will connect to the server using a well known DNS name." }, "LANonly": { "type": "boolean", "default": false, "description": "When enabled, only MeshCentral LAN features are enabled and agents will find the server using multicast LAN packets." }, "maintenanceMode": { "type": "boolean", "default": false, "description": "When enabled the server is in maintenance mode, only administrators can login. Use the maintenance command in server console to change." }, @@ -109,6 +108,7 @@ "autoBackup": { "type": "object", "properties": { + "mongoDumpPath": { "type": "string" }, "backupIntervalHours": { "type": "integer" }, "keepLastDaysBackup": { "type": "integer" }, "zipPassword": { "type": "string" }, @@ -117,19 +117,44 @@ "type": "object", "description": "Enabled automated upload of the server backups to a Google Drive account, once enabled you need to go in \"My Server\" tab as administrator to associate the account.", "properties": { - "folderName": { "type": "integer", "default": "MeshCentral-Backups", "description": "The name of the folder to create in the Google Drive account." }, - "maxFiles": { "type": "string", "default": null, "description": "The maximum number of files to keep in the Google Drive folder, older files will be removed if needed." } + "folderName": { + "type": "integer", + "default": "MeshCentral-Backups", + "description": "The name of the folder to create in the Google Drive account." + }, + "maxFiles": { + "type": "string", + "default": null, + "description": "The maximum number of files to keep in the Google Drive folder, older files will be removed if needed." + } } }, "webDAV": { "type": "object", "description": "Enabled automated upload of the server backups to a WebDAV account.", "properties": { - "url": { "type": "string", "description": "WebDAV account URL." }, - "username": { "type": "string", "description": "WebDAV account username." }, - "password": { "type": "string", "description": "WebDAV account password." }, - "folderName": { "type": "integer", "default": "MeshCentral-Backups", "description": "The name of the folder to create in the WebDAV account." }, - "maxFiles": { "type": "string", "default": null, "description": "The maximum number of files to keep in the WebDAV folder, older files will be removed if needed." } + "url": { + "type": "string", + "description": "WebDAV account URL." + }, + "username": { + "type": "string", + "description": "WebDAV account username." + }, + "password": { + "type": "string", + "description": "WebDAV account password." + }, + "folderName": { + "type": "integer", + "default": "MeshCentral-Backups", + "description": "The name of the folder to create in the WebDAV account." + }, + "maxFiles": { + "type": "string", + "default": null, + "description": "The maximum number of files to keep in the WebDAV folder, older files will be removed if needed." + } } } } diff --git a/sample-config-advanced.json b/sample-config-advanced.json index a0d23349..20aaa3b4 100644 --- a/sample-config-advanced.json +++ b/sample-config-advanced.json @@ -6,7 +6,6 @@ "_mongoDb": "mongodb://127.0.0.1:27017", "_mongoDbName": "meshcentral", "_mongoDbChangeStream": true, - "_mongoDumpPath": "C:\\Program Files\\MongoDB\\Server\\4.2\\bin\\mongodump.exe", "_WANonly": true, "_LANonly": true, "_sessionKey": "MyReallySecretPassword1", @@ -83,6 +82,7 @@ ] }, "_autoBackup": { + "_mongoDumpPath": "C:\\Program Files\\MongoDB\\Server\\4.2\\bin\\mongodump.exe", "backupIntervalHours": 24, "keepLastDaysBackup": 10, "zipPassword": "MyReallySecretPassword3",