Skip to content

Commit

Permalink
Attemp to add mc-backup rsync method to helm (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
toddejohnson authored Dec 22, 2023
1 parent 6999c9c commit 6adae78
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/minecraft/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: minecraft
version: 4.12.0
version: 4.13.0
appVersion: SeeValues
home: https://minecraft.net/
description: Minecraft server
Expand Down
4 changes: 3 additions & 1 deletion charts/minecraft/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,13 @@ spec:
{{- template "minecraft.envMap" list "RCON_RETRY_INTERVAL" .Values.mcbackup.rconRetryInterval }}
{{- template "minecraft.envMap" list "EXCLUDES" .Values.mcbackup.excludes }}
{{- template "minecraft.envMap" list "BACKUP_METHOD" .Values.mcbackup.backupMethod }}
{{- if or (eq .Values.mcbackup.backupMethod "tar") (eq .Values.mcbackup.backupMethod "rclone") }}
{{- if or (eq .Values.mcbackup.backupMethod "tar") (eq .Values.mcbackup.backupMethod "rclone") (eq .Values.mcbackup.backupMethod "rsync") }}
{{- template "minecraft.envMap" list "DEST_DIR" .Values.mcbackup.destDir }}
{{- template "minecraft.envMap" list "LINK_LATEST" .Values.mcbackup.linkLatest }}
{{- if ne .Values.mcbackup.backupMethod "rsync" }}
{{- template "minecraft.envMap" list "TAR_COMPRESS_METHOD" .Values.mcbackup.compressMethod }}
{{- template "minecraft.envMap" list "ZSTD_PARAMETERS" .Values.mcbackup.zstdParameters }}
{{- end }}
{{- if eq .Values.mcbackup.backupMethod "rclone" }}
{{- template "minecraft.envMap" list "RCLONE_REMOTE" .Values.mcbackup.rcloneRemote }}
{{- template "minecraft.envMap" list "RCLONE_DEST_DIR" .Values.mcbackup.rcloneDestDir }}
Expand Down
3 changes: 2 additions & 1 deletion charts/minecraft/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@
"enum": [
"tar",
"restic",
"rclone"
"rclone",
"rsync"
]
},
"resticRepository": {
Expand Down
2 changes: 1 addition & 1 deletion charts/minecraft/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ mcbackup:
# logs folder and cache (used by i.e. PaperMC server).
excludes: "*.jar,cache,logs"

# backup methods, see https://github.com/itzg/docker-mc-backup e.g. tar, rclone, restic
# backup methods, see https://github.com/itzg/docker-mc-backup e.g. tar, rclone, restic, rsync
backupMethod: tar
# tar and rclone methods
destDir: /backups
Expand Down

0 comments on commit 6adae78

Please sign in to comment.