The court shall not issue a temporary restraining order or a writ of possession until the plaintiff has filed with the court an undertaking. The undertaking shall provide that the sureties are bound to the defendant in the amount of the undertaking for the return of the property to the defendant, if the return thereof be ordered, and for the payment to the defendant of any sum recovered against plaintiff. The undertaking shall be in an amount not less than twice the value of the property.
Ca. Civ. Code § 1861.21