Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Data restore

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
Box
Posts: 53
Joined: Sun 15 Nov 2020 8:57 am
Weather Station: FineOffset Gw1002
Operating System: Win10

Data restore

Post by Box »

Morning all

Something happened to my CMX installtion (b3147) last night. It refused to get past the initial splash screen and sat there at the prompt. Not sure if there was a connection issue, I rebooted and it made no difference

So I went for a complete reinstall at the lastest build(b3149)

All is now peachy but I am not sure what I need to do to get the old data into the new install

I see there is a data folder and a backup folder

Do I simply copy over both, or just the backups that are not currently in the current install(its created a couple already)? Do I need to do this with CMX stopped and restart CMX?

I can see that the data folder has common filenames etc so I dont want to overwrite as it will cause all sorts of problems I expect

I didnt see anything in the wiki and I may be using the wrong search term

Thanks in advance
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Data restore

Post by freddie »

Stop MX and copy the contents of the data folder over from your old installation. Wiki reference is here: https://cumuluswiki.org/a/Updating_MX_t ... d_approach

P.S: splash screen? MX doesn't have one of those.
Freddie
Image
Box
Posts: 53
Joined: Sun 15 Nov 2020 8:57 am
Weather Station: FineOffset Gw1002
Operating System: Win10

Re: Data restore

Post by Box »

Thanks

I couldnt think of another term!

Its after you get the first two lines saying build number and then working directory

Normally you get a prompt while presumably it connects to the station and then it goes onto the cumulus running message

It stopped at the prompt
Box
Posts: 53
Joined: Sun 15 Nov 2020 8:57 am
Weather Station: FineOffset Gw1002
Operating System: Win10

Re: Data restore

Post by Box »

I see that I hav two Oct21log.txt files

Presumably the old one overwrites the new one? Does that mean I lose a few hours data?

Can I copy and paste between the two text files?

Should I do that elsewhere with other files or is that fraught with danger?
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Data restore

Post by freddie »

Box wrote: Tue 05 Oct 2021 10:36 am I see that I hav two Oct21log.txt files

Presumably the old one overwrites the new one? Does that mean I lose a few hours data?

Can I copy and paste between the two text files?

Should I do that elsewhere with other files or is that fraught with danger?
Does your weather station use a logger - i.e. you can shut down MX for a period and then on restart MX asks your station for the data it missed?
Freddie
Image
Box
Posts: 53
Joined: Sun 15 Nov 2020 8:57 am
Weather Station: FineOffset Gw1002
Operating System: Win10

Re: Data restore

Post by Box »

No

It just talks to the station
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Data restore

Post by freddie »

Okay, so I would add the contents of the new Oct21log.txt file to the bottom of the old one. With MX not running, of course.
Freddie
Image
Box
Posts: 53
Joined: Sun 15 Nov 2020 8:57 am
Weather Station: FineOffset Gw1002
Operating System: Win10

Re: Data restore

Post by Box »

thanks
Box
Posts: 53
Joined: Sun 15 Nov 2020 8:57 am
Weather Station: FineOffset Gw1002
Operating System: Win10

Re: Data restore

Post by Box »

Out of intrerest what is in the backup folder - is that a copy of the data folder?
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Data restore

Post by freddie »

Yes, and I think Cumulus.ini may well be backed up there too.
Freddie
Image
water01
Posts: 3670
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: Data restore

Post by water01 »

There are two types of Backup taken. A Start up Backup in a folder named after the day you started CumulusMX i.e. 20211003172908 and a Daily backup held in a subfolder of Backups called Daily containing the data from the rollover into that day i.e. 20211005000000 contains the data at the point that MX rollover at 00:00:00 into the 5th October.

Each type contains backups of

alltime.ini
Cumulus.ini
cumulusmx.db
dayfile.txt
diary.db
ExtraLog999999.txt
month.ini
monthlyalltime.ini
MMMYYlog.txt (current Month/Year log)
today.ini
year.ini
yesterday.ini

Therefore it is all the DATA to recover from, but is not enough to recover from a disk crash for instance. You need to keep external backups if you want to do this.
David
Image
Box
Posts: 53
Joined: Sun 15 Nov 2020 8:57 am
Weather Station: FineOffset Gw1002
Operating System: Win10

Re: Data restore

Post by Box »

water01 wrote: Tue 05 Oct 2021 11:44 am There are two types of Backup taken. A Start up Backup in a folder named after the day you started CumulusMX i.e. 20211003172908 and a Daily backup held in a subfolder of Backups called Daily containing the data from the rollover into that day i.e. 20211005000000 contains the data at the point that MX rollover at 00:00:00 into the 5th October.

Each type contains backups of

alltime.ini
Cumulus.ini
cumulusmx.db
dayfile.txt
diary.db
ExtraLog999999.txt
month.ini
monthlyalltime.ini
MMMYYlog.txt (current Month/Year log)
today.ini
year.ini
yesterday.ini

Therefore it is all the DATA to recover from, but is not enough to recover from a disk crash for instance. You need to keep external backups if you want to do this.
Thbaks for the info all is clear now!
Post Reply