Windows AD servers allow to make a dump and also restore of the AD database with ntdsutil and the ifm (install from media) commands. It would be nice if Samba would be able to make a dump and eventually also a restore of the AD database in the same fashion. The databse format of the dump is Extensible Storage Engine (ESE) Database File (EDB). There is a free library for accessing this db format (libesedb) and here are some random links on this: https://en.wikipedia.org/wiki/Extensible_Storage_Engine https://www.forensicswiki.org/wiki/Extensible_Storage_Engine_(ESE)_Database_File_(EDB)_format https://github.com/libyal/libesedb/blob/master/documentation/Extensible%20Storage%20Engine%20(ESE)%20Database%20File%20(EDB)%20format.asciidoc