# Gaia backup fails with "not enough space in /var/log/CPbackup/backups"

## Symptoms

- Gaia backup on a Security Gateway fails with this error:

_Cannot complete the backup process: not enough space in /var/log/CPbackup/backups_

- Output of the "`df -h`" command on the Security Gateway shows enough free disk space in the /var/log partition.

- Output of the "`tecli advanced engine version`" command on the Security Gateway shows "`59.990001349`".

## Cause

The _$FWDIR/te_file_analyzer/jail/_ directory for Threat Emulation is not excluded from the Gaia backup process.

## Solution

This problem was fixed. The fix is included in:

- [Jumbo Hotfix Accumulator for R81.20](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81.20/Default.htm) starting from Take 8
- [Jumbo Hotfix Accumulator for R81.10](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81.10/Default.htm) starting from Take 93
- [Jumbo Hotfix Accumulator for R81](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81/Default.htm) starting from Take 82
- [Jumbo Hotfix Accumulator for R80.40](https://sc1.checkpoint.com/documents/Jumbo_HFA/R80.40/Default.htm) starting from Take 196

If you choose not to upgrade, follow these steps:

1. Connect to the command line on the Security Gateway.
2. Log in to the Expert mode.
3. Get the Threat Emulation Engine version:

`tecli advanced engine version`

**Important** - If the version is **59.990001349**, then continue to the next step. Otherwise, this article does **not** apply.

4. Back up the current configuration file:

`cp -v /var/CPbackup/schemes/te.cpbak{,_BKP}`

5. Edit the current configuration file:

`vi /var/CPbackup/schemes/te.cpbak`

6. In the **EXCLUDE FILES** add this line:

`^FWDIR/te_file_analyzer/jail/*`

Save the changes in the file and exit Vi editor.

NOTE: On VSX the /var/CPbackup/schemes/vsx.cpbak should be edited and `^FWDIR/CTX/CTX*/te_file_analyzer/jail/*` should be added to the EXCLUDE FILES section.

#### NOTE

This solution has been verified for the specific scenario, described by the combination of Product, Version and Symptoms. It may not work in other scenarios.
