BANGOR —A 30-year-old transient was sentenced Wednesday in Penobscot County Superior Court to 10 years in prison with all but six years suspended for robbing two convenience stores, breaking into stor-age lockers and stealing from local stores and a construction site.

Travis L. Gustin also was sentenced to three years of probation. He also was expected to be ordered to pay restitution after the prosecutor, defense attorney and judge agreed on the amount owed to victims.

Gustin pleaded guilty earlier this month to the two robberies, eight burglaries, seven thefts and one count of aggravated forgery. Gustin turned himself into police in April. He has been held at the Penob-scot County Jail in Bangor unable to make bail.

He admitted robbing the Tom T. Irving Store at 1123 Broadway, also known as Route 15, in Bangor at 9:08 p.m. Saturday, March 28, and the Sam’s Qwik Stop on Route 15 at 8:50 p.m. the next day.

In both cases, according to police, the robber wore a mask and pointed a handgun at the store clerk, and escaped with an undisclosed amount of money. No injuries were reported. The gun turned out not to be real, Michael Roberts, deputy district attorney for Penobscot County, said Tuesday, so Gustin was not charged with armed robbery.

Gustin faced up to 10 years in prison and a fine of up to $20,000 for each of the robberies. In imposing sentence, Justice Michaela Murphy said that she found the victim impact in the crime spree to be “sig-nificant,” partly because the clerks who worked at the store believed the gun to be real.