Read the statement by Michael Teeuw here.
Questions about update
-
@bugsounet said in Questions about update:
Its very poor to read this from a developer
is there a difference between running an old system and running a public forum without
https
? -
@karsten13 Make all things like me after you can talk ;)
-
Hi,
Yes, it’s a good solution that works great once installed.
To build my MM, I have made some modifications on everywhere to obtain the result I want, and if i had to rebuild all it will take a lot of time because it’s impossible to remember everything (like modifications on boot.txt)And I agree about SD Card. It’s a really difficult to preserve it. So the solution is to externalize backups.
I’ve a NAS server with NFS possibilities. I think I’ll build a script to save every night for example a backup of config.js, custom.css, compliments.js and boot.txt (to compare in case of rebuild).
But, i’m also agree is represent a lot of work for a system that not modify every day. A big backup on every major modification is sufficient.Have a nice day.
-
@bkeyport thanks. my backup doesn’t copy custom.css… doah
-
Just scripted what I want. Not externalized for the moment. Just a simple copy of modules folder and personnalized files.
Sorry if it’s not perfect, but i’m not a developer :)
#!/bin/bash #BACKUP FOLDER mkdir -p /var/backups/MM cd /var/backups/MM #OLD BACKUPS PURGE echo "--- PURGE TASK ---" echo "Check for existing backups..." nb_save=$(ls | wc -l) if [ $nb_save -gt 4 ] then oldest_folder=$(ls -lt | tail -1 | cut -d " " -f10) echo "Limit of 5 backups reach. Deleting of the oldest one : $oldest_folder" rm -rf "$oldest_folder" echo "DELETED." else echo "Limit of 5 backups doesn't reach, skip to backup task." fi #BACKUP echo "--- BACKUP TASK ---" echo "Starting..." d=$(date +%Y-%m-%d_%H:%M) mkdir -p $d cd $d cp /home/pi/MagicMirror/config/config.js config.js cp /home/pi/MagicMirror/css/custom.css custom.css cp /home/pi/MagicMirror/modules/default/compliments/compliments.json compliments.json cp /boot/config.txt config.txt mkdir -p modules cp -R /home/pi/MagicMirror/modules/ . echo "DONE. CURRENT LIST OF BACKUPS :" cd .. ls -A1
-
@selyjohns cool… mine saves the list of modules (git url) and config.js to a local git repo with a tag with the date
other files (compliments.json) … cool… (any reason u didn’t put those in config.js?, u have to restart to use an updated file too)
-
@sdetweil said in Questions about update:
@selyjohns cool… mine saves the list of modules (git url) and config.js to a local git repo with a tag with the date
Perfect :) Git seem to be a good solution. For next evolution haha
For the json, it’s because i’ve define a lot of compliments and it’s more clean on external json that in config.js -
@selyjohns you can look at my backup script for creating the tag from the date/time
-
@sdetweil Perfect ! Thanks :)
-
@sdetweil Whoops. that’s 90% of my mirror! Without CSS copied it becomes a big mess quick. Only modules I don’t have custom CSS for is MMM-Multimonth and MMM-Worldclock (Hmm, wonder why? 😀)