UNIX Programming, Certification, System Administration, Performance Tuning Reference Books
Copy Entire FileSystems

To copy an entire file system or directory structure to another filesystem or directory structure.

Use the find command along with the cpio -p (passthru) option. The command would be

# find . -depth -print | cpio -pmdvl newdir

newdir must already exist.
 

Return to : Unix System Administration Hints and Tips