Skip to content

dest_auto_create + raw_send = error #96

Description

@DragonQ

What's the correct way to send an encrypted dataset to a remote pool with no existing dataset? I'm using these options:

[source/backups]
daily = 7
snap = yes
clean = yes
raw_send = yes
dest_auto_create=yes
dest = ssh:22:root@backup-nas:backups/backups
dest_keys = /home/user/.ssh/id_rsa

[ssh:22:root@backup-nas:backups/backups]
daily = 7
snap = no
clean = yes
key = /home/user/.ssh/id_rsa

When I run pyznap send, I get this error:

Feb 14 20:18:35 INFO: Destination root@backup-nas:backups/backups does not exist, will create it...
Feb 14 20:18:35 INFO: Successfully created root@backup-nas:backups/backups...
Feb 14 20:18:35 DEBUG: Sending source/backups to root@backup-nas:backups/backups...
Feb 14 20:18:35 INFO: No common snapshots on root@backup-nas:backups/backups, sending oldest snapshot source/backups@pyznap_2023-02-14_02:00:03_yearly (~216.3G)...
Feb 14 20:18:35 DEBUG: Using raw zfs send...
Feb 14 20:18:35 DEBUG: Using mbuffer on source: 'mbuffer -q -s 128K -m 256M'...
Feb 14 20:18:35 DEBUG: Using pv on source: 'pv -f -w 100 -s 315990178336 -D 60 -i 60'...
Feb 14 20:18:35 ERROR: Error while sending to root@backup-nas:backups/backups: 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...

Is there a "proper" way to do this without manually creating a dataset on the destination pool?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions