Re: How can I shrink my zfs-on-root partition for FreeBSD?

From: Daniel Tameling <tamelingdaniel_at_gmail.com>
Date: Wed, 07 Jan 2026 19:13:11 UTC
> `zcat /mnt/backup.gz < zroot@backup`

I have never tried to do what you want to do, but that command looks wrong to me. I don't even think it does anything useful. You probably want to do something like
`zcat /mnt/backup.gz | zfs recv -F zroot@backup`
`zfs rollback zroot@backup`

I would also recommend that you create a different backup with all the data you definitively don't want to loose, in case anything goes wrong.

Best regards,
Daniel