I have two environments Staging (staging) and Development (choang). I am unable to replicate (including snapshots) from dataset zfs/staging.assets
to another dataset zfs/choang.assets
within the same zpool zfs
.
NOTE: I am assuming I need to unmount both origin and destination datasets.
zfs unmount zfs/staging.assets
zfs unmount zfs/choang.assets
zfs send -R zfs/staging.assets | zfs receive -F zfs/choang.assets
When executed, the above commands generate the following error:
Error: Unsupported flag with filesystem or bookmark.
cannot receive: failed to read from stream
When I remove the -R option and execute the commands, it succeeds:
zfs send zfs/staging.assets | zfs receive -F zfs/choang.assets
However, no snapshots are received and a single snapshot zfs/choang.assets@--head--
is created.
Finally, I attempted to send a snapshot-- thinking maybe I might send a snapshot at a time:
zfs send zfs/staging.assets@sha512_hash | zfs receive -Fduv zfs/choang.assets
This didn't work either and generated the following error:
internal error: Invalid argument
cannot receive: failed to read from stream
How can I replicate all snapshots?