quickshiftin / mysqlbkup

Lightweight MySQL backup script in BASH
GNU Lesser General Public License v3.0
157 stars 70 forks source link

Max Backups Count #12

Closed ghost closed 7 years ago

ghost commented 7 years ago

First off, thanks for a great script!

FYI, on line 141 of mysqlbkup.sh, I think the operator should be '-ge' rather than '-gt'. Otherwise, it will only cull backups when the max is exceeded instead of maintaining the max (because we need to count the backup that is about to occur). Thanks again!

quickshiftin commented 7 years ago

Great catch! I've just pushed a fix on master and cut a new tag (1.5). Thank you for the report!