Skip to content

Commit 394b3d3

Browse files
authored
update database seed instructions (#832)
1 parent 4e94112 commit 394b3d3

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

docs/src/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Welcome to the Berkeleytime Docs! This is the primary documentation source for d
77

88
## Getting Started
99

10+
> [!NOTE]
11+
> The following are instructions to set up the documentation locally. To set up the Berkeleytime app locally, go to the [Local Development](./getting-started/local-development.md) section.
12+
1013
### Developing and Building Locally
1114

1215
There are two options: with and without containerization (ie. Docker).

docs/src/getting-started/local-development.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,15 @@ A seeded database is required for some pages on the frontend.
5353
docker compose up -d
5454

5555
# Download the data
56-
curl -O https://storage.googleapis.com/berkeleytime/public/stage_backup.gz
56+
curl -f -o "prod-backup.gz" "https://backups.stanfurdtime.com/persistent/prod_backup-$(date +%Y%m01).gz"
5757

5858
# Copy the data and restore
59-
docker cp ./stage_backup.gz berkeleytime-mongodb-1:/tmp/stage_backup.gz
60-
docker exec berkeleytime-mongodb-1 mongorestore --drop --gzip --archive=/tmp/stage_backup.gz
59+
docker cp ./prod-backup.gz berkeleytime-mongodb-1:/tmp/prod-backup.gz
60+
docker exec berkeleytime-mongodb-1 mongorestore --drop --gzip --archive=/tmp/prod-backup.gz
6161
```
62+
63+
> [!TIP]
64+
> For the latest available snapshot of the production database, use:
65+
> ```sh
66+
> curl -f -o "prod-backup.gz" "https://backups.stanfurdtime.com/daily/prod_backup-$(date +%Y%m%d).gz"
67+
> ```

0 commit comments

Comments
 (0)