同步
。 sync
命令可并行扫描源共享和目标共享中的更改和修改、并对目标应用相应的操作、以确保目标与源共享完全相同。。 sync
命令用于比较数据内容、时间戳、文件属性、所有权和安全信息。
xcp sync \\<source SMB share> \\<IP address of SMB destination server>
显示示例
c:\netapp\xcp>xcp sync \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share 634 scanned, 0 copied, 634 compared, 0 removed, 0 errors Total Time : 3s STATUS : PASSED
下表列出了 sync
参数及其问题描述。
参数 | Description |
---|---|
显示此帮助消息并退出。 |
|
增加调试详细信息。 |
|
<<smb_sync_parallel,sync -并行();n |
并发进程数(默认值:<cpu-count>)。 |
<<smb_sync_match,同步-匹配过滤器 |
仅处理与筛选器匹配的文件和目录(请参见 |
<<smb_sync_exclude,同步-排除();过滤器(); |
仅在筛选器中排除文件和目录。 |
还原源上上次访问的日期。 |
|
请勿检查文件访问时间。 |
|
请勿检查文件创建时间。 |
|
请勿检查文件修改时间。(此选项已弃用。如果没有此选项、Sync将继续运行。) |
|
不检查属性。 |
|
请勿检查所有权。 |
|
<<sync_smb_atime,sync -atiewindow ();浮点型(); |
可接受的访问时间差(以秒为单位)。 |
<<sync_smb_ctime,sync -cdewindow ();浮点型(); |
可接受的创建时间差(以秒为单位)。 |
<<sync_smb_mtime,sync -mtiewindow ();浮点型(); |
可接受的修改时间差(以秒为单位)、 |
复制安全信息。 |
|
<<sync_smb_acl,sync -fallback-user |
目标计算机上用于接收本地(非域)源计算机用户权限的Active Directory用户或本地(非域)用户(例如:domain\administrator)。 |
<<sync_smb_acl,sync -reallback-group |
目标计算机上用于接收本地(非域)源计算机组(例如:domain\administrators)权限的Active Directory组或本地(非域)组。 |
增加输出详细信息。 |
|
同步根目录的ACL。 |
|
仅复制安全信息。 |
|
在ACL同步操作期间提供一个选项来包括或跳过ACL验证。 |
|
<<smb_sync_bs,同步-BS |
Read/Write blocksize (读/写块大小)(默认值:1M)。 |
使用 |
sync -h、--help
使用 -h
和 –-help
参数 sync
命令以显示有关的详细信息 sync
命令
xcp sync -–help
显示示例
C:\Netapp\xcp>xcp sync --help usage: xcp sync [-h] [-v] [-parallel <n>] [-match <filter>] [-exclude <filter>] [-preserve-atime] [-noatime] [-noctime] [-nomtime] [-noattrs] [-atimewindow <float>] [-ctimewindow <float>] [-mtimewindow <float>] [-acl] [-fallback-user FALLBACK_USER] [-fallback-group FALLBACK_GROUP] [-loglevel <name>] [-l] [-root] [-noownership] [-onlyacl] [-aclverify {yes,no}] [-bs <n>] [-ads] source target Note: ONTAP does not let a SMB client modify COMPRESSED or ENCRYPTED attributes. XCP sync will ignore these file attributes. positional arguments: source target optional arguments: -h, --help show this help message and exit -v increase debug verbosity -parallel <n> number of concurrent processes (default: <cpu-count>) -match <filter> only process files and directories that match the filter (see `xcp help -match` for details) -exclude <filter> Exclude files and directories that match the filter (see `xcp help -exclude` for details) -preserve-atime restore last accessed date on source -noatime do not check file access time -noctime do not check file creation time -nomtime do not check file modification time -noattrs do not check attributes -atimewindow <float> acceptable access time difference in seconds -ctimewindow <float> acceptable creation time difference in seconds -mtimewindow <float> acceptable modification time difference in seconds -acl copy security information -fallback-user FALLBACK_USER the name of the user on the target machine to receive the permissions of local (non-domain) source machine users (eg. domain\administrator) -fallback-group FALLBACK_GROUP the name of the group on the target machine to receive the permissions of local (non-domain) source machine groups (eg. domain\administrators) -loglevel <name> option to set log levelfilter -l increase output detail -root sync acl for root directory -noownership do not sync ownership -onlyacl sync only acls -aclverify {yes,no} choose whether you need to skip acl verification -bs <n> read/write block size for sync (default: 1M) -ads sync ntfs alternate data stream
sync -v
使用 -v
参数 sync
命令以提供详细的调试信息。
xcp sync -v \\<IP address or hostname of SMB server>\vol_SMB_source_xxxxxx\warning \\<IP address of SMB destination server>\vol_SMB_target_xxxxxx
显示示例
C:\XCP>xcp sync -v \\<IP address or hostname of SMB server>\vol_SMB_source_xxxxxx\warning \\<IP address of SMB destination server>\vol_SMB_target_xxxxxx ERROR failed to remove from target "assembly\GAC_32\Microsoft.CertificateServices.PKIClient.Cmdlets\v4.0_6.3.0.0 31bf3856ad364e35\p ki.psd1": [Errno 13] Access is denied: '\\\\?\\UNC\\<IP address of SMB destination server>\\vol_SMB_tar shil\\assembly\\GAC_32\\Microsoft.CertificateServices.PKIClient.Cmdlets\\v4.0_6.3.0.0 31bf3856ad 364e35\\pki.psd1' ERROR failed to remove from target "assembly\GAC_64\Microsoft.GroupPolicy.AdmTmplEditor\v4.0_6.3.0.0 31bf3856ad364e35\Microsoft.Gro upPolicy.AdmTmplEditor.dll": [Errno 13] Access is denied: '\\\\?\\UNC\\10.61. \vol_SMB_target_xxxxxx\\assembly\\GAC_64\\Microsoft.GroupPolicy.AdmTmplEditor\\v4.0_6.3.0.0 31bf 3856ad364e35\\Microsoft.GroupPolicy.AdmTmplEditor.dll' 1,933 scanned, 1,361 compared, 2 errors, 0 skipped, 0 copied, 1,120 removed, 5s ERROR failed to remove from target "assembly\GAC_64\System.Printing\v4.0_4.0.0.0 31bf3856ad364e35\System.Printing.dll": [Errno 13] Access is denied: '\\\\?\\UNC\\<IP address of SMB destination server>\\vol_SMB_target_xxxxxx\\assembly\ 4\\System.Printing\\v4.0_4.0.0.0 31bf3856ad364e35\\System.Printing.dll' ERROR failed to remove from target "assembly\GAC_MSIL\Microsoft.PowerShell.Workflow.ServiceCore\v4.0_3.0.0.0 31bf3856ad364e35\Micro soft.PowerShell.Workflow.ServiceCore.dll": [Errno 13] Access is denied: '\\\\ \\<IP address of SMB destination server>\\vol_SMB_target_xxxxxx\\assembly\\GAC_MSIL\\Microsoft.PowerShell.Workflow.ServiceCore\\v4 .0_3.0.0.0 31bf3856ad364e35\\Microsoft.PowerShell.Workflow.ServiceCore.dll' ERROR failed to remove from target "assembly\GAC_MSIL\Microsoft.RightsManagementServices.ServerManager.DeploymentPlugin\v4.0_6.3.0.0 31bf3856ad364e35\Microsoft.RightsManagementServices.ServerManager.Deploymen n.dll": [Errno 13] Access is denied: '\\\\?\\UNC\\<IP address of SMB destination server>\\vol_SMB_target_xxxxxx\\assembly\\GAC_MSIL\\Microsoft.RightsManagementServices.ServerMana ger.DeploymentPlugin\\v4.0_6.3.0.0 31bf3856ad364e35\\Mic .RightsManagementServices.ServerManager.DeploymentPlugin.dll' ERROR failed to remove from target "assembly\GAC_MSIL\Microsoft.WSMan.Management\v4.0_3.0.0.0 31bf3856ad364e35\Microsoft.WSMan.Mana gement.dll": [Errno 13] Access is denied: '\\\\?\\UNC\\<IP address of SMB destination server>\\vol_SMB_ _xxxxxx\\assembly\\GAC_MSIL\\Microsoft.WSMan.Management\\v4.0_3.0.0.0 31bf3856ad364e35\\Microsof t.WSMan.Management.dll' ERROR failed to remove from target "assembly\GAC_MSIL\PresentationUI\v4.0_4.0.0.0 31bf3856ad364e35\PresentationUI.dll": [Errno 13] Access is denied: '\\\\?\\UNC\\<IP address of SMB destination server>\\vol_SMB_target_xxxxxx\\assembly\ SIL\\PresentationUI\\v4.0_4.0.0.0 31bf3856ad364e35\\PresentationUI.dll' ERROR failed to remove from target "assembly\GAC_MSIL\System.IO.Compression.FileSystem\v4.0_4.0.0.0 b77a5c561934e089\System.IO.Comp ression.FileSystem.dll": [Errno 13] Access is denied: '\\\\?\\UNC\\10.61.71.5 _SMB_target_xxxxxx\\assembly\\GAC_MSIL\\System.IO.Compression.FileSystem\\v4.0_4.0.0.0 b77a5c561 934e089\\System.IO.Compression.FileSystem.dll' ERROR failed to remove from target "assembly\GAC_MSIL\System.IdentityModel.Selectors\v4.0_4.0.0.0 b77a5c561934e089\System.IdentityM odel.Selectors.dll": [Errno 13] Access is denied: '\\\\?\\UNC\\<IP address of SMB destination server>\\v s_target_xxxxxx\\assembly\\GAC_MSIL\\System.IdentityModel.Selectors\\v4.0_4.0.0.0 b77a5c561934e0 89\\System.IdentityModel.Selectors.dll' 2,747 scanned, 2,675 compared, 9 errors, 0 skipped, 0 copied, 2,624 removed, 10s ERROR failed to remove from target "assembly\GAC_MSIL\System.Web.DataVisualization\v4.0_4.0.0.0 31bf3856ad364e35\System.Web.DataVis ualization.dll": [Errno 13] Access is denied: '\\\\?\\UNC\\<IP address of SMB destination server>\\vol_c rget_xxxxxx\\assembly\\GAC_MSIL\\System.Web.DataVisualization\\v4.0_4.0.0.0 31bf3856ad364e35\\Sy stem.Web.DataVisualization.dll' cp sync -v \\<IP address or hostname of SMB server>\vol_SMB_source_xxxxxx\warning \\<IP address of SMB destination server>\vol_SMB_target_xxxxxx 2,831 scanned, 0 copied, 2,831 compared, 0 removed, 10 errors Total Time : 10s STATUS : PASSED
sync -par行并行<n>
使用 -parallel <n>
参数 sync
命令以设置更多或更少的XCP并发进程数。。 sync -parallel <n>
命令会与并发进程数同步(默认值:<cpu-count>)。
n的最大值为61。 |
xcp sync -parallel <n>> \\<IP address or hostname of SMB server>\volxcp\\<IP address of SMB destination server>\xcp1_test1
显示示例
C:\xcp>xcp sync -parallel 5 \\<IP address or hostname of SMB server>\volxcp\\<IP address of SMB destination server>\xcp1_test1 658 scanned, 244 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 5s 658 scanned, 606 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 10s 658 scanned, 658 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 10s Sending statistics...
Sync -match <filter>
使用 -match <filter>
参数 sync
命令以扫描源树和目标树、并仅比较与筛选器参数匹配的文件或目录。如果存在任何差异、该命令会对目标应用所需的操作、以使其保持同步。
xcp sync -match <filter> \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
显示示例
c:\netapp\xcp>xcp sync -match "'gx' in name" \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -match "'gx' in name" \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -match 'gx' in name \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share 634 scanned, 0 copied, 10 compared, 0 removed, 0 errors Total Time : 2s STATUS : PASSED
Sync -排除<filter>
使用 -exclude <filter>
参数 sync
命令以仅排除筛选器中的文件和目录。
xcp sync -exclude <filter> \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
显示示例
C:\netapp\xcp>xcp sync -exclude "path('*Exceptions*')" \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -exclude path('*Exceptions*') \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share 451 scanned, 427 excluded, 0 copied, 24 compared, 0 skipped, 0 removed, 0 errors Total Time : 2s STATUS : PASSED
sync -保留-环境
使用 -preserve-atime
参数 sync
命令、用于在XCP读取文件之前将"adi"重置为原始值。
xcp sync -preserve-atime \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
显示示例
c:\netapp\xcp>xcp sync -preserve-atime \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -preserve-atime \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -preserve-atime \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share 634 scanned, 0 copied, 634 compared, 0 removed, 0 errors Total Time : 4s STATUS : PASSED
sync -no地me
使用 -noatime
参数 sync
命令将源中的所有差异同步到目标、但不包括访问时间有差异的文件。
xcp sync -noatime \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
显示示例
c:\netapp\xcp>xcp sync -noatime \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -noatime \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -noatime \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share 634 scanned, 0 copied, 634 compared, 0 removed, 0 errors Total Time : 3s STATUS : PASSED
sync -noctime
使用 -noctime
参数 sync
命令将源中的所有差异同步到目标、但不包括创建时间有差异的文件。
xcp sync -noctime \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
显示示例
c:\netapp\xcp>xcp sync -noctime \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -noctime \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -noctime \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share 634 scanned, 0 copied, 634 compared, 0 removed, 0 errors Total Time : 3s STATUS : PASSED
sync -nomtime
使用 -nomtime
参数 sync
命令将源中的所有差异同步到目标、但不包括修改时间只有差异的文件。(此选项已弃用。。 sync
如果没有此选项、命令将继续运行。)
xcp sync -nomtime \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
显示示例
c:\netapp\xcp>xcp sync -nomtime \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -nomtime \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -nomtime \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share 634 scanned, 0 copied, 634 compared, 0 removed, 0 errors Total Time : 3s STATUS : PASSED
sync -noatttrs
使用 -noattrs
参数 sync
命令将源中的所有差异同步到目标、但不包括仅在文件属性方面存在差异的文件。XCP仅在文件包含不同内容时才会复制该文件(传输ACL)。
xcp sync -noattrs \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
显示示例
c:\netapp\xcp>xcp sync -noattrs \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -noattrs \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -noattrs \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share 634 scanned, 0 copied, 634 compared, 0 removed, 0 errors Total Time : 3s STATUS : PASSED
sync -no所有权
使用 -noownership
参数 sync
命令将源的所有差异同步到目标、但不包括所有权差异的文件。
xcp sync -noownership \\<IP address or hostname of SMB server>\vol_SMB_source_xxxxxx \\<IP address of SMB destination server>\vol_SMB_target_xxxxxx
显示示例
>xcp sync -acl -noownership -fallback-user "DOMAIN\User" -fallback-group "DOMAIN\Group" \\<source_IP_address>\source_share \\<IP address of SMB destination server>\dest_share Truncated Output 302,909 scanned, 301,365 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 9m46s 307,632 scanned, 303,530 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 9m51s 308,434 scanned, 305,462 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 9m56s 310,824 scanned, 307,328 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 10m1s 313,238 scanned, 310,083 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 10m6s 314,867 scanned, 313,407 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 10m11s 318,277 scanned, 315,856 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 10m17s 321,005 scanned, 318,384 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 10m22s 322,189 scanned, 321,863 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 10m27s 323,906 scanned, 323,906 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 10m29s xcp sync -acl -noownership -fallback-user "DOMAIN\User" -fallback-group "DOMAIN\Group" \\<source_IP_address>\source_share \\<IP address of SMB destination server>\dest_share 323,906 scanned, 0 copied, 323,906 compared, 0 removed, 0 errors Total Time : 10m29s STATUS : PASSED
sync -地 点对点<float>
使用 -atimewindow <float>
参数 sync
命令以指定文件从源到目标的可接受差值(以秒为单位)。如果时间差异小于<value>、则XCP不会将文件报告为不同。
xcp sync -atimewindow <float> \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
在以下示例中、XCP接受源文件和目标文件之间的最多10分钟时间差异、并且不会更新目标上的时间。
显示示例
c:\netapp\xcp>xcp sync -atimewindow 600 \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\source_share xcp sync -atimewindow 600 \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\source_share xcp sync -atimewindow 600 \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\source_share 634 scanned, 0 copied, 634 compared, 0 removed, 0 errors Total Time : 3s STATUS : PASSED
sync -cdiewindow <float>
使用 -ctimewindow <float>
参数 sync
命令以指定文件从源到目标的可接受差异(以秒为单位)。当ctime的差异小于<value>时、XCP不会将文件报告为不同。
xcp sync -ctimewindow <float> \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
在以下示例中、XCP接受源文件和目标文件之间长达10分钟的时间差、并且不会更新目标上的ctime。
显示示例
c:\netapp\xcp>xcp sync -ctimewindow 600 \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -ctimewindow 600 \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -ctimewindow 600 \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share 634 scanned, 0 copied, 634 compared, 0 removed, 0 errors Total Time : 3s STATUS : PASSED
sync -mtiewindow <float>
使用 -mtimewindow <float>
参数 sync
命令以指定文件从源到目标的mtime的可接受差值(以秒为单位)。当mtime的差异小于<value>时、XCP不会将文件报告为不同。
xcp sync -mtimewindow <float> \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
显示示例
c:\netapp\xcp>xcp sync -mtimewindow 600 \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -mtimewindow 600 \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -mtimewindow 600 \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share 634 scanned, 0 copied, 634 compared, 0 removed, 0 errors Total Time : 3s STATUS : PASSED
sync -acl -reallback-user <fallback_user>-reallback-group <fallback_group>
使用 -acl
, -fallback-user
和 -fallback-group
参数 sync
命令将源的数据和安全信息与目标进行比较、并对目标应用所需的操作。。 -fallback-user
和 -fallback-group
选项是指目标计算机或Active Directory中接收本地(非域)源用户或组权限的用户或组。
您不能使用 -acl 选项 -fallback-user 和 -fallback-group 选项
|
xcp sync -acl -fallback-user <fallback_user> -fallback-group <fallback_group> \\<IP address or hostname of SMB server>\performance_SMB_home_dirs \\<IP address of SMB destination server>\performance_SMB_home_dirs
显示示例
C:\xcp>xcp sync -acl -fallback-user "DOMAIN\User" -fallback-group "DOMAIN\Group" \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share 10,796 scanned, 4,002 compared, 0 errors, 0 skipped, 0 copied, 0 removed, s 15,796 scanned, 8,038 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 0s 15,796 scanned, 8,505 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 5s 15,796 scanned, 8,707 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 0s 15,796 scanned, 8,730 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 5s 15,796 scanned, 8,749 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 0s 15,796 scanned, 8,765 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 5s 15,796 scanned, 8,786 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 0s 15,796 scanned, 8,956 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 5s 15,796 scanned, 9,320 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 0s 15,796 scanned, 9,339 compared, 0 errors, 0 skipped, 0 copied, 0 removed, 5s 15,796 scanned, 9,363 compared, 0 errors, 0 skipped, 0 copied, 0 removed, m0s 15,796 scanned, 10,019 compared, 0 errors, 0 skipped, 0 copied 0 removed, 1m5s 15,796 scanned, 10,042 compared, 0 errors, 0 skipped, 0 copied 0 removed, 1m10s 15,796 scanned, 10,059 compared, 0 errors, 0 skipped, 0 copied 0 removed, 1m15s 15,796 scanned, 10,075 compared, 0 errors, 0 skipped, 0 copied 0 removed, 1m20s 15,796 scanned, 10,091 compared, 0 errors, 0 skipped, 0 copied 0 removed, 1m25s 15,796 scanned, 10,108 compared, 0 errors, 0 skipped, 0 copied 0 removed, 1m30s 15,796 scanned, 10,929 compared, 0 errors, 0 skipped, 0 copied 0 removed, 1m35s 15,796 scanned, 12,443 compared, 0 errors, 0 skipped, 0 copied 0 removed, 1m40s 15,796 scanned, 13,963 compared, 0 errors, 0 skipped, 0 copied 0 removed, 1m45s 15,796 scanned, 15,488 compared, 0 errors, 0 skipped, 0 copied 0 removed, 1m50s 15,796 scanned, 15,796 compared, 0 errors, 0 skipped, 0 copied 0 removed, 1m51s xcp sync -acl -fallback-user "DOMAIN\User" -fallback-group "DOMAIN\Group \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share 15,796 scanned, 0 copied, 15,796 compared, 0 removed, 0 errors Total Time : 1m51 STATUS : PASSED
sync -l
使用 -l
参数 sync
命令、用于在标准输出中提供XCP对目标执行的所有操作的详细日志记录信息。
xcp sync -l \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
显示示例
c:\netapp\xcp>xcp sync -l \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -l \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share File "atime" changed, timestamps set for "agnostic" File "atime" changed, timestamps set for "<root>" xcp sync -l \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share 634 scanned, 0 copied, 634 compared, 0 removed, 0 errors Total Time : 3s STATUS : PASSED
sync -root
使用 -root
参数 sync
命令以同步根目录的ACL。
xcp sync -acl -root -fallback-user "DOMAIN\User" -fallback-group "DOMAIN\Group" \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
显示示例
C:\NetApp\XCP>xcp sync -acl -root -fallback-user "DOMAIN\User" -fallback-group "DOMAIN\Group" \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -acl -root -fallback-user "DOMAIN\User" -fallback-group "DOMAIN\Group" \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share 12 scanned, 0 copied, 12 compared, 0 skipped, 0 removed, 0 errors, 1 acls copied Total Time : 2s STATUS : PASSED
sync -onlyacl-reallback-user <fallback_user>-reallback-group <fallback_group>
使用 -onlyacl
, -fallback-user
,和 -fallback-group
参数 sync
命令以比较源与目标之间的安全信息并对目标应用所需的操作。。 -fallback-user
和 -fallback-group
是目标计算机或Active Directory中接收本地(非域)源用户或组权限的用户或组。
您不能使用 -onlyacl 不带的参数 -fallback-user 和 -fallback-group 选项
|
xcp sync -onlyacl -fallback-user <fallback_user> -fallback-group <fallback_group> \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
显示示例
C:\Users\ctladmin\Desktop>xcp sync -onlyacl -fallback-user "DOMAIN\User" -fallback-group "DOMAIN\Group" \\<source_IP_address>\source_share \\<IP address of SMB destination server>\dest_share 8,814 scanned, 0 copied, 620 compared, 0 skipped, 0 removed, 0 errors, 6s 9,294 scanned, 0 copied, 2,064 compared, 0 skipped, 0 removed, 0 errors, 11s 12,614 scanned, 0 copied, 3,729 compared, 0 skipped, 0 removed, 0 errors, 16s 13,034 scanned, 0 copied, 5,136 compared, 0 skipped, 0 removed, 0 errors, 21s 14,282 scanned, 0 copied, 7,241 compared, 0 skipped, 0 removed, 0 errors, 26s 14,282 scanned, 0 copied, 8,101 compared, 0 skipped, 0 removed, 0 errors, 31s 14,282 scanned, 0 copied, 8,801 compared, 0 skipped, 0 removed, 0 errors, 36s 14,282 scanned, 0 copied, 9,681 compared, 0 skipped, 0 removed, 0 errors, 41s 14,282 scanned, 0 copied, 10,405 compared, 0 skipped, 0 removed, 0 errors, 46s 14,282 scanned, 0 copied, 11,431 compared, 0 skipped, 0 removed, 0 errors, 51s 14,282 scanned, 0 copied, 12,471 compared, 0 skipped, 0 removed, 0 errors, 56s 14,282 scanned, 0 copied, 13,495 compared, 0 skipped, 0 removed, 0 errors, 1m1s 14,282 scanned, 0 copied, 14,282 compared, 0 skipped, 0 removed, 0 errors, 1m6s xcp sync -onlyacl -preserve-atime -fallback-user "DOMAIN\User" -fallback-group "DOMAIN\Group" \\<source_IP_address>\source_share \\<IP address of SMB destination server>\dest_share 14,282 scanned, 0 copied, 14,282 compared, 0 skipped, 0 removed, 0 errors Total Time : 1m7s STATUS : PASSED
sync -aclverify{yes, no}
使用 -aclverify{yes,no}
参数 sync
命令以提供在ACL同步操作期间包含或跳过ACL验证的选项。此选项只能与结合使用 sync -acl
和 sync -onlyacl
命令默认情况下、ACL同步会执行ACL验证。如果您设置了 -aclverify
选项 no
,则可以跳过ACL验证和 fallback-user
和 fallback-group
不需要选项。如果您设置了 -aclverify
to yes
,则需要 fallback-user
和 fallback-group
选项、如以下示例所示。
xcp sync -acl -aclverify yes -fallback-user <fallback_user> -fallback-group <fallback_group> \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
显示示例
C:\NetApp\xcp>xcp sync -acl -aclverify yes -fallback-user "DOMAIN\User" -fallback-group "DOMAIN\Group" \\<source_IP_address>\source_share \\<IP address of SMB destination server>\dest_share 25 scanned, 0 copied, 24 compared, 0 skipped, 0 removed, 0 errors, 5s, 0 acls copied 25 scanned, 0 copied, 24 compared, 0 skipped, 0 removed, 0 errors, 10s, 0 acls copied 25 scanned, 0 copied, 24 compared, 0 skipped, 0 removed, 0 errors, 15s, 0 acls copied xcp sync -acl -aclverify yes -fallback-user "DOMAIN\User" -fallback-group "DOMAIN\Group" \\<source_IP_address>\source_share \\<IP address of SMB destination server>\dest_share 25 scanned, 1 copied, 25 compared, 0 skipped, 0 removed, 0 errors, 12 acls copied Total Time : 16s STATUS : PASSED C:\NetApp\xcp>xcp sync -acl -aclverify no \\<source_IP_address>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -acl -aclverify no \\<source_IP_address>\source_share \\<IP address of SMB destination server>\dest_share 27 scanned, 1 copied, 27 compared, 0 skipped, 0 removed, 0 errors, 13 acls copied Total Time : 2s STATUS : PASSED C:\NetApp\xcp>xcp sync -onlyacl -aclverify yes -fallback-user "DOMAIN\User" -fallback-group "DOMAIN\Group" \\<source_IP_address>\source_share \\<IP address of SMB destination server>\dest_share 24 scanned, 0 copied, 24 compared, 0 skipped, 0 removed, 0 errors, 5s, 0 acls copied 24 scanned, 0 copied, 24 compared, 0 skipped, 0 removed, 0 errors, 10s, 0 acls copied 24 scanned, 0 copied, 24 compared, 0 skipped, 0 removed, 0 errors, 15s, 0 acls copied xcp sync -onlyacl -aclverify yes -fallback-user "DOMAIN\User" -fallback-group "DOMAIN\Group" \\<source_IP_address>\source_share \\<IP address of SMB destination server>\dest_share C:\NetApp\xcp>xcp sync -onlyacl -aclverify no \\<source_IP_address>\source_share \\<IP address of SMB destination server>\dest_share xcp sync -onlyacl -aclverify no \\<source_IP_address>\source_share \\<IP address of SMB destination server>\dest_share 24 scanned, 0 copied, 24 compared, 0 skipped, 0 removed, 0 errors, 11 acls copied Total Time : 2s STATUS : PASSED
Sync -BS <n>
使用 -bs <n>
参数 sync
命令以提供读/写块大小。默认大小为1M。
xcp.exe sync -bs <n> \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
显示示例
C:\Netapp\xcp>xcp.exe sync -bs 64k \\<source_IP_address>\source_share \\<IP address of SMB destination server>\dest_share 1,136 scanned, 0 copied, 1,135 compared, 0 skipped, 95 removed, 0 errors, 5s xcp.exe sync -bs 64k \\<source_IP_address>\source_share \\<IP address of SMB destination server>\dest_share 1,136 scanned, 283 copied, 1,136 compared, 0 skipped, 283 removed, 0 errors Total Time : 10s STATUS : PASSED
sync -ADS
使用 … -ads
参数 sync
用于扫描对源SMB共享和目标SMB共享中备用数据流所做的更改和修改的命令。如果发生更改、则会将更改应用于目标、以确保目标与源完全相同。
xcp sync -ads \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
显示示例
C:\netapp\xcp>xcp sync -ads \\<source_IP_address>\source_share\src \\<dest_IP_address>\dest_share 13 scanned, 1 copied, 12 compared, 0 skipped, 0 removed, 0 errors, 5s, 1 ads copied 13 scanned, 1 copied, 12 compared, 0 skipped, 0 removed, 0 errors, 10s, 1 ads copied 13 scanned, 1 copied, 12 compared, 0 skipped, 0 removed, 0 errors, 15s, 1 ads copied 13 scanned, 1 copied, 12 compared, 0 skipped, 0 removed, 0 errors, 20s, 1 ads copied 13 scanned, 1 copied, 12 compared, 0 skipped, 0 removed, 0 errors, 25s, 1 ads copied 13 scanned, 1 copied, 12 compared, 0 skipped, 0 removed, 0 errors, 30s, 1 ads copied 13 scanned, 1 copied, 12 compared, 0 skipped, 0 removed, 0 errors, 1m0s, 1 ads copied 13 scanned, 1 copied, 12 compared, 0 skipped, 0 removed, 0 errors, 2m50s, 1 ads copied 13 scanned, 1 copied, 12 compared, 0 skipped, 0 removed, 0 errors, 2m55s, 1 ads copied 13 scanned, 1 copied, 12 compared, 0 skipped, 0 removed, 0 errors, 3m0s, 1 ads copied 13 scanned, 1 copied, 12 compared, 0 skipped, 0 removed, 0 errors, 3m55s, 1 ads copied 13 scanned, 1 copied, 12 compared, 0 skipped, 0 removed, 0 errors, 4m0s, 1 ads copied 13 scanned, 1 copied, 12 compared, 0 skipped, 0 removed, 0 errors, 4m55s, 1 ads copied 13 scanned, 1 copied, 12 compared, 0 skipped, 0 removed, 0 errors, 5m0s, 1 ads copied 13 scanned, 1 copied, 12 compared, 0 skipped, 0 removed, 0 errors, 5m5s, 1 ads copied 13 scanned, 1 copied, 12 compared, 0 skipped, 0 removed, 0 errors, 5m10s, 1 ads copied 13 scanned, 1 copied, 12 compared, 0 skipped, 0 removed, 0 errors, 5m55s, 1 ads copied 13 scanned, 1 copied, 12 compared, 0 skipped, 0 removed, 0 errors, 6m0s, 1 ads copied 13 scanned, 1 copied, 12 compared, 0 skipped, 0 removed, 0 errors, 6m5s, 1 ads copied xcp sync -ads \\<source_IP_address>\source_share\src \\<dest_IP_addess>\dest_share 13 scanned, 1 copied, 13 compared, 0 skipped, 0 removed, 0 errors, 1 ads copied Total Time : 6m9s STATUS : PASSED