跳转到主内容

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

Views:
187
Visibility:
Public
Votes:
0
Category:
ontap-9
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
  • 要保留所复制/移动文件的当前所有权设置、需要将CopyFlag "O "与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

追加信息

警告

由于Robocopy不是NetApp工具、请联系Microsoft以获得该工具的帮助。本文内容仅供NetApp客户参考、并不是数据迁移的最终指南。Microsoft文档| Robocopy

 

 

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.