| sidebar | sidebar |
|---|---|
| permalink | xcp-nfs-reference-copy.html |
| keywords | netapp, xcp, reference, nfs, command, commands |
| summary | XCP NFS command reference |
The XCP NFS copy command scans and copies the entire source directory structure to a destination NFSv3 export.
The copy command requires having source and destination paths as variables. The scanned and copied files, throughput, speed, and elapsed time details are displayed at the end of the copy operation.
|
Note
|
|
xcp copy <source_nfs_export_path> <destination_nfs_export_path>The following table lists the copy parameters and their description.
| Parameter | Description |
|---|---|
Excludes user and group names from file listings and reports. |
|
Only processes files and directories that match the filter. |
|
Generates checksums on the files and saves the checksums when indexing (default: false). |
|
Specifies the request size when reading directories. |
|
Includes the dedupe estimate in reports. |
|
Specifies the read/write block size (default: 64k). |
|
Specifies the maximum number of concurrent batch processes (default: 7). |
|
Restores all files to the last accessed date on the source. |
|
Provides the option to use HTTP instead of HTTPS for S3 bucket communication. |
|
Overrides the default Amazon Web Services (AWS) endpoint URL with the specified URL for S3 bucket communication. |
|
Specifies a profile from the AWS credential file for S3 bucket communication. |
|
Overrides the default verification of SSL certification for S3 bucket communication. |
Use the -nonames parameter with the copy command to exclude user and group names from file listings or reports.
xcp copy -nonames <source_ip_address_or_hostname>:/source_vol <destination_ip_address_or_hostname>:/dest_volUse the -match <filter> parameter with the copy command to specify that only the files and directories that match a filter are processed.
xcp copy -match <filter> <source_ip_address_or_hostname>:/source_vol <destination_ip_address_or_hostname>:/dest_volUse the -md5 parameter with the copy command to generate checksums for the file listings and save the checksums when indexing. The default value is set to false.
xcp copy -md5 <source_ip_address_or_hostname>:/source_vol <destination_ip_address_or_hostname>:/dest_volUse the -dircount <n[k]> parameter with the copy command to specify the request size when reading directories. The default value is 64k.
xcp copy -dircount <n[k]> <source_ip_address_or_hostname>:/source_vol <destination_ip_address_or_hostname>:/dest_volUse the -edupe parameter with the copy command to include the deduplication estimate in reports.
|
Note
|
Simple Storage Service (S3) does not support sparse files. Therefore, specifying an S3 bucket as the target destination for copy -edupe returns the value "None" for sparse data.
|
xcp copy -edupe <source_ip_address_or_hostname>:/source_vol <destination_ip_address_or_hostname>:/dest_volUse the -bs <n[k]> parameter with the copy command to specify the read/write block size. The default block size is 64k.
xcp copy -bs <n[k]> <ip_address_or_hostname>:/source_vol <destination_ip_address_or_hostname>:/dest_volUse the -parallel <n> parameter with the copy command to specify the maximum number of concurrent batch processes. The default value is 7.
xcp copy -parallel <n> <ip_address_or_hostname>:/source_vol destination_ip_address_or_hostname:/<dest_vol>Use the -preserve-atime parameter with the copy command to restore all files to the last accessed date on the source.
The -preserve-atime option resets the access time to the original value set before the XCP read operation.
xcp copy -preserve-atime <source_ip_address_or_hostname>:/source_vol <destination_ip_address_or_hostname>:/dest_volUse the -s3.insecure parameter with the copy command to use HTTP instead of HTTPS for S3 bucket communication.
xcp copy -s3.insecure s3://<bucket_name>Use the -s3.endpoint <s3_endpoint_url> parameter with the copy command to override the default AWS endpoint URL with a specified URL for S3 bucket communication.
xcp copy -s3.endpoint https://<endpoint_url>: s3://<bucket_name>Use the s3.profile parameter with the copy command to specify a profile from the AWS credential file for S3 bucket communication.
xcp copy -s3.profile <name> -s3.endpoint https://<endpoint_url>: s3://<bucket_name>Use the -s3.noverify parameter with the copy command to override the default verification of SSL certification for S3 bucket communication.
xcp copy -s3.noverify s3://<bucket_name>