The Shakers will play Oxford United at home in the Quarter-Finals of the Checkatrade Trophy.
After making it through to the Quarter-Finals with a rousing comeback victory against Accrington Stanley on Tuesday evening, the Shakers now face Oxford at the Energy Check Stadium at Gigg Lane.
Karl Robinson's side are currently sitting 22nd in the Sky Bet League One table.
Ties will be played in the week beginning 21st January.
Details for this game will be announced in due course.
Bury v Oxford United
Portsmouth v Peterborough United
Bristol Rovers v Port Vale
Sunderland v Manchester City U21