diff --git a/roles/db/files/mariabackup/restore-backup.sh b/roles/db/files/mariabackup/restore-backup.sh
index f8b612f..e1d458c 100644
--- a/roles/db/files/mariabackup/restore-backup.sh
+++ b/roles/db/files/mariabackup/restore-backup.sh
@@ -6,6 +6,7 @@ myDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
 . "$myDir/config.sh"
 
 backupFile=$1
+formatted_date=$(date -d "$fecha" +"%Y%m%d")
 
 if [ -z "$backupFile" ]; then
 	echo "Backup file not defined."
@@ -22,6 +23,7 @@ echo "Restoring MySQL data from backup."
 rm -rf "$restoreDir"
 mkdir -p "$restoreDir"
 
+echo $formatted_date
 echo "Decompresing backup."
 gzip --decompress --stdout "$backupFile" \
 	| mbstream -x --directory="$restoreDir"
@@ -32,6 +34,7 @@ mariabackup \
 	--prepare \
 	--target-dir="$restoreDir"
 
+echo $formatted_date
 echo "Stopping service."
 service mariadb stop
 if pgrep mariadbd; then pkill -9 mariadbd; fi