nautilus meets zfs snapshots
By user12625760 on Sep 06, 2007
After ZFS saved the day earlier in the week I wanted to get to the stage where the email to me was not required, at least if the user is on the a Solaris system.
So I've updated my zfs_versions script which you will recall prints out all the versions of a file that exist on a zfs file system. The new script has an additional flag so that it can better support a nautilus script that allows you to highlight a file, then it will list all the versions of that file, not all the snapshots, but all the distinct versions of the file.
Choose the show_versions script. In a fit of recursion you can see the example is for the show_versions script
Finally select the version you want:
It will then open a nautilus window in the directory that contains the version of the file. What is more it even works over NFS.
You need 2 scripts:
zfs_versions, this must be in your path without the .tcl postfix.
show_versions. This has to be stored in the .gnome2/nautilus-scripts directory in your home directory.
Make both scripts mode 755 and then run “nautilus -q”.
Things to note.
It considers the file to be the path to the file. So if you rename a file you will not see revisions with the old name. It would be really cool if there was a way to get all the versions of a file without resorting to doing an exhaustive search of the file system, but there is not.
I don't know how to make the available to all users without messing in each ~/.gnome2 directory. If you do then add a comment.
Hat tip to Sandip for alerting me to nautilus scripts.