Copying directories between file systems

Copying files from one directory to another using find and cpio.

cd /old_file_system/
find . -print -depth | cpio -pamVd /new_file_system/

Leave a Reply

Your email address will not be published. Required fields are marked *