Instruire
Modul
Employ file recovery in Windows client - Training
In this module, you will learn about the Windows file backup and recovery tools.
Acest browser nu mai este acceptat.
Faceți upgrade la Microsoft Edge pentru a profita de cele mai noi funcții, actualizări de securitate și asistență tehnică.
Find out how to use the CHKSGFILES API to validate a backup of the Exchange store in Exchange 2013.
Applies to: Exchange Server 2013
During backup operations managed by the Volume Shadow Copy Service (VSS), Exchange Server 2013 cannot read each database file in its entirety and verify its checksum integrity. Therefore, you might want your backup application to verify database and transaction log file integrity. We recommend that your backup application verify the physical consistency of the shadow copy set prior to informing the Exchange writer that the backup is complete. After a successful backup, the Exchange store updates the headers of the backed-up databases to reflect the last successful backup times and removes transaction logs from the server that are no longer required to roll forward from the last successful backup.
Before your application can validate the integrity of your backup, you must have access to the following:
The following procedure describes how to validate data integrity in your backup and restore application.
Create a new instance of the CChkSGFiles class.
CCheckSGFiles::ERRerr = CCheckSGFiles::errSuccess;
ULONGiDbError = (ULONG)CCheckSGFiles::iDbInvalid;
CCheckSGFiles * const pcchecksgfiles = CCheckSGFiles::New();
if ( NULL == pcchecksgfiles )
{
err = CCheckSGFiles::errOutOfMemory;
printf( "ERROR: Could not allocate CCheckSGFiles object.\n" );
goto HandleError;
}
The first lines of code create an error object and set its initial value to success, and create an object that checks the validity of the database. Then, the CChkSGFiles.New function creates a new instance of the CChkSGFiles class. A quick check of the new object indicates whether any issues occurred when the new instance was created.
Initialize the CChkSGFiles object.
Call( pcchecksgfiles->ErrInit(
rgwszDb,
cDb,
wszLogPath,
wszBaseName ) );
For more information about the parameters, see CChkSGFiles.ErrInit function.
Use the CChkSGFiles.ErrCheckDbHeaders function to validate database integrity by checking the database headers.
err = pcchecksgfiles->ErrCheckDbHeaders(
&cbDbPageSize,
&cDbHeaderPages,
&iDbError );
if ( CCheckSGFiles::errSuccess != err )
{
if ( CCheckSGFiles::iDbInvalid != iDbError )
{
printf(
"ERROR: Database header validation for '%S' failed with error %d (0x%x)\n",
rgwszDb[ iDbError ],
err,
err );
}
goto HandleError;
}
For more information about the parameters, see CChkSGFiles.ErrCheckDbHeaders function.
Handle errors, and use the CChkSGFiles.Delete function to remove the CChkSGFiles class from memory.
HandleError:
CCheckSGFiles::Delete( pcchecksgfiles );
Instruire
Modul
Employ file recovery in Windows client - Training
In this module, you will learn about the Windows file backup and recovery tools.
Documentație
Restoring Exchange 2013 databases
Find information about the different ways that you can restore your Exchange 2013 databases.
Validate backup integrity by using the Eseutil tool in Exchange 2013
Find out how to use the Eseutil command-line tool to validate a backup of the Exchange store.
Server health and performance permissions
Summary: Learn about permissions that are required to manage workloads and event logs in Exchange Server 2016 and Exchange Server 2019.