zfs rollback

i created a snapshot as follow as

bash-3.00# zfs snapshot dinu/dinu1@dinusnap1

then i deleted the contents in the directory dinu1

now i want to rollback that contents from snapshot and i used

bash-3.00# zfs rollback dinu/dinu1/@dinusnap1

but i received error as follow as

cannot open 'dinu/dinu1/@dinusnap1' : invalid dataset name

dunno whats the reason behind that

thanks in advance
dinu

---------- Post updated at 05:45 AM ---------- Previous update was at 05:01 AM ----------

one more thing i want to make clear myself is where the snapshot file will be stored

Seems like an extra '/', not that I am a zfs guru.

1 Like

where the snapshot we taken will be saved and how can we find that file

It's described in here: Man Page for zfs (OpenSolaris Section 1m) - The UNIX and Linux Forums

Since the name is random, time would be your indication of which is which, or you can compare and replace a list of names after each start.