---
title: "Testare l’esecuzione di un DUMP"
id: "543"
type: "shorts"
slug: "testare-lesecuzione-di-un-dump"
published_at: "2026-08-27T10:42:09+00:00"
modified_at: "2026-08-27T10:42:09+00:00"
url: "https://pierluigipapeschi.com/shorts/testare-lesecuzione-di-un-dump/"
markdown_url: "https://pierluigipapeschi.com/shorts/testare-lesecuzione-di-un-dump.md"
excerpt: "Se stiamo eseguendo un comando che potrebbe andare in contro ad errori come un dump del database, possiamo verificarne l’esito con questo statement if mysqldum -u ... then echo \"Dump eseguito correttamente\" else echo \"Errore durante il dump!\" exit 1..."
taxonomy_short_cat:
  - "Bash scripts"
---

Se stiamo eseguendo un comando che potrebbe andare in contro ad errori come un dump del database, possiamo verificarne l’esito con questo statement

```
if mysqldum -u ...
then
  echo "Dump eseguito correttamente"
else
  echo "Errore durante il dump!"
  exit 1
fi
```
