A former military lawyer who stole secret defence documents, and leaked more than 200 of the files to journalists, has been sentenced to spend at least two years behind bars.

On Tuesday, David McBride pumped his fist in the air while being escorted from the ACT Supreme Court, before disappearing on his way to the cells.