mirror of
https://github.com/samsonjs/arq_restore.git
synced 2026-04-27 15:07:44 +00:00
improved output formatting
This commit is contained in:
parent
40ef06c9d2
commit
9bbf540e97
2 changed files with 5 additions and 3 deletions
|
|
@ -161,7 +161,9 @@
|
||||||
}
|
}
|
||||||
printf(" %s\n", [[[plist stringNodeForKey:@"LocalPath"] stringValue] UTF8String]);
|
printf(" %s\n", [[[plist stringNodeForKey:@"LocalPath"] stringValue] UTF8String]);
|
||||||
printf(" UUID: %s\n", [[uuidPath lastPathComponent] UTF8String]);
|
printf(" UUID: %s\n", [[uuidPath lastPathComponent] UTF8String]);
|
||||||
|
printf(" reflog command: arq_restore %s reflog\n", [uuidPath UTF8String]);
|
||||||
printf(" restore command: arq_restore %s\n", [uuidPath UTF8String]);
|
printf(" restore command: arq_restore %s\n", [uuidPath UTF8String]);
|
||||||
|
printf("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return YES;
|
return YES;
|
||||||
|
|
|
||||||
|
|
@ -80,17 +80,17 @@
|
||||||
NSError *myError = nil;
|
NSError *myError = nil;
|
||||||
ReflogEntry *entry = [[[ReflogEntry alloc] initWithData:data error:&myError] autorelease];
|
ReflogEntry *entry = [[[ReflogEntry alloc] initWithData:data error:&myError] autorelease];
|
||||||
if (entry == nil) {
|
if (entry == nil) {
|
||||||
printf("\terror reading reflog entry: %s\n", [[myError description] UTF8String]);
|
printf("\terror reading reflog entry: %s\n\n", [[myError description] UTF8String]);
|
||||||
} else {
|
} else {
|
||||||
Commit *commit = [repo commitForBlobKey:[entry newHeadBlobKey] error:&myError];
|
Commit *commit = [repo commitForBlobKey:[entry newHeadBlobKey] error:&myError];
|
||||||
if (commit == nil) {
|
if (commit == nil) {
|
||||||
printf("\tcommit %s: %s\n", [[[entry newHeadBlobKey] description] UTF8String], [[myError localizedDescription] UTF8String]);
|
printf("\t%s\n\n", [[myError localizedDescription] UTF8String]);
|
||||||
} else {
|
} else {
|
||||||
printf("\tblobkey: %s\n", [[[entry newHeadBlobKey] description] UTF8String]);
|
printf("\tblobkey: %s\n", [[[entry newHeadBlobKey] description] UTF8String]);
|
||||||
printf("\tauthor: %s\n", [[commit author] UTF8String]);
|
printf("\tauthor: %s\n", [[commit author] UTF8String]);
|
||||||
printf("\tdate: %s\n", [[[commit creationDate] description] UTF8String]);
|
printf("\tdate: %s\n", [[[commit creationDate] description] UTF8String]);
|
||||||
printf("\tlocation: %s\n", [[commit location] UTF8String]);
|
printf("\tlocation: %s\n", [[commit location] UTF8String]);
|
||||||
printf("\trestore command: arq_restore /%s/%s/buckets/%s %s\n", [s3BucketName UTF8String], [computerUUID UTF8String], [bucketUUID UTF8String],
|
printf("\trestore command: arq_restore /%s/%s/buckets/%s %s\n\n", [s3BucketName UTF8String], [computerUUID UTF8String], [bucketUUID UTF8String],
|
||||||
[[[entry newHeadBlobKey] sha1] UTF8String]);
|
[[[entry newHeadBlobKey] sha1] UTF8String]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue