From b5611bf99dd7747fce23b7fb3a15f38e0073c7d9 Mon Sep 17 00:00:00 2001 From: Aitor Roma <71042576+aitorroma@users.noreply.github.com> Date: Wed, 20 Sep 2023 17:00:26 +0200 Subject: [PATCH] Update backups.sh --- backups.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backups.sh b/backups.sh index 18b72bf..4a8c96f 100644 --- a/backups.sh +++ b/backups.sh @@ -167,10 +167,10 @@ backup_containers() { # Realiza la copia de seguridad cd $BACKUP_DIR - tar -czvf docker-backup_$HOSTANME-$backupDate.tar.gz ${all_docker_dirs[@]} + tar -czvf docker-backup_$HOSTNAME-$backupDate.tar.gz ${all_docker_dirs[@]} if [ $? -eq 0 ]; then - backup_size=$(du -h docker-backup_$HOSTANME-$backupDate.tar.gz | awk '{print $1}') + backup_size=$(du -h docker-backup_$HOSTNAME-$backupDate.tar.gz | awk '{print $1}') echo "Copia de seguridad realizada con éxito." send_telegram_message "🎉 Copia de seguridad completada con éxito en $HOSTNAME.Tamaño: $backup_size." @@ -190,7 +190,7 @@ for dir in "${running_containers_dirs[@]}"; do docker-compose start done -echo "La copia de seguridad local se ha completado en ${BACKUP_DIR}/docker-backup_$HOSTANME-$backupDate.tar.gz" +echo "La copia de seguridad local se ha completado en ${BACKUP_DIR}/docker-backup_$HOSTNAME-$backupDate.tar.gz" echo " " echo "Sincronizando remoto"