Solved

Upload entire folder to an FTP server

Posted on 2008-11-03
14
1,880 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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Run same command on multiple files in Linux 3 53
bash file 10 49
linux SFTP 8 59
Latest thoughts on C# utilizing Mono on Linux vs .NET on Windows? 5 61
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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…

791 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