X

News, tips, partners, and perspectives for the Oracle Solaris operating system

File Version Explorer

Guest Author

If you're using OpenSolaris you should certainly have Time Slider enabled, at least on your home directory. OpenSolaris 2009.06 brings some enhancements to Time Slider, one of them being the ability to explore a file's versions:

From the File Version Explorer you can then compare older versions with the current. You'll see the following hint, which I'll get to in a minute:

It's a standard text diff like you would see from the command line. Now, back to that hint, let's install the SUNWmeld package:

bleonard@opensolaris:~$ pfexec pkg install SUNWmeld
DOWNLOAD PKGS FILES XFER (MB)
Completed 1/1 119/119 0.79/0.79
PHASE ACTIONS
Install Phase 205/205
PHASE ITEMS
Reading Existing Index 8/8
Indexing Packages 1/1

Then try running the compare again:

Note, Meld is more than just a viewer. You can merge changes or edit and save the current file. Meld also recognizes and highlights your changes in real time.



Join the discussion

Comments ( 5 )
  • Che Kristo Wednesday, June 17, 2009

    Definitely worth installing meld...this is fantastic. it would be great if we could expand this out to work with other types of files such as docs, spreadsheets, images etc.

    This has to be one of the most useful desktop enhancements ive seen on the desktop in a very very long time


  • Mark J Musante Wednesday, June 17, 2009

    This looks great.

    It'd be nice if the title bar could say the snapshot name instead of [.zfs], which is the container directory.


  • Gaëtan Lehmann Wednesday, June 17, 2009

    Nice! Is there also command line interface for this feature?


  • Gaëtan Lehmann Tuesday, June 23, 2009

    The main feature of a CLI would be to display the different versions available, without the need to search in the snapshots - like it's done in the GUI.

    Something like:

    $ ts changes main.c

    1. 12/06/09 22h08s31 1.4 KB (1390 bytes)

    2. 10/06/09 16h58s32 1.2 KB (1181 bytes)

    3. 09/06/09 16h31s04 1.1 KB (1167 bytes)

    4. 08/06/09 20h49s26 510 B (510 bytes)

    then it would be nice to have a few more subcommands, like

    $ ts diff snapshot [base snapshot] file

    where "snapshot" and "base snapshot" can be either a snapshot number given in the list above or a date. Some options may be nice, like the diff's "-u" or a gui mode.

    $ ts restore [snapshot] file

    and probably many others.

    I'll try to file an enhancement request in the next days.


  • Roumano Tuesday, February 2, 2010

    A question, it's possible to run the File Version Explorer on a zfs other machine ?


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.