add backup script

This commit is contained in:
Matthew Tran 2023-09-11 12:25:48 +00:00
parent 1192804767
commit 22e1e43ea2
3 changed files with 16 additions and 0 deletions

3
.gitignore vendored
View File

@ -21,3 +21,6 @@ terraria/password.txt
# wireguard
wireguard/*.conf
# backup
data.zip

View File

@ -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.

9
backup Executable file
View File

@ -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