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

Use bookmarks for intermediary and replication streams #12415

Open
plagerweij opened this issue Jul 22, 2021 · 0 comments
Open

Use bookmarks for intermediary and replication streams #12415

plagerweij opened this issue Jul 22, 2021 · 0 comments
Labels
Type: Feature Feature request or new feature

Comments

@plagerweij
Copy link

System information

Type Version/Name
Distribution Ubuntu 20.04.2 LTS
Kernel Version 5.4.0-80-generic
Architecture x86_64
OpenZFS Version 2.1.0-1

It is not possible to send intermediary snapshots using bookmarks. E.g.

zfs snap tank/src@1
zfs send tank/src@1 | zfs recv tank/dest
zfs bookmark tank/src@1 tank/src#1
zfs snap tank/src@2
zfs snap tank/src@3
zfs send -I "#1" tank/src@3 | zfs recv tank/dest

Error: multiple snapshots cannot be sent from a bookmark.
cannot receive: failed to read from stream

How is it that it gives this error? Since normal incremental replications (-i) do work with bookmarks.

I would like to use this in combination with the -R flag. Currently I'm trying to replicate my entire boot pool incrementally including newly created boot environments, whilst saving space using bookmarks. -R with -I can send new clones and any intermediary snapshots, but unfortunately not using bookmarks, or so it seems.

As a side note, the following gives the same error when just using -i:

zfs send -R -i "#1" tank/src@3 | zfs recv tank/dest
@plagerweij plagerweij added the Type: Feature Feature request or new feature label Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Feature request or new feature
Projects
None yet
Development

No branches or pull requests

1 participant