Page 1 of 1

looking for a backup script

Posted: Sat 03 Sep 2016 5:53 am
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

Re: looking for a backup script

Posted: Sat 03 Sep 2016 9:15 am
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.

Re: looking for a backup script

Posted: Sat 03 Sep 2016 5:22 pm
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/

Re: looking for a backup script

Posted: Sat 03 Sep 2016 8:54 pm
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:

Re: looking for a backup script

Posted: Sat 03 Sep 2016 10:48 pm
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.

Re: looking for a backup script

Posted: Sun 04 Sep 2016 2:46 am
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.

Re: looking for a backup script

Posted: Sun 04 Sep 2016 4:10 am
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.