mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 01:26:29 -04:00
Copy `config.js` to a single `config.js-old` file whenever a
`config.template` is present, instead of using `Date()` as a suffix.
Creating files with a timestamp suffix means that whenever Magic Mirror
is restarted or recreated a new file is written into the config
directory.
Benefits:
* Single backup file will avoid excessive writing of files
* Saves space and usage on SD cards.
* Makes the folder cleaner and easier to overview, compared to ending up
with something like this as time goes on:
![image](
|
||
---|---|---|
.. | ||
app.js | ||
check_config.js | ||
class.js | ||
defaults.js | ||
deprecated.js | ||
electron.js | ||
fetch.js | ||
loader.js | ||
logger.js | ||
main.js | ||
module.js | ||
node_helper.js | ||
server.js | ||
server_functions.js | ||
socketclient.js | ||
translator.js | ||
utils.js |