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

What is the quickest way to copy folder / files out of a snapshot - back onto homedir on the filer?

Views:
10
Visibility:
Public
Votes:
0
Category:
data-ontap-7
Specialty:
core
Last Updated:

Applies to

Data ONTAP 7 and earlier

Answer

Start with the ndmpcopy command on the filer itself. This is the quickest way to copy folder/ files out of a snapshot and back onto the homedir on the filer.

Example:
A folder called odd_docs is copied from a snapshot named hourly.0 to a folder newDocs in qtree srq. Since we are specifying a snapshot as the source, a new snapshot is not created.

Note: Destination folder does not have to exist beforehand, ndmpcopy will create it.

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*>

Note: There are some situations that will be slow, regardless of the method you use. Lots of small files take longer than a few large files containing the same amount of space. But ndmpcopy locally will not involve another client and the network.

For more information, see the section entitled 'What the ndmpcopy command does' found in the Data ONTAP Data Protection Tape Backup and Recovery Guide for your version of Data ONTAP.

Additional Information

additionalInformation_text