# Changing the temporary dump folder

#### Database backup involves generating a database dump and then backing up the resulting dump file.

***

## Data to protect

When creating a backup plan, in the **Data to protect** section, select the folder where database dumps will be stored. You can choose either **Select from device** or **Select path or variable** — switch between these options by clicking on the text in the list.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FZsQxW65T61sxp5nX40jb%2Fimage.png?alt=media&#x26;token=e6228562-a393-4eb4-9e1c-9f1bc356cddd" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
If the specified folder is deleted, you will not be able to select it from the list of available folders on the device — in that case, switch to **Select path or variable**.
{% endhint %}

***

## Changing the temporary dump folder

1. Create a new temporary folder.
2. Go to the **Plans** tab and edit the plan you want to change or create a new one.
3. In the **Data to protect** section, uncheck the old folder and select the new one (if you're creating a new plan, simply select the newly created temporary folder from the list).
4. Next, go to **Advanced settings**, then **Backup scripts**, and update the script arguments to the new database dump location.
5. Save the changes.

{% hint style="danger" %}
If you delete the old directory first, you will not be able to deselect the folder in the **Select from device** section — switch to **Select path or variable** and remove the old directory.
{% endhint %}
