diff --git a/backup.log b/backup.log index 32e9a9f..117a5ce 100644 --- a/backup.log +++ b/backup.log @@ -1,4 +1 @@ -[2018-09-19 15:51:58] -- [ERROR] Script exited with code 1 -- -Missing or invalid parameters on script invocation. -[2018-09-19 15:52:19] -- [ERROR] Script exited with code 1 -- -Missing or invalid parameters on script invocation. +[2018-09-19 16:00:05]-- Start backup.sh execution --- diff --git a/backup.sh b/backup.sh index c139a68..cab6563 100755 --- a/backup.sh +++ b/backup.sh @@ -82,6 +82,11 @@ while getopts ':l:' PARAMS; do done +### Log start of script operations +echo -e "${bold}${stamp}-- Start $scriptName execution ---" >> "$logFile" + + + # This code should not be executed since the 'quit' function should terminate # this script. Therefore, exit with code 99 if we get to this point.