From ed797cbf4880cf5eed4860fa59d6e2c5d3b2deb3 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Fri, 15 Apr 2016 19:08:24 +0200 Subject: Bugfix: Added -maxdepth parameter --- Bash/virtualhosts-backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 Bash/virtualhosts-backup.sh (limited to 'Bash') diff --git a/Bash/virtualhosts-backup.sh b/Bash/virtualhosts-backup.sh old mode 100644 new mode 100755 index f207d9a..0c6fce2 --- 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 -- cgit v1.2.3