Skip to content

Commit

Permalink
Merge pull request #6 from yeti-platform/updating
Browse files Browse the repository at this point in the history
Updating process
  • Loading branch information
tomchop authored Aug 16, 2024
2 parents 27e2395 + a39a6bc commit 1efa7c5
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions content/docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ of it.
{{< card link="getting-started" title="Getting started" icon="play" >}}
{{< card link="key-concepts" title="Key concepts" icon="key" >}}
{{< card link="api" title="API docs" icon="cog" >}}
{{< card link="updating" title="Update Yeti" icon="">}}
{{< /cards >}}
59 changes: 59 additions & 0 deletions content/docs/updating.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
title: Updating Yeti
date: 2024-07-04T12:00:00
draft: false
weight: 1
---

If you update yeti, follow these instructions:

1. Backup your database

```bash
sudo docker compose run --rm -v $(pwd)/backup:/backup arangodb arangodump --server.endpoint tcp://a
rangodb:8529 --server.database yeti --output-directory /backup --overwrite true
```

2. Backup your configuration file

```bash
sudo docker cp api:/app/yeti.conf /path/to/backup
```

3. Stop the containers

```bash
cd yeti-docker/prod && sudo docker compose down
```

3. Update

```bash
git pull
sudo docker compose pull
```

4. Start the containers

```bash
sudo docker compose up -d
```

5. Restore database

```bash
sudo docker compose run --rm -v $(pwd)/backup:/backup arangodb arangorestore --server.endpoint tcp://arangodb:8529 --input-directory /backup --server.database yeti --overwrite true
```

6. Restore configuration file

```bash
sudo docker ps yeti.conf api:/app/
sudo docker ps yeti.conf tasks:/app/
```

7. Restart contenairs

```bash
sudo docker compose restarts tasks api
```

0 comments on commit 1efa7c5

Please sign in to comment.