# Backup task ends with a "DV0270: User-defined script failed" error

## Issue

> Backup task ends with error: **"DV0270: User-defined script failed"**.

***

## Cause

This occurs because the path to **MySQL** dump is missing from the operating system **PATH** variable.

***

## Resolution

Add the **MySQL dump** utility to the system **PATH** (this is required to allow the **MySQL** database backup script installed on **Linux** to properly define its arguments):

1. Run the terminal as root, for example:

<figure><img src="https://content.gitbook.com/content/0CBTl43C3OO6ySL1DJ6k/blobs/P6EmudpmsmGRVfDwYi60/terminal.png" alt=""><figcaption></figcaption></figure>

2. Execute the following commands:&#x20;

```bash
mv /usr/bin/mysqldump /usr/bin/mysqldump0
echo '#!/bin/bash' > /usr/bin/mysqldump
echo 'export LD_LIBRARY_PATH=' >> /usr/bin/mysqldump
echo '/usr/bin/mysqldump0 $@' >> /usr/bin/mysqldump
chmod a+x /usr/bin/mysqldump
```

<figure><img src="https://content.gitbook.com/content/0CBTl43C3OO6ySL1DJ6k/blobs/td5fJcRLVYRGCMiVTjjv/terminal_commands.png" alt=""><figcaption><p><em>Executing the suggested commands in terminal.</em></p></figcaption></figure>

3. Assigning the path to the **MySQL** dump utility should resolve issues with backing up **MySQL** databases.
