oetiker / znapzend

zfs backup with remote capabilities and mbuffer integration.
www.znapzend.org
GNU General Public License v3.0
604 stars 136 forks source link

Is it possible to send an encrpyted snapshot to a remote? #601

Closed dalto8 closed 1 year ago

dalto8 commented 1 year ago

I am trying to send an encrypted snapshot to a remote pool that is also encrypted.

When I do that I receive this error when I run with --debug:

cannot receive new filesystem stream: zfs receive -F cannot be used to destroy an encrypted filesystem or overwrite an unencrypted one with an encrypted one

I am not sure exactly what is happening because neither side is unencrypted.

The dataset on the dest side is newly created, empty and encrypted.

dalto8 commented 1 year ago

After some further testing, it works if I seed the initial snapshot with a manual zfs recv -F -d -x encryption which causes it to inherit the encryption from the receiving pool.

I suppose it is not the end of the world if I need to manually seed them but it certainly decreases the automation provided by znapzend.(Assuming there isn't a better way to do this I have not found yet)

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.