Solved

Not-so-simple FTP question

Posted on 2006-06-12
12
287 Views
Last Modified: 2013-11-29
Hello everyone, how are you? Hope fine.

So, let's suppose I have FTP access to a server, holding several, continuously changing databases; suppose I want to turn on my computer, and launch a program that will automatically connect to this FTP, save the databases I want, and put them on a designated folder with a timestamp added to the file name.

Now, suppose I want to ask you how to do this. If so, what would be your answer?
0
Comment
Question by:Emanuele_Ciriachi
  • 6
  • 5
12 Comments
 
LVL 10

Accepted Solution

by:
Sorenson earned 384 total points
ID: 16887948
If the operating system is windows, create a script file and execute it with the ftp command.
for example
---startup.bat--
ftp runftp.scr
----------------

--runftp.scr--
open host.domain.com
user ftpuser
ftppassword
lcd c:\localfolder
bin
get databasename.db
quit
----------------

http://support.microsoft.com/?kbid=96269

0
 
LVL 1

Author Comment

by:Emanuele_Ciriachi
ID: 16887965
Will this work with Filezilla?

How can I add a timestamp to the filename?
0
 
LVL 1

Author Comment

by:Emanuele_Ciriachi
ID: 16887968
Oh and yes, OS is Windows.
0
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 
LVL 10

Expert Comment

by:Sorenson
ID: 16887999
The file will be timestamped with the time of the download.  I am not sure I understand the filezilla comment portion.  Is filezilla the server or client?
0
 
LVL 15

Expert Comment

by:nprignano
ID: 16888019
Filezilla is a Mozilla ftp client, and the above script will NOT use an FTP client to download the file - it will do so using ftp protocol only.


nprignano
0
 
LVL 1

Author Comment

by:Emanuele_Ciriachi
ID: 16888036
Filezilla is a freeware FTP client for Windows.

Another side question: "runftp.scr" must be edited as a text file?
0
 
LVL 10

Expert Comment

by:Sorenson
ID: 16888194
With this, you would not need the ftp client for windows.  It would use the command line one that is included with windows xp.

Yes both the batch and script file would be a text file.

0
 
LVL 1

Author Comment

by:Emanuele_Ciriachi
ID: 16888518
If my database is inside a directory, how should I change

get databasename.db

in

get /databasefolder/databasename.db

?
0
 
LVL 10

Expert Comment

by:Sorenson
ID: 16889049
or add line
cd /databasefolder

then do "get databasename.db"
0
 
LVL 10

Expert Comment

by:Sorenson
ID: 16889062
run the commands manually to see what works.
open a command window (dos window) on xp
Type:  ftp
then at the > prompt type each command from the .scr file in and test.
0
 
LVL 1

Author Comment

by:Emanuele_Ciriachi
ID: 16889198
Ok. Thanks for the added informations, that will earn you 50% more points.
0
 
LVL 10

Expert Comment

by:Sorenson
ID: 16893217
thank you
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question