Skip to content

--embed option should not be used to send to a target with encryption enabled #48

@leveche

Description

@leveche

zelta should test for encryption on the target dataset and not use the -e in that case.

zfs-send(8) documentation warns that embedded_data feature is incompatible with encryption enabled on the target.

As of version 1.0, the behavior is as follows:

target# zfs get encryption tankb/dataset
NAME      PROPERTY    VALUE        SOURCE
tankb/dataset  encryption  aes-256-gcm  -
source# zelta backup -n tanka/dataset user@target:tankb/dataset                                                                                     
+ zelta snapshot 'tanka/dataset'
replicating 1 streams                                                                                                                                                                                 
+ zfs send -P -Lcen -I 'tanka/dataset@2025-01-25_19-23-31' 'tanka/dataset@2025-01-26_06.03.16' | ssh user@target zfs receive -v  \ -o\ readonly=on\ 'tankb/dataset '     
0B sent, 0/ streams received in  seconds 
source# zelta backup tanka/dataset user@target:tankb/dataset                                                                                       
source snapshot created: @2025-01-26_06.22.22                                                                                                                                                         
replicating 1 streams                                                                                                                                                                                 
cannot receive incremental stream: incompatible embedded data stream feature with encrypted receive.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions