WebThingsIO / gateway

WebThings Gateway
http://webthings.io/gateway
Mozilla Public License 2.0
2.61k stars 336 forks source link

Backup Settings #2067

Open hwine opened 5 years ago

hwine commented 5 years ago

This could also be called "support disaster recovery". If my SD card goes bad, I have to replace it with a new one, and recreate all modifications. (Add ons, rules, etc.)

afaik, right now I can only rely on my trusty human memory for all those settings. Having a human readable list of settings would be quite helpful, especially when you only have a rusty memory.

If there's a manual (i.e. scp of existing config files), I'd love to document that. I'm techie enough to handle scp, but a way via the webapp is better.

mrstegeman commented 5 years ago

This is something we've talked about adding for a long time, but apparently never opened an issue for it.

What I tend to do is:

# Copy from old Pi
scp -r pi@gateway.local:~/.mozilla-iot /tmp

# Copy to new Pi
scp -r /tmp/.mozilla-iot pi@gateway.local:~/