Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: raw sync (-w) for zfs send of encrypted at rest data #150

Closed
Laeeth opened this issue Oct 3, 2017 · 8 comments
Closed

Comments

@Laeeth
Copy link

Laeeth commented Oct 3, 2017

Raw sync enables sending zfs on linux encrypted at rest data to be kept in encrypted form when sending (the default is to unencrypt before sending). This is enabled with the -w flag to zfs send (which I believe is harmless when sending unencrypted data sets). It would be very helpful to have this feature as an option. I'm experimenting now with hacking this into syncoid, but I don't really know perl.

@Laeeth Laeeth changed the title Feature Request: raw sync (-w) for zfs send Feature Request: raw sync (-w) for zfs send of encrypted at rest data Oct 3, 2017
@rcproam
Copy link

rcproam commented Dec 5, 2017

As of ZoL v0.7.3 I cannot tell if this feature has been implemented as the 'raw send' feature is not mentioned in any of the release notes?
https://github.com/zfsonlinux/zfs/releases

Also the command syntax / usage output of the zfs command in ZoL v0.7.3 does not list any "-w" option:
send [-DnPpRvLec] [-[i|I] snapshot]
send [-Lec] [-i snapshot|bookmark] <filesystem|volume|snapshot>
send [-nvPe] -t <receive_resume_token>

The 'raw zfs send' feature should be amazing but it seems really poorly documented at present... which is maybe why it's not included in sanoid yet?

@phreaker0
Copy link
Collaborator

@rcproam encryption and raw send feature are not in any tagged release yet, only in the master branch for now.

@ronnyegner
Copy link

Raw send/receive is now in a tagged release:

https://github.com/zfsonlinux/zfs/releases

Would love to see support. I can also help with testing. Documentation is also improved a lot.

@phreaker0
Copy link
Collaborator

@ronnyegner i guess you mean the pre release 0.8.0-rc1 version?
It should be possible with this PR: #273

@ronnyegner
Copy link

@phreaker0 Yes, i meant 0.8.0-rc1. And the PR looks good. Altough it would be good to have a command line switch for it. But as long as it works...

@phreaker0
Copy link
Collaborator

follow up PR #295

@phreaker0
Copy link
Collaborator

#295 and (#343) were merged, so raw sends are possible now.

@geudrik
Copy link

geudrik commented Oct 19, 2019

Readme page doesn't include these changes, <3

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

No branches or pull requests

5 participants