> Given you lost 3 years of data, and not to give you false hope, but are 
> you sure it's actually gone?  Just because the pi won't boot up doesn't 
> mean it's not there, and if it is it might (long shot) be okay; or not, but 
> you've got to check! You might be lucky. Have you checked the card from a 
> card reader?
>

Unfortunately the data are lost. At least the database of weewx because the 
sd is corrupted. I already tried on two pc and with an external card 
reader... I can't read the card. I have all the NOAA txt generated by weewx 
on my ftp account, but not the database.
 

> Sounds like it's an sqlite database (default install) and I believe that 
> can be found in
>  /home/weewx/archive as weewx.sdb.
>

I can confirm that, I checked just now and the database is in that folder.
 

> An sqlite database can be backed up by simply copying it.
>
> From a terminal
>
> sudo cp /home/weewx/archive/weewx.sdb copyofweewx.sdb
>
> (that will make a copy in the same directory as you are in, change as 
> required)
>
> The result can be checked with 
>
> sudo echo 'pragma integrity_check;' | sqlite3 copyofweewx.sdb which should 
> return just 2 letters - ok
>
> If you don't get ok, just try copying it again. Failing that stop weewx 
> and try again, or use it to test if the original database is okay.
>

Ok, I followed your instruction and all worked fine. I created a copy (in 
another folder, like - /home/wx_bk) and checked with sqlite3 (it wasn't 
installed, but I found how to install it).

In the same way I can copy also the skin.conf and all the configuration 
files? It sounds good.
The further step is to copy those files on an external ftp folder (on my 
website) or in a folder (protected by user and psw) on my home nas.

It will be wonderful to do all those action weekly by a programmed action, 
maybe running it 2 minutes past midnight when weewx have already copyed all 
the files to the server and in all his folders.

 

> Okay... The instructions are on the github README.md. If you were able to 
> walk through the installation of the original weewx, you will be able to 
> follow them and succeed with sqlbackup - it's just a skin and it installs 
> using the weewx tools. The defaults work even thought they may be a bit... 
> regular? (daily) ie; once installed and weewx is restarted you'll have 
> daily backups in /var/backups, and all that can be changed from the 
> skin.conf file, as with any of the skins.
>
>
> Your english is fine from my end. Is it a problem reading and translating 
> english instructions, or is it that linux and the command line is just one 
> hurdle too many?
>

The problem is the second one... linux and the command line that I don't 
know well... I don't know at all :')
I don't speak english very well, but at least I usually understand almost 
everything.
 
I will try to read and understand your guide, maybe I can figure out by 
myself. But I don't be sure of that :S

Cheers
>  Glenn
>

Again, many thanks for the help! You deserve a beer! :) 

>
> rorpi - read only raspberry pi + weewx: now with scripts 
> <https://github.com/glennmckechnie/rorpi-raspberrypi>
>

-- 
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.

Reply via email to