Before entering upon any duties, a receiver shall be sworn to perform them faithfully, and shall file with the clerk of court an undertaking with one or more sufficient sureties in the sum the court may direct to the effect that the receiver will faithfully discharge the duties of receiver and obey the orders of the court.