projects
/
zfs-nexenta
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed typo in logfile name
[zfs-nexenta/.git]
/
zfs-replicate
diff --git
a/zfs-replicate
b/zfs-replicate
index 347bcbe4ad4223872e5450d0b509ebb6d0d88b5c..8b53d1fb0d4e7a53f4475778cb21c02fc4047251 100755
(executable)
--- a/
zfs-replicate
+++ b/
zfs-replicate
@@
-1,4
+1,4
@@
-#/bin/bash
+#
!
/bin/bash
# Author: Carl Baldwin & Alan Pippin
# Description: This script replicates a remote zfs filesystem to a local zfs pool.
# Author: Carl Baldwin & Alan Pippin
# Description: This script replicates a remote zfs filesystem to a local zfs pool.
@@
-92,7
+92,7
@@
set -x
# Create the remote lockdir before continuing with the replicate
# Spinlock on creating the lock
maxsleeptime=60
# Create the remote lockdir before continuing with the replicate
# Spinlock on creating the lock
maxsleeptime=60
-maxattempts=
1
00
+maxattempts=
5
00
attempts=0
while true; do
ssh $remote mkdir "$lockdir" >/dev/null 2>&1
attempts=0
while true; do
ssh $remote mkdir "$lockdir" >/dev/null 2>&1