int export(const struct e2e_data *data, const char *path);