mirror of
https://asciireactor.com/o4data/zfs-backup.git
synced 2024-11-24 18:05:06 +00:00
Update backup.sh
This commit is contained in:
parent
78b00e2f17
commit
d759a558e0
@ -44,7 +44,7 @@ debug()
|
|||||||
run_send_recv()
|
run_send_recv()
|
||||||
{
|
{
|
||||||
ssh_cmd="ssh $SSH_SEND_OPTS -o port=$port $user@$addr"
|
ssh_cmd="ssh $SSH_SEND_OPTS -o port=$port $user@$addr"
|
||||||
pv_cmd="pv -qL ${speed:-$DEFAULT_SPEED}"
|
pv_cmd="pv -eL ${speed:-$DEFAULT_SPEED}"
|
||||||
if [ "$ZB_TEST_MODE" = "TRUE" ]; then
|
if [ "$ZB_TEST_MODE" = "TRUE" ]; then
|
||||||
echo "$send_cmd | $pv_cmd | $ssh_cmd $recv_cmd"
|
echo "$send_cmd | $pv_cmd | $ssh_cmd $recv_cmd"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user