# Function Reference

# _EventLog__Backup

Saves the event log to a backup file

#include <EventLog.au3>
_EventLog__Backup ( $hEventLog, $sFileName )

## Parameters

$hEventLog | Handle to the event log
$sFileName | The name of the backup file

## Return Value

Success: | True
Failure: | False

## Remarks

The function does not clear the event log. The function fails if the user does not have the SE_BACKUP_NAME privilege.

## Related

_EventLog__OpenBackup

## Example

    #include <EventLog.au3>

    Example()

    Func Example()
        Local $hEventLog

        $hEventLog = _EventLog__Open("", "Application")
        _EventLog__Backup($hEventLog, "C:\EventLog.bak")
        _EventLog__Close($hEventLog)
    EndFunc   ;==>Example