Kruse: I would recommend looking right here in the users' guide for all the things you need to backup:
http://weewx.com/docs/usersguide.htm#backup A good idea would be to write a quick bash script that copies these files off to a temp directory, then zip that directory and save the files to an external device. Schedule this on cron to run daily. 99.9% of the time the sqlite database is inert, so you can copy the database with no issues with WeeWX. On Sun, Aug 28, 2022 at 2:14 PM Kruse Ludington <rkluding...@gmail.com> wrote: > I know the answer is probably buried somewhere and apologies but if nobody > is able to explain exactly the answers to #1 and #2 below, maybe someone > can point me to a specific spot in the voluminous weewk wiki/help files so > I don't need to read war and peace before I figure it out (thank you!)? > > I have a Raspberry Pi 4b 8gig running on a 1tb ssd (yes overkill) running > weewx - and since I do a ton of other stuff with it as well, I often back > up the entire storage (only after disabling weewx and everything else that > would run on it when it is rebooted, to make the last step of the restore > process easier - see the below * asterisk). The weewx install on that RPI > is using the default database that it comes with when installed (no changes > in that regard). > > Long story short, sometimes I do need to do a restore when I try to do > something fancy that makes the whole thing blow up (the RPI - unrelated > things on the same hardware) in my face. In that case, I do a restore and I > am good to go no issues. > > Except one thing. > > If the restore is from a one week old backup - I've lost one week of data > in the weewx default database. > > So, from that point of view, if I am able to log into the RPI with VNC > viewer or telnet/whatever on the screwed up RPI, as a first step before the > whole restore process - > > Steps to do right at that point - > > 1. What files do I copy from the RPI to later copy back onto the RPI > restored from the backup so no data is lost? Is the DB all just one file or > is it a bunch of files (e.g., files for each index, etc.)? > > 2. Once the restored RPI is back up and running, BEFORE* weewx is > launched, in addition to copying the files from #1 above onto the newly > restored RPI weewx instance - are there any other config files or anything > like that I need to adjust prior to firing everything back up on the > restored RPI weewx instance? > > Thanks for all your help! > > -- > 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/4a6a579e-0b32-4bf0-a6ce-1980765603f3n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/4a6a579e-0b32-4bf0-a6ce-1980765603f3n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CACC0i0xk40ri95cSZvEmJibAR3wN%2B6APHZMsD%3D1uDHP81guZJQ%40mail.gmail.com.