date=`date`;
echo "$date ZFS admin lock obtained" >> $logfile
+# Poweron the destpool and import it
+/usr/local/bin/br -x /dev/ttyd0 A3 ON
+sleep 10
+zpool import $destpool
+
# List the filesystems to replicate
# The parent filesystems MUST be listed ahead
# of the children filesystems.
# Pool root filesystems must end with a slash.
$replicate tank/ $destpool
+$replicate tank/var $destpool
$replicate tank/usr $destpool
$replicate tank/usr/home $destpool
$replicate tank/usr/videos $destpool
$replicate tank/usr/local $destpool
$replicate tank/usr/local/etc $destpool
+$replicate tank/usr/local/var $destpool
$replicate tank/backup $destpool
+# Export the destpool and power it down
+zpool export $destpool
+/usr/local/bin/br -x /dev/ttyd0 A3 OFF
+
# Release our lock
released_lock_date=1
echo `date` ZFS admin lock released >> $logfile