Link to home
Start Free TrialLog in
Avatar of tonelm54
tonelm54

asked on

xcopy or like for ftp copy

Does anyone know of a program that will work like xcopy, xxcopy or robocopy that can copy from ftp sites?

Id like to create a batch file to backup my ftp servers onto my home pc every night, and want a program that I can use and issue command line options to specify its servers and where to copy to.

Tony
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you're using windows, you already have mget
-i turns off interactive prompts for multiple file transfers
ftp -i username@host
ftp>cd \mydirectory
ftp>lcd \mylocaldirectory
ftp>mget *

Easy enough to create a batch file to do this and schedule it on a regular basis..


Avatar of tonelm54
tonelm54

ASKER

Im using the ftp suggestion suggested by Irmoore, but when I execute the file, it grabs everything and dumps it in 1 local directory, is it possible to get it to either just copy the files in the 1 directory into 1 directory on the pc, or get it to reconstruct the folder directory on the local pc?

Tony
>>or get it to reconstruct the folder directory on the local pc?

Try 'wget'. That's what it does and what it is made for.
Are you still working on this? Can you close out this question before the cleanup crew gets around to it?
Thanks!
I actually used in the end netDrive and wrote a simple batch file using xcopy

Tony