can we ftp a directory


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers can we ftp a directory
# 8  
Old 02-23-2006
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

Last edited by sssow; 02-23-2006 at 03:19 PM..
# 9  
Old 02-23-2006
Quote:
Originally Posted by sssow
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 ??
# 10  
Old 02-24-2006
Quote:
Originally Posted by sssow
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
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
# 11  
Old 02-24-2006
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>
# 12  
Old 02-24-2006
Quote:
Originally Posted by bhargav
Nice idea. But how do you navigate to different file system from your HOME ??

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
# 13  
Old 02-25-2006
Quote:
Originally Posted by gauravgoel
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

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.
# 14  
Old 02-27-2006
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
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Replicate remote directory to local directory with ftp

I have system that generate files every 1 hours , i only have ftp connection from my local server to remote . $ ls -al -rw-r--r-- 1 water None 0 Feb 7 18:09 a.0800 -rw-r--r-- 1 water None 0 Feb 7 18:09 a.0900 -rw-r--r-- 1 water None 0 Feb 7 18:09 a.1000 is there any perl / php... (3 Replies)
Discussion started by: before4
3 Replies

2. Shell Programming and Scripting

ftp whole directory

HI Guys, I have downloaded the oracle binaries from oracle.com, i have unziped them in a directory say OWB. I have to copy them to my windows server so i have ran the ftp command. It looks like i can ftp whole directory. Can you please get me the command to get all the files and... (7 Replies)
Discussion started by: guddu_12
7 Replies

3. Shell Programming and Scripting

FTP from one directory to another using perl

Hi All I am stuck with a problem and i want your help, I have two directories dir1 and dir2 The files present in dir1 is a1,a2 a3 a4 What i want to is to FTP the files present in the dir1 to dir2 (with .txt extension at the end.) with the help of the Perl. The output expected is The... (12 Replies)
Discussion started by: parthmittal2007
12 Replies

4. Shell Programming and Scripting

Is it possible to move a directory using ftp??

Hi all, Is it possible to move a directory using ftp service?? (2 Replies)
Discussion started by: eeegopikannan
2 Replies

5. Shell Programming and Scripting

FTP files from different directory from remote server to one directory in local

Hi All, I want to search for .log files from folders and sub folders in remote server and FTP them to one particular folder in the local machine. I dont want to copy the entire directory tree structure, just have to take all the .log files from all the folders by doing a recursive search from the... (3 Replies)
Discussion started by: dassv
3 Replies

6. AIX

ftp mget directory

Hi, I have searched everywhere for an answer to this question but couldn't find one so I ask it here. From an AIX 5.3 machine I ftp to another AIX 5.3 server. I want to get all files and only files in a directory. This directory has a subdirectory with files in it. In ftp, I enter the... (5 Replies)
Discussion started by: bheinsius
5 Replies

7. Solaris

ftp default directory

how to change the default login directory for a specified user when ftp to unix machine. (1 Reply)
Discussion started by: mm00123
1 Replies

8. 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

9. UNIX for Dummies Questions & Answers

ftp a directory

How does one ftp an entire directory from one Solaris 5.9 machine to another with out moving one file at a time? (4 Replies)
Discussion started by: DarkLord
4 Replies

10. UNIX for Dummies Questions & Answers

ftp-directory

Some users get on our server with ftp with a specific username (i.e. guest). The users guest has an own group. The user guest is in the path /usr/guests after login. How can I lock the user guest that he don't get up to the /usr treee. I tried to change the rights for the .. But it's not anymore... (1 Reply)
Discussion started by: arn_ch
1 Replies
Login or Register to Ask a Question