# Backup kończy się błędem „DV0270: User-defined script failed”

## Problem

> Backup kończy się błędem: „DV0270: User-defined script failed”.

***

## Przyczyna

Przyczyną jest brak ścieżki do narzędzia **MySQL** dump w zmiennej środowiskowej **PATH** systemu operacyjnego.

***

## Rozwiązanie

Dodaj narzędzie **MySQL** **dump** do **systemowej zmiennej PATH** (jest to wymagane, aby skrypt kopii zapasowej bazy danych **MySQL** zainstalowany na systemie **Linux** mógł poprawnie zdefiniować swoje argumenty):

1. Uruchom terminal jako użytkownik root, na przykład:

<figure><img src="/files/AU3VCJP64r9hCbX4B3wD" alt=""><figcaption></figcaption></figure>

2. Wykonaj następujące polecenia:

```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="/files/qQcmbhaQQRraoOIlULVW" alt=""><figcaption><p><em>Wykonywanie sugerowanych poleceń w terminalu.</em></p></figcaption></figure>

3. Przypisanie ścieżki do narzędzia **MySQL dump** powinno rozwiązać problemy z wykonywaniem kopii zapasowych baz danych **MySQL**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://helpcenter.xopero.com/xopero-one-en/pl/najczestsze-problemy/stacje-robocze-i-serwery/backup-konczy-sie-bledem-dv0270-user-defined-script-failed.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
