transfer multiple file


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers transfer multiple file
# 1  
Old 05-30-2006
transfer multiple file

Pls anybody can tell me, how to transfer multiple files through ftp in unix
# 2  
Old 05-30-2006
turn off the prompt

use mput

mput <file1> <file2> <file3> ...
# 3  
Old 06-07-2006
Thanks, could you tell me about zip utilities in sco unix

Ajay
# 4  
Old 06-07-2006
Quote:
Originally Posted by matrixmadhan
turn off the prompt

use mput

mput <file1> <file2> <file3> ...

I want to transfer multiple files with directory structure
# 5  
Old 06-07-2006
Quote:
Originally Posted by ajay234
I want to transfer multiple files with directory structure
I cant understand the above,

is that you want to create the directory if it is not existing
or
transfer all the files of the directory

can u please be more specific ?
# 6  
Old 06-08-2006
How can i transfer a directory structure with file and subdirectories through ftp

I want to transfer a directory let say /xyz , which having multiple files and sub-directories inside it

I think a zip utility can solve the problem to make it to single file like xyz.zip and transfer it to another machine using ftp.

I am using sco unix 5.0.5

madhan can u help me about it

Regards,
Ajay
# 7  
Old 06-09-2006
Use tar to create an archive containing your file/directory structure; e.g. to create an archive called myarchive containing all of the files and directories starting at /home/mydirectory then:

all files in the archive will have absolute paths like /home/mydirectory/1.txt
Code:
tar -cvf myarchive /home/mydirectory

or, all files in the archive will have relative paths like ./mydirectory/1.txt
Code:
cd /home
tar -cvf myarchive ./mydirectory

You can also include a specific list of files in the file myfiles.lst (but note that if you specify a directory then the directory will2be included but not the files it contains, this is different from specifying a directory in the first example)
Code:
tar -cvf myarchive -L myfiles.lst

Use ftp to transfer to the archive to the other machine and then untar it:
Code:
tar -xvf myarchive

This is where the difference between absolute and relative paths becomes important as the restore will extract the files/directories to exsct pathnames if the archive was created with absolute pathnames or relative to your current directory if the archive was created with relative pathnames.

hope that helps

cheers
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

File transfer

When using FTP to transfer a file from IBM iSeries family of servers client to a non IBM Iseries family server, files might have characters appear in the wrong format Eg | in Iseries and while transferring fro Iseries system to Linux , but instead of | it is showing as ?. Please advise (3 Replies)
Discussion started by: sudhainit
3 Replies

2. Shell Programming and Scripting

Grep from multiple patterns multiple file multiple output

Hi, I want to grep multiple patterns from multiple files and save to multiple outputs. As of now its outputting all to the same file when I use this command. Input : 108 files to check for 390 patterns to check for. output I need to 108 files with the searched patterns. Xargs -I {} grep... (3 Replies)
Discussion started by: Diya123
3 Replies

3. Shell Programming and Scripting

Transfer multiple different files in FTP

Hi All, i am doing ftp how can i transfer multiple different files example- 03-21-13 06:33AM 46800 CATT_HOURS.pgp 03-21-13 06:33AM 266392 CATT_TAX.txt 03-21-13 06:33AM 91448 CATT_STATUS.txt 03-21-13 06:33AM 468 ... (3 Replies)
Discussion started by: krupasindhu18
3 Replies

4. Shell Programming and Scripting

Avoiding file overwrite during file transfer using scp

Hi, I have written a small script to transfer a file from one unix server to other using scp command which is working fine. As I know with scp, if any file with the same name is already present on destination server, it would get overwritten without any notification to user. Could anyone help me... (14 Replies)
Discussion started by: dsa
14 Replies

5. Programming

File transfer in C

HI Can anyone provide me with codes for file transfer server to client or vice versa? Also please explain how to compile those programs in ubuntu terminal as i am totally new to socket programming. Thanks (0 Replies)
Discussion started by: mayhemtrigger
0 Replies

6. Shell Programming and Scripting

scp command for multiple file transfer.

FILE_LIST="{a.txt,b.txt,cal*}" scp -r $..$REMOTE_PATH$FILE_LIST $LOCAL_PATH This script passes only when all the three files are transfere, wat if only two file are transfered, but still I was to make the return code as pass. is it possible. (2 Replies)
Discussion started by: sangea
2 Replies

7. Shell Programming and Scripting

File transfer

Hi All, it might not be an sound question, i have two server like A and B.. i want to transfer file from B to A ..here i have some questions.. 1) do we need to create private and public key to connect..and transferring files...from B to A..? 2) i tried with scp options like... (2 Replies)
Discussion started by: Shahul
2 Replies

8. Shell Programming and Scripting

SFTP Transfer Across Multiple Servers

Hello everyone, Have a question which I'm not entirely sure about, but will ask anyway. We have three servers (A/B/C), 'A' being the local host, 'B' being a SFTP server on the DMZ, and 'C' being the intended remote host. The task is to transfer file/s from server 'A' to server 'C' via server... (0 Replies)
Discussion started by: Cameron
0 Replies

9. Shell Programming and Scripting

file transfer

hi all how do i copy a file from one server to another thanks bkan77 (4 Replies)
Discussion started by: bkan77
4 Replies
Login or Register to Ask a Question