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