summaryrefslogtreecommitdiffstats
path: root/Bash
diff options
context:
space:
mode:
Diffstat (limited to 'Bash')
-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 ef4e2e1..0bb16cf 100644
--- 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 -r {} \;
+find "${DIRECTORY_ROOT}" -type d -mtime +30 -exec rm --recursive {} \;
#===============================================================================
# Create backup path directory if not exists