Solved

Upload entire folder to an FTP server

Posted on 2008-11-03
14
1,876 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
  • 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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

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…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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…
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, fr…

813 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now