Add zfs recv -d to use relative paths.

This commit is contained in:
Otho 2022-11-20 21:14:34 -05:00
parent 055a6b3d81
commit 81fc6126c6
Signed by: Otho
GPG Key ID: 16C720CD3BBE21D9

View File

@ -95,7 +95,7 @@ send_single_snapshot()
echo zfs send -R ${BR_ROOT}@${BR_NEW_SNAPSHOT} echo zfs send -R ${BR_ROOT}@${BR_NEW_SNAPSHOT}
echo ssh -i ~/.ssh/id_rsa -o port=${BR_REMOTE_PORT} \ echo ssh -i ~/.ssh/id_rsa -o port=${BR_REMOTE_PORT} \
${BR_REMOTE_USER}@${BR_REMOTE_ADDR} \ ${BR_REMOTE_USER}@${BR_REMOTE_ADDR} \
zfs receive -vu ${BR_REMOTE_ROOT} zfs receive -dvu ${BR_REMOTE_ROOT}
else else
zfs send -R ${BR_ROOT}@${BR_NEW_SNAPSHOT} | zfs send -R ${BR_ROOT}@${BR_NEW_SNAPSHOT} |
ssh -i ~/.ssh/id_rsa -o port=${BR_REMOTE_PORT} \ ssh -i ~/.ssh/id_rsa -o port=${BR_REMOTE_PORT} \