anchor.diff:  # 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 
  +# 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
  
positive.code: DAY=$(date +"%d")
  DAYOFWEEK=$(date +"%A")
  
  PERIOD=${1-day}
  if [ ${PERIOD} = "auto" ]; then
  	if [ ${DAY} = "01" ]; then
          	PERIOD=month
  
negative.code: #remove tmp file
  rm -Rv ${MYSQLDUMPPATH}/mysql.sql
  
  echo "MySQL Backup done."
  