Commit bc21bced authored by Johan Vervloet's avatar Johan Vervloet

Clone remote instance, #112.

This will do. Closes #112.
parent 0c680a17
Pipeline #111296843 passed with stages
in 4 minutes and 36 seconds
......@@ -6,6 +6,7 @@
- Correction lines, #93.
- More dealer related acceptance tests, #53
- Script to automatically clone remote instance, #112.
### Changed
#!/usr/bin/env bash
# credentials should match the ones in docker-compose.yml
local_mysql_command="mysql -h -u symfony -psymfony symfony"
if [[ -z "$source" ]]
cat << EOF
USAGE: $0 [email protected]
Copies the remote event store, and replays locally.
It is assumed that a ~/.my.cnf is in place on the server so that
the script can connect to the database without having to provide a password.
exit 1
ssh $source "mysqldump $REMOTE_DATABASE $EVENT_STORE_TABLE" | $local_mysql_command
docker-compose exec php make replay
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment