sincronizar
O sync
comando procura alterações e modificações nos compartilhamentos de origem e destino em paralelo e aplica as ações apropriadas ao destino para garantir que o destino seja idêntico ao da fonte. O sync
comando compara conteúdo de dados, carimbos de hora, atributos de arquivo, propriedade e informações de segurança.
xcp sync \\<source SMB share> \\<IP address of SMB destination server>
Mostrar exemplo
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
A tabela a seguir lista os sync
parâmetros e sua descrição.
Parâmetro | Descrição |
---|---|
Mostrar esta mensagem de ajuda e sair. |
|
Aumente a verbosidade da depuração. |
|
Número de processos simultâneos (padrão: <cpu-count>). |
|
Processe somente arquivos e diretórios que correspondam ao filtro (consulte |
|
Exclua somente arquivos e diretórios no filtro. |
|
Restaurar a última data acessada na origem. |
|
Não verifique o tempo de acesso ao ficheiro. |
|
Não verifique a hora de criação do ficheiro. |
|
Não verifique o tempo de modificação do ficheiro. (Esta opção está obsoleta. A sincronização continuará a ser executada sem esta opção.) |
|
Não verifique os atributos. |
|
Não verifique a propriedade. |
|
Diferença de tempo de acesso aceitável, em segundos. |
|
Diferença de tempo de criação aceitável, em segundos. |
|
Diferença de tempo de modificação aceitável, em segundos, |
|
Copiar informações de segurança. |
|
Usuário do ative Directory ou usuário local (não-domínio) na máquina de destino para receber as permissões de usuários de máquinas de origem locais (não-domínio) (exemplo: Domínio/administrador). |
|
Grupo do ative Directory ou grupo local (não-domínio) na máquina de destino para receber as permissões de grupos de máquinas de origem locais (não-domínio) (exemplo: Domínio/administradores). |
|
Aumenta os detalhes de saída. |
|
Sincronizar ACLs para o diretório raiz. |
|
Copie apenas as informações de segurança. |
|
Forneça uma opção para incluir ou ignorar a verificação da ACL durante a operação de sincronização da ACL. |
|
Tamanho de bloco de leitura/escrita (predefinição:1M). |
|
Use o |
sync -h, --help
Use os -h
parâmetros e –-help
com o sync
comando para exibir informações detalhadas sobre o sync
comando
xcp sync -–help
Mostrar exemplo
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
sincronização -v
Use o -v
parâmetro com o sync
comando para fornecer informações detalhadas de depuração.
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
Mostrar exemplo
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 -parallel <n>
Use o -parallel <n>
parâmetro com o sync
comando para definir um número maior ou menor de processos simultâneos XCP. O sync -parallel <n>
comando sincroniza com o número de processos simultâneos (padrão: <cpu-count>).
O valor máximo para n é 61. |
xcp sync -parallel <n>> \\<IP address or hostname of SMB server>\volxcp\\<IP address of SMB destination server>\xcp1_test1
Mostrar exemplo
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...
sincronizar -match <filter>
Use o -match <filter>
parâmetro com o sync
comando para verificar a árvore de origem e destino e comparar apenas os arquivos ou diretórios que correspondem ao argumento de filtro. Se houver alguma diferença, o comando aplica as ações necessárias no alvo para mantê-las sincronizadas.
xcp sync -match <filter> \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
Mostrar exemplo
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 -exclude <filter>
Use o -exclude <filter>
parâmetro com o sync
comando para excluir somente arquivos e diretórios no filtro.
xcp sync -exclude <filter> \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
Mostrar exemplo
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
sincronizar -preservar-atime
Use o -preserve-atime
parâmetro com o sync
comando para redefinir "atime" para o valor original antes de XCP ler o arquivo.
xcp sync -preserve-atime \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
Mostrar exemplo
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
sincronizar -nostime
Use o -noatime
parâmetro com o sync
comando para sincronizar todas as diferenças na origem para o destino, excluindo arquivos que só têm diferenças no tempo de acesso.
xcp sync -noatime \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
Mostrar exemplo
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
sincronizar -noctime
Use o -noctime
parâmetro com o sync
comando para sincronizar todas as diferenças na origem para o destino, excluindo arquivos que só têm diferenças no tempo de criação.
xcp sync -noctime \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
Mostrar exemplo
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
Use o -nomtime
parâmetro com o sync
comando para sincronizar todas as diferenças na origem para o destino, excluindo arquivos que só têm diferenças no tempo de modificação. (Esta opção está obsoleta. O sync
comando continuará a ser executado sem esta opção.)
xcp sync -nomtime \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
Mostrar exemplo
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
sincronizar -nostrs
Use o -noattrs
parâmetro com o sync
comando para sincronizar todas as diferenças na origem para o destino, excluindo arquivos que só têm diferenças nos atributos de arquivo. O XCP copia um ficheiro apenas quando tem conteúdo diferente (as ACLs são transferidas).
xcp sync -noattrs \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
Mostrar exemplo
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
sincronizar -nospropriedade
Use o -noownership
parâmetro com o sync
comando para sincronizar todas as diferenças da fonte com o destino, excluindo arquivos que só têm diferenças na propriedade.
xcp sync -noownership \\<IP address or hostname of SMB server>\vol_SMB_source_xxxxxx \\<IP address of SMB destination server>\vol_SMB_target_xxxxxx
Mostrar exemplo
>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 -atimewindow <float>
Use o -atimewindow <float>
parâmetro com o sync
comando para especificar a diferença aceitável, em segundos, para o tempo de um arquivo da origem para o destino. O XCP não informa os ficheiros como sendo diferentes se a diferença de tempo for inferior a <value>.
xcp sync -atimewindow <float> \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
No exemplo a seguir, o XCP aceita uma diferença de tempo de até 10 minutos entre os arquivos de origem e destino e não atualiza o tempo no destino.
Mostrar exemplo
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
sincronizar -ctimewindow <float>
Use o -ctimewindow <float>
parâmetro com o sync
comando para especificar a diferença aceitável, em segundos, para o ctime de um arquivo da origem para o destino. O XCP não relata arquivos como sendo diferentes quando a diferença no ctime é menor que o <value>.
xcp sync -ctimewindow <float> \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
No exemplo a seguir, o XCP aceita uma diferença de tempo por até 10 minutos entre os arquivos de origem e destino e não atualiza o ctime no destino.
Mostrar exemplo
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
sincronizar -mtimewindow <float>
Use o -mtimewindow <float>
parâmetro com o sync
comando para especificar a diferença aceitável, em segundos, para o mtime de um arquivo da origem para o destino. O XCP não relata os arquivos como sendo diferentes quando a diferença no mtime é menor que o <value>.
xcp sync -mtimewindow <float> \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
Mostrar exemplo
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 -fallback-user <fallback_user> -fallback-group <fallback_group>
Use os -acl
-fallback-user
parâmetros e -fallback-group
com o sync
comando para comparar os dados e as informações de segurança da origem com o destino e aplicar as ações necessárias no destino. As -fallback-user
opções e -fallback-group
são um usuário ou grupo na máquina de destino ou no ative Directory que recebem as permissões dos usuários ou grupos de origem locais (que não sejam de domínio).
Não pode utilizar a -acl opção sem as -fallback-user opções e. -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
Mostrar exemplo
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
sincronização -l
Use o -l
parâmetro com o sync
comando para fornecer informações detalhadas de Registro na saída padrão para todas as ações executadas pelo XCP no destino.
xcp sync -l \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
Mostrar exemplo
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
sincronizar -root
Use o -root
parâmetro com o sync
comando para sincronizar as ACLs para o diretório raiz.
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
Mostrar exemplo
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-fallback-user <fallback_user> -fallback-group <fallback_group>
Use os -onlyacl
parâmetros , -fallback-user
e -fallback-group
com o sync
comando para comparar as informações de segurança entre a origem e o destino e aplicar as ações necessárias no destino. O -fallback-user
e -fallback-group
são um utilizador ou grupo na máquina de destino ou no ative Directory que recebem as permissões dos utilizadores ou grupos de origem locais (que não sejam de domínio).
Não é possível utilizar o -onlyacl parâmetro sem as -fallback-user opções e. -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
Mostrar exemplo
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 (sim, não)
Use o -aclverify{yes,no}
parâmetro com o sync
comando para fornecer uma opção para incluir ou ignorar a verificação da ACL durante a operação de sincronização da ACL. Esta opção só pode ser utilizada com os sync -acl
comandos e. sync -onlyacl
A sincronização da ACL executa a verificação da ACL por padrão. Se definir a -aclverify
opção como no
, pode ignorar a verificação da ACL e fallback-user
as opções e fallback-group
não são necessárias. Se definir -aclverify
como yes
, é necessário o fallback-user
e fallback-group
as opções, conforme apresentado no exemplo seguinte.
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
Mostrar exemplo
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
sincronizar -bs <n>
Use o -bs <n>
parâmetro com o sync
comando para fornecer um tamanho de bloco de leitura/gravação. O tamanho padrão é 1M.
xcp.exe sync -bs <n> \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
Mostrar exemplo
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
sincronizar -ads
`-ads`Use o parâmetro com o `sync` comando para verificar se há alterações e modificações em fluxos de dados alternativos no compartilhamento SMB de origem e destino. Se houver alterações, ele aplica a alteração ao destino para garantir que o destino seja idêntico à origem.
xcp sync -ads \\<IP address or hostname of SMB server>\source_share \\<IP address of SMB destination server>\dest_share
Mostrar exemplo
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