diff --git a/badhouseplants/values/secrets.minecraft.yaml b/badhouseplants/values/secrets.minecraft.yaml index 66cd5bd..57b931c 100644 --- a/badhouseplants/values/secrets.minecraft.yaml +++ b/badhouseplants/values/secrets.minecraft.yaml @@ -1,6 +1,9 @@ minecraftServer: rcon: 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: kms: [] gcp_kms: [] @@ -16,8 +19,8 @@ sops: MGNDV2cvUUF3dWZHSlZNeVFDNXhzalkKubKuiiZuqoZTvRMr2FiUxnFUu+Pvj3Wf pZTfZg9rnUukmV+kmwqQKcfoPNfeShhoAsszWwPM628cV9pq87I2/A== -----END AGE ENCRYPTED FILE----- - lastmodified: "2023-08-15T12:48:04Z" - mac: ENC[AES256_GCM,data:aksZH0kHJASsk6ziynB/xJ+vAH7TSU6Wjx+ZcqY/MlfBrdgsWBruCrutTtZE3rvchAVH1lSVeJ5z0w2Ix1/iMHOfkzM5U4LfU49e4HH6FinaWpOZ2tdODdr3Za2jF93FD6TfJOExCOL9pD94LdjBH4XbxBmpdrCqRMkX1Piu0tw=,iv:kKHZFQKqETRe7DZZVpNU4PE4xaeboA4sUWaP2uV1Nwk=,tag:qqAPQTpVhEEWa9Bmw0cTng==,type:str] + lastmodified: "2023-08-15T13:37:56Z" + mac: ENC[AES256_GCM,data:bzLZpYzuD7H0Heo/BsCEcS2HX8PZ3XpT4B866lA9T9Imwe29Gfw8eKn2jgzlwjHhoWfBJPy5XGf7/K/uw6Ift1fwEgApHSWwhP7wvCtCAaMdricXkumbfHFlJAR+zwTx5TiC2GhWyhDMNQviEgRU8m/QLEfvP8uXJxvlp9ZtaL4=,iv:fxJ+XhnctFmQ9Nvgr+C2o2HS3P0vI7hB3ODYRN8LGow=,tag:UEjTt5bKBH+xUxlfzTaaJQ==,type:str] pgp: [] unencrypted_suffix: _unencrypted version: 3.7.3 diff --git a/badhouseplants/values/values.minecraft.yaml b/badhouseplants/values/values.minecraft.yaml index f8ef327..2c5bdf3 100644 --- a/badhouseplants/values/values.minecraft.yaml +++ b/badhouseplants/values/values.minecraft.yaml @@ -85,34 +85,24 @@ persistence: enabled: true Size: 15Gi mcbackup: - enabled: false - image: + enabled: true backupInterval: 2h 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 rconRetries: 5 rconRetryInterval: 10s excludes: "*.jar,cache,logs" backupMethod: restic - resticRepository: + resticRepository: s3:https://s3.e.badhouseplants.net:443/restic/minecraf resticAdditionalTags: "mc_backups" - pruneResticRetention: "--keep-daily 7 --keep-weekly 5 --keep-monthly 12 --keep-yearly 75" - resticEnvs: - [] - extraEnv: - {} - envFrom: [] + pruneResticRetention: "--keep-last 12 --keep-daily 7 --keep-weekly 4 --keep-monthly 2 --keep-yearly 2" resources: requests: memory: 512Mi - cpu: 500m - + cpu: 100m persistence: - annotations: {} backupDir: enabled: false - Size: 1Gi # --------------------------------------------- # -- Install Plugins # --------------------------------------------- diff --git a/docs/restic.md b/docs/restic.md new file mode 100644 index 0000000..f740f43 --- /dev/null +++ b/docs/restic.md @@ -0,0 +1,7 @@ +# Restic + +We are using restic for backing up the Minecraft server + +## How to restore + +TODO: Describe the restoration process