diff --git a/stable/minecraft/Chart.yaml b/stable/minecraft/Chart.yaml index 8573c58831..63c3efde60 100755 --- a/stable/minecraft/Chart.yaml +++ b/stable/minecraft/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: minecraft -version: 1.1.3 +version: 1.1.4 appVersion: 1.14.4 home: https://minecraft.net/ description: Minecraft server diff --git a/stable/minecraft/README.md b/stable/minecraft/README.md index 65f2af41a0..97d3f6c7e4 100644 --- a/stable/minecraft/README.md +++ b/stable/minecraft/README.md @@ -63,3 +63,16 @@ By default a PersistentVolumeClaim is created and mounted for saves but not mods you can change the values.yaml to disable persistence under the sub-sections under `persistence`. > *"An emptyDir volume is first created when a Pod is assigned to a Node, and exists as long as that Pod is running on that node. When a Pod is removed from a node for any reason, the data in the emptyDir is deleted forever."* + +## Backups + +You can backup the state of your minecraft server to your local machine via the `kubectl cp` command. + +``` +NAMESPACE=default +POD_ID=lionhope-387ff8d-sdis9 +kubectl exec --namespace ${NAMESPACE} ${POD_ID} rcon-cli save-off +kubectl exec --namespace ${NAMESPACE} ${POD_ID} rcon-cli save-all +kubectl cp ${NAMESPACE}/${POD_ID}:/data . +kubectl exec --namespace ${NAMESPACE} ${POD_ID} rcon-cli save-on +```