Page 1 of 1

Data restore

Posted: Tue 05 Oct 2021 10:09 am
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

Re: Data restore

Posted: Tue 05 Oct 2021 10:28 am
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.

Re: Data restore

Posted: Tue 05 Oct 2021 10:31 am
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

Re: Data restore

Posted: Tue 05 Oct 2021 10:36 am
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?

Re: Data restore

Posted: Tue 05 Oct 2021 10:49 am
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?

Re: Data restore

Posted: Tue 05 Oct 2021 10:53 am
by Box
No

It just talks to the station

Re: Data restore

Posted: Tue 05 Oct 2021 10:57 am
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.

Re: Data restore

Posted: Tue 05 Oct 2021 11:00 am
by Box
thanks

Re: Data restore

Posted: Tue 05 Oct 2021 11:05 am
by Box
Out of intrerest what is in the backup folder - is that a copy of the data folder?

Re: Data restore

Posted: Tue 05 Oct 2021 11:26 am
by freddie
Yes, and I think Cumulus.ini may well be backed up there too.

Re: Data restore

Posted: Tue 05 Oct 2021 11:44 am
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.

Re: Data restore

Posted: Tue 05 Oct 2021 11:52 am
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!