Révision 41

bin/zfs-replica (revision 41)
273 273
fi
274 274

  
275 275
valchk=checkCoherence
276
if [[ "$valchk" == "false" ]] || [[ "$lastsnapshotReplicated" != "" ]]
276
if [[ "$valchk" == "false" ]] && [[ "$lastsnapshotReplicated" != "" ]]
277 277
then
278
   echo "Replication by incremental snapshot is not possible"
278
   echo "Replication by incremental snapshot is not possible : checkcoherence return false "
279 279
   echo "Start FULL Replication ..."
280 280
   while read line
281 281
   do
bin/create-filesystem (revision 41)
6 6
echo "$0 [options]" 1>&2
7 7
echo " -n : filesystem name" 1>&2
8 8
echo " -p : pool name" 1>&2
9
# FIXME: c'est pas clair ta formulation :
10
echo " -o : options zfs filesystem. Read the man zfs for more details" 1>&2
9
echo " -o : set property list for a  zfs volume. Separate such property by a ','." 1>&2
10
echo "      Example : -o compression=off,snapdev=visble." 1>&2
11
echo "      Read the man zfs to get the list of the valid properties" 1>&2
12
echo " -i : interactive mode" 1>&2
13

  
11 14
}
12 15

  
13 16
function nointeractive {
bin/create-volume (revision 41)
9 9
echo " -b : block size. Permit value : 32K, 64K, 128K (recommanded)" 1>&2
10 10
echo " -s : volume size. Permit unit : T, G, M"  1>&2
11 11
# FIXME: c'est pas clair ta formulation
12
echo " -o : options zfs volume. Read the man zfs for more details" 1>&2
12
echo " -o : set property list for a  zfs volume. Separate such property by a ','." 1>&2
13
echo "      Example : -o compression=off,snapdev=visble." 1>&2
14
echo "      Read the man zfs to get the list of the valid properties" 1>&2
15
echo " -i : interactive mode" 1>&2
13 16
}
14 17

  
15 18

  

Formats disponibles : Unified diff