downloading folders in ftp


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers downloading folders in ftp
# 1  
Old 04-03-2003
downloading folders in ftp

can you download folders when in ftp or is the only way to download more then one file by mget??
# 2  
Old 04-03-2003
On Windows, it's no problem to download entire directories even if they do not yet exist on the machine that will receive those directories.

However, Unix will not automatically create directories, so if you wish to download an entire directory and any subdirectories from another machine using ftp, mget is the command to use, but the machine you're downloading to must already have those same directories created. Probably a security thing...
# 3  
Old 04-03-2003
it depends on your client. with the standard ftp command line client you can download entire directories with the * wild card. eg
get /home/user/directory/*
# 4  
Old 04-03-2003
That works for you?

When I try get /home/usr/directory/* I get directory/*: Bad directory components.

When I try get /usr/home/directory I get /usr/home/directory/: No such file or directory.
# 5  
Old 04-03-2003
you are rightSmilie thatll teach me to post while half asleep....Smilie
1 demerit.
# 6  
Old 04-03-2003
See this thread for some options.
# 7  
Old 04-23-2003
MySQL

Instead of get /home/usr/directory/* use the mget /home/usr/directory/*. This mget command will ask you for a confirmation for every file to be downloaded to turn the confirmation off use prompt command.

Hope this helps
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

FTP mget will only grab files not folders

Hey All, first post :rolleyes: So I am writting a script to pull down files from an ftp that will be called from a bat file on windows. This seems pretty straight forward, and grabs all of the "files" in the cd location, but I am running into some permission issue that will not allow me to... (1 Reply)
Discussion started by: mpatton
1 Replies

2. Shell Programming and Scripting

ftp script to copy folders recursively

hi all I want a script that will use ftp to copy folder and sub folders from source server to current server. if i use -r switch then it just copies folders for 5 level. (1 Reply)
Discussion started by: kashif.live
1 Replies

3. Shell Programming and Scripting

Downloading FTP Files

Hi every one, I have the requirement to download the files from FTP and move those files to unix box. Once after coping the files, i need to remove the files in FTP. I'm a newbie in Unix script. Can you please suggest a script for this.. Thanks in advance.. (2 Replies)
Discussion started by: Murali4u
2 Replies

4. UNIX for Dummies Questions & Answers

Crontab Wget, downloading a file to a FTP

Hi there, I've got my own domain, ftp etc.. I'm using cPanel and I want to download a file periodically, every say 24 hours. I've used this command: wget -t inf http : / / www . somesite . com / webcam.jpg ftp : / / i @ MyDomain . net : Password @ ftp . MyDomain . net^no spaces... (24 Replies)
Discussion started by: zYx
24 Replies

5. Shell Programming and Scripting

shell script - ftp downloading serveral files without mget

Hello guys, i'm searching for a solution how to download all files from root-directory of an ftp-server through an ftp proxy getting through the ftp proxy and download one file with get ist no problem, but mget * does nothing! ftp -n -i -v <<EOF open proxyHost proxyPort user... (19 Replies)
Discussion started by: macProgger23
19 Replies

6. AIX

FTP folders from CD to AIX Box

Hi All , I would like to ftp whole folder ( which contains various sub folder and files ) from CD to AIX box. Could you please guide me how I can do this? Thanks in Advance Chandan (2 Replies)
Discussion started by: chandancsc
2 Replies

7. Shell Programming and Scripting

Help needed to transfer list of files to FTP server, to different folders

Hello Unix Gurus, Help required from you. My requirement is something like this I want to create a concurrenct program in Oracle Applications using shell script to transfer files from Apps Server to destination FTP server. I have created custom program, where I will extract all the... (4 Replies)
Discussion started by: amazon
4 Replies

8. Shell Programming and Scripting

Problem in Downloading one day old files from FTP site

HI, I'm downloading one day old files from ftp site. Below is my script ---------------------------- printf "open $HOST \n" > ftp.cmd printf "user $USER $PASSWD\n" >> ftp.cmd printf "bin\n" >> ftp.cmd #printf "cd /Models/\n" >> ftp.cmd printf "prompt\n" >> ftp.cmd printf "for oldfile... (4 Replies)
Discussion started by: shekhar_v4
4 Replies

9. UNIX for Advanced & Expert Users

downloading through ftp

i have been busy getting accustomed to ssh and ftp and have a remote account that I am trying to comprehend.. my question is when I use ftp, ssh and remote accounts where do I download packages to.. which directory.. i have a cooledit package that is tarred and gziped which I ncftpd from... (6 Replies)
Discussion started by: moxxx68
6 Replies

10. UNIX for Dummies Questions & Answers

Downloading whole directory with FTP

Is it possible using FTP to download a whole directory and all subdirectories at once without having to go through every single file? Thanks, Tom (4 Replies)
Discussion started by: Pokeyzx
4 Replies
Login or Register to Ask a Question