Enable restic backups for minecraft

This commit is contained in:
Nikolai Rodionov 2023-08-15 15:40:59 +02:00
parent ced4bcd4c5
commit b755239823
No known key found for this signature in database
GPG Key ID: 19DB54039EBF8F10
3 changed files with 16 additions and 16 deletions

View File

@ -1,6 +1,9 @@
minecraftServer: minecraftServer:
rcon: rcon:
password: ENC[AES256_GCM,data:7kQAt4R+uN/28Uvn3KnJnOvOcCOf6FEaow==,iv:G20SygTZZ1O2DyPr+/f3XSC3bB4L5p/9CxZkPS5qibY=,tag:O2Ab+AC+Eho6MRm0vC9hHQ==,type:str] password: ENC[AES256_GCM,data:7kQAt4R+uN/28Uvn3KnJnOvOcCOf6FEaow==,iv:G20SygTZZ1O2DyPr+/f3XSC3bB4L5p/9CxZkPS5qibY=,tag:O2Ab+AC+Eho6MRm0vC9hHQ==,type:str]
mcbackup:
resticEnvs:
RESTIC_PASSWORD: ENC[AES256_GCM,data:mjrSV6d6a4ZvesYjobhHCVTngw5EQqesAKecSPVY,iv:WSk5V61opvccp/1bhbcO6S+8GcEYVlxk8l6nl++nxc4=,tag:wENZyx6IxJgswetDi8alZA==,type:str]
sops: sops:
kms: [] kms: []
gcp_kms: [] gcp_kms: []
@ -16,8 +19,8 @@ sops:
MGNDV2cvUUF3dWZHSlZNeVFDNXhzalkKubKuiiZuqoZTvRMr2FiUxnFUu+Pvj3Wf MGNDV2cvUUF3dWZHSlZNeVFDNXhzalkKubKuiiZuqoZTvRMr2FiUxnFUu+Pvj3Wf
pZTfZg9rnUukmV+kmwqQKcfoPNfeShhoAsszWwPM628cV9pq87I2/A== pZTfZg9rnUukmV+kmwqQKcfoPNfeShhoAsszWwPM628cV9pq87I2/A==
-----END AGE ENCRYPTED FILE----- -----END AGE ENCRYPTED FILE-----
lastmodified: "2023-08-15T12:48:04Z" lastmodified: "2023-08-15T13:37:56Z"
mac: ENC[AES256_GCM,data:aksZH0kHJASsk6ziynB/xJ+vAH7TSU6Wjx+ZcqY/MlfBrdgsWBruCrutTtZE3rvchAVH1lSVeJ5z0w2Ix1/iMHOfkzM5U4LfU49e4HH6FinaWpOZ2tdODdr3Za2jF93FD6TfJOExCOL9pD94LdjBH4XbxBmpdrCqRMkX1Piu0tw=,iv:kKHZFQKqETRe7DZZVpNU4PE4xaeboA4sUWaP2uV1Nwk=,tag:qqAPQTpVhEEWa9Bmw0cTng==,type:str] mac: ENC[AES256_GCM,data:bzLZpYzuD7H0Heo/BsCEcS2HX8PZ3XpT4B866lA9T9Imwe29Gfw8eKn2jgzlwjHhoWfBJPy5XGf7/K/uw6Ift1fwEgApHSWwhP7wvCtCAaMdricXkumbfHFlJAR+zwTx5TiC2GhWyhDMNQviEgRU8m/QLEfvP8uXJxvlp9ZtaL4=,iv:fxJ+XhnctFmQ9Nvgr+C2o2HS3P0vI7hB3ODYRN8LGow=,tag:UEjTt5bKBH+xUxlfzTaaJQ==,type:str]
pgp: [] pgp: []
unencrypted_suffix: _unencrypted unencrypted_suffix: _unencrypted
version: 3.7.3 version: 3.7.3

View File

@ -85,34 +85,24 @@ persistence:
enabled: true enabled: true
Size: 15Gi Size: 15Gi
mcbackup: mcbackup:
enabled: false enabled: true
image:
backupInterval: 2h backupInterval: 2h
pauseIfNoPlayers: "false" pauseIfNoPlayers: "false"
# is set to a positive number, it'll delete old .tgz backup files from DEST_DIR. By default deletes backups older than a week.
pruneBackupsDays: 2 pruneBackupsDays: 2
rconRetries: 5 rconRetries: 5
rconRetryInterval: 10s rconRetryInterval: 10s
excludes: "*.jar,cache,logs" excludes: "*.jar,cache,logs"
backupMethod: restic backupMethod: restic
resticRepository: resticRepository: s3:https://s3.e.badhouseplants.net:443/restic/minecraf
resticAdditionalTags: "mc_backups" resticAdditionalTags: "mc_backups"
pruneResticRetention: "--keep-daily 7 --keep-weekly 5 --keep-monthly 12 --keep-yearly 75" pruneResticRetention: "--keep-last 12 --keep-daily 7 --keep-weekly 4 --keep-monthly 2 --keep-yearly 2"
resticEnvs:
[]
extraEnv:
{}
envFrom: []
resources: resources:
requests: requests:
memory: 512Mi memory: 512Mi
cpu: 500m cpu: 100m
persistence: persistence:
annotations: {}
backupDir: backupDir:
enabled: false enabled: false
Size: 1Gi
# --------------------------------------------- # ---------------------------------------------
# -- Install Plugins # -- Install Plugins
# --------------------------------------------- # ---------------------------------------------

7
docs/restic.md Normal file
View File

@ -0,0 +1,7 @@
# Restic
We are using restic for backing up the Minecraft server
## How to restore
TODO: Describe the restoration process