mirror of
https://asciireactor.com/o4data/zfs-backup.git
synced 2024-11-22 10:55:07 +00:00
Add zfs recv -d to use relative paths.
This commit is contained in:
parent
055a6b3d81
commit
81fc6126c6
@ -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} \
|
||||||
|
Loading…
Reference in New Issue
Block a user