diff options
author | Thomas Lange <code@nerdmind.de> | 2016-02-18 22:18:08 +0100 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2016-02-18 22:18:08 +0100 |
commit | b88db1e229b905766fb7eaa4758ee849a2a75850 (patch) | |
tree | 31ac8581dcd66bd06cddeb5da2969d6f99832609 /Bash | |
parent | 90ad06625c9e7d1adda0d06e920b67dc6893cb97 (diff) | |
download | snippets-b88db1e229b905766fb7eaa4758ee849a2a75850.tar.gz snippets-b88db1e229b905766fb7eaa4758ee849a2a75850.tar.xz snippets-b88db1e229b905766fb7eaa4758ee849a2a75850.zip |
Full parameter for rm -r
Diffstat (limited to 'Bash')
-rw-r--r-- | Bash/mysql-database-backup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bash/mysql-database-backup.sh b/Bash/mysql-database-backup.sh index ef4e2e1..0bb16cf 100644 --- a/Bash/mysql-database-backup.sh +++ b/Bash/mysql-database-backup.sh @@ -25,7 +25,7 @@ DIRECTORY_FILE="${DIRECTORY_ROOT}${DIRECTORY_PATH}%s.sql.bz2" #=============================================================================== # Delete old backups in backup root directory #=============================================================================== -find "${DIRECTORY_ROOT}" -type d -mtime +30 -exec rm -r {} \; +find "${DIRECTORY_ROOT}" -type d -mtime +30 -exec rm --recursive {} \; #=============================================================================== # Create backup path directory if not exists |