Clean install - restore data from old version

113 views
Skip to first unread message

karlg...@gmail.com

unread,
Oct 10, 2020, 11:00:27 AM10/10/20
to weewx-user

Hi,
I've been using and tinkering with Weewx since 2014; and a couple of little errors have accumulated so I'm taking the move to python 3 as an excuse to start afresh.

I can't see if the schema has changed between 3.8 and 4.2, so could I do a clean install and replace the newly created archive with the backup from 3.8

or should I do an upgrade first, backup, clean install and replace the archive with the upgraded backup?

I checked wee_import but that only imports 'foreign' data

Thanks,
Karl

Tom Keffer

unread,
Oct 10, 2020, 11:09:10 AM10/10/20
to weewx-user
The schema has not changed since weewx adopted it from wview, over 10 years ago. There is a new "extended" schema available, but it is relevant only with new installations.

The database file has not changed since v3.0, released in late 2014. Earlier databases are automatically upgraded.

V4.2 is not out yet.

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/9ef9adbe-7bed-44f3-b756-9fda538b1ecdn%40googlegroups.com.

karlg...@gmail.com

unread,
Oct 10, 2020, 2:29:18 PM10/10/20
to weewx-user
My clean install will be a new installation, but I'll try a straight forward replace and see what happens.
Thanks for the reply

PS: I thought 4.1 was the latest but then I saw "Upgrading from 4.1 ..." in the upgrade guide so I assumed 4.2 was out :-)

Tom Keffer

unread,
Oct 10, 2020, 2:55:07 PM10/10/20
to weewx-user
Oops. Yes, you are right. That Upgrade Guide was intended for V4.2, but accidentally got uploaded.

I've replaced it with the V4.1 guide.

-tk

weather list

unread,
Oct 10, 2020, 5:47:20 PM10/10/20
to weewx...@googlegroups.com
It works fine to just put the old .sdb file in the archive folder. If you night eventually want to make use of the new schema however, you might want to let the fresh install create a new .sdb and then import the data from the old one.

Tom Keffer

unread,
Oct 10, 2020, 5:58:36 PM10/10/20
to weewx-user
If you want to do this, see the Wiki article Switching to the new wview_extended schema

karlg...@gmail.com

unread,
Oct 12, 2020, 3:24:33 PM10/12/20
to weewx-user
Thanks,
Definitely wanted the extended schema as I have separate systems for recording energy consumption and heat pump data and only using gnuplot for visualisation.

so for clean install I did the following:
  • stop the daemon
  • move the whole folder to weewx.bak (I had originally installed with setup.py)
  • Download 4.1.1 and install according to http://www.weewx.com/docs/setup.htm
  • manually make changes to weewx.conf (udev / ftp / WOW etc / target_unit = metricwx to match old db)
  • copy old archive into new location
  • run(fix silly typos in weewx.conf :-O  ) run again
Works well, so
  • update wee_database weewx.conf --reconfigure
    1100 seconds! later new database done
  • rebuild dailys .... 50 minutes later
  • start
Everything seems good so far,

Now I just have to add in the temp_difference calc that I had, and have some fun with the extended schema

Thanks for the program and all the help


Reply all
Reply to author
Forward
0 new messages