itzg / itzg/docker-minecraft-bedrock-server
Assure data is in good state for backup
- Dominant language
- Shell
- Stars
- 1.9k
- Forks
- 303
- Avg merge
- 2h 26m
- Merged PRs (30d)
- 2
Description
Itzg and I discussed this a little while back when I put together the backup stuff. He pointed out the /save command and that it would be good to issue it before a backup, but neither of us had a good solution to making that happen. As I understand it, this makes sure to drop all contents in ram to the database to assure consistent backups.
I currently see a couple opportunities here:
1. Simply gracefully shutdown the pods, run the backups and restart.
2. Figure out a way to issues commands into a running pod (sidecar maybe?)
The first is the easiest I expect. I'm thinking about converting the backup pattern to a Job instead of a constantly running Pod managing its own schedule.
The second would be the most useful as the ability to push commands of any type would be more globally useful for other things. I think it would interesting to run a server that was creative in the morning and survival in the afternoon or otherwise automate activity through commands. This does seem like currently the harder objective though so it may need some iterative activity to get there.
Basically, looking for thoughts in the community on this.
Contributor guide
Research direction
No file or test is named. Start by reading the existing backup pattern and how the /save command is handled, then compare the proposed pod shutdown/Job approach with sending commands to a running pod. Done requires an agreed implementation direction and backups that preserve the server's data consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, shell
- Domain
- devops, infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100