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

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

I guess scp is what you want:
$ scp -r localdir remoteuser@remotehost:/remotedir

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

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.