If you were to use the snapvault restore command, the source volume you backed up to a qtree is restored as a qtree on the primary storage system.
Steps
- To restore the backed-up qtree to the original volume structure with multiple qtrees on the primary storage system,
re-create all of the qtrees in the volume on the primary storage system using the qtree create command.pri_system>
qtree create /vol/projs/project_x
- Restore the data for each qtree using the ndmpcopy command. The following command restores data from the backed-up project_x directory on the secondary storage system to the re-created project_x qtree on the primary storage system.
pri_system>
ndmpcopy -sa username:password sec_system:/vol/vol1/projs/project_x /vol/projs/project_x
For more information about the ndmpcopy command, see the Data ONTAP Data Protection Tape Backup and Recovery Guide.
- Stop qtree updates and remove the qtree on the secondary storage system
using the snapvault stop command. The following command removes the projs qtree from the secondary storage system:
sec_system>
snapvault stop /vol/vol1/projs
- Reinitialize a baseline copy of each qtree to the secondary storage system using the snapvault start command.
The following command reinitializes the SnapVault backup:sec_system> snapvault start -S pri_system:/vol/projs /vol/vol1/projs