mirror of
https://codeberg.org/vlw/3rd.git
synced 2026-01-11 22:36:01 +01:00
This PR refactors the config file structure into a simpler format, as well as making it more capable at the same time. Config values are now accessed as properties instead of referenced on the parsed config JSON list directly. Config files are also loaded with the `-i` argument which can take any compatible JSON file, this replaces the previous `-a` (autorun) argument. Reviewed-on: https://codeberg.org/vlw/3rd/pulls/1 Co-authored-by: vlw <victor@vlw.se> Co-committed-by: vlw <victor@vlw.se>
16 lines
473 B
JSON
16 lines
473 B
JSON
[
|
|
{
|
|
"password": "mypassword",
|
|
"compression": 10,
|
|
"abspath_temp": null,
|
|
"abspath_target": "<replace with ABSOLUTE path to a target directory>",
|
|
"abspath_destination": "s3://<replace with bucket>/<replace with destination>"
|
|
},
|
|
{
|
|
"password": "mypassword",
|
|
"compression": 10,
|
|
"abspath_temp": null,
|
|
"abspath_target": "<replace with ABSOLUTE path to a target directory>",
|
|
"abspath_destination": "s3://<replace with bucket>/<replace with destination>"
|
|
}
|
|
]
|