跳转到主内容
NetApp Response to Russia-Ukraine Cyber Threat
In response to the recent rise in cyber threat due to the Russian-Ukraine crisis, NetApp is actively monitoring the global security intelligence and updating our cybersecurity measures. We follow U.S. Federal Government guidance and remain on high alert. Customers are encouraged to monitor the Cybersecurity and Infrastructure Security (CISA) website for new information as it develops and remain on high alert.

从快照中复制文件夹 / 文件的最快方式是什么 - 在存储器上将其复制回 homedir ?

Views:
24
Visibility:
Public
Votes:
0
Category:
data-ontap-7
Specialty:
dp
Last Updated:

适用场景

Data ONTAP 7 及更早版本

问题解答

ndmpcopy存储器本身的命令开始。这是从快照中复制文件夹 / 文件并将其重新复制到homedir存储器上的的的最快方法。

Example:
名为odd_docshourly.0newDocs的文件夹将从名为的快照复制到 qtree SRQ 中的文件夹。由于我们将快照指定为源,因此不会创建新快照。

注意:目标文件夹不需要事先存在,ndmpcopy将创建它。

fas940-hd*> qtree
qtree: This command is deprecated; using qtree status.
Volume Tree Style Oplocks Status
------------ -------- ------- ------------ ----------
vol1 unix enabled normal
vol0 srq unix enabled normal
vol0 volvol0 unix enabled normal
fas940*>

fas940*> ndmpcopy /vol/vol0/.snapshot/hourly.0/odd_docs/oddDocs /vol/vol0/srq/newDocs

Ndmpcopy: Starting copy [ 2 ] ...
Ndmpcopy: fas940: Notify: Connection established
Ndmpcopy: fas940: Notify: Connection established
Ndmpcopy: fas940: Connect: Authentication successful
Ndmpcopy: fas940: Connect: Authentication successful
Ndmpcopy: fas940: Log: DUMP: Using subtree dump
Ndmpcopy: fas940: Log: DUMP: Date of this level 0 dump: Tue Jun
1418:58:36 2005.
Ndmpcopy: fas940: Log: DUMP: Date of last level 0 dump: the epoch.
Ndmpcopy: fas940: Log: DUMP: Dumping
/vol/vol0/.snapshot/hourly.0/odd_docs/oddDocs to NDMP connection
Ndmpcopy: fas940: Log: DUMP: mapping (Pass I)[regular files]
Ndmpcopy: fas940: Log: DUMP: mapping (Pass II)[directories]
Ndmpcopy: fas940: Log: DUMP: estimated 13684 KB.
Ndmpcopy: fas940: Log: DUMP: dumping (Pass III) [directories]
Ndmpcopy: fas940: Log: DUMP: dumping (Pass IV) [regular files]
Ndmpcopy: fas940: Log: RESTORE: Tue Jun 14 19:21:36 2005: Begin level 0 restore
Ndmpcopy: fas940: Log: RESTORE: Tue Jun 14 19:21:36 2005: Reading directories from the backup
Ndmpcopy: fas940: Log: RESTORE: Tue Jun 14 19:21:37 2005: Creating files and directories.
Ndmpcopy: fas940: Log: RESTORE: Tue Jun 14 19:21:37 2005: Writing data to files.
Ndmpcopy: fas940: Log: DUMP: dumping (Pass V) [ACLs]
Ndmpcopy: fas940: Log: DUMP: 15204 KB
Ndmpcopy: fas940: Log: RESTORE: Tue Jun 14 19:21:38 2005: Restoring NT ACLs.
Ndmpcopy: fas940: Log: DUMP: DUMP IS DONE
Ndmpcopy: fas940: Log: RESTORE: RESTORE IS DONE
Ndmpcopy: fas940: Log: RESTORE: The destination path is /vol/vol0/srq/newDocs/
Ndmpcopy: fas940: Notify: restore successful
Ndmpcopy: fas940: Notify: dump successful
Ndmpcopy: Transfer successful [ 4 seconds ]
Ndmpcopy: Done
fas940*>

注意:无论您使用哪种方法,在某些情况下速度都很慢。许多小文件所需的时间比包含相同空间量的几个大文件所需的时间长。但ndmpcopy本地不会涉及其他客户端和网络。

追加信息

有关详细信息,请参见ndmpcopy适用于您的 Data ONTAP 版本的《 Data ONTAP 数据保护磁带备份和恢复指南》中的 " 命令的用途 " 一节。

 

Scan to view the article on your device