Octo Performance Engineering

Friday, November 24, 2006

Copying a Unix Directory Tree

If you wish to copy an entire directory tree to another location while retaining the file permissions and ownerships, run the commands:

$ cd source_dir
$ find . -depth -print | cpio -pdv dest_dir

Wow!

0 Comments:

Post a Comment

<< Home