For some extra context about the story, I'll refer you to my previous thread Thread geom-labels-disappear-after-geli-attaches-to-raw-disk-device.89579.
I'm writing this before having searched the webs, because I'm quite certain I'm going to have to write something myself and was hoping that I'm not the first to tackle this problem.
Another matter I'm trying to address is that I have a ZFS volume (on a dd image now - made before encryption) where I used to have quite a large bunch of snapshots in order to safeguard my data. Sadly this system was used against me, manipulating snapshots in order to delete data (that would incriminate the hackers) and then rewriting the date using a modified version of a script I once wrote myself. That's one of the worst parts of this hack, my own knowledge turned into scripts was turned against me.
As the subject clearly implies, what I'm looking for is a way to restore a ZFS dataset and/or all snapshots on that dataset from stray metadata. I'm quite certain this should be possible, considering that the disks this dataset was on were of ample size and combined with one of the key ZFS features - copy-on-write - it should be possible to recover lost datasets & snapshots by simply scanning all (unused) blocks. On top of that metadata is kept in several copies, so I'm quite certain there's a good chance of recovery.
Like I said, I'm not sure if a tool to do this already exists, but ZFS has been around for quite some time and I was hoping that either someone has heard of a tool that does more or less this or has written something that may provide me a running start.
I'm writing this before having searched the webs, because I'm quite certain I'm going to have to write something myself and was hoping that I'm not the first to tackle this problem.
Another matter I'm trying to address is that I have a ZFS volume (on a dd image now - made before encryption) where I used to have quite a large bunch of snapshots in order to safeguard my data. Sadly this system was used against me, manipulating snapshots in order to delete data (that would incriminate the hackers) and then rewriting the date using a modified version of a script I once wrote myself. That's one of the worst parts of this hack, my own knowledge turned into scripts was turned against me.
As the subject clearly implies, what I'm looking for is a way to restore a ZFS dataset and/or all snapshots on that dataset from stray metadata. I'm quite certain this should be possible, considering that the disks this dataset was on were of ample size and combined with one of the key ZFS features - copy-on-write - it should be possible to recover lost datasets & snapshots by simply scanning all (unused) blocks. On top of that metadata is kept in several copies, so I'm quite certain there's a good chance of recovery.
Like I said, I'm not sure if a tool to do this already exists, but ZFS has been around for quite some time and I was hoping that either someone has heard of a tool that does more or less this or has written something that may provide me a running start.