# Worker temporary files

#### Maintaining a clean worker cache ensures optimal performance and prevents job failures caused by corrupted temporary files, particularly after unexpected system shutdowns or hardware failures.

***

## Overview

The 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 worker — whether it is running as a **standalone executable**, or under the **Local System Account**.

Identifying and clearing this directory is a primary troubleshooting step for unexplained backup failures or service startup issues.

***

## Windows

#### Identifying the path via logs

When the worker is **initialized successfully**, the exact temporary files folder path is recorded in the **worker logs**.

Look for the **entry labeled** `TEMPORARY_DATA_DIRECTORY`. The worker's temporary files are stored within this location.

#### Default temporary file locations

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

1. If running as an `.exe` or a service under a specific user account:
   * `C:\Users[USER]\AppData\Local\Temp`\
     Where `[USER]` should be replaced with specific profile name.
2. If running as a system service with **Local System Account**:
   * `C:\Windows\SystemTemp`
   * `C:\Windows\System32\config\systemprofile\AppData\Local\Temp`
   * `C:\Windows\Temp`

***

## Linux

#### Default temporary file locations

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

* `/tmp/`
* `/var/tmp/`
* path returned by running a console command: `echo $TMPDIR`

***

## MacOs

#### Default temporary file locations

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

* `/private/var/tmp` or `/var/tmp`
* `/private/tmp` or `/tmp`
* path returned by running a console command: `echo $TMPDIR`

***

## Useful links and items

{% content-ref url="log-files/worker-logs-location" %}
[worker-logs-location](https://helpcenter.gitprotect.io/management/log-files/worker-logs-location)
{% endcontent-ref %}
