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

Maintain directory structure on backup #457

Merged
merged 1 commit into from
Sep 15, 2024
Merged

Conversation

othorp
Copy link
Contributor

@othorp othorp commented Sep 15, 2024

Fixes #413

Issue

Files moved/copied to backup folder had flattened directory structure. This caused filename clashes between [behavior_packs/vanilla, resource_packs/vanilla] and [behavior_packs/chemistry, resource_packs/chemistry]. This was causing upgrades to fail at the first attempt as described in #413. Because subsequent restart of container cleaned the partial backup with rm -rf "${bkupDir}" the filename clashes were resolved, but the backup was incomplete.

Change summary

This PR ensures the backup directory structure mirrors the original structure of the Bedrock Server data folder so should resolve these directory / filename clashes.

Avoids filename clash between [behavior_packs/vanilla, resource_packs/vanilla]
and [behavior_packs/chemistry, resource_packs/chemistry].
Copy link
Owner

@itzg itzg left a comment

Choose a reason for hiding this comment

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

Thanks for fixing that!

@itzg itzg merged commit 60173a8 into itzg:master Sep 15, 2024
1 check passed
@othorp othorp deleted the fix_backups branch September 16, 2024 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate issues with mv command during version backup
2 participants