ZFS dedup and replication

Michel Le Cocq miconof80.list at gmail.com
Fri Dec 2 14:47:28 UTC 2011


it's just me or there is no attachment ?

I've got also a script like that but seems not as good as you
describe. 
It's base on zfs-periodic.

--
Michel

> Sure. Here are a bunch of my zfs scripts.  (attached)
> 
> Disclaimer/notes:
> -provided as is... might destroy your system, furthermore, I am not
> responsible for bodily injury nor nuclear war that may result from misuse
> -there are no unit tests, and no documentation other than a few comments
> that are possibly only coherent when I read them. For example, it says
> that it does it recursively and rolls back the destination dataset, but
> there are a few undocumented cases I can't remember when I needed to do
> something manual like delete a snapshot, or destroy a dataset. Maybe
> that is all in the past. I don't know.
> -the zfs_repl2.bash is the one that makes snapshots and replicates which
> I wrote myself. The other ksh one is the Oracle one I linked above, and
> the .sh version of it was just what I was working on to try to make it
> work reliably, before redoing it all myself (reinventing the wheel is
> indeed fun).
> -especially beware of the deleteOldSnapshots.bash which is not well
> tested and not used yet (and deleteEmptySnapshots.bash which does not
> work and I believe cannot work).
> -granted transferable your choice of any present or future version of
> the BSD or GPL license
> 
> and another note, I meant to study these which might be better versions
> of the same thing, or something different, but never got around to it:
>     /usr/ports/sysutils/zfs-replicate/
>     /usr/ports/sysutils/zfsnap/
>     /usr/ports/sysutils/zfs-periodic
> 
> 
> Enjoy!


More information about the freebsd-fs mailing list