Author |
Message
|
jeevan |
Posted: Wed Feb 08, 2006 2:03 pm Post subject: how to copy directory in unix |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
Can someone help me how to copy a directoy from one unix machine to another.
thanks a lot
jeevan |
|
Back to top |
|
 |
vennela |
Posted: Wed Feb 08, 2006 2:08 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
|
Back to top |
|
 |
csmith28 |
Posted: Wed Feb 08, 2006 2:24 pm Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
Please do not post questions that are not related to WMQSeries in "General Websphere MQ Support" forum".
jeevan, are there any sub-directories in the directory you want to copy?
If not you can just mkdir the directory on the target server then using ftp, mget all the files from the directory in question but you need to make sure you don't get a binary file in ASCII mode and vice versa.
Otherwise you can tar up the contents of the directory in question and use ftp, rcp or scp to move the tar ball over to the target server and then un-tar it. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
jeevan |
Posted: Fri Feb 10, 2006 12:46 pm Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
no subdirectory. just files in it. |
|
Back to top |
|
 |
jeevan |
Posted: Fri Feb 10, 2006 12:55 pm Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
no subdirectory. just files in it. |
|
Back to top |
|
 |
KramJ |
Posted: Fri Feb 10, 2006 12:59 pm Post subject: |
|
|
Voyager
Joined: 09 Jan 2006 Posts: 80 Location: Atlanta
|
tar -cvf archive.tar *
FTP
tar -xvf archive.tar |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Feb 10, 2006 1:03 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
man scp _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|