The Scottish SPCA were called by Mr McLachlan, who then alerted Moffat Mountain Rescue team.
SSPCA Inspector Janet Proudlocked watched as Sparky was brought to safety by the abseiling team.
When Sparky was found he had already lost a third of his body weight so he wouldn't have survived for much longer.
"His owners were very sensible to distribute posters in the area with their contact details as this is ultimately how they were able to find him.
"There is no doubt that he is an incredibly lucky dog and I was delighted to be present at the happy reunion between Sparky and his owner.
More top news
Tim Farron MP has delivered a petition on behalf of thousands of people in South Lakeland to stop local health service cuts.
A report says plans for the Moorside nuclear plant in west Cumbria, could hamper the Lake District's bid to be a World Heritage site.
Cumbria's six MP's host event in Westminster to showcase Cumbrian businesses and local produce.