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
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
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
Moderator: mcrossley
- 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
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.
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
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/
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
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.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.
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 ?
-
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
Interesting. I installed it to test it today and it worked great. Wonder if it's a regional thing.jank wrote: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.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.
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 ?
- 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
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
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.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.