Hi Dave,
How about this? Does this meet your requirement (btw this isnt a mock but actual code). We felt it was absolutely critical to get snapvault restore into 3.2...I am hopeful that will happen, need to do some more debugging and testing, but it looks good
End Customer: My Data is gone I am missing file Simulator-7.2.3-tarfile-v21.gz, I hate you storage admin
ha-filer1*> ls /vol/mig_test3/qtree1
.
..
lun1.lu
Storage Admin: Well we don't have the data on primary but how about we restore your data from secondary storage?
db2test:~/sandbox/snapcreator # ./snapcreator.pl --profile test --action restore --policy daily
### You have chosen to do a snap restore on one or more volumes for the Config: test Policy: daily ###
Are you sure you want to continue (y|n)? y
01. Primary View
02. Secondary View
Select a View (enter a number or "q" to quit): 02
### Volume Menu for bck-filer2 ###
01. mig_test
Select a volume for snapshot restore (enter a number, "n" for next filer, or "q" to quit): 01
### Snapshot Menu for bck-filer2:mig_test ###
01. test-SV_daily_20100330181221 (Mar 30 2010 16:33:36)
02. test-SV_daily_20100328203141 (Mar 28 2010 18:46:34)
03. test-SV_daily_20100328194827 (Mar 28 2010 18:03:19)
04. test-daily_20090226133016 (Feb 25 2009 18:37:14)
05. test-daily_20090226105901 (Feb 25 2009 16:06:51)
06. test-daily_20090226091249 (Feb 25 2009 14:20:41)
07. test-daily_20090226090831 (Feb 25 2009 14:16:34)
08. test-daily_20090226090605 (Feb 25 2009 14:14:04)
09. test-daily_20090226090130 (Feb 25 2009 14:09:27)
10. test-daily_20090226085725 (Feb 25 2009 14:05:18)
11. test-daily_20090226085607 (Feb 25 2009 14:02:58)
12. test-daily_20090226085514 (Feb 25 2009 14:02:05)
13. test-daily_20090221054111 (Feb 20 2009 10:40:17)
14. test-daily_20090221053137 (Feb 20 2009 10:30:46)
15. test-daily_20090221052928 (Feb 20 2009 10:28:35)
16. test-daily_20090221045707 (Feb 20 2009 09:56:14)
17. test-daily_20090220101104 (Feb 19 2009 15:07:06)
18. test-daily_20090211123508 (Feb 10 2009 16:48:45)
19. test-daily_20090211092153 (Feb 10 2009 13:35:28)
20. test-daily_20090210081045 (Feb 09 2009 12:15:27)
21. test-daily_20090210080540 (Feb 09 2009 12:10:22)
22. test-daily_20090210073456 (Feb 09 2009 11:39:46)
23. test-daily_20090210073242 (Feb 09 2009 11:37:39)
24. test-daily_20090210072908 (Feb 09 2009 11:33:50)
25. test-daily_20090205102105 (Feb 04 2009 13:37:48)
26. test-daily_20090205084926 (Feb 04 2009 12:06:24)
27. test-daily_20090205084652 (Feb 04 2009 12:03:53)
28. test-daily_20090205084131 (Feb 04 2009 11:57:28)
29. test-daily_20090205083735 (Feb 04 2009 11:53:28)
30. test-daily_20090205083641 (Feb 04 2009 11:52:23)
31. test-daily_20090205083528 (Feb 04 2009 11:51:14)
32. test-daily_20090205083448 (Feb 04 2009 11:50:30)
33. test-daily_20090205083149 (Feb 04 2009 11:47:31)
34. test-daily_20090205080800 (Feb 04 2009 11:23:43)
35. test-daily_20090204141322 (Feb 03 2009 17:19:11)
36. test-daily_20090204140457 (Feb 03 2009 17:10:41)
37. test-daily_20090204140315 (Feb 03 2009 17:09:00)
38. test-daily_20090204135823 (Feb 03 2009 17:04:13)
39. test-daily_20090204135509 (Feb 03 2009 17:01:46)
40. test-daily_20090204135152 (Feb 03 2009 16:58:31)
41. test-daily_20090204105550 (Feb 03 2009 14:02:42)
Select a snapshot for restore (enter a number or "q" to quit): 01
### Restore Menu for bck-filer2:mig_test snapshot test-SV_daily_20100330181221 ###
01. Qtree Restore
Select a restore type (enter a number, "n" for next filer, or "q" to quit): 01
### Qtree Menu for bck-filer2 ###
01. /vol/mig_test/keith1
Select a qtree for bck-filer2:mig_test to restore (enter a number, or "q" to quit): 01
Do you want to restore to original location for /vol/mig_test/keith1 [keith3:/vol/mig_test3/qtree1] (y|n): y
WARN: You are about to restore bck-filer2:/vol/mig_test/keith1 to keith3:/vol/mig_test3/qtree1 using snapshot test-SV_daily_20100330181221
Are you sure you want to continue (y|n)?y
INFO: NetApp Snapvault Restore for bck-filer2:/vol/mig_test/keith1 Started Successfully
Storage Admin: SnapCreator and NetApp Rock!!!
ha-filer1*> ls /vol/mig_test3/qtree1
.
..
Simulator-7.2.3-tarfile-v21.gz
lun1.lu
End User: Yeah I love my storage admin