Two goals in extra time helped Spartans avoid a potential shock defeat in the South Challenge Cup at Ainslie Park.
The Borders side, who are top of the East of Scotland First Division, were awarded a penalty in the tenth minute as the referee spotted a push in the box. James Young blasted the ball into the net for the lead.
Spartans’ Jack Beesley pulled a shot just wide after he had beaten the keeper before Peebles had a goal chalked off for a foul on keeper Ross Gilpin.
Rovers scored a second in the 42nd minute as Dale Richardson’s header back across goal struck a post, hit a body on the line and bounced into the net.
Spartans manager Dougie Samuel put on Errol Douglas and Jack Beacher at half-time as he tried to save his side’s blushes and Jack Nixon pulled a goal back in the 67th minute with a powerful low strike. Then, Beacher helped make it 2-2 as he picked out Douglas, allowing the pacey striker to slot the ball into the net.
Spartans pushed for a winner in normal time, but Peebles did well to hold on to send the game into the extra 30 minutes.
Rovers battled hard and held on until the 108th minute when a wonderful strike from Beacher found the back of the net before Douglas added a fourth home goal in the 112th minute following some neat play on the left wing.
Spartans: Gilpin (Swain), Nixon, Bruce, Cennerazzo, MacKinnon, Brown, Beesley, Thomson (Beacher), Grant, McLeod, Motion (Douglas).
Peebles Rovers: Walker, Maloney (J Flockhart), McAleavey, Young, Richardson, Arthur, Zavaroni, Conaghan, Sutherland, Meikle (Murray), Ndiweni (C. Flockhart).