Fixed MongoDumpPath in schema and sample config.

Ylian Saint-Hilaire committed Feb 3, 2021 at 22:11 UTC 87896b5f0d635cc0d9d3084021c092dd7363fb46
2 files changed +34 -9
meshcentral-config-schema.json
+33 -8
@@ -11,7 +11,6 @@
11 "mongoDb": { "type": "string" },
12 "mongoDbName": { "type": "string" },
13 "mongoDbChangeStream": { "type": "boolean" },
14 - "mongoDumpPath": { "type": "string" },
14 "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." },
15 "LANonly": { "type": "boolean", "default": false, "description": "When enabled, only MeshCentral LAN features are enabled and agents will find the server using multicast LAN packets." },
16 "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 @@
108 "autoBackup": {
109 "type": "object",
110 "properties": {
111 + "mongoDumpPath": { "type": "string" },
112 "backupIntervalHours": { "type": "integer" },
113 "keepLastDaysBackup": { "type": "integer" },
114 "zipPassword": { "type": "string" },
@@ -117,19 +117,44 @@
117 "type": "object",
118 "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.",
119 "properties": {
120 - "folderName": { "type": "integer", "default": "MeshCentral-Backups", "description": "The name of the folder to create in the Google Drive account." },
121 - "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." }
120 + "folderName": {
121 + "type": "integer",
122 + "default": "MeshCentral-Backups",
123 + "description": "The name of the folder to create in the Google Drive account."
124 + },
125 + "maxFiles": {
126 + "type": "string",
127 + "default": null,
128 + "description": "The maximum number of files to keep in the Google Drive folder, older files will be removed if needed."
129 + }
130 }
131 },
132 "webDAV": {
133 "type": "object",
134 "description": "Enabled automated upload of the server backups to a WebDAV account.",
135 "properties": {
128 - "url": { "type": "string", "description": "WebDAV account URL." },
129 - "username": { "type": "string", "description": "WebDAV account username." },
130 - "password": { "type": "string", "description": "WebDAV account password." },
131 - "folderName": { "type": "integer", "default": "MeshCentral-Backups", "description": "The name of the folder to create in the WebDAV account." },
132 - "maxFiles": { "type": "string", "default": null, "description": "The maximum number of files to keep in the WebDAV folder, older files will be removed if needed." }
136 + "url": {
137 + "type": "string",
138 + "description": "WebDAV account URL."
139 + },
140 + "username": {
141 + "type": "string",
142 + "description": "WebDAV account username."
143 + },
144 + "password": {
145 + "type": "string",
146 + "description": "WebDAV account password."
147 + },
148 + "folderName": {
149 + "type": "integer",
150 + "default": "MeshCentral-Backups",
151 + "description": "The name of the folder to create in the WebDAV account."
152 + },
153 + "maxFiles": {
154 + "type": "string",
155 + "default": null,
156 + "description": "The maximum number of files to keep in the WebDAV folder, older files will be removed if needed."
157 + }
158 }
159 }
160 }
sample-config-advanced.json
+1 -1
@@ -6,7 +6,6 @@
6 "_mongoDb": "mongodb://127.0.0.1:27017",
7 "_mongoDbName": "meshcentral",
8 "_mongoDbChangeStream": true,
9 - "_mongoDumpPath": "C:\\Program Files\\MongoDB\\Server\\4.2\\bin\\mongodump.exe",
9 "_WANonly": true,
10 "_LANonly": true,
11 "_sessionKey": "MyReallySecretPassword1",
@@ -83,6 +82,7 @@
82 ]
83 },
84 "_autoBackup": {
85 + "_mongoDumpPath": "C:\\Program Files\\MongoDB\\Server\\4.2\\bin\\mongodump.exe",
86 "backupIntervalHours": 24,
87 "keepLastDaysBackup": 10,
88 "zipPassword": "MyReallySecretPassword3",