From 33740bc3e49514bbb4abe926957cc805c958f09c Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Fri, 15 Apr 2016 19:13:48 +0200 Subject: Bugfix: Added -maxdepth parameter --- Bash/mysql-database-backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 Bash/mysql-database-backup.sh diff --git a/Bash/mysql-database-backup.sh b/Bash/mysql-database-backup.sh old mode 100644 new mode 100755 index 0bb16cf..660c80d --- 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 -- cgit v1.2.3