summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bash/virtualhosts-backup.sh2
1 files changed, 1 insertions, 1 deletions
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