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

feat: extend export with protected nodes defined by user. #186

Merged
merged 12 commits into from
Dec 10, 2023

Conversation

ronoaldo
Copy link
Contributor

@ronoaldo ronoaldo commented Dec 2, 2023

No description provided.

@ronoaldo ronoaldo changed the title Ronoaldo/issue184 feat: extend export with protected nodes defined by user. Dec 2, 2023
@ronoaldo
Copy link
Contributor Author

ronoaldo commented Dec 2, 2023

References #185 and #184

Avoid losing data when protected nodes
are at the mapblock/mapchunk edges.
Accounting for two neighbor chunks and the surrounding
being exported when --export-all is provided.
@ronoaldo ronoaldo marked this pull request as ready for review December 7, 2023 01:23
@ronoaldo
Copy link
Contributor Author

ronoaldo commented Dec 7, 2023

Ready to review / merge! I have tested this on my own server, and the exported regions with --export-all reflect what would be left when you run --prune_unprotected. It was fully working on a 80G map with 125.000.000+ mapblocks, exporting a 4G working sqlite map. This actually provides a nice and safe way to clean the map as the resulting and smaller version can be checked before it goes live.

Copy link
Member

@BuckarooBanzay BuckarooBanzay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, nice work 👍

i have to test this on the pandorabox backup soon(-ish) i wonder how much space we could save 🤔

@ronoaldo
Copy link
Contributor Author

ronoaldo commented Dec 7, 2023

Nice! Yeah, on my case, there are huge builds. Like an enormous tunnel with 18km of distance (in game distance), a giga factory with automations galore and several player bases around the world. However, the majority of places were just mapgen stuff with no protected regions so the reduced size was significant.

@BuckarooBanzay BuckarooBanzay added the enhancement New feature or request label Dec 10, 2023
Copy link
Member

@BuckarooBanzay BuckarooBanzay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@BuckarooBanzay BuckarooBanzay merged commit 565eacf into minetest-go:master Dec 10, 2023
3 checks passed
@ronoaldo ronoaldo deleted the ronoaldo/issue184 branch December 10, 2023 18:52
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