summaryrefslogtreecommitdiffstats
path: root/Bash
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2016-02-18 22:20:38 +0100
committerThomas Lange <code@nerdmind.de>2016-02-18 22:20:38 +0100
commitc0be35a6c5c9aed70ab101c88ff761397fc56b3b (patch)
tree43d1691b194ca4538abbe4a7e2678c1963912578 /Bash
parentb88db1e229b905766fb7eaa4758ee849a2a75850 (diff)
downloadsnippets-c0be35a6c5c9aed70ab101c88ff761397fc56b3b.tar.gz
snippets-c0be35a6c5c9aed70ab101c88ff761397fc56b3b.tar.xz
snippets-c0be35a6c5c9aed70ab101c88ff761397fc56b3b.zip
Full parameter for rm -r
Diffstat (limited to 'Bash')
-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