Changes notes of work done prior initial commit to git removed (see below)

-##################################
-# Change Notes
-#
-# 2012-12-14:
-# - 1st issue of the script
-# 2012-12-17:
-# - constants defining path to utilities (like date, rm...) moved to
config.sh
-# - log why the script could not be started (differentiate the return
codes)
-# 2012-12-24:
-# - corrected text in log error
-# 2013-01-04:
-# - do not send a error mail in case the NAS is about to shut down
-# 2013-01-08:
-#       - minor changes in declaration of local variables
-# 2013-01-12:
-#       - lock management moved to fct "run_main"
-# 2013-01-13:
-#       - log when an issue occurs while reading "ACPI_STATE_LOGFILE"
-#       - few variables declared readonly
-##################################
Changes notes of work done prior initial commit to git removed (see below)

-####################################################################
-# Change Notes:
-#
-# 2010-03-08:
-# - Script creation
-# 2010-03-09:
-# - Script now ensures that the dest pool is readonly
-# - Robusteness improved (e.g. detection of problems during backup)
-# 2010-03-10:
-# - Script enhanced to support automatic backup of sub-filesystems
recursively
-# - Bug corrected: fs could not be created because read-only was set
-#   at the wrong place
-# - Various improvements in the log file generation
-# - Bug corrected: if the last snapshot on dest fs cannot be found,
-#   performs rollback instead of destroying the respective snapshot
-# 2010-03-12:
-# - 'export of the dest pool' put in a dedicated function,
-#   and called if an error occurs
-# 2010-03-13:
-# - 'set the pool to read only' put directly into the function aimed
-#   at ensuring the availability of the filesystems
-# - Comments improved in the code
-# - Check added in order to avoid that big rollbacks are performed
-#   (on the dest fs), in case no newer common snapshot
-#   is found
-# 2010-03-15:
-# - Check added in order to verify if each fs to be backed-up
-#   has a default "mountpoint". (Only the default mountpoint is
supported
-#   by the script)
-# - Common functions put into another shell script, used in this script
-# 2010-08-15:
-# location of the log file changed to "/export/home/xxxxx/scripts/logs"
-# instead of "/export/home/xxxxx/scripts/logs"
-# 2010-08-22:
-# - Minor changes in the comments
-# 2011-01-01:
-# - Script modified to run with freeNAS 0.7.2
-# - Logging modified to harmonize the format of the log file
-# - Send a mail in case an issue is detected
-# 2011-10-21:
-#       - Script modified in order to mail only the lines
-#         that have been written in the logfile during the current
execution
-# 2011-10-22:
-#       - Minor changes to improve code quality
-# 2012-01-02:
-#       - Minor changes to improve code quality
-# 2012-08-21:
-#       - Create lock file at when starting the execution
-#       - Delete lock file at the end of the execution
-#       - Prevent several instances of the script to run at the same
time
-# 2012-09-17:
-#       - Added possibility to define several filesystems to be
backuped
-# 2012-09-18:
-#       - Bug fix: In case a backup is requested for an fs but not for
its parent, the parent
-#   fs is created automatically in the backup pool (but no backup is
done for
-#   the latter fs)
-# 2012-09-25:
-#       - Backup pool not imported / exported anymore
-# 2012-12-17:
-#       - Variable TMPFILE renamed in LOGFILE
-# - constants defining path to utilities (like date, rm...) moved to
config.sh
-#       - log why the script could not be started (differentiate the
return codes)
-# 2012-12-24:
-#       - corrected text in log error
-# 2013-01-02:
-#       - reference to obsolete script commonPoolFct.sh removed
-# 2013-01-04:
-#       - do not send a error mail in case the NAS is about to shut
down
-# 2013-01-06:
-#       - minor changes induced by changes in "commonSnapFcts.sh"
-# 2013-01-08:
-#       - minor changes in declaration of local variables
-# 2013-01-12:
-#       - lock management moved to fct "run_main"
-# 2013-01-14:
-#       - few variables declared readonly
-####################################################################
Changes notes of work done prior initial commit to git removed (see below)

-##################################
-# Change Notes
-#
-# 2011-01-16:
-# - First version of the script
-# 2011-10-21:
-# - Script modified in order to mail only the lines
-#   that have been written in the logfile during the current execution
-# 2011-10-22:
-#       - Minor changes to improve code quality
-# 2012-08-21:
-#       - Create lock file at when starting the execution
-#       - Delete lock file at the end of the execution
-#       - Prevent several instances of the script to run at the same
time
-# 2012-12-17:
-# - Variable TMPFILE renamed in LOGFILE
-# - constants defining path to utilities (like date, rm...) moved to
config.sh
-#       - log why the script could not be started (differentiate the
return codes)
-# 2012-12-24:
-#       - corrected text in log error
-# 2013-01-04:
-#       - do not send a error mail in case the NAS is about to shut
down
-# 2013-01-12:
-#       - lock management moved to fct "run_main"
-# 2013-01-13:
-#       - few variables declared readonly
-##################################
Change notes of work done prior initial commit to git removed (see below)

-##################################
-# Change Notes
-#
-# 2011-01-02:
-# First version of the script
-# 2011-01-04:
-# - "#" removed from the lines aimed at sending a notification mail
-# - Bug fix in the formula aimed at computing the usage of the disks
(in percent)
-# 2011-08-11:
-# - Script improved to log the exact sizes in bytes instead
-#   of truncating the size to the next kB, MB or GB
-# 2011-09-11:
-# - Script improved in order to work with zpools that have been
exported before
-# 2011-09-12:
-# - Minor changes in logging
-# 2011-10-09:
-# - Name of the log file modified to contain the filesystem name
-# 2011-10-21:
-#       - Script modified in order to mail only the lines
-#         that have been written in the logfile during the current
execution
-# 2011-10-22:
-# - Configured warning threshold for disk usage now appended in log
file
-#       - Minor changes to improve code quality
-# 2012-08-21:
-#       - Create lock file at when starting the execution
-#       - Delete lock file at the end of the execution
-#       - Prevent several instances of the script to run at the same
time
-# 2012-09-25:
-#       - Pool not imported / exported anymore
-# 2012-12-14:
-#       - "%" character remove from the log file (because of
incompatibility
-#   with the mail function
-# 2012-12-17:
-#       - Variable TMPFILE renamed in LOGFILE
-# - constants defining path to utilities (like date, rm...) moved to
config.sh
-#       - log why the script could not be started (differentiate the
return codes)
-#       - allow 2 instances for difference FS to run concurrently
-# 2012-12-18:
-#       - Bugfix: the wrong lock id was passed to script_end()
-# 2012-12-24:
-#       - corrected text in log error
-# 2013-01-02:
-#       - reference to obsolete script commonPoolFct.sh removed
-# 2013-01-04:
-#       - do not send a error mail in case the NAS is about to shut
down
-# 2013-01-07:
-#       - display size in MiB (instead of byte) for readability
-# 2013-01-08:
-#       - minor changes in declaration of local variables
-# 2013-01-12:
-#       - lock management moved to fct "run_main"
-# 2013-01-13:
-#       - few variables declared readonly
-# 2013-01-25:
-#       - minor change in data logged
-##################################