From b88db1e229b905766fb7eaa4758ee849a2a75850 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Thu, 18 Feb 2016 22:18:08 +0100 Subject: Full parameter for rm -r --- Bash/mysql-database-backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bash') 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 -- cgit v1.2.3