Long-term survival and evolution of bacteria