mirror of
https://asciireactor.com/o4data/zfs-backup.git
synced 2024-11-21 22:45:05 +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 ssh -i ~/.ssh/id_rsa -o port=${BR_REMOTE_PORT} \
|
||||
${BR_REMOTE_USER}@${BR_REMOTE_ADDR} \
|
||||
zfs receive -vu ${BR_REMOTE_ROOT}
|
||||
zfs receive -dvu ${BR_REMOTE_ROOT}
|
||||
else
|
||||
zfs send -R ${BR_ROOT}@${BR_NEW_SNAPSHOT} |
|
||||
ssh -i ~/.ssh/id_rsa -o port=${BR_REMOTE_PORT} \
|
||||
|
Loading…
Reference in New Issue
Block a user