auto file transfer between sites ?

  • Thread starter Thread starter scott
  • Start date Start date
S

scott

Hi,

I have 2 sites running 2 versions of the same stock control system. Both
sites have ADSL 512k net connection. I need to transfer files on a daily
basis from one site to another automatically.

Solutions I can think of:
1. 24/7 VPN tunnel router, router. Map a drive over connection. Copy file to
map and import automatically.
2. Symantec PC anywhere, auto lanuch TCP/IP connection/host and transfer
file using BATCH file and import automatically.

Can anyone suggest any other methods ?

Thanks for any information.
Scott.
 
Hi,

It does not need to be secure, data is not very sensitive. Just need to
upload a file to one of our servers automatically when the file exists and
get it to download at another location automatically. Software then runs an
import routine when available.

Thanks for any instructions.
Scott.
 
There is the mput command. You can mput *.* or *.001. mput will ask you
about each file, unless you use the -i switch for ftp.exe. So your command
line would then be (assuming you were asking me, as it's hard to tell by
this reply):

at 4:00 /every:Su,M,T,W,Th,F,Sa ftp.exe -n -i -s D:\Path\upload.ftp

Then in your ftp file, instead of
put file.ext
do
mput *.001

You can also regenerate the ftp file before each run to have it upload just
the file with the correct name. What will the name of the file be for
today, September 17th, 2003?


Ray at work
 
Hi Ray,

Was asking you yip - sorry.

File name today would be T170903.001 , so batch file would read:

open domain.com
user bob
pass
lcd c:\
type binary
mput *.001
close
quit

Then schedule.

Is this correct ?

Thanks
Scott.
 
I think that should work. Just make sure you add the -i switch so that your
ftp session isn't sitting there waiting for someone to say "yes" to "do you
want to upload T170903.001?"

If you want to get more advanced about things, you can use something like
this http://www.jsiinc.com/subb/tip0500/rh0531.htm to parse the date and
have it just upload the appropriate file, but you can save that for version
2 of your task. :]

Ray at work
 
Back
Top