-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Support remote-to-remote aliases on sql-sync/rsync #3408
Comments
Try the workaround mentioned in that issue |
There are are no keys in the car... I mean VM. The work around seems to not work because from within the VM there are no SSH keys to the remote servers. This used to work in 8.x (still does). I can explicitly work around the
|
Up until very recently we've been able to sync databases between two environments on Acquia using the following command:
This isn't working anymore with the error:
This has only become an issue within the last month or so and may be related to Acquia updating Drush (??) but it's making it difficult to copy databases around. I'd like to avoid copying certain tables (CRM data) so that we can have different test data per environment. I'm also not running |
@Tawreh Drush sql:sync uses the rsync command internally. It might be clearer if we did a redundant check for remote-to-remote in sql:sync and gave a more specific error message. Also, it looks like the workaround provided in the help output is not rendered correctly, making the advice even more obscure. Try This won't work unless |
Thanks @greg-1-anderson, appreciate the speedy reply. In that case, sounds like there's some work to be done adding a more specific error message. Do you have a contribution/development guide for the project? I'd be happy to try and help out (when I get some time) but I've never really delved into Drush code before :) I'll give that a go later. It's Drush 9 so the aliases are contained in a |
Thanks for offering to help out. See our contributing guide for pointers. If you need help with anything, we're usually available in the #drush slack channel. |
I had to dig in deeper into this problem, because I faced the similar issue as well - I even wasn't able to sql:sync between remote and local multisite with the latest drush. I found out there are two different problems I faced:
|
Update to point 1: Actually, it was my mistake - removal of |
#3046 (and at least one other issue I've lost track of) references the removed functionality in Drush 9 of being able to sync directly between two remote aliases, and the desire to restore it at some point. I can't find an open issue for implementing this, so (unless someone can point me to one) let this stand as that feature request.
Context: the workflow described by geerlingguy for syncing between a remote production server and local DrupalVM instance.
The text was updated successfully, but these errors were encountered: