Skip to content

Commit a2221aa

Browse files
committed
docs: update export docs
1 parent 030cdb6 commit a2221aa

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ Also, by default all the data are stored in a named volumes, so if you want/need
6969
### Build for prod and prepare VM
7070

7171
```bash
72-
git clone https://github.com/StHack/2021-scoreboard.git
73-
cd ./2021-scoreboard
72+
git clone git@github.com:StHack/scoreboard.git
73+
cd ./scoreboard
7474
./init.sh -u your_username # specify the username you want for the first admin (recommended)
7575
```
7676

@@ -123,7 +123,19 @@ Don't forget to make the final export and commit it to this git. For that, run t
123123
124124
```bash
125125
sudo docker compose --profile prod exec mongo /backups/_mongo_exports.sh
126-
git add .
126+
git add *
127+
ssh-keygen -t ed25519 -C [email protected]
128+
cat ~/.ssh/id_ed25519.pub
129+
# push that key into github settings -> https://github.com/settings/keys
130+
git config user.name ""
131+
git config user.email [email protected]
127132
git commit -m "feat: add $(date +%Y) edition data"
128133
git push
134+
## retrieve sensitive data for staff-only analysis
135+
sudo docker compose --profile prod logs > logs.txt
136+
sudo docker compose --profile prod logs website > logs-website.txt
137+
## from your computer
138+
scp [email protected]:/home/ubuntu/scoreboard/backups/$(date +%Y)/attempts-uncensored.json .
139+
scp [email protected]:/home/ubuntu/scoreboard/logs.txt .
140+
scp [email protected]:/home/ubuntu/scoreboard/logs-website.txt .
129141
```

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ services:
6565
- mongo-data:/data/db
6666
# - ./backups/2021:/backups/
6767
# - ./backups/2022:/backups/
68-
- ./backups/2023:/backups/
68+
# - ./backups/2023:/backups/
69+
- ./backups/2024:/backups/
6970
- ./backups/_mongo_import.sh:/docker-entrypoint-initdb.d/_mongo_import.sh
7071

7172
redis-dev:

0 commit comments

Comments
 (0)