This doesn't address backing up a running system so feel free to ignore it.
The varying SD card size problem can be overcome by shrinking the backup image you created using the laptop. I have a script that I use for that purpose here: https://github.com/Alanb603/Pi_Image_Shrinker/blob/master/autoresize.sh I usually make a new image backup when I make a system change and I use crontab to execute a script (generously provided by a member of this group) to copy the weewx database to Amazon S3 twice a day. A restore is simply writing the image to a new SD card then replacing the database with the the backup copy of the database from my Amazon S3 cloud. I don't quite trust hot backups for the full OS yet so I do cold backups as you have described. My system changes are pretty infrequent so the process doesn't bother me. When I have an SD card failure, I can be back up in less than 30 minutes with at worst 12.5 hours of data lost. On Sunday, December 25, 2016 at 4:55:39 AM UTC-5, Per Edström wrote: > > I run my Weewx on Raspberry Pi and on a "PC" (Ebox 3350 and Ubuntu 10). > Both have the OS on an SD/SDHC-card. > > Now, I find it messy to create a backup image: > 1. Halt system > 2. Power down > 3. Remove SD-card > 4. Put in laptop and create an image to file (5-10 min) > 5. Insert SD-card in taget again and power up. > 6. Write image file to new SD-card (15-20 min). > > (NB! I have noted that not all 16GB SD-card have the exact same size, it > varies quite a lot. This became an issue the trying to find a new SD-card > for the one that failed..) > > This procedure takes time and requires quite a lot of physical > intervention. > > Is there any way of to create or maintain an updated image from the > running system. Maybe it's Ok to just backup some files (user installed)? > > Also, it would be nice to have this "backup SD" as an alternative boot > SD-card in case the primary one fails. I don't know if that is possible.. > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.