mirror of
https://asciireactor.com/o4data/zfs-backup.git
synced 2024-11-21 22:25:06 +00:00
Moved pv_cmd setup.
This commit is contained in:
parent
f7a43122d1
commit
679b6fc1a8
@ -44,6 +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}"
|
||||||
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
|
||||||
@ -219,7 +220,6 @@ send_latest()
|
|||||||
debug "Processing $dset (remote $rset)."
|
debug "Processing $dset (remote $rset)."
|
||||||
snap1=`get_latest_snapshot $dset`
|
snap1=`get_latest_snapshot $dset`
|
||||||
send_cmd="zfs send $ZFS_SEND_OPTS $dset@$snap1"
|
send_cmd="zfs send $ZFS_SEND_OPTS $dset@$snap1"
|
||||||
pv_cmd="pv -qL ${speed:-$DEFAULT_SPEED}"
|
|
||||||
recv_cmd="zfs recv $ZFS_RECV_OPTS $zroot$rset"
|
recv_cmd="zfs recv $ZFS_RECV_OPTS $zroot$rset"
|
||||||
run_send_recv
|
run_send_recv
|
||||||
done
|
done
|
||||||
@ -242,7 +242,6 @@ send_increment()
|
|||||||
snap1=`get_latest_snapshot`
|
snap1=`get_latest_snapshot`
|
||||||
snap0=`get_latest_remote_snapshot`
|
snap0=`get_latest_remote_snapshot`
|
||||||
send_cmd="zfs send $ZFS_SEND_OPTS -i $dset@$snap0 $dset@$snap1"
|
send_cmd="zfs send $ZFS_SEND_OPTS -i $dset@$snap0 $dset@$snap1"
|
||||||
pv_cmd="pv -qL ${speed:-$DEFAULT_SPEED}"
|
|
||||||
recv_cmd="zfs recv $ZFS_RECV_OPTS $zroot$rset"
|
recv_cmd="zfs recv $ZFS_RECV_OPTS $zroot$rset"
|
||||||
run_send_recv
|
run_send_recv
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user