X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;f=zfs-replicate;h=83acdd13280e2cdb2ab99aa04c3796b0c18e4bed;hb=e8226545869d10fdc7205de2890b6d582f201f7d;hp=84c8c5b30132c35087ce74252baae81b1cd93a5c;hpb=005ecf6cfbf1977783b7dd7b4e98af8ce28db378;p=zfs-nexenta%2F.git diff --git a/zfs-replicate b/zfs-replicate index 84c8c5b..83acdd1 100755 --- a/zfs-replicate +++ b/zfs-replicate @@ -92,7 +92,7 @@ set -x # Create the remote lockdir before continuing with the replicate # Spinlock on creating the lock maxsleeptime=60 -maxattempts=100 +maxattempts=400 attempts=0 while true; do ssh $remote mkdir "$lockdir" >/dev/null 2>&1 @@ -179,7 +179,7 @@ if [ $no_markers == 0 ]; then # Now it should be safe to send the snaps if [[ $throttle_enable == 1 && -e $throttle ]]; then ssh $remote $zfs send -R -I${previous_backup_marker} ${current_backup_marker} | - $throttle $throttle_opts | $zfs receive -vF -d ${local_pool}/${remote_pool} + $throttle $throttle_opt | $zfs receive -vF -d ${local_pool}/${remote_pool} else ssh $remote $zfs send -R -I${previous_backup_marker} ${current_backup_marker} | $zfs receive -vF -d ${local_pool}/${remote_pool} @@ -204,7 +204,7 @@ else # We found a common snapshot, incrementally send the new snaps if [[ $throttle_enable == 1 && -e $throttle ]]; then ssh $remote $zfs send -R -I${common/*@/@} ${current_backup_marker} | - $throttle $throttle_opts | $zfs receive -vF -d ${local_pool}/${remote_pool} + $throttle $throttle_opt | $zfs receive -vF -d ${local_pool}/${remote_pool} else ssh $remote $zfs send -R -I${common/*@/@} ${current_backup_marker} | $zfs receive -vF -d ${local_pool}/${remote_pool} @@ -232,7 +232,7 @@ else # Send the full filesystem if [[ $throttle_enable == 1 && -e $throttle ]]; then ssh $remote $zfs send -R ${current_backup_marker} | - $throttle $throttle_opts | $zfs receive -vF -d ${local_pool}/${remote_pool} + $throttle $throttle_opt | $zfs receive -vF -d ${local_pool}/${remote_pool} else ssh $remote $zfs send -R ${current_backup_marker} | $zfs receive -vF -d ${local_pool}/${remote_pool}