From 22e1e43ea2095496bb5cc5a700a5c96a59b109ea Mon Sep 17 00:00:00 2001 From: Matthew Tran Date: Mon, 11 Sep 2023 12:25:48 +0000 Subject: [PATCH] add backup script --- .gitignore | 3 +++ README.md | 4 ++++ backup | 9 +++++++++ 3 files changed, 16 insertions(+) create mode 100755 backup diff --git a/.gitignore b/.gitignore index 353733a..71e66a9 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,6 @@ terraria/password.txt # wireguard wireguard/*.conf + +# backup +data.zip diff --git a/README.md b/README.md index 6abfd85..b279a47 100644 --- a/README.md +++ b/README.md @@ -32,3 +32,7 @@ docker compose up -d # auto restarts on reboot! ``` Note for first start you'll need to configure Gitea. You may also need to `chown` and `chmod` the mounted folders for each container. + +## backup + +Run `./backup` and save the resultant `data.zip` somewhere. I should probably automate this. diff --git a/backup b/backup new file mode 100755 index 0000000..d5b9599 --- /dev/null +++ b/backup @@ -0,0 +1,9 @@ +#!/bin/sh + +zip -FS -r data.zip \ + minecraft/world \ + terraria/worlds \ + terraria/password.txt \ + website/gitea \ + website/letsencrypt \ + website/sendgrid.key