Automatic backup to Google Drive

77 views
Skip to first unread message

Ton Karsten

unread,
Jul 30, 2019, 7:12:01 AM7/30/19
to weewx-user
Hello, I am looking for a script or program that can upload the Weewx database and configuration settings on Google Drive every day.
I use Weewx on a Raspberry Pi with Debian system.
The advantage is that I do not need a NAS at home and do not need any extra energy. I am not experienced with Linux, so with very limited knowledge.

Ton

p q

unread,
Jul 30, 2019, 9:41:12 AM7/30/19
to weewx...@googlegroups.com
I use a modified version of Jeremy Blythe's Motion Uploader code to copy a backup of the database to Google Drive. See his blog here for full instructions. You can find my mods in Github here

I manually backup the config files since they don't change.

I have a script that stops weewx at 3am, copies the database to a backup, restarts weewx, and then calls the uploader to copy the database to google drive.

I periodically go to the google drive and clean out old backups.




--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/7a444a3a-b98e-4347-9403-169beae5f30c%40googlegroups.com.


--
Peter Quinn
(415)794-2264
Reply all
Reply to author
Forward
0 new messages