Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
enyachoke committed Oct 31, 2024
1 parent b045c9f commit a34733e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Testing.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## To test
## Testing Backup and Restore
To test the project we need to simulate running a live system , taking it down and restoring the system. For this test we have two Docker Compose files for the system `docker-compose-live.yaml` and `docker-compose-restore-test.yaml` in a real restore scenario we will only have on Docker Compose file as we expect the restore is being done on a separate instance. We also have separate files for Backup and Restore (`docker-compose-backup-service.yaml` and `docker-compose-restore-service.yaml`)
Run:

Expand Down Expand Up @@ -60,7 +60,7 @@ crond 4.5 dillon's cron daemon, started with loglevel notice
2024-10-21 03:50:07,193 - INFO: Backup container exit code: 0
```

Check the databases
### Validate database restore

```docker exec -it live-system-mariadb-1 bash```

Expand Down Expand Up @@ -283,6 +283,7 @@ You should see logs similar to:
6 rows in set (0.001 sec)
```
### Validate volume restore

We have two services to validate that volumes are restored correctly. see `web` and `web-2` in the `docker-compose-restore-test.yaml` file. When the `docker-compose-restore-service.yaml` file is used the `web` and `web-2` will wait for restore to complete before starting. The service then run ls on the restored mounts to confirm that the restore happened run;

Expand Down

0 comments on commit a34733e

Please sign in to comment.