Following conditions are not favorable or harsh for bacteria:
Food and water get decreased
Space becomes less.
Accumulation of chemicals such as alcohol and acids.
Adaptations of bacteria to survive in these harsh conditions are:
Endospore formation - Bacteria develop protective layer outside the cell. It is covered by thick spore coat. These help in bearing adverse conditions like high temperature, drought, starvation.
Cyst formation is the covering on bacterial cell in adverse conditions .