Skip to content

Commit

Permalink
Use gfind on solaris
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin0815 committed Jan 9, 2017
1 parent 9442272 commit a3a0f09
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/mysqlbackup.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ set -o pipefail

cleanup()
{
find "${DIR}/" -maxdepth 1 -type f -name "${PREFIX}*.sql*" -mtime +${ROTATE} -print0 | xargs -0 -r rm -f
<%- if @kernel == 'SunOS' -%>
gfind "${DIR}/" -maxdepth 1 -type f -name "${PREFIX}*.sql*" -mtime +${ROTATE} -print0 | xargs -0 -r rm -f
<%- else -%>
find "${DIR}/" -maxdepth 1 -type f -name "${PREFIX}*.sql*" -mtime +${ROTATE} -print0 | xargs -0 -r rm -f
<%- end -%>
}

<% if @delete_before_dump -%>
Expand Down

0 comments on commit a3a0f09

Please sign in to comment.