I take back the reference to the Civil war, I believe FDR used a thing similar to this when he started camps forthe Jap[anese, Italian, and German-Americans during WW2,
Unlike Lincoln and FDR, their measures were temporary.