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

Exclude certain subfolders #18

Open
redxon opened this issue Mar 9, 2021 · 2 comments
Open

Exclude certain subfolders #18

redxon opened this issue Mar 9, 2021 · 2 comments

Comments

@redxon
Copy link

redxon commented Mar 9, 2021

Hello

i don't know if this is possible yet and I was looking for a solution for it.

Is it possible to exclude a subfolder from the script? I looked into it but wasn't able to figure out how to do it.
Reason is, I want to backup my whole minecraft folder, with the configurations and plugins and everything but want to exclude the dynmap web folder as this is too large and is not needed. Is this possible or can it be implemented?

Thanks

@nicolaschan
Copy link
Owner

There's no officially supported way in the script right now, but here's an idea:

Move your dynmap web folder outside of the server directory, and then replace it with a symbolic link. By default, the backup script uses tar which will not traverse symbolic links by default. For example:

mv dynmap ../dynmap
ln -s ../dynmap dynmap

Then when you backup your server directory it will just have the symbolic link instead of the contents of dynmap.

@3jlowes
Copy link

3jlowes commented Dec 4, 2021

Was about to post about excluding the datapacks folder. This seems to be my solution!

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

No branches or pull requests

3 participants