dehy/simple-system-backup

Configuration file format

dehy opened this issue · 0 comments

dehy commented

Format

I ended up using shell environment variables for configuration as it does not add overhead to the project, keeping it simple and stupid. No specific json/yaml/toml interpreter needed. No dependency. Every admin should be up and running by reading the file.

The downside is that it is harder to maintain and potentially could have side effect with real system env variables.

Filename

I arbitrarly choose the backuprc filename (was .backuprc at first, but hidden file could be head scratching for the admin), like bashrc, zshrc, ...
It tunrs out the rc means "Run Commands" and is not appropriate.

Maybe it should be as simple as ssb_config.sh if we stick with shell variables. Or ssb_config.json|yml|toml if we change format.

What's your point of view?