ZFS Snapshotting in Perl
Monday, November 26th, 2007It’s almost 11pm Sunday night, and I wanted to get this out. The main reason why I wanted this is I’m running Solaris 10 11/06 at home, and having a automated way of snapshotting was important for me. I wrote this in Perl and will behave much like like Network Appliance snapshotting. I’ve used it for some time, and it works beautifully. If you like it, or find it useful, let me know. Please, no technical support questions. Cheers.
So, what you want to do is this:
1) Create a file called /etc/snapshots, and put entries in it like this:
# zfs_vol months weeks days hours@<list> ################################################### main/audit 2 4 7 6@0,8,16 tank/zones 2 4 7 2 main/cfengine 2 4 7 6@0,8,16
(more...)