summaryrefslogtreecommitdiffstats
path: root/Bash/virtualhosts-backup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Bash/virtualhosts-backup.sh')
-rwxr-xr-x[-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 f207d9a..0c6fce2 100644..100755
--- 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 --recursive {} \;
+find "${DIRECTORY_ROOT}"* -maxdepth 0 -type d -mtime +14 -exec rm --recursive {} \;
#===============================================================================
# Create backup path directory if not exists