TheRemote / MinecraftBedrockServer

Sets up a Minecraft Bedrock dedicated server on Ubuntu with options for automatic updates and running at startup
https://jamesachambers.com/minecraft-bedrock-edition-ubuntu-dedicated-server-guide/
MIT License
811 stars 173 forks source link

Feature request: backup.sh script and optional backup, block standard ports when custom port is used #103

Closed hughnguyen82 closed 3 years ago

hughnguyen82 commented 3 years ago

Hi,

Thank you very much for your fantastic work of making the Minecraft server so easy to install and maintain.

I've a few feature requests / suggestions if you have time to consider them:

  1. A separate backup.sh script to be called from start.sh or run manually.
  2. --quick-start option to start.sh script to skip backup, and new version check
  3. When an instance is configured to run on non-standard ports, it would still automatically bind to standard port. This would prevent the instance that is configured to run on standard ports from starting. This is certainly an upstream issue, but an workaround would be to use netcat to block the standard ports first, start the non-standard port instance, and then release the netcat block. It would be great if you could integrate this into start.sh script.

Thank you very much for your time.

TheRemote commented 3 years ago

That's a very interesting idea to address the default ports issue. As you said it's an upstream issue, this would basically be an implemented workaround but it seems like it should work. Considering that bug has been in for years now it may be worth it for sure.

I'm a little less clear on both the skipping backups and the skipping updates part. The backups should be very fast (although if this is a huge well established server then I could see it). Could you elaborate on this piece?

I'm also confused about the version checking part. With Bedrock you can't "choose" really which version to stay on. The latest version will be pushed through the Microsoft store / through the console stores / Google and Apple stores etc. and if you don't run that version of the server nobody will ever be able to play.

I'm not opposed to either of these two last things but was more curious what your use case is so I can understand! These are a bit of unusual requests but in the past people have had their reasons and were doing things beyond what I was aware was being done/possible so I'm definitely curious!

TheRemote commented 3 years ago

Will consider, especially if further requests are made for this!