Solved

Upload entire folder to an FTP server

Posted on 2008-11-03
14
1,881 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
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 63 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 63 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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Preface There are many applications where some computing systems need have their system clocks running synchronized within a small margin and eventually need to be in sync with the global time. There are different solutions for this, i.e. the W3…
Hello, As I have seen there a lot of requests regarding monitoring and reporting for exchange 2007 / 2010 / 2013 I have decided to post some thoughts together and link to articles that have helped me. Of course a lot of information you can get…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

726 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