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 *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>