From c0be35a6c5c9aed70ab101c88ff761397fc56b3b Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Thu, 18 Feb 2016 22:20:38 +0100 Subject: Full parameter for rm -r --- Bash/virtualhosts-backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bash') diff --git a/Bash/virtualhosts-backup.sh b/Bash/virtualhosts-backup.sh index 839b199..f207d9a 100644 --- a/Bash/virtualhosts-backup.sh +++ b/Bash/virtualhosts-backup.sh @@ -35,7 +35,7 @@ DIRECTORY_FROM="/var/www/" #=============================================================================== # Delete old backups in backup root directory #=============================================================================== -find "${DIRECTORY_ROOT}" -type d -mtime +14 -exec rm -r {} \; +find "${DIRECTORY_ROOT}" -type d -mtime +14 -exec rm --recursive {} \; #=============================================================================== # Create backup path directory if not exists -- cgit v1.2.3