Shell scripting download and upload backed up files

1

I have gDisk, I don't know if you have ever used it, it allows you to turn your GMail to a hard disk and host any file on it, I have many GMails that I don't use and I can create many others. To use gDisk all you have to do is enter your email and pass and if you checked auto login which will save your details, give it a try if you want just to see how it works.

Here's my question:

I would like to back up the files daily (which is easy) but here's the thing, I would like to download the back up to gdesk and upload them using a shell script when needed, I would like the process to be secure so that hackers will have hard time hacking the system, I know that gmail servers are secure, but I'm concerned about my server's requests :D

I don't want to leave my backup on my server and my connection is slow so downloading and uploading may take sometime and an automated way is a cool thing, and downloading and uploading directly from my vps to gdisk and vise versa would be so fast and google servers are secure :D

Do you think it could be done?

Lynob

Posted 2011-09-04T21:09:08.277

Reputation: 3 254

So what exactly is it you are asking for? Automated uploads to gDisk? – user1686 – 2011-09-04T21:22:04.690

@grawity automated download, and not automated upload, a shell script that i have to manually run to upload backups, but automated downloads – Lynob – 2011-09-04T22:21:35.127

....waitamoment, "download from gdisk" or "download to gdisk"? – user1686 – 2011-09-04T22:39:19.027

@grawity download from vps to gdisk...upload from gdisk to vps – Lynob – 2011-09-04T22:47:16.587

Normally the terms are used like "upload to gdisk" (up to some remote place) and "download from gdisk" – user1686 – 2011-09-04T23:13:27.487

Answers

1

Instead of gDisk you could try gmailfs, which you can run on your VPS. Write a cron job to simply mv any newly-uploaded backups to gmailfs.

user1686

Posted 2011-09-04T21:09:08.277

Reputation: 283 655

THANK YOU, didn't know about gmailfs lol!!! who needs gdisk now? :D – Lynob – 2011-09-04T23:59:09.240

read this http://bit.ly/ymTez it says that it does not work with the new gmail, what u think?

– Lynob – 2011-09-05T00:04:11.323

@elie: It also says, in big letters, "Dave Hansen has converted the code to use IMAP instead of the Gmail UI, please look at Dave's IMAP Gmailfs page for details." My answer also links to the exact same IMAP Gmailfs page.

– user1686 – 2011-09-05T00:23:57.420

So your goal here is to run software that violates Gmail's ToS, and you want to trust the backup of your software to this scheme rather than spending some money to back it up to a legitimate cloud storage service? How ridiculous. – gview – 2011-09-05T05:24:12.610

@gview well what is the difference between putting your script on google docs and on gmail? Does google really cares??? it's a zip file, not being shared by anyone so technically even if it's a trojan horse, it won't harm anyone so why am i violating Tos? google has more than 1 million servers, putting 3mb script won't harm the servers i suppose – Lynob – 2011-09-05T08:45:16.437

1@elieobeid: Gmail is a mail system. They make their money on providing free service by showing ads. They don't want people turning it into a filesystem, and their terms of service spell this out. The fact that like a needle in the haystack, people can violate the tos and get away with misusing the system for some period of time is not really the point. The point is that at any time they may determine that you are doing this, and without warning, disable your account, and you will not have access to your backup data. – gview – 2011-09-06T06:11:11.723