-replicate="/usr/local/etc/bin/zfs-replicate"
-logfile_parser="/usr/local/etc/bin/zfs-log-parser"
-logfile="/var/log/zfs-replicate.log"
-lockdir="/tmp/zfs-admin-lock"
-destpool="backups"
-maxsleeptime=60
-released_lock_date=0
-
-# Setup our cleanup and exit trap
-cleanup() {
+zfsreplicate="/etc/bin/zfs-replicate"
+logfile_parser="/etc/bin/zfs-log-parser"
+logfile="/var/log/zfs/zfs-replicate.log"
+remote="tank.pippins.net"
+local_pool=backups
+mailto=root@pippins.net
+date=`date`
+starttime=`date +%s`
+zfs=/usr/sbin/zfs
+
+# Specify the list of filesystems to replicate
+filesystems_to_replicate='
+naspool/www
+naspool/git
+'
+
+# Specify the maximum run time in minutes that this script can run
+maxruntime=240
+
+# This function checks to see if our runtime has exceeded our stoptime
+timeexceeded() {
+ currenttime=`date +%s`
+ elapsedtime=$(($currenttime - $starttime))
+ stoptime=$(($maxruntime*60))
+ if [[ $elapsedtime -gt $stoptime ]]; then
+ #echo "$elapsedtime > $stoptime"
+ return 1
+ fi
+ #echo "$elapsedtime < $stoptime"
+ return 0
+}
+
+# This function cleanup and exit trap
+cleanup_and_exit() {
+ #echo "cleanup and exit"