fix: añadidos últimos cambios y se han hecho las comprobaciones pertinentes

This commit is contained in:
Javier Niño Sánchez
2026-10-26 23:00:01 +01:00
parent b2ca407e9c
commit cac83eae05
15 changed files with 317 additions and 7 deletions

View File

@@ -0,0 +1,4 @@
#!/bin/bash
# Sin comprobar el directorio: si no existe, tar deja un .tar.gz vacío
mkdir -p ~/backups
tar -czf ~/backups/$(basename $1)-$(date +%Y%m%d-%H%M).tar.gz $1