メインコンテンツまでスキップ

Robocopy を使用して Windows ACL を保持し、 NetApp CIFS サーバにファイルを移動する方法

Views:
2,109
Visibility:
Public
Votes:
2
Category:
data-ontap-8
Specialty:
nas
Last Updated:

のとう

のとう

環境

  • ONTAP 9
  • Data ONTAP 7-Mode
  • Microsoft Windows
  • CIFS / SMB

説明

Robocopy を使用してファイルサーバから NetApp CIFS サーバにファイルをコピーし、 Windows 権限を維持します。

手順

  • Robocopyを使用すると、ユーザはファイラーにコピーするときにWindowsファイルのアクセス権を維持できます。
    • WindowsサーバからNetApp Filerにファイルをコピーするには、次のコマンド構文を使用します。
    • robocopy source destination /S /SEC
  • コピー/移動されるファイルの現在の所有権設定を保持Oするには'RobocopyコマンドとともにCopyFlagを使用する必要があります 
    • コピーオプション""/copyall/copy:DATSOUO/copy:は""に相当するため'コピーフラグ""も含まれていますが'オプション""を使用してカスタムコピーフラグを使用し'次にここで説明するように'必要なコピーフラグを指定することもできます
    • robocopy /S /COPYALL
    • robocopy /S /COPY:DATSO
  • 移行のパイロットフェーズでデータを同期するには、次のスクリプトを作成し、Windowsソースサーバーで1時間ごとに実行するようにスケジュールすることもできます。

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.
Scan to view the article on your device