This function can be used to save fields defined
refdb_set_fields to a file.
Data are saved in YAML and can be read again using the
config_yaml argument of
a reference database with some fields to be saved.
a path to the file to write.