Copy Directories in to UNIX server


 
Thread Tools Search this Thread
Operating Systems AIX Copy Directories in to UNIX server
# 1  
Old 11-11-2005
Copy Directories in to UNIX server

I have software on Z drive " I map it " , its about 50 MB , I want to copy the whole directory in to unix server , under some folder ...
What are the steps how Ican perform this ?
I have UNIX user name and password and rights to create files and folders..
Remember I want to copy all the folder , files which are under that specfic dirctort to UNIX dirctory .
How I can achive this task
Waiting
Bye
# 2  
Old 11-15-2005
Quickest and easiest way to get your files there would be to use ftp.
Open command prompt (start, run, command)
change to the drive and directory you wish to send (z:)
ftp name_of_unix_server (login and password)
ftp> cd /directory_you_want_files_on_unix_server
ftp> bin
ftp> prompt
ftp> recurse
ftp> mput *
ftp> bye

Done.

Last edited by bakunin; 12-07-2005 at 01:07 PM..
# 3  
Old 12-07-2005
The AIX-ftp client doesn't know the "recurse" subcommand. I don't know about the Windoze-ftp client, but suppose that things not known by UNIX-tools are way out of scope for the most common PC-virus.

There are some third-party ftp clients which allow recursion for Windoze, though.

The most elegant way would be to tar your directory structure, transfer the resulting file through ftp and untar it afterwards. GNU-tar for Windoze is easily available from many websites, for instance "http://gnuwin32.sourceforge.net/packages/tar.htm".

If the directory you want to transfer is "z:\mydir" and the place you want it to be on your target machine is "/newplace/for/mydir" you do the following:

make "z:\" your current directory
z:\> tar -cvf mydir.tar ./mydir
ftp the file mydir.tar to a temporary space on your target machine
log on to target machine and go to /newplace/for
# cd /newplace/for
# tar -xvf /tmp/path/mydir.tar

...and voilá!

you can delete the file /tmp/path/mydir (the one you have transferred via ftp) afterwards.

Hope this helps.

bakunin
# 4  
Old 12-09-2005
Duane Ryan and bakunin gave good two idea to transfer the whole directory in unix to unix Machine.

Keep It Up and Share ur Ideas.


Thankx and Regards
Kaniraj Raja
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Copy Directories with Files from One Server to Other using sftp

Hi, I have a requirement where I have to connect to another server and copy directories from one server to another Directories on the Source server look like below (YYYY-MM-DD- 1 to 23) drwxr-xr-x 2 test_user dmfmart 422 Sep 1 23:45 2014-09-01-18drwxr-xr-x 2 test_user dmfmart ... (1 Reply)
Discussion started by: arunkesi
1 Replies

2. UNIX for Dummies Questions & Answers

copy file using unix in multiple directories

Hi All Genious, I want to copy a file name XYZ .In a directory /HOME/dir/IXOS1/dir1 which contain multiple directories named not in pattern want to copy the XYZ in all of the directories available on path /HOME/dir/IXOS1/dir1 . Thanks in advance . (2 Replies)
Discussion started by: mumakhij
2 Replies

3. Shell Programming and Scripting

Copy folder and files from unix server to linux server

We would be migrating unix solaries to Linux redhat. Basically source is unix and target is linux. i would like to copy entire file system unix/source/* to target linux/souce/* but target linux has only folder setup so what ever files copied need to be placed in the linux server with same... (8 Replies)
Discussion started by: balajikalai
8 Replies

4. Shell Programming and Scripting

Unix shell script to Copy files from one Windows server to another Windows server.

Can anybody please help me on how to code for the below requirement: I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
Discussion started by: SravsJaya
4 Replies

5. Shell Programming and Scripting

Copy a directory from a server (UNIX) to a PC (Windows)

Hello, I already do some question about this topic. I already establish the conection from the server (Centus) whit the windows PC using SSH. Now I have two problems: 1- The server always ask me about a password to copy the files to the windows pc, I don't know how to avoid this, if someone can... (2 Replies)
Discussion started by: yeestrada
2 Replies

6. UNIX for Dummies Questions & Answers

Copy a windows CVS file to the unix server

I so desperately need a script to copy a windows csv file to my unix server and i know these should be at dummies but i have no bits. it is life & no job situation help please. thanks (1 Reply)
Discussion started by: zhegal
1 Replies

7. UNIX for Dummies Questions & Answers

help with simple unix file copy and output in directories

Hi, I am fairly new to unix, and am trying to copy all files with the name "*.cons" within a directory (and all of the many directories within it) to a new directory called "output". There are multiple nested directories, and I would like to just pull out the files with ".cons" and not the other... (5 Replies)
Discussion started by: euspilapteryx
5 Replies

8. UNIX for Dummies Questions & Answers

To copy a file from one unix server to another unix server through scripts

I am getting the fallowing error when i am trying to execute the scp commomd in shell script warning: You have no controlling tty. Cannot read confirmation. warning: Authentication failed. Disconnected; key exchange or algorithm negotiation failed (Key exchange failed.). scp2: warning: ssh2... (1 Reply)
Discussion started by: manit
1 Replies

9. UNIX and Linux Applications

Copy folder and its contents from HP Unix server to RH Linux

I am trying to copy a folder and all its contents from HP Unix box to RH linux, using the following. rsync -avz -e "ssh" /users/www/webroot/docFiles/Division/Ctry ftpuser@10.4.xxx.yz:/data/webroot/development/contentfiles/webroot/docFiles/Division/Ctry/QAfiles And it throws a consistent... (2 Replies)
Discussion started by: FanTom
2 Replies

10. UNIX for Dummies Questions & Answers

copying directories from NT server to Unix server (solaris 5.8)

I need to copy around 30 directories (each directory include one or more text file(s)) from NT server to Unix server at one go. For doing this what are the privillages i should have in both NT and Unix server. Please let me know which command i can use in shell prompt. TIA. (4 Replies)
Discussion started by: jhmr7
4 Replies
Login or Register to Ask a Question