From cfe9637e0945ec536874244f8d7b2b120b1bac49 Mon Sep 17 00:00:00 2001 From: netbenix Date: Fri, 31 Dec 2021 15:33:30 +0100 Subject: [PATCH] refactor(Config(): Overhauled config --- DefaultFiles/config.json | 21 +++++++++++++++++++++ config/config.json | 24 ++++++++++++------------ 2 files changed, 33 insertions(+), 12 deletions(-) create mode 100644 DefaultFiles/config.json diff --git a/DefaultFiles/config.json b/DefaultFiles/config.json new file mode 100644 index 0000000..da6c245 --- /dev/null +++ b/DefaultFiles/config.json @@ -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" + } + ] +} \ No newline at end of file diff --git a/config/config.json b/config/config.json index 6cbb73d..da6c245 100644 --- a/config/config.json +++ b/config/config.json @@ -1,21 +1,21 @@ { - "localBackupPath": "", "sqlConfig": { "enableSQL": false, - "sql-address": "", - "sql-port": 0, - "database": "", - "db-user": "", - "db-password": "" + "sqlType": "mariadb", + "sql-address": "sql-address", + "sql-port": 33000, + "database": "database-name", + "db-user": "db-user", + "db-password": "db-password" }, "foldersToBackup": [ { - "backupName": "", - "folderPath": "", - "remoteStorageType": "", - "remoteTargetPath": "", - "createLocalBackup": false, - "localTargetPath": "" + "backupName": "your-backup", + "folderPath": "/path/to/folder/to/backup", + "remoteStorageType": "remote-type", + "remoteTargetPath": "remote/target/path", + "createLocalBackup": true, + "localTargetPath": "/path/to/local/bak" } ] } \ No newline at end of file