Read the statement by Michael Teeuw here.
Backing up via GitHub repo
I was wondering how I could backup my config and modules folder to a private repository on GitHub, since the MagicMirror directory itself is already a local repository, is it still possible to push those two folders to my private repo?
Arne de Beer
Have you considered forking the entire Magic Mirror repository? You could then adjust the gitignore file appropriately and have the entire thing available for you.
@bhepler Would it then still be possible to update the MagicMirror? I figure it would be, but just to be sure. Do you think this is the best way to backup my MagicMirror setup?
Thanks for your response!
@arnedebeer you can, but private repo is not free
i backup the MM folder to my PC, then delete the node_modules folders where I find them
and then zip the thing onto an external drive, that is backed up to the cloud.
so I have 3 layers of backup, pc, external disk and cloud
i have 2 external drives, 5 and 8 terabytes. and sometime copy from one to another for another layer.
on my pc, I run two 4tb drives in raid 0, so if one dies, I can get the data back
I do my cloud back ups with backblaze, as it does continuous incremental backups…
on my critical mirror devices, I have gone to booting the sd card, but running from SSD disk.
so the sd card usage is minimal.
@sdetweil a private repo on GitHub is free though!
@arnedebeer well, then, didn’t used to be… I see its changed… thanks…
@sdetweil perhaps your four layer backup routine isn’t needed after all!
In all honesty I don’t think it’s necessary to back up your entire Magic Mirror. If you back up the
config.jsfile, you can rebuild your mirror pretty quickly. It will contain all of your API keys and a list of the modules you have installed. The hard part will be locating the Github repos to clone the repositories.
And you did star all of the module repositories you need, right? That would put them all on a very convenient web page.
@arnedebeer well, there is a LOT of stuff on this machine… lots more than MM…
@bhepler I think you’re quite right to be honest. But by forking the entire project this won’t be possible, that’s why I was hoping it was possible to create a repo for it to automate the backup.
Perhaps a better way to back my config up is to create a script that mails the config every x amount of time to myself