# EssUpdateBAKFile

Description

EssUpdateBAKFile() compares the security backup file `essbase.bak` to the security file `essbase.sec` and overwrites the backup file with the security file if the two files do not match.

Syntax

    ESS_FUNC_M EssUpdateBAKFile (hCtx);

ESS_HCTX_T | hCtx;

Parameters

hCtx | Context handle

Return Value

If successful, returns Zero.

Notes

Essbase compares the security file and the backup file every time the server starts. The Essbase Application Manager can be used to automatically compare the security backup file to the security file at specified intervals or on demand. When Essbase compares the files, Essbase updates the backup file to match the security file.

Access

This function requires supervisor permission.

Example

      ESS_FUNC_M
      ESS_UpdateBAKFile (ESS_HCTX_T  hCtx)
      {
         ESS_FUNC_M     sts = ESS_STS_NOERR;

         sts = EssUpdateBAKFile(hCtx);

         return sts;
      }