And also for s10u2, ZFS Automatic Snapshots
Wes was kind enough to point out that the zenity-based GUI in the last release of the ZFS Automatic Snapshots SMF Service didn't work under earlier versions of JDS. After a bit of digging, we discovered that this was because some zenity features I was relying on weren't in the older GNOME 2.6-based zenity.
So, rather sooner than I expected, I've got another version of the software for you to try - zfs-auto-snapshot-0.4.tar.gz (link now deleted, see Update at the bottom of this post).
We now detect which version of zenity is on the system, and do the right thing. I've included a README to make things easier for the first-time user.
I also cleaned up some of the logic that creates the name of the SMF instance for each snapshot schedule. In the earlier code, if you had two ZFS filesystems tank/foo-bar and tank/foo/bar with separate snapshot schedules (not strictly required, since you could have one schedule for tank, and use the "snapshot all child datasets" option), SMF would have failed to import the 2nd instance - we can't use '/' in SMF instance names, so I was escaping them with '-' characters, hence the namespace clash. This is fixed now, so all feedback is welcome!
They say the best backups are the ones you don't have to worry about, and while I realise that ZFS snapshots are only the first step in a "proper" backup solution, in my day to day work testing ZFS, this stuff has already saved me from going off looking for tapes...
Perhaps the next step, is to extend the current functionality to provide an option to use zfs send/receive, so along with taking snapshots on a schedule, we would also store the snapshots incrementally to a remote machine (and perhaps a do a bit of email notification! - Zawinski's Law ? Bring it on!).
However, today, it's a gorgeous day in Dublin, which is quite a rarity, so I'm going outside to play :-) Have a nice weekend folks!
Update June 30th: Joe pointed out a bug where the recursive snapshotting wasn't respecting the retention limit properly: this was because I was using the same variable name in a shell function as I was in the function that called it (I thought ksh used local-scoping for variable names). You can get the fixed bits in zfs-auto-snapshot-0.5.tar.gz. Thanks again for the bug report Joe!
Update September 6th: More here.
Update November 27th: More here.
<property_group name="zfs" type="application"> <propval name="fs-name" type="astring" value="shares" override="true"/> <propval name="interval" type="astring" value="hours" override="true"/> <propval name="period" type="astring" value="4" override="true"/> <propval name="offset" type="astring" value="0" override="true"/> <propval name="keep" type="astring" value="24" override="true"/> <propval name="snapshot-children" type="boolean" value="true" override="true"/> </property_group>Posted by Joe Little on June 25, 2006 at 08:02 PM IST #
Posted by Joe Little on June 25, 2006 at 08:07 PM IST #
Posted by Tim Foster on June 29, 2006 at 10:25 AM IST #
Posted by Tim Foster on June 30, 2006 at 11:30 AM IST #
Posted by Roger Ripley on August 28, 2006 at 11:56 PM IST #
hey Roger, great minds think alike! I was actually thinking of adding that, as it's the sort of thing I'd find quite useful (eg. very frequent snapshots during working hours, keeping only 1 days worth, but also allowing more coarse grained snapshots on a monthly basis).
I also thought that including an option to zfs-send via ssh incremental-backups to a remote server might be nice, again with an option to take complete backups of each snapshot on a longer timeframe would be useful.
I'll see if I can implement these for the next version in a few weeks.
Posted by Tim Foster on August 29, 2006 at 09:36 AM IST #
I've an update on my progress here
Posted by Tim Foster on September 01, 2006 at 10:15 AM IST #
A bit curious...
When you do a zfs send/recv to a remote machine with a completely different storage pool size, how does ZFS store the bits in the remote machine.
Scenario: a 6 hard drive mirrored pool (total 12 drives) in a main machine, running our applications. The /data is the only FS to be zfs send/recv. But the backup is just a 1 hard drive mirror pool (total 2 drives). Will this work?
Or I would require exactly the same hard drive config as in main machine?
Thanks in advance
Posted by Amit Kulkarni on November 20, 2006 at 04:25 PM GMT #
Posted by Tim Foster on November 20, 2006 at 04:40 PM GMT #
Note for future visitors - this version is now out of date - the latest version is available via a link on the sidebar of my blog (at the time of writing, this is version 0.10)
Posted by Tim Foster on June 15, 2008 at 01:12 PM IST #