Bacterial metapopulations in nanofabricated