pdinklag / MinecraftStats

A Minecraft player statistics browser for the web - supports 1.13 and later!
https://discord.gg/brH5PGG8By
Other
227 stars 53 forks source link

Script to sync files from remote/hosted server #185

Open nugget opened 2 years ago

nugget commented 2 years ago

This is a sample script which can sync the necessary files over FTP from a remote or hosted Minecraft server.

This is just one of many possible solutions to Issue #152

Happy to adjust to suit style/philosophy differences. Just let me know what you'd like to see.

pdinklag commented 2 years ago

Thanks a lot! It looks simple enough and should be a good solution while this feature is not yet integrated in the Python part. I'm going to give it a try this weekend.

The only thing I'm against is configuring the host data (name, user and password) in a version-controlled file. If someone is keeping a Github fork, that's an accidental data leak waiting to happen. My solution is typically to have the script source in a config file with some gitignored extension, or have it auto-generate a dummy if it doesn't exist. I'll gladly add that myself.

nugget commented 2 years ago

How's this look?