function write_response_file_success()
{
    global $WPBackitup, $wp_backup, $logger;
    $jsonResponse = new stdClass();
    $jsonResponse->backupStatus = 'success';
    $jsonResponse->backupMessage = 'success';
    $jsonResponse->backupName = $wp_backup->backup_name;
    $jsonResponse->backupLicense = $WPBackitup->license_active();
    $jsonResponse->backupRetained = $wp_backup->backup_retained_number;
    $jsonResponse->logFileExists = file_exists($logger->logFilePath);
    write_response_file($jsonResponse);
}
function write_response_file_success()
{
    $jsonResponse = new stdClass();
    $jsonResponse->backupStatus = 'success';
    $jsonResponse->backupMessage = 'success';
    write_response_file($jsonResponse);
}