I've never done this before; in fact, I had to get rid of my colony when I spent a summer in Brazil (3 months) so I don't have direct experience. I had thought on this a lot though when I still thought I could manage to keep them alive.
If they are general scavengers, I would use dry dog food and water tubes with sugar in them, maybe some crushed lollipop (basically whatever will last without molding). Put them in plastic tubs to provide an outworld where you can leave plenty of resources and make sure that any air holes you make will allow good airflow but no escape opportunities. Top priority would be escape prevention, and second would be limiting mold growth. Make sure that wherever you keep them that the temperature is relatively steady so no condensation appears which would lead to mold growth.
Also mice could be an issue as well as "wild ants" (a pile of food tends to attract other scavengers). It will take some work and preparation, and some experimentation on your part since not all colonies will behave the same. If you do this, don't expect them to thrive but as long as there is enough food and water (and air) that they can use, they should be okay.
Honestly there should be a topic on this. Sometimes arrangements don't pan out.
Current Colonies
1 x Camponotus nearcticus (Monogynous), 1 x Crematogaster cerasi (Monogynous), 1 x Formica cf. subsericea (Polygynous Two-Queen), 1 x Formica cf. pallidefulva (Monogynous, single worker),
1 x Lasius cf. americanus (Pleometrotic Founding, now Monogynous), 1 x Tetramorium immigrans (Monogynous)
Current Founding Units
1 x Formica cf. subsericea (Monogynous)
Up-To-Date as of 9/15/2020