Sending the archive database to 2 servers

66 views
Skip to first unread message

Phil D

unread,
Dec 24, 2021, 1:35:44 AM12/24/21
to weewx-user
Hello everyone, 
I would like my data to be sent to a Mysql Archive database both on my local server (rasp) and on a remote server
I plan in weewx.conf to transform
[[MySQL]] driver = weedb.mysql host = localhost user = weewx password = weewx

by

[[MySQL]] driver = weedb.mysql host = localhost user = weewx password = weewx 
[[MySQL2] driver = weedb.mysql host = remote host address user = weewx 
password = weewx 

Has anyone tried this yet, does this work?

Thanks 
Phil 

jszit...@gmail.com

unread,
Dec 24, 2021, 11:58:59 AM12/24/21
to weewx-user
Phil,

I tried this along time ago with previous versions and did not have success.  Are you just wishing to do this as a backup?  If so, you can write a script to use mysqldump and upload that backup to another server.

-Jonathan

Michael

unread,
Dec 25, 2021, 1:51:02 PM12/25/21
to weewx-user
Hi Phil,

you don't write anything about your exact application...

Michael
Reply all
Reply to author
Forward
0 new messages