WolfyScript / CustomCrafting

Spigot based plugin to create your own custom Recipes & Items. Designed to be easy to use with in-game GUI and tons of configuration possibilities.
https://modrinth.com/plugin/customcrafting
GNU General Public License v3.0
114 stars 36 forks source link

Add Data Directory Backup For Local Storage #353

Closed WolfyScript closed 8 months ago

WolfyScript commented 8 months ago

When using the local storage loader (default) a backup is created before the recipe and item configs are upgrade to the new format. This applies to both the automatic udgrade and manual upgrade using the /recipes save.

The backups are stored as zip files inside of the CustomCrafting/data_backups directory. By default each backup is kept for 60 days. The old backups are only deleted after the spefied duration and only when a new backup was created.

The backup feature can be toggled and configured in the config.yml under local_storage.backup.

keep_for specifies the duration for which to keep the backups. The unit can be MINUTES, HOURS, DAYS