summaryrefslogtreecommitdiffstats
path: root/Bash
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2016-02-18 22:18:08 +0100
committerThomas Lange <code@nerdmind.de>2016-02-18 22:18:08 +0100
commitb88db1e229b905766fb7eaa4758ee849a2a75850 (patch)
tree31ac8581dcd66bd06cddeb5da2969d6f99832609 /Bash
parent90ad06625c9e7d1adda0d06e920b67dc6893cb97 (diff)
downloadsnippets-b88db1e229b905766fb7eaa4758ee849a2a75850.tar.gz
snippets-b88db1e229b905766fb7eaa4758ee849a2a75850.tar.xz
snippets-b88db1e229b905766fb7eaa4758ee849a2a75850.zip
Full parameter for rm -r
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