Bug 6806 - add tdbundump utility (inverse of tdbdump)
Summary: add tdbundump utility (inverse of tdbdump)
Alias: None
Product: TDB
Classification: Unclassified
Component: tools (show other bugs)
Version: unspecified
Hardware: Other All
: P3 enhancement
Target Milestone: ---
Assignee: Volker Lendecke
QA Contact: Samba QA Contact
URL: http://git.pseudorandom.co.uk/hacks/t...
Depends on:
Reported: 2009-10-13 14:17 UTC by Simon McVittie
Modified: 2020-08-20 08:02 UTC (History)
0 users

See Also:

source code (4.59 KB, text/plain)
2009-10-13 14:17 UTC, Simon McVittie
no flags Details
Makefile (82 bytes, text/plain)
2009-10-13 14:18 UTC, Simon McVittie
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon McVittie 2009-10-13 14:17:09 UTC
Because tdb isn't CPU-neutral (or at least, the version I had wasn't) and I wanted to move a tdb between architectures, I wrote a utility "tdbundump" which takes tdbdump output as input and injects it into a given tdb. Feel free to add it to the tdb source distribution if it seems useful.
Comment 1 Simon McVittie 2009-10-13 14:17:58 UTC
Created attachment 4838 [details]
source code
Comment 2 Simon McVittie 2009-10-13 14:18:15 UTC
Created attachment 4839 [details]
Comment 3 Volker Lendecke 2009-10-13 14:28:26 UTC
Wow, very cool.... tdb these days should be cpu-neutral, but nevertheless that utility is certainly very useful!

I'll look at it more closely tomorrow.

Comment 4 Guenther Deschner 2009-10-13 14:57:52 UTC
All yours now.
Comment 5 Jeremy Allison 2009-10-23 20:05:44 UTC
I really like this patch :-). Need to do some testing on it but I think we can have this for 3.5.0.
Comment 6 Matthieu Patou 2010-09-18 00:28:03 UTC
Any news on this "bug" should we integrate it as experimental in our samba tree ? 
Comment 7 Douglas Bagnall 2020-08-20 08:02:16 UTC
fixed in 66731461a6882faf5ec6ba23944e4d4b357125b7 which introduced a version of this as "tdbrestore".