tgxn / Backup

A Backup plugin for the Bukkit Server API.
http://bukkitbackup.com
GNU General Public License v3.0
23 stars 14 forks source link

Bug in maxbackups setting #125

Closed tgxn closed 12 years ago

tgxn commented 12 years ago

I recently set up bukkitbackup to back up my server worlds instead of cron script that I used previously, and encountered a bug in maxbackups setting. Maxbackups description says to set value to zero or -1 to disable feature. however, when set to 0, it deleted all but newest backup, and when se to -1, plugin deleted all zip files from backups directory. Both previously existing and new backups. It does still make backups when scheduled or commanded to do so, but deletes them afterwards.

tgxn commented 12 years ago

Review code, confirm setting of "0" has the same effect as -1.