If the db change was indeed 3.0.0 then you are, of course, spot on Gary (as usual), and my belt and braces approach is indeed not necessary. I assumed (always a dangerous thing to do) from the tenor implied by 'not understanding' that it had been the db upgrade process that had not been understood - otherwise I could not really see any issues with just using the old (3.1) sdb file with the new installation as you suggested. Harmony is always better than arguments ....
On Sunday, 27 November 2016 10:22:18 UTC+2, gjr80 wrote: > Now I am not trying to be argumentative this afternoon, but the change > from having a stats database to instead having daily summary tables > happened in v3.0.0. So if the Frank has a working copy of his database (its > not clear to me from his post) he should not need to rebuild anything. That > being said, there have been some changes to weewx.confg etc since 3.1 but > these would (should) be picked up by the installer during an upgrade. > Assuming Frank is using SQLite as his db, It would seem to me there are 2 > choices: > > (1) reinstall 3.1, with his current db, make sure it works as it should > then upgrade to 3.6.2; or > (2) do a clean 3.6.2 install, make sure it works. Stop weewx, move the > 3.6.2 created weewx.sdb aside and then copy the 3.1 weewx.sdb in its place > and then start weewx. > > Oh, and it goes without saying make sure you keep a backup of your data > (if you have it) before you do anything. > > Of course if it's a MySQL or other db then that changes things. > > Gary > On Sunday, 27 November 2016 18:03:48 UTC+10, Andrew Milner wrote: >> >> You should re-install 3.1 and make sure that installation is working >> correctly - and then the upgrade to 3.6.2 should make the necessary >> database changes for you as part of the upgrade - thus retaining all your >> old data. >> >> The archive format is unchanged (only the stats format/structure changed) >> - so if you have the archive table from 3.1 you can just use that, use the >> weewx utility to drop the daily stats tables, and let weewx rebuild the >> stats database (which is what changed) - or use the utility to rebuild the >> stats while weewx is offline. This is a better option as the rebuild takes >> quite a time on the rpi. Once the stats have been rebuilt *then* start >> weewx running. >> >> >> >> On Sunday, 27 November 2016 09:55:33 UTC+2, Frank von Thienen wrote: >> >>> Good morning weewx-user, >>> I got a crash on my SSD-card and there is no backup :-) >>> I could recover all weewx related files. Sofa so good. >>> >>> Because, there is a V3.6.2 out, I like to setup a new usb stick with he >>> latest weewx version. >>> BUT.... how do I keep my old data, which are about 3 years old, meaning >>> collected data of 3 years. >>> >>> I read the instructions but didn't get it. >>> >>> >>> Some hints, commends are appreciated on how to import the data or >>> using/converting teh old db. >>> >>> Thanks in advance >>> Frank >>> >>> -- 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.
