Every elected officer or elective or appointed board or commission member, before entering upon the duties of his office, and within the time prescribed for filing his oath of office, if a bond be required, shall file with the city clerk such bond or surety as may be required by law or any ordinance or resolution of the council, and with such sureties as shall be approved by the council, conditioned for the due performance of the duties of his office, except that the bond or security given by the city clerk shall be deposited with the city treasurer.