A comma separates independent clauses in a compound sentence that are separated by a conjunction. The comma is placed after the first clause and before the coordinating conjunction. Here, the two clauses are 'The road was long and hard' and 'our spirits were unwearied'. The conjunction is 'but'. Hence, the correct option is A.