@sdetweil said in Is cloning to a new OS possible?:
@tippon clone is ok, but. you will have to do npm install in all the places where there is a package.json file
I had a feeling it would be something like that. At that point I may as well do a fresh installation and just copy the config.js over. No chance of missing a module’s dependencies then, or adding in a module that’s been commented out but not removed, for example.
@bkeyport said in Is cloning to a new OS possible?:
@tippon To speed reinstall - I have my config.js and custom.css symlinked to a common location outside the MagicMirror tree, and a bash script setup to clone and npm install every module I use, and reinstall the symlinks.
easy peasy…
My system backs that up nightly to a private github repository, and bam quick and dirty way to get my system back running when my pi crashes.
That’s a good point, I didn’t think about using it for a backup. I’ve got Github set up, but I haven’t got into the habit of using it properly yet.
A symlink would be really helpful for the MMM-Cryptocurrency module too. Someone’s made some mods to the MMM-Cryptocurrency.js to add functionality. It’s not merged yet, and that’s beyond me for now, so keeping the modified file outside of the folder would stop me from accidentally wiping it.
I might try for a best of both worlds approach - fresh installations on the Xubuntu system, then set up some scripts.
Thanks both :)