- struct uuid id = SegmentWriter::generate_uuid();
- string filename = SegmentWriter::format_uuid(id);
-
- printf("Backup UUID: %s\n", filename.c_str());
- FILE *dump = fopen(filename.c_str(), "w");
- if (dump == NULL) {
- fprintf(stderr, "Cannot open file %s: %m\n", filename.c_str());
- return 1;
- }