Mobile man who admitted to holding up a bank in Bay Minette will go to prison for nearly eight years, a federal judge ruled.