Vince, Thanks for your reply. I posted here as I recall a number of posts that discuss problems with certain versions of Python. My purpose was to ensure that WeeWX wouldn't break after upgrading Raspbian. Also, I read that operating system upgrades undid some RTC setups (I know changes were made to the latest version of WeeWX to make a RTC less critical, but accurate time is important to WeeWX). Additionally, of course, I want to be sure that my system would continue without loss of my existing WeeWX history. Those goals make my original post legitimate for a WeeWX users group.
Thanks for letting me know what to back up and drop onto a new install to make my existing WeeWX configuration and historic data is preserved. Thanks again for your helpful reply. On Sunday, August 19, 2018 at 12:59:38 PM UTC-4, vince wrote: > > On Sunday, August 19, 2018 at 5:50:43 AM UTC-7, Philip Kutzenco wrote: >> >> I have been successfully running WeeWX (currently V3.8.2) on a Raspberry >> Pi Zero W with an RTC for some time. The Pi is running Raspian Stretch (and >> using NGINX as a web server). I would like to update Raspian by running >> sudo apt-get update and either sudo apt-get upgrade or sudo apt-get >> dist-upgrade. I have a couple of questions: >> >> > This really isn't the forum for questions like "how do I upgrade operating > system XYZ without losing my previous changes and data"..... > > That said, since there are so many pi users here, let me take a quick > crack at it.... > > - don't do a dist-upgrade. It takes for-ev-er and beats the heck out > of your SD card > - instead, do a clean install to a new card (if you have one) and > reinstall cleanly, restoring any data or changes you want to keep > - if you don't have a backup SD card, it's ok to reimage the same one > if you've saved any data and changes you want to restore elsewhere > - personally, I like "Etcher" for software to image the SD card. 100% > reliable for me on a Macbook Air > > Re: what and how to back up: > > - I don't back up my SD cards, I back up the stuff 'on' those cards > that I care about > - for a wifi pi - remember to back up your wpa_supplicant.conf file so > you can get back on the air for wifi > > Typically for a weewx system with RTC you'd want to back up: > > - the archive database (to keep your old data) > - probably the public_html tree (so weewx doesn't have to recreate the > NOAA archives) > - almost certainly weewx.conf (either to copy back, or as a reference > for hand-editing a new one) > - whatever you edit so the RTC works > - whatever else you changed that you didn't mention > > Short answer is: > > - image a SD card > - mount the /boot it creates, touch a 'ssh' file and copy your > wpa_supplicant.conf there > - boot it up, install nginx and weewx > - restore your data and any other stuff you need to save > - always do that one last reboot at the end so you know it will come > up ok > > Should be 15 minutes max to do. > > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
