Under Confederate draft laws, an individual could hire a substitute to take his place. Train engineers were one of the trades exempt from the draft.
If he could find one, and if he could come to some sort of a financial agreement about it.