Added automatic cleanup of backups folder

By default mcMMO keeps the following files:
 * All files from the last 24 hours
 * Daily backups of the past week
 * Weekly backups of the past months

Adds #1574
This commit is contained in:
TfT_02
2013-11-01 16:07:56 +01:00
parent 6d5f3a52f4
commit 408b8b2107
5 changed files with 137 additions and 3 deletions

View File

@ -19,8 +19,6 @@ General:
Prefer_Beta: false
# Allow mcMMO to inform other plugins of damage being dealt
Event_Callback: true
# Allow mcMMO to create zip backups for flatfile data on shutdown.
Generate_Backups: true
Power_Level_Cap: 0
# Should mcMMO print out debug messages?
Verbose_Logging: false
@ -101,6 +99,18 @@ Database_Purging:
# To never purge old users, set to -1
Old_User_Cutoff: 6
#
# Settings for Backups
###
Backups:
# Allow mcMMO to create zip backups for config files and flatfile data on shutdown.
Enabled: true
Keep:
Last_24_Hours: true
Daily_Last_Week: true
Weekly_Past_Months: true
#
# Settings for using a mySQL database
###