summaryrefslogtreecommitdiffstats
path: root/Bash
diff options
context:
space:
mode:
Diffstat (limited to 'Bash')
-rwxr-xr-x[-rw-r--r--]Bash/mysql-database-backup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bash/mysql-database-backup.sh b/Bash/mysql-database-backup.sh
index 0bb16cf..660c80d 100644..100755
--- a/Bash/mysql-database-backup.sh
+++ b/Bash/mysql-database-backup.sh
@@ -25,7 +25,7 @@ DIRECTORY_FILE="${DIRECTORY_ROOT}${DIRECTORY_PATH}%s.sql.bz2"
#===============================================================================
# Delete old backups in backup root directory
#===============================================================================
-find "${DIRECTORY_ROOT}" -type d -mtime +30 -exec rm --recursive {} \;
+find "${DIRECTORY_ROOT}"* -maxdepth 0 -type d -mtime +30 -exec rm --recursive {} \;
#===============================================================================
# Create backup path directory if not exists