anchor.diff:  {
   mysqldump --user="$username" --password="$password" $database > "backuping/version-$curdate/<%=fetch(:stage)%>.sql"
   } || {
  -	has_error=1
  -	error_text="Ошибка во время выполнения дампа mysql"
  +  has_error=1
  +  error_text="Mysql dump error"
   }
   fi
   
  
positive.code: <%= fetch(:slack_hook) %>
  
  #telegram notification
  curl -i -X GET "https://api.telegram.org/bot<%= fetch(:backup_telegram_bot_hash) %>/sendMessage?chat_id=<%= fetch(:backup_telegram_chat_id) %>&text=Успешо создан бэкап для <%= fetch(:application) %>"
  
  else
  curl -X POST -H 'Content-type: application/json' \
  
negative.code: <%= fetch(:slack_hook) %>
  
  #telegram notification
  curl -i -X GET "https://api.telegram.org/bot<%= fetch(:backup_telegram_bot_hash) %>/sendMessage?chat_id=<%= fetch(:backup_telegram_chat_id) %>&text=🚫  Бекап для <%= fetch(:application) %> \[Error: $error_text\]"
  
  fi
  
  