> For the complete documentation index, see [llms.txt](https://helpcenter.gitprotect.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpcenter.gitprotect.io/management/backup-agent-temporary-files.md).

# Backup agent temporary files

**Keeping the agent cache clean ensures optimal performance and helps prevent job failures caused by corrupted temporary files, especially after unexpected system shutdowns or hardware failures.**

***

## General information

The backup agent (worker) stores temporary operational data in a specific directory named `device_app_2eab590a`. The location of this folder depends entirely on the execution context of the agent — whether it is running as a standalone executable, or under the local system account.

{% hint style="info" %}
Identifying and clearing this directory is a primary troubleshooting step for unexplained backup failures or service startup issues.
{% endhint %}

***

## Temporary files directory location

Below you can find the default temporary file directory locations for backup agents running on **Windows**, **Linux**, and **macOS**.

### <mark style="background-color:blue;">Windows</mark>

#### Identifying the path via logs

When the backup agent is successfully initialized, the exact temporary file folder path is recorded in the agent logs. Look for the entry labeled `TEMPORARY_DATA_DIRECTORY` — the agent's temporary files are stored in this location.

#### Default temporary files location

Depending on how the agent is configured, temporary files can be found in one of the following directories:

1. If running as an EXE or a service under a specific user account:
   * [x] <kbd>C:\Users\\\[USER]\AppData\Local\Temp</kbd>, where `[USER]` should be replaced with the specific user's profile name.
2. If running as a system service with local system account:
   * [x] <kbd>C:\Windows\SystemTemp</kbd>
   * [x] <kbd>C:\Windows\System32\config\systemprofile\AppData\Local\Temp</kbd>
   * [x] <kbd>C:\Windows\Temp</kbd>

### <mark style="background-color:blue;">Linux</mark>

#### Default temporary files location

Temporary files folder (`device_app_2eab590a`) can be found in one of the following directories:

* [x] <kbd>/tmp/</kbd>
* [x] <kbd>/var/tmp/</kbd>
* [x] Path returned by running a command: `echo $TMPDIR`.

### <mark style="background-color:blue;">MacOS</mark>

#### Default temporary files location

Temporary files folder (`device_app_2eab590a`) can be found in one of the following directories:

* [x] <kbd>/private/var/tmp</kbd> or <kbd>/var/tmp</kbd>
* [x] <kbd>/private/tmp</kbd> or <kbd>/tmp</kbd>
* [x] Path returned by running a command: `echo $TMPDIR`.

***

## Changing the temporary files directory

Administrators can manually set the location of the temporary data directory for backup agents (workers) using the `TempFolder` parameter in the configuration file.

***

## Useful links and items

{% content-ref url="/pages/ZWWK3e18RNKhhq7pLQCv" %}
[Worker logs location](/management/log-files/worker-logs-location.md)
{% endcontent-ref %}
