Skip to content

Commit a34733e

Browse files
committed
Update readme
1 parent b045c9f commit a34733e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Testing.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## To test
1+
## Testing Backup and Restore
22
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`)
33
Run:
44

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

63-
Check the databases
63+
### Validate database restore
6464

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

@@ -283,6 +283,7 @@ You should see logs similar to:
283283
6 rows in set (0.001 sec)
284284
285285
```
286+
### Validate volume restore
286287

287288
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;
288289

0 commit comments

Comments
 (0)