refactor(Config(): Overhauled config
This commit is contained in:
parent
2633c2222f
commit
cfe9637e09
2 changed files with 33 additions and 12 deletions
21
DefaultFiles/config.json
Normal file
21
DefaultFiles/config.json
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"sqlConfig": {
|
||||||
|
"enableSQL": false,
|
||||||
|
"sqlType": "mariadb",
|
||||||
|
"sql-address": "sql-address",
|
||||||
|
"sql-port": 33000,
|
||||||
|
"database": "database-name",
|
||||||
|
"db-user": "db-user",
|
||||||
|
"db-password": "db-password"
|
||||||
|
},
|
||||||
|
"foldersToBackup": [
|
||||||
|
{
|
||||||
|
"backupName": "your-backup",
|
||||||
|
"folderPath": "/path/to/folder/to/backup",
|
||||||
|
"remoteStorageType": "remote-type",
|
||||||
|
"remoteTargetPath": "remote/target/path",
|
||||||
|
"createLocalBackup": true,
|
||||||
|
"localTargetPath": "/path/to/local/bak"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -1,21 +1,21 @@
|
||||||
{
|
{
|
||||||
"localBackupPath": "",
|
|
||||||
"sqlConfig": {
|
"sqlConfig": {
|
||||||
"enableSQL": false,
|
"enableSQL": false,
|
||||||
"sql-address": "",
|
"sqlType": "mariadb",
|
||||||
"sql-port": 0,
|
"sql-address": "sql-address",
|
||||||
"database": "",
|
"sql-port": 33000,
|
||||||
"db-user": "",
|
"database": "database-name",
|
||||||
"db-password": ""
|
"db-user": "db-user",
|
||||||
|
"db-password": "db-password"
|
||||||
},
|
},
|
||||||
"foldersToBackup": [
|
"foldersToBackup": [
|
||||||
{
|
{
|
||||||
"backupName": "",
|
"backupName": "your-backup",
|
||||||
"folderPath": "",
|
"folderPath": "/path/to/folder/to/backup",
|
||||||
"remoteStorageType": "",
|
"remoteStorageType": "remote-type",
|
||||||
"remoteTargetPath": "",
|
"remoteTargetPath": "remote/target/path",
|
||||||
"createLocalBackup": false,
|
"createLocalBackup": true,
|
||||||
"localTargetPath": ""
|
"localTargetPath": "/path/to/local/bak"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in a new issue