@sdetweil
Before writing here I made backups, locally and on github, like you taught me in the past :)
Now I’ll try
@sdetweil
Before writing here I made backups, locally and on github, like you taught me in the past :)
Now I’ll try
@sdetweil said in Question about backup script:
@nowayto also see my MMM-Config, it provides module install and all config
I give it a try some days ago, after your suggestion but I wanna learn the configuration first, rather than easier ways
I’ll read your CSS guide for sure
@rkorell Again, thank you Sam.
I know what you mean, I usually act as you said.
I like to help other, in the subject where I have knowledge.
So, thank you again
Hello,
I have a question about backup script.
In these days I’m trying to learn how to configure MM with some modules, after all these tries, I will do a fresh installation with no errors on configuration.
When I’ll arrive at that point, I’ll wanna backup MM entirely, so I see your script:
bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror-backup-restore/main/mm_backup.sh)” with any parms
I don’t want a github private backup, I want just a local backup so does this script will backup every configuration on: $HOME/MM_backup ?
I assume I’ll just have to copy that folder away and keep it secure?
When I’ll need a restore I can start with an empty SD card, OS installation, MM installation script and then which of that 2 options?
1- copy the MM_backup folder in $HOME, install modules I need and run your restore script
(bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror-backup-restore/main/mm_restore.sh)” with any parms)
2- copy the MM_backup folder in $HOME and just run the restore script
Thanks in advance
Perfect.
Your right but since I’m not a programmer so sometimes I have some stupid doubts.
I started with a simple idea and now in my mind I wanna make more than one MM, with differents setup but for now I need to learn the basics configuration, so I’m testing testing and testing more :)
Reinstall from 0 and test again :)
For example I hope it will be not to difficult to config css, I like the personalization it will offer but I’m scared about difficulties. But I’ll try for sure!
Thank you again
@rkorell Again, thank you Sam.
I know what you mean, I usually act as you said.
I like to help other, in the subject where I have knowledge.
So, thank you again
@sdetweil Ok but I wanna just offer a coffe for your kind and your time spent with that.
Do you suggest me to fix the old magic mirror folder or just rm it?
@sdetweil
Sam… I don’t know how to saying it.
I figure out the issue.
After your last message I tried what you suggest.
With the default cfg I had no errors, with mine I had errors.
So I checked again and again the config…
and I find an underscore _ right at the start of the config
npm config:check told me “no syntax errors” and that confusing me.
When I edit it I use nano editor
I do “sudo nano config.js” and I press CTRL + _ to jump at the 250 line.
Might be one of the latest time I opened it and press _ a bit faster than CTRL and I add it for error.
In addition I notice that when I open config.js with nano editor the green cursor is, clearly, at the start of the first line… EXACTLY on the undescore _ and it hides it.
I’m really sorry for bothering you with that.
How can I buy you a coffee ?
Thanks
That’s incredible… I did it, everything goes good… no issues but when I start it
npm start
[email protected] start
npm run start:x11
[email protected] start:x11
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
[2025-05-11 22:44:21.593] [LOG] Starting MagicMirror: v2.31.0
[2025-05-11 22:44:21.682] [LOG] Loading config …
[2025-05-11 22:44:21.687] [LOG] config template file not exists, no envsubst
[2025-05-11 22:44:23.250] [INFO] Checking config file /home/MYMIRR/MagicMirror/config/config.js …
[2025-05-11 22:44:23.532] [INFO] Your configuration file doesn’t contain syntax errors :)
[2025-05-11 22:44:23.535] [INFO] Checking modules structure configuration …
[2025-05-11 22:44:23.824] [ERROR] _ is not defined
Again this _ is not defined
@sdetweil
Before writing here I made backups, locally and on github, like you taught me in the past :)
Now I’ll try
@sdetweil
I’m sure.I don’t think SolarPicture could be the problem.
Yes, the error keep showing
installer didn’t failed, but this is the result now
npm install
[email protected] postinstall
npm run install-vendor && npm run install-fonts && echo "MagicMirror² installation finished successfully!
"
[email protected] install-vendor
echo "Installing vendor files …
" && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier
Installing vendor files …
up to date in 7s
[email protected] install-fonts
echo "Installing fonts …
" && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier
Installing fonts …
up to date in 3s
MagicMirror² installation finished successfully!
[email protected] prepare
[ -f node_modules/.bin/husky ] && husky || echo no husky installed.
up to date in 45s
285 packages are looking for funding
run npm fund
for details
@sdetweil Thank you a lot Sam.
I did everything but
I have an [ERROR] _ is not defined
[email protected] start:x11
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
[2025-05-11 15:39:26.429] [LOG] Starting MagicMirror: v2.31.0
[2025-05-11 15:39:26.527] [LOG] Loading config …
[2025-05-11 15:39:26.537] [LOG] config template file not exists, no envsubst
[2025-05-11 15:39:28.154] [INFO] Checking config file /home/MYMIRR/MagicM irror/config/config.js …
[2025-05-11 15:39:28.478] [INFO] Your configuration file doesn’t contain syntax errors :)
[2025-05-11 15:39:28.482] [INFO] Checking modules structure configuration …
[2025-05-11 15:39:28.793] [ERROR] _ is not defined
which node gave me
/home/MYMIRR/.nvm/versions/node/v22.15.0/bin/node
n gave me
node/20.18.1
Use up/down arrow keys to select a version, return key to install, d to delete, q to quit
nvm gave me
Node Version Manager (v0.39.5)
Note: refers to any version-like string nvm understands. This includes :
nvm alias foo
followed by a lot of options
@sdetweil I’m sorry :(
I did it what you suggest and config:check gave me a module error again. Different than one before
npm run config:check
[email protected] config:check
node js/check_config.js
node:internal/modules/cjs/loader:1404
throw err;
^
Error: Cannot find module ‘ajv’
Require stack:
After “require stack” there are other lines, if you need it, tell me.
Thanks