The costs to be taxed upon an application to restore a lost or destroyed record, as provided in this chapter, shall be the same as are provided for like service in civil actions, and may be adjudged against either or any party to such proceeding or application, or may, in the discretion of the court, be apportioned between such parties.