Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #2760: Leverage source and target dump options for sync. #2770

Merged
merged 1 commit into from
Apr 27, 2018

Conversation

malikkotob
Copy link
Contributor

No description provided.

@malikkotob malikkotob force-pushed the issue-2760-blt-sync branch from 838e590 to a3e1ba5 Compare April 26, 2018 12:58
@grasmash grasmash added the Bug Something isn't working label Apr 26, 2018
@@ -134,7 +134,8 @@ public function syncDb() {
->arg($local_alias)
// @see https://github.com/drush-ops/drush/releases/tag/9.2.1
// @see https://github.com/acquia/blt/issues/2641
->option('--source-dump', sys_get_temp_dir() . '/tmp.sql')
->option('--source-dump', sys_get_temp_dir() . '/tmp.source.sql')
->option('--target-dump', sys_get_temp_dir() . '/tmp.target.sql.gz')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Odd these have different extensions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is odd. I initially had it without the gz and it failed on gzip -d /tmp/tmp.target.sql. Documentation is poor for these options, but I sifted through the issue queue and stumbled upon this PR that was merged into an old drush version - https://github.com/drush-ops/drush/pull/1996/files. It shows the target-dump option with the gz extension.

@grasmash grasmash merged commit b1769ee into acquia:9.x Apr 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants