scripte/Wartungsscripte/cleanup_old_backups.sh

4 lines
156 B
Bash
Executable File

#!/bin/bash
find /home/thomas/backup_images/* -maxdepth 0 -type d -mtime +14 -exec rm -rf {} \;
echo "Alte Backups (älter als 14 Tage) wurden gelöscht."