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

Preserve hardlinks when recreating config/plugin folders #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Shadark
Copy link

@Shadark Shadark commented Jul 4, 2023

Hi, I've found this issue when I was configuring some plugins like DiscordConnector and WebMap. These mods create persistent files that aren't preserved when Updating the Valheim setup or when installing new mods. (I asked about these issues in the Discord beforehand, same handle as here)

I tried to solve this by creating hardlinks to the newly created files inside the custom_config[_secure] and custom_plugins folders. The issue is, it works for the first time until the first reset. The container copies the files inside the custom folders, without preserving the hardlinks. This serves only as a "backup" until the next reset. I have to recreate the hardlinks each time I update the server.

I suggest this change, but I'm not UNIX-savvy and I don't know if it would create other issues when copying with -a instead of -p. Feel free to suggest any changes.

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.

1 participant