Victory saw Knights end the first half of the season in seventh place but so close are the five teams above basement club Yorkshire Carnegie that they would have ended the day second-bottom had they lost.
“We got out of jail again but it was a very important win for us in the context of where we are in the league,” said the Welshman.
“I think we are probably safe from relegation now with those four points, especially with the games we’ve got to come at home in the second half of the season.
“But I’m pretty disappointed that we failed to produce consistently during the game and that’s two consecutive home games that Sam has won it for us late on.
Doncaster Rovers players ratings in humbling 3-0 defeat to Lincoln City
What Gary McSheffrey said after Doncaster Rovers’ 3-0 Carabao Cup defeat
Doncaster Rovers: Why George Miller and Tommy Rowe missed Lincoln City clash
Recap as Doncaster Rovers crash out of Carabao Cup after Lincoln City thumping
Why Doncaster Rovers boss isn’t looking too deep into injury situation as physio moves on
“We know we are going to get away with being so inconsistent every week - we didn’t get away with it at Ampthill – and we’ve got to stop being up and down like a yo-yo.
“It’s hurting us but we’ve just got to keep grafting away with the players we’ve got – we’ve picked up five injuries in the last two games – and certainly we’ve got some work to do in the second half of the season.
“We are only halfway through and we’ve got five wins on the board and we need at least another five if we hope to finish in the top half of the table.”
The game saw former academy player Sam Pocklington make his full debut and Griffiths added: “I thought his partnership with Sam Olver was excellent.”