FTP the whole file structure

Hi
I need to ftp the whole file structure from various unix servers to a windows server
I have a sub script for each machine and am using
ftp -is:../%name%_prog.bat -i %server% on the windows side.

The problem then comes with the mget command
it gets all the files , but puts them in one directory, and so I loose the structure.

Is these a way I can ftp all the files and keep the sub directories etc

Thanks
MadMacher

Get Norton Commander or Midnight Commander,
it handles FTP file system like native file systems - a recursive copy between them is one mouse click.
Did you try it with the Windows Explorer by using a ftp://server/folder location?

Hi
thanks for the reply
unfortunately I need to do this as a scheduled task or cron job and so need to have it in a script
tried mget -R , wget -m and even ncftpput but all just giving me files and no directories

madmacher

You might need to either write something to determine the files and then loop round, or perhaps you could use tar to create a single file, send that and arrange to extract it on the other side.

Could you consider rsync, rcp or scp perhaps? Would one of those meet your needs? It depends what you are running on both sides.

Another way would be to NFS share, but i'm always a little wary of tying machines together in this way.

Robin

What OS on the Unix side? You could just use Samba to share the files out and mount them on the Windows server.