Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

looking for a backup script

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
User avatar
iw2lao
Posts: 10
Joined: Sun 14 Jun 2015 3:33 pm
Weather Station: Davis VP2 plus wireless
Operating System: meteobridge
Location: Esine (BS), IT
Contact:

looking for a backup script

Post by iw2lao »

hello,
I'm running cumulusMX with a raspberry Pi 1 model B+ with Debian 8.
Anybody can help me with a script that automatically once per day (at 23:45 for example) make the backup of the CumulusMX forlders "data" and "Reports" to google drive?
many thanks in advance for your clear step by step instructions
User avatar
VTHokie74
Posts: 135
Joined: Tue 10 Apr 2012 12:58 am
Weather Station: Davis Vantage Pro 2
Operating System: Debian 11
Location: Fremont County, CO

Re: looking for a backup script

Post by VTHokie74 »

This is jank's script.

https://cumulus.hosiene.co.uk/viewtopic.p ... 30#p107130

I think it could be modified to use Google Drive as the target.
Last edited by VTHokie74 on Sun 04 Sep 2016 2:07 am, edited 1 time in total.
Station: Davis Vantage Pro 2/CumulusMX/Raspberry Pi 3
BigOkie
Posts: 283
Joined: Tue 28 May 2013 1:06 am
Weather Station: Davis VP2 Plus
Operating System: Raspian Bookworm (RPi 3b)
Location: Tulsa, OK

Re: looking for a backup script

Post by BigOkie »

rclone might be a better solution. I'm using rsync (syncing my CMX directory to my NAS) and it works fine. I haven't tried rclone; it's essentially rsync built for copying/backing up to cloud services like Google Drive and others.

http://rclone.org/
jank
Posts: 239
Joined: Sat 13 Jun 2015 5:57 pm
Weather Station: FineOffset WS3080
Operating System: Debian Buster - Raspbian - Raspb
Location: Germany - nearby Kassel

Re: looking for a backup script

Post by jank »

VTHokie74 wrote:This jank's script.
https://cumulus.hosiene.co.uk/viewtopic.p ... 30#p107130
I think it could be modified to use Google Drive as the target.
Unfortunately Google Drive does not support WebDav. As far as I know no sync program for linux does support google drive (but here, I am not sure) The rclone website mentined above does not work for me.
Edit: rclone indeed support Google Drive and Amazon S3 but not Webdav :-(

Without having a google supported 3rd party program, there is no way to access google drive......but this is what I found out last year. Maybe it is possible now.
Anyway, If you want to make a cloud backup to a cloud space which is supporting webdav (and there are many of them) you can use my script, menionted by VTHokie74. Usage: "sudo ./cumulusmx.sh -b -c" or put this line into a cron on your raspbery and you have your daily cloud backup.
Btw: Who wants to save data to google ? :groan:
Do want a Managing Dashboard for CumulusMX on RaspberryPi? cumulusmx.sh
viewtopic.php?f=40&t=17907
Image
BigOkie
Posts: 283
Joined: Tue 28 May 2013 1:06 am
Weather Station: Davis VP2 Plus
Operating System: Raspian Bookworm (RPi 3b)
Location: Tulsa, OK

Re: looking for a backup script

Post by BigOkie »

jank wrote:
VTHokie74 wrote:This jank's script.
https://cumulus.hosiene.co.uk/viewtopic.p ... 30#p107130
I think it could be modified to use Google Drive as the target.
Unfortunately Google Drive does not support WebDav. As far as I know no sync program for linux does support google drive (but here, I am not sure) The rclone website mentined above does not work for me.
Edit: rclone indeed support Google Drive and Amazon S3 but not Webdav :-(

Without having a google supported 3rd party program, there is no way to access google drive......but this is what I found out last year. Maybe it is possible now.
Anyway, If you want to make a cloud backup to a cloud space which is supporting webdav (and there are many of them) you can use my script, menionted by VTHokie74. Usage: "sudo ./cumulusmx.sh -b -c" or put this line into a cron on your raspbery and you have your daily cloud backup.
Btw: Who wants to save data to google ? :groan:
Interesting. I installed it to test it today and it worked great. Wonder if it's a regional thing.
User avatar
VTHokie74
Posts: 135
Joined: Tue 10 Apr 2012 12:58 am
Weather Station: Davis Vantage Pro 2
Operating System: Debian 11
Location: Fremont County, CO

Re: looking for a backup script

Post by VTHokie74 »

Google Drive, Dropbox and One Drive all synch local copies to their servers in the background. That work's fine on a PC where you typically have a large drive these days. I use Google Drive because they give you 15 GB free. That wouldn't work well on the RP since a local copy would soon fill up an SD card. I suppose one option would be to backup to a PC or NAS server and run a script to back that up to Google Drive on some periodic basis.
Station: Davis Vantage Pro 2/CumulusMX/Raspberry Pi 3
BigOkie
Posts: 283
Joined: Tue 28 May 2013 1:06 am
Weather Station: Davis VP2 Plus
Operating System: Raspian Bookworm (RPi 3b)
Location: Tulsa, OK

Re: looking for a backup script

Post by BigOkie »

VTHokie74 wrote:Google Drive, Dropbox and One Drive all synch local copies to their servers in the background. That work's fine on a PC where you typically have a large drive these days. I use Google Drive because they give you 15 GB free. That wouldn't work well on the RP since a local copy would soon fill up an SD card. I suppose one option would be to backup to a PC or NAS server and run a script to back that up to Google Drive on some periodic basis.
Once again, I'd suggest rclone. It doesn't require a local copy, and setup is fairly simple as long as you follow the directions. I had mine up and going within 5 minutes.
Locked