Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Data Directory Backup For Local Storage #353

Merged
merged 5 commits into from
Mar 2, 2024
Merged

Conversation

WolfyScript
Copy link
Owner

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

@WolfyScript WolfyScript self-assigned this Mar 2, 2024
@WolfyScript WolfyScript added the enhancement New feature or request label Mar 2, 2024
@WolfyScript WolfyScript merged commit c678284 into beta Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant