oetiker / znapzend

zfs backup with remote capabilities and mbuffer integration.
www.znapzend.org
GNU General Public License v3.0
603 stars 136 forks source link

Add resumable stream support #558

Closed gabviv73 closed 2 years ago

gabviv73 commented 2 years ago

It would be nice to implement resumable stream as explained for example in this "Resuming ZFS send" article.

Example:

First run: zfs send -Lce SRCPOOL/dataset@2021-08-31-192820|ssh -o batchMode=yes -o ConnectTimeout=30 'root@remote.host' 'zfs recv -s DESTPOOL/dataset'

Transfer get interrupted.

To resume the transfer:

zfs send -Lce -t "$(ssh -o batchMode=yes -o ConnectTimeout=30 'root@remote.host 'zfs get -H -o value receive_resume_token DESTPOOL/dataset')" |ssh -o batchMode=yes -o ConnectTimeout=30 'root@remote.host' 'zfs recv -s DESTPOOL/dataset'

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.