find . -print | cpio -dumpv /home/users/hope
Become an administrator.
Change to the appropriate directory.
# cd filesystem1
Copy the directory tree from filesystem1 to filesystem2 by using a combination of the find and cpio commands.
# find . -print -depth | cpio -pdm filesystem2
.
Starts in the current working directory.
-print
Prints the file names.
-depth
Descends the directory hierarchy and prints file names from the bottom up.
-p
Creates a list of files.
-d
Creates directories as needed.
-m
Sets the correct modification times on directories.