Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

backup to gmail server problem

Jul 16, 2007 1:19PM PDT

Hello-

I am currently using blat and stunnel, executed through a batch file to back up my work so that it can be recovered, say my computer crashes.
I am trying to use the gmail smtp server If it changes, where would I find this information? I have googled it and don't seem to be coming up with much.

I am encountering a great amount of difficulty sending the backup files. They always, without exception, fail to send. I get a message saying that stunnel has failed to connect to 127.0.0.1:1099.

I am including the code I am currently using below:

SET emailfrom= my email@gmail.com
SET emailto= my email@gmail.com
SET password= my email@gmail.com

for %%i in (c:\file) do blat.exe %%i -base64 -to %emailto% -u %emailfrom% -pw %password% -f %emailfrom% -server 127.0.0.1:1099

Am I doing anything wrong?

Much appreciated.
joe

Discussion is locked

- Collapse -
Two things at least.
Jul 16, 2007 7:30PM PDT

1. I don't think an web-based service like gmail uses SMTP.
2. 127.0.0.1 is your own PC

Why not use a "normal" file sharing and storage server? Somehow, that seems more applicable than email.

Kees

- Collapse -
"normal" file sharing question
Jul 17, 2007 2:11PM PDT

I am probably misunderstanding your suggestion, but as far as I know, the only way to automatically backup the file I am working on is with email. I save the batch file on my usb stick so that when I am traveling, so I can backup my work folder to gmail.
Is there a way to do this with "normal" file sharing?
If I am to use email to backup a folder automatically, how would I configure blat and stunnel correctly so that mail can be sent from the computer I am currently using [sometimes a shared computer] without installing any software or mail clients on them and without having to login to any servers?

Thanks very much.

- Collapse -
Automatically backing up data with a batch file
Jul 17, 2007 2:26PM PDT

Sorry I wasn't very clear in my last response.
What I am trying to do is create a batch file so that when I execute it, it automatically sends a copy of my work folder [which is not more than a 3 mb, so emailing it shouldn't be a problem] to my gmail account.

I have tried out the script below which I have gotten off of this site.
http://lifehacker.com/software/email/geek-to-live-automatically-email-yourself-file-backups-168156.php

It is giving the procedures for precisely what I want to do, only I am not sure to put in the "yourserver" space, seeing that from what I have recently heard is that gmail doesn't have smtp? Can you verify this?
Do I need to buy a server to do this?
Frankly, I am getting quite confused with this server smtp stuff.
Could I only be sending mail to yahoo with this code, since gmail needs an SSL encryption wrapper?


Blat -install smtp.yourserver.com
you@youremail.com
c:
cd \
cd Blat250\full\

Blat -body "Just in case."
-s "[backup] Important files"
-to you@youremail.com
-af files-to-backup.txt

Thanks in advance

- Collapse -
Re: backup
Jul 17, 2007 5:59PM PDT

I see some alternatives as a work-around.

1. Zip all files of your folder into 1 zip-file, then send it as an attachement to some email-address, so it's in your outbox. Easily done manually, and not really time-consuming (but a little bit more than using a batch file, indeed).
2. Copy the folder to a USB-stick and keep that as backup. You can have multiple copies (one for each day the last week, for example). You can use a batchfile to do the copy, with a VB-script to manage the copied folders (like renaming and deleting them) all automatically, if you like.
3. Find a third-party email-provider that uses SMTP, then continue on the current road. Gmail just doesn't work.

Hope this helps.


Kees

- Collapse -
"I think its 127.0.0.1:1099"
Jul 16, 2007 10:27PM PDT

I think you should research that item.

Bob