I use mysql and keep a week of files which are backed up to another server. 
I use the name of the day of the week and that way it overwrites the old 
file with the same name and you get a rolling 7 files.

#keep a weeks worth of weewx backups
/usr/bin/mysqldump --add-drop-table --user=root --password=password weewx  
>  $FILELOCATION/weewx-$(date +%A).sql

So you end up with 7 rolling files:
-rw-r--r--  1 root   root   512633446 Jan  8 23:15 weewx-Friday.sql
-rw-r--r--  1 root   root   511735369 Jan  4 23:15 weewx-Monday.sql
-rw-r--r--  1 root   root   512857289 Jan  9 23:15 weewx-Saturday.sql
-rw-r--r--  1 root   root   513079187 Jan 10 23:15 weewx-Sunday.sql
-rw-r--r--  1 root   root   512408576 Jan  7 23:15 weewx-Thursday.sql
-rw-r--r--  1 root   root   511958413 Jan  5 23:15 weewx-Tuesday.sql
-rw-r--r--  1 root   root   512183056 Jan  6 23:15 weewx-Wednesday.sql

Works well. I have restored lots of times with success.

On Monday, 11 January 2021 at 06:32:01 UTC+11 [email protected] wrote:

> On Sun, Jan 10, 2021 at 9:06 AM Timothy L <[email protected]> wrote:
>
>> For my own personal understanding as a newcomer I would like to ask how 
>> is it possible to lose a data record using a logger such as in the Vantage 
>> Pro 2 series that should report once weewx is restarted after the backup? 
>> Wouldn't the logger have recorded the weather event and then transferred 
>> that event once weewx has restarted? 
>>
>
> True enough for a Vantage station, but not all stations have a logger. In 
> fact, most don't.
>
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/97646840-76dc-4853-b1ce-0593e236c2b1n%40googlegroups.com.

Reply via email to