Backbrain   Archive

Zfs Snapshot Send Resume

zfs send ... | <network> | zfs receive -s otherpool/new-fs

On the receiving side, get the opaque token with the <DMU object #, offset> stored in it

zfs send ... | <network> | zfs receive -s otherpool/new-fs
zfs get receive_resume_token otherpool/new-fs
# 1-e604ea4bf-e0-789c63a2...
zfs get -H -o value receive_resume_token ztank/newtest

Re-start sending from the <DMU object #, offset> stored in the token

zfs send -t 1-e604ea4bf-e0-789c63a2... | <network> | zfs receive -s otherpool/new-fs

If you don’t want to resume the send, abort to remove the partial state on the receiving system

zfs receive -A otherpool/new-fs