The following procedures outline a typical methodology to programmatically back up the directory and information store databases. The first procedure explains how to perform a full backup. The second procedure explains differential and incremental backups.
Call HrBackupTruncateLogs to delete the log files.
Important Do not call HrBackupTruncateLogs if the backup is unsuccessful. If you call HrBackupTruncateLogs and the backup is not successful, your database will not be recoverable if it is interrupted before a clean shutdown.