-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Backup save related files outside of save folder #178
Conversation
Have you tested how restoring a backup from the in-game menu interacts with this? |
I feel like this feature could help enable seamless in-place pack updates. |
I pushed a rework, addressing the mentioned issues. I still need to test it more before I consider it ready, though. |
Windows doesn't seem to like those wildcards
|
This includes by default: - journeymap data - NEI data - TCNodeTracker data - visualprospecting data - schematics - blueprints
Seems like Windows java doesn't like "*" in the paths, I pushed an update that should fix that. Although I can't fully test since I currently can't test on Windows. |
Stripping the path of all Also all those force pushes makes it very hard to track what was actually changed. |
I only remove the
Sorry, I'm used to gitlab where that is no problem, I will make additional commits from now on. |
If you're only using the PathMatcher to resolve the wildcards it would be much more efficient to only resolve the part of the path that contains a wildcard, instead of trying to match every file in the root folder against the pattern. Doing it this way means that it'll iterate through potentially thousands of files, since all content of the subfolders is included, to only add a few of those files to the backup. |
Thanks for your in-depth review, appreciate it! I pushed a fix that only iterates as many files as needed. Could you please open conversations for future issue? I find it to be easier to follow, since it groups. |
Also added compatibility for older backups, any help in testing would be appreciated though.
|
(cherry picked from commit cb39d02)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, I just have a few minor points left.
This includes:
Fixes #120
Note that I don't know what exactly is stored inside blueprints, I never used it