Exec the zfs send/recv commands.
This commit is contained in:
@@ -7,6 +7,6 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
# -s if the stream is interrupted, save the partial stream. The stream can then be resumed by doing a zfs send -t token where token is the receive_resume_token prop on the dataset we received into.
|
||||
# -u Do not mount the filesystem we are receiving. We can always mount afterwards but this avoids issues with streams with mountpoints to places like /
|
||||
zfs recv -s -u
|
||||
exec zfs recv -s -u "${@}"
|
||||
|
||||
# To delete an interrupted recv, run `zfs receive -A dataset`
|
||||
|
||||
@@ -7,7 +7,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
# TODO: Do we want --backup ?
|
||||
# We get --props automatically from --replicate
|
||||
zfs send --compressed --replicate --large-block --embed --verbose "${@}"
|
||||
exec zfs send --compressed --replicate --large-block --embed --verbose "${@}"
|
||||
|
||||
# On zfs recv side, may want to pass `-s` to make the stream resumable.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user