cd_cp - Copy from a mountable filesystem to a directory.
cd_cp jobid [-mMcP] [-l lockfile1[,lockfile2,...] srcdev dstdev
jobid: The jobid of the CGIBurn job this is running for.
-m: mount srcdev before we use it, and umount it when we are done.
-M: mount dstdev before we use it, and umount it when we are done.
-c: Remove all files and subdirectories in dstdev before copying new
files there.
-k: Don't overwrite existing files in directory
-P: Don't do prescan of files. This speeds things up somewhat, but
makes the progress information completely inaccurate, and means
you won't find out about read errors until we start copying.
-E: Ignore errors.
-l: Use these lockfiles. You should pass the full path, and if multiple
files should be passed, separate them with commas.
srcdev: The directory we should copy from (possibly mounting first).
dstdev: The directory we should copy to (possibly mounting first).
Uses no external commands.