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

Profile Backups #983

Merged
merged 18 commits into from
Dec 14, 2024
Merged

Profile Backups #983

merged 18 commits into from
Dec 14, 2024

Conversation

refringe
Copy link
Contributor

@refringe refringe commented Dec 13, 2024

Here's a jumping off point for the profile backup feature. Included some basic configuration options. Currently backup runs on server start-up (before the profiles are loaded into memory) and on a configurable interval.

I think it still needs work.

  • The folder name dates should be used to detect which old backups should be removed
  • Not sure about the interval implementation...
  • Could make the clean method thinner
  • Remove VFS; I don't believe it's needed for copy operations
  • Save a list of active mods used by the backed up profiles

Here's a jumping off point for the profile backup feature. Included some basic configuration options. Currently backup runs on server start-up (before the profiles are loaded into memory) and on an configurable interval. I think it still needs work. I don't like how I'm not using the backup folder names to detect which old backups should be removed, and I'm not sure about the interval implementation. Could make the clean method thinner as well.
@refringe refringe added the enhancement New feature or request label Dec 13, 2024
@refringe refringe added this to the 3.10.3 milestone Dec 13, 2024
@refringe refringe self-assigned this Dec 13, 2024
@refringe refringe changed the title Profile Backups - Concept Profile Backups Dec 14, 2024
@refringe refringe marked this pull request as ready for review December 14, 2024 05:19
@refringe refringe requested a review from chompDev December 14, 2024 05:19
@refringe
Copy link
Contributor Author

I think it's ready (after a quick review of the latest). Kept simple:

  • backups run once at server start
  • set the max number of backups to 15 by default
  • the option to save every X minutes is disabled by default

@chompDev chompDev merged commit ef14ad2 into 3.10.3-DEV Dec 14, 2024
2 of 4 checks passed
@chompDev chompDev deleted the profile-backups branch December 14, 2024 10:20
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.

2 participants