Hi,
Does snap restore not see a folder as a file like Unix does? If not how can I restore a VM that has been deleted by by vSphere? It seems I must restore each file and create a destination/target source. As proof in point from my test from a snap create test2. I was hoping there was wildcard syntax. As what would you do if you required to restore an entire VM?
filer02> snap restore -t file -s test2 -r /vol/unixshare/atest/ /vol/unixshare/atest/atest2.txt
WARNING! This will restore a file from a snapshot into the active
filesystem. If the file already exists in the active filesystem,
it will be overwritten with the contents from the snapshot.
Are you sure you want to do this? y
You have selected file /vol/unixshare/atest/atest2.txt, snapshot test2
It will be restored as /vol/unixshare/atest/
Proceed with restore? y
snap restore: Target directory does not exist in active file system.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
filer02> snap restore -t file -s test2 -r /vol/unixshare/junk/atest2.txt /vol/unixshare/atest/atest2.txt
WARNING! This will restore a file from a snapshot into the active
filesystem. If the file already exists in the active filesystem,
it will be overwritten with the contents from the snapshot.
Are you sure you want to do this? y
You have selected file /vol/unixshare/atest/atest2.txt, snapshot test2
It will be restored as /vol/unixshare/junk/atest2.txt
Proceed with restore? y
filer02> It worked as expected...