can we ftp a directory

Hi guyz,

Is there any way to ftp a whole directory structure.
I mean is there any way using which I can get the whole directory ftpied including the subdirectories

Thanks and regards,
Gauravv

You can tar the whole directory and then ftp. If you dont prefer that you need a different ftp client. Something like ncftp. Ncftp supports recursive directory transfer.

thanks a lot vino.

What ftp-server are you using?

Hi eugrus,

forgive me for my ignorance about this
can u tell me how to check which ftp-server I am using

Thanks and regards,
Gaurav

you can use filezilla for ftp purpose. Its a nice s/w and easy to use. You can download it from net.

Hi ashish,

Thanks for your suggestion, but
I want to ftp between two unix machines and not between windows and unix

Regards,
Gaurav

I prefer to use a webbrowser and you can copy and paste files and directories

url will be something like ftp://username@hostname

I have tried from windows machine to a Unix FTP Server. It should work between unix machines also, if the browser on unix supports that

Nice idea. But how do you navigate to different file system from your HOME ??

First of all thanks to all of you

I will restate my question, maybe I was not clear first time.
All of us know that we can automate ftp of files between two unix machines using shell scripting, so my question was can we do something similar for ftping a directory.

Regards,
Gaurav

yes you can do it. you can ftp directory, but before that you have to tar the file. It is always advisable to zip the file so there will be less chance of loss of data. for doing tar
you can use command
$ tar cvf <directory name.tar> <directory name>
$ gzip <directory name.tar>

After completion of ftp first unzip the file and untar the directory.
$ gunzip <directory name.tar.gz>
$ tar xvf <directory name.tar>

In the browser we will get windows explorer like view, we can easily navigate and copy and paste files as we do in windows. Try and see. I like this very well and we dont need any software like cuteFTP or FileZilla

I haven't tried it, but may I suggest scp? From the scp man page:

NAME
scp - secure copy (remote file copy program)

        -r      Recursively copy entire directories.

Thanks to all

Pilgrim nothing is there in man pages for "scp" on my machine.
I am using HP-UX.
can you tell me how to get this scp

Regards
Gaurav

Please learn to use our search function. If you had read the article on automating ftp jobs in our FAQ section, you would have finf a link to:
HardFeed recursive ftp

Bhargav
I see your point now. I was always trying ftp as root and was able to navigate fine. I dont know the solution for non-root users

Try this page:

Thans a lot pilgrim for your help

Regards,
Gaurav