The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
redirection and copying with same directory structure user_prady Shell Programming and Scripting 3 12-10-2007 10:52 PM
Need help in Directory Structure murtaza Shell Programming and Scripting 5 03-29-2007 12:14 PM
MV files from one directory structure(multiple level) to other directory structure srmadab UNIX for Advanced & Expert Users 4 09-13-2006 05:01 PM
Copying a Directory Structure to a new structure jhansrod UNIX for Dummies Questions & Answers 8 07-27-2005 07:24 AM
Replacing characters in a directory structure tmettie Shell Programming and Scripting 4 11-01-2002 07:36 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-28-2007
Cnfsed Cnfsed is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 1
Copying with directory structure

Hi,
I need to copy a set of directories along with all sub directories and files from one unix box to another. Any ideas?

cnfsed
  #2 (permalink)  
Old 11-28-2007
pshelke pshelke is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 9
hi

if u r working in network then it is simple to copy directories & file from on unix m/c to another unix machine by using ftp or telnet. you can make ftp connection from one unix machine to another. after that use commands like mget<mget> or mput<file name>

Or
simply use TAPE DRIVE for copy that files or directories


regards
prakash
  #3 (permalink)  
Old 11-28-2007
johny_g johny_g is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 4
I guess scp is what you want:
$ scp -r localdir remoteuser@remotehost:/remotedir

Last edited by johny_g; 11-28-2007 at 05:11 AM..
  #4 (permalink)  
Old 11-28-2007
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
  
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,641
The way our fathers (and the fathers of our fathers) told us to do such things is:

- create a tar-file

- transmit this tar-file (by ftp, whatever)

- untar the file

bakunin
  #5 (permalink)  
Old 11-29-2007
hegemaro hegemaro is offline
Registered User
  
 

Join Date: Feb 2006
Location: Schenectady, NY
Posts: 134
My goodness, I feel old, bakunin. That's how I would have done it without even missing a beat.

Cnfsed could also export the file system read-only via NFS from the source machine and mount it on the target machine. Then use either a recursive copy or tar.

Time for my Centrum Silver.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:14 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0