Except when otherwise especially provided by law, the bonds of public officials shall be filed as follows:
(1) those of all state officers, including the officials and employees of the several departments and institutions thereof, with the secretary of state, who shall record and retain the same;
(2) those of all county officers, and of all other officials or persons, given to the county, with the county recorder;
(3) those of all city officers, with the court administrator of such municipality;
(4) those of school district officers, with the court administrator of the district.