Skip to content

Commit f1fc4b0

Browse files
committed
v.1.2.0
1 parent 7a59973 commit f1fc4b0

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ Todas las modificaciones significativas en el proyecto se registrarán en este a
1414

1515
---
1616

17+
## [1.2.0] - 2024-07-31
18+
19+
### Cambiado
20+
21+
- Script para borrar las copias de seguridad de más de 7 días
22+
23+
---
24+
1725
## [1.1.0] - 2024-07-24
1826

1927
### Añadido

scripts/backup.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ tar -zcvf $BACKUP_DIR/$BACKUP_FILE -C $SOURCE_DIR .
1414

1515
# Imprimir mensaje de éxito
1616
echo "Copia de seguridad realizada con éxito: $BACKUP_DIR/$BACKUP_FILE"
17+
18+
# Eliminar copias de seguridad que tengan más de 7 días
19+
find $BACKUP_DIR -name "*.tar.gz" -type f -mtime +7 -exec rm -f {} \;
20+
21+
# Imprimir mensaje de limpieza de copias antiguas
22+
echo "Copias de seguridad de más de 7 días eliminadas."

0 commit comments

Comments
 (0)