跳转到主内容

如何使用 Robocopy 将文件移动到 NetApp CIFS 服务器以保留 Windows ACL

Views:
121
Visibility:
Public
Votes:
0
Category:
data-ontap-8
Specialty:
nas
Last Updated:

执行

执行

适用场景

  • ONTAP 9
  • Data ONTAP 7-模式
  • Microsoft Windows
  • CIFS/SMB

问题描述

使用Robocopy将文件从文件服务器复制到NetApp CIFS服务器 以保留Windows权限。

操作步骤

  • Robocopy允许用户在复制到文件管理器时保留Windows文件权限。
    • 要将文件从Windows服务器复制到NetApp文件管理器、请使用以下命令语法:
    • robocopy source destination /S /SEC
  • 要保留所复制/移动文件的当前所有权设置、O需要将CopyFlag ""与Robocopy命令结合使用。 
    • 复制选项""/copyall 相当于""/copy:DATSOU、因此它包含CopyFlag ""O、但您也可以使用自定义复制标志/copy:、并使用""选项、后跟  此处所述的所需CopyFlags
    • robocopy /S /COPYALL
    • robocopy /S /COPY:DATSO
  • 要在迁移的试点阶段保持数据同步、您还可以将以下内容放入脚本中、并计划在Windows源服务器上每小时运行一次:

robocopy <sourcedir> <destinationdir> /copyall /mir /zb /r:1 /w:3

 

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.