Skip to content

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
@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