Added backup feature to update_xref