1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-02-12 11:01:52 +00:00

Fixed MongoDumpPath in schema and sample config.

This commit is contained in:
Ylian Saint-Hilaire 2021-02-03 22:11:07 -08:00
parent 9d052cb0e4
commit 87896b5f0d
2 changed files with 34 additions and 9 deletions

View file

@ -11,7 +11,6 @@
"mongoDb": { "type": "string" }, "mongoDb": { "type": "string" },
"mongoDbName": { "type": "string" }, "mongoDbName": { "type": "string" },
"mongoDbChangeStream": { "type": "boolean" }, "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." }, "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." }, "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." }, "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": { "autoBackup": {
"type": "object", "type": "object",
"properties": { "properties": {
"mongoDumpPath": { "type": "string" },
"backupIntervalHours": { "type": "integer" }, "backupIntervalHours": { "type": "integer" },
"keepLastDaysBackup": { "type": "integer" }, "keepLastDaysBackup": { "type": "integer" },
"zipPassword": { "type": "string" }, "zipPassword": { "type": "string" },
@ -117,19 +117,44 @@
"type": "object", "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.", "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": { "properties": {
"folderName": { "type": "integer", "default": "MeshCentral-Backups", "description": "The name of the folder to create in the Google Drive account." }, "folderName": {
"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." } "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": { "webDAV": {
"type": "object", "type": "object",
"description": "Enabled automated upload of the server backups to a WebDAV account.", "description": "Enabled automated upload of the server backups to a WebDAV account.",
"properties": { "properties": {
"url": { "type": "string", "description": "WebDAV account URL." }, "url": {
"username": { "type": "string", "description": "WebDAV account username." }, "type": "string",
"password": { "type": "string", "description": "WebDAV account password." }, "description": "WebDAV account URL."
"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." } "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."
}
} }
} }
} }

View file

@ -6,7 +6,6 @@
"_mongoDb": "mongodb://127.0.0.1:27017", "_mongoDb": "mongodb://127.0.0.1:27017",
"_mongoDbName": "meshcentral", "_mongoDbName": "meshcentral",
"_mongoDbChangeStream": true, "_mongoDbChangeStream": true,
"_mongoDumpPath": "C:\\Program Files\\MongoDB\\Server\\4.2\\bin\\mongodump.exe",
"_WANonly": true, "_WANonly": true,
"_LANonly": true, "_LANonly": true,
"_sessionKey": "MyReallySecretPassword1", "_sessionKey": "MyReallySecretPassword1",
@ -83,6 +82,7 @@
] ]
}, },
"_autoBackup": { "_autoBackup": {
"_mongoDumpPath": "C:\\Program Files\\MongoDB\\Server\\4.2\\bin\\mongodump.exe",
"backupIntervalHours": 24, "backupIntervalHours": 24,
"keepLastDaysBackup": 10, "keepLastDaysBackup": 10,
"zipPassword": "MyReallySecretPassword3", "zipPassword": "MyReallySecretPassword3",