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.

Reply via email to