sidebar | permalink | keywords | summary |
---|---|---|---|
sidebar |
xcp-nfs-reference-sync.html |
netapp, xcp, reference, nfs, command, commands |
XCP NFS command reference |
View the descriptions, parameters, and examples for the XCP sync
command, including when the sync
command is used with the dry run
option.
The XCP NFS sync
command scans for changes and modifications to a source NFS directory by using a catalog index tag name or the number of a previous copy operation. Incremental changes to the source are copied and applied to the target directory. The old catalog index numbers are replaced with new ones after the sync operation.
Note
|
During the sync operation, modified files and directories are copied to the destination NFSv3 export again. |
xcp sync -id <catalog_name>
Important
|
The -id <catalog_name> parameter is required with the sync command.
|
The following table lists the sync
parameters and their description.
Parameter | Description |
---|---|
Specifies the catalog name of a previous copy index. This is a required parameter for the |
|
Excludes user and group names from file listings and reports. |
|
Specifies the read/write block size (default: 64k). |
|
Specifies the request size when reading directories. |
|
Specifies the maximum number of concurrent batch processes (default: 7). |
|
Restores all files to the last accessed date on the source. |
Use the the -nonames
parameter with the sync
command to exclude user and group names from file listings or reports.
xcp sync -id <catalog_name> -nonames
Use the the -bs <n[k]>
parameter with the sync
command to specify the read/write block size. The default block size is 64k.
xcp sync -id <catalog_name> -bs <n[k]>
Use the the -dircount <n[k]>
parameter with the sync
command to specify the request size when reading directories. The default value is 64k.
xcp sync -id <catalog_name> -dircount <n[k]>
Use the the -parallel
parameter with the sync
command to specify the maximum number of concurrent batch processes. The default value is 7.
xcp sync -id <catalog_name> -parallel <n>
Use the the -preserve-atime
parameter with the sync
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 sync -preserve-atime -id <catalog_name>
The sync
command with the dry-run
option looks for changes or modifications made to the source NFS directory using the previous catalog index number of a copy operation. This command also detects files and directories that are new, moved, deleted, or renamed since the previous copy operation. The command reports the source changes but does not apply them to the target.
xcp sync dry-run -id <catalog_name>
Important
|
The -id <catalog_name> parameter is required with the sync dry-run command option.
|
The following table lists the sync dry-run
parameters and their description.
Parameter | Description |
---|---|
Specifies the catalog name of a previous copy index. This is a required parameter for the |
|
Performs a deep scan of the modified directories and reports everything that is |
|
Prints details about files and directories that changed. |
|
Excludes user and group names from file listings and reports. |
|
Specifies the request size when reading directories. |
|
Specifies the maximum number of concurrent batch processes (default: 7). |
Use the the -id <catalog_name>
parameter with sync dry-run
to specify the catalog name of a previous copy index.
Important
|
The -id <catalog_name> parameter is required with the sync dry-run command option.
|
xcp sync dry-run -id <catalog_name>
Use the the -stats
parameter with sync dry-run
to perform a deep scan of the modified directories and report everything that is new.
xcp sync dry-run -id <catalog_name> -stats
Use the the -l
parameter with sync dry-run
to print details about files and directories that changed.
xcp sync dry-run -id <catalog_name> -l
Use the the -nonames
parameter with sync dry-run
to exclude user and group names from file listings or reports.
xcp sync dry-run -id <catalog_name> -nonames
Use the the -dircount <n[k]>
parameter with sync dry-run
to specify the request size when reading directories. The default value is 64k.
xcp sync dry-run -id <catalog_name> -dircount <n[k]>
Use the the -parallel
parameter with sync dry-run
to specify the maximum number of concurrent batch processes. The default value is 7.
xcp sync dry-run -id <catalog_name> -parallel <n>