Any such bond, upon the breach thereof, may be sued upon by the district or county attorney, in the name of the State of Texas, within two years after such breach, and not afterwards; and such suits shall be governed by the same rules as civil actions.
Tex. Code Crim. Proc. § 9.04