Q: I need to copy a lot of files and directories to another directory. What’s the fastest way:
A: If the source_directory does not have any largefiles (that is, files greater than 2GB), you can use cpio –p like this:
cd /source_directory
find . | cpio –pudlmv /destination_directory
To determine if the source_directory has any largefiles, use fsadm:
fsadm /source_directory
It will say: nolargefiles if no largefiles exist on this directory.
For directories with large files, you can use fbackup and frecover:
cd /source_directory &&
fbackup -i . -f – |
( cd destination_directory &&
frecover -Xsrf – )
– See more at: http://serviceitdirect.com/blog/copying-or-moving-lots-files#sthash.FaJCwg5d.dpuf
Tags: HP-UX