Restore full external ESENT backup

I wrote code that creates full backups of my ESENT database using the JetBeginExternalBackup API.

Following MSDN recommendations, I backed up every file returned by JetGetAttachInfo and JetGetLogInfo.

I made a backup, deleted the old database, and copied the backup data to the database folder. The database engine could not start, the JetInit error code is "JET_errMissingLogFile".

I checked the backup, it contains only the database file and the log files "<inst> XXXXX.log". It does not have the current log file (I use circular logging, BTW).

Is there any way to restore such a backup?

I don’t want to use the JetExternalRestore API because it is too complicated: I don’t need to restore it to another place, I don’t understand why there are 3 input folders, not 2, and I don’t know the delivery values ​​in the genLow and genHigh arguments.

I need external backups: the ESENT database is used by ASP.NET on a remote server, and I support it over the Internet.

Or maybe there is a way to get the name of the current log file, and I should just add it to the backup?

Thanks in advance!

PS I do not have permission to deploy processes on my web server, so using eseutil.exe is not an option.

+3
source share
1 answer

Unzip all backup files into one folder.

. .pat. , . database.pat.

JetRestoreInstance API, .

0

Source: https://habr.com/ru/post/1777135/


All Articles