diff options
author | Thomas Lange <code@nerdmind.de> | 2016-04-15 19:08:24 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2016-04-15 19:08:24 +0200 |
commit | ed797cbf4880cf5eed4860fa59d6e2c5d3b2deb3 (patch) | |
tree | e6401b7ce60be2bb50eff6c651a6dd3c5a62d227 /Bash | |
parent | f29a3163edaaa9cd075f9576c4342dd567bbbf44 (diff) | |
download | snippets-ed797cbf4880cf5eed4860fa59d6e2c5d3b2deb3.tar.gz snippets-ed797cbf4880cf5eed4860fa59d6e2c5d3b2deb3.tar.xz snippets-ed797cbf4880cf5eed4860fa59d6e2c5d3b2deb3.zip |
Bugfix: Added -maxdepth parameter
Diffstat (limited to 'Bash')
-rwxr-xr-x[-rw-r--r--] | Bash/virtualhosts-backup.sh | 2 |
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 |