anchor.diff:          	PERIOD=week
   	else
          		PERIOD=day
  -	fi	
  +	fi
   fi
   
   echo "Selected period: $PERIOD."
  
positive.code: # the following line prefixes the backups with the defined directory. it must not end with a /
  TARGET_PATH="<%= node['mysql']['backup_dir'] %>"
  
  # when running via cron, the PATHs MIGHT be different. If you have a custom/manual MYSQL install, you should set this manually like 
  MYSQLDUMPPATH=$(which mysqldump)
  
  #mysqladmin path
  
negative.code: DAY=$(date +"%d")
  DAYOFWEEK=$(date +"%A")
  
  PERIOD="auto"
  if [ ${PERIOD} = "auto" ]; then
  	if [ ${DAY} = "01" ]; then
          	PERIOD=month
  