Skip to content

Commit

Permalink
documenting gh-ost-on-start-replication hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Shlomi Noach committed Mar 7, 2017
1 parent 6fa32f6 commit 7f72872
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ The full list of supported hooks is best found in code: [hooks.go](https://githu
- `gh-ost-on-interactive-command`
- `gh-ost-on-row-copy-complete`
- `gh-ost-on-stop-replication`
- `gh-ost-on-start-replication`
- `gh-ost-on-begin-postponed`
- `gh-ost-on-before-cut-over`
- `gh-ost-on-success`
Expand Down
6 changes: 6 additions & 0 deletions resources/hooks-sample/gh-ost-on-start-replication-hook
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# Sample hook file for gh-ost-on-start-replication
# Useful for RDS/Aurora setups, see https://github.com/github/gh-ost/issues/163

echo "$(date) gh-ost-on-start-replication $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME $GH_OST_MIGRATED_HOST" >> /tmp/gh-ost.log
1 change: 1 addition & 0 deletions resources/hooks-sample/gh-ost-on-stop-replication-hook
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

# Sample hook file for gh-ost-on-stop-replication
# Useful for RDS/Aurora setups, see https://github.com/github/gh-ost/issues/163

echo "$(date) gh-ost-on-stop-replication $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME $GH_OST_MIGRATED_HOST" >> /tmp/gh-ost.log

0 comments on commit 7f72872

Please sign in to comment.