?
Solved

Upload entire folder to an FTP server

Posted on 2008-11-03
14
Medium Priority
?
1,886 Views
Last Modified: 2013-12-09
I have a desktop running windows XP and i have installed the FTP service under IIS. I have another server running unix. Now i want to upload an entire directory from this unix server to the windows FTP home directory. How do i accomplish this?
IN short:
1. One FTP server running on windows XP under IIS with home directory d:\XYZ
2. One unix server
3. i want to connect from Unix to Windows FTP server and then upload a entire directory to the home directory (d:\xyz)

What i did:
1. From the unix server gave the command> FTP> open A.B.C.D
2. logged in as anonymous
3. MPUT
4. <local file> /home/xyz
5. <remote file> d:\XYZ

the above is only to copy a file. But what about an entire directory ?
0
Comment
Question by:smanoj21
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 3
  • +1
14 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 22866283
Hi,
for an entire directory (but without subdirectories) issue
'mput *' after having setup source and target correctly (cd/lcd)
Remembder to turn prompting off.
wmp
 
 
0
 
LVL 27

Expert Comment

by:Tolomir
ID: 22866306
0
 

Author Comment

by:smanoj21
ID: 22866460
i treid the following
mput
<local file>:  /home/xyz/*
the screen scrolled very quickly as if copying something but when the scrolling stopped i could see that against all files, it was mentioned "the system cannot find the path specified"
0
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 
LVL 68

Expert Comment

by:woolmilkporc
ID: 22866481
Well,
use 'mput *', as I wrote.
Before that, turn prompting off by issuing 'prompt'
wmp
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 22867833
basically, you need wget on your windows xp. Please see:

http://www.experts-exchange.com/Software/Internet_Email/File_Sharing/FTP/Q_23851359.html
0
 

Author Comment

by:smanoj21
ID: 22873575
Actually, i need to UPLOAD a directory TO the FTP server. I have used wget before for download. But in this case, i need to UPLOAD a directory from Unix (appn server) to an FTP server (Windows XP). This might seem strange that i am using windows XP as an FTP server but i am not using this in production environment. I just need to have a backup of some folders residing on a Unix server.
0
 

Author Comment

by:smanoj21
ID: 22873583
SO, I am gonna log in from a unix server using FTP to a windows XP system and upload directories to the XP system. (i know, usually people log in from XP to unix running FTP but here its the reverse). i Just want to know how to do it.
0
 

Author Comment

by:smanoj21
ID: 22873704
ftp> mput
(local-files) /home/manojs/07102008/*
mput /home/manojs/07102008/tbccnv001098.S? y
200 PORT command successful.
550 /home/manojs/07102008/tbccnv001098.S: The system cannot find the path specified.
mput /home/manojs/07102008/tbccnv002098.S? y
200 PORT command successful.
550 /home/manojs/07102008/tbccnv002098.S: The system cannot find the path specified.
mput /home/manojs/07102008/tbccnv004098.S? e
Continue with mput? n
0
 
LVL 40

Accepted Solution

by:
omarfarid earned 252 total points
ID: 22873809
I am not sure if there is a tool that can upload recursevly directories. Some FTP clients (GUI e.g. WS_FTP) that let you interactivelly upload.

You may also think of having an ssh server running on the windows system and then you could use scp from unix to windows.
0
 
LVL 27

Assisted Solution

by:Tolomir
Tolomir earned 252 total points
ID: 22873846
A perfect job for:

If you need to securely transfer files between computers, you can also use the free mini sftp server!

Latest update (Sept 11th, 2007 - ver 1.10): http://www.coreftp.com/server/download/msftpsrvr.exe


Instructions are on:

http://www.coreftp.com/server/
 
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 22893048
Hi,
I still don't understand why you are not willing to use 'mput *' (given you don't want to transfer subdirs, too).
Remember to turn prompting off -
ftp> prompt
Interactive mode off.
ftp>

 
 wmp
0
 

Author Comment

by:smanoj21
ID: 22903579
Yeah i tried turning the prompting "OFF"
i used mput * and i agree that it tries to upload all foders. But as i mentioned before, it tries to copy the file and gives the error below
550 /home/manojs/07102008/tbccnv001098.S: The system cannot find the path specified
(Where "tbccnv001098.S:" is one of the list of several files that i want to upload from Unix to XP running FTP & "/home/manojs/07102008" is the folder path from the unix file system where the files reside.

Finally i downloaded the "Smart FTP client software" which was able to do the job for me but still i was wondering why the good old CLI is not able to do the job. Remember i want to upload files from HP UX to windows XP running FTP.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 22903637
the ftp tool is not capable of uploading or downloading sub folders
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

With the withdrawal of support for Windows Server 2003 this summer, many clients face the issue of moving away from their 2003 installs. There are a few options out there that many people/companies are selling. But the clients I have, haven't wanted…
Determining the an SCCM package name from the Package ID
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Suggested Courses

762 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