Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attemp to add mc-backup rsync method to helm #182

Merged
merged 2 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading