
Appendix B Using the Command Line 11 5
Copying Files or Folders (cvcp)
Use the cvcp command to copy les or folders to or from an Xsan volume.
$ cvcp [options] source destination
Parameter Description
options
See “cvcp Command Options” below.
source
The le or folder (directory) to be copied.
destination
Where the copy is created.
cvcp Command Options
Option Description
-A
Turn o preallocation.
-b buffers
Set the number of I/O buers to use.
buffers – the number of buers to use for the
copy
-k size
Set the copy buer size.
size – the buer size (bytes)
-l
Copy the targets of symbolic links, not the links.
-n
Do not apply command to subfolders.
-p prefix
Only copy les with names that start with the
specied prex.
prefix – characters to match with the
beginning of the le name
-s
Allocate on storage pool block boundaries.
-t
Specify the number of copy threads.
-v
Report all information about le copied.
-x
Retain original le permissions in the copy.
-y
Retain ownership and group information in
the copy. This works only if the root user is
performing the copy.
-z
Retain original modication times in the copy.
Examples
Copy the le friday to /datasets/data1/july/:
$ cvcp friday /datasets/data1/july
Copy the folder /data1/ and all subfolders to /datasets/data1/, retaining all permissions
and ownerships and displaying les as they are copied:
Kommentare zu diesen Handbüchern