Closed justinlevi closed 8 years ago
The PR you merged earlier has all the changes already I think https://github.com/oxyc/drupal-vm/commit/ca349e2a83ca25703ebc47bf68fe8d8de5c98486. The only issue is that it hasn't been verified on windows. I'm pretty confident our docs are correct now and if there are any issues, they are in fact drush bugs.
Okay, I'm going to close this issue then. We can open up follow-ups if anything's incorrect, or push stuff off to Drush :P
So one thing I've been struggling with is figuring out a workflow for getting the Drupal-VM database setup using
sql-sync
to an Acquia Cloud site. I'd like to get the Drupal-VM synchronized with an existing Drupal project checked out from Acquia (via DevDesktop although it could just as well be a git clone via command line).Here's how I'm thinking it should work:
vagrant up
vagrant up
completes, but I'd be happy if I could just get the workflow sorted out manually to start...So, here's where I'm at:
My VM is setup and working great. I can
vagrant ssh
in and verify that ssh-agent is forwarding correctly to the host by runningssh -T git@github.com
as I get the expected message:Hi xxx! You've successfully authenticated, but GitHub does not provide shell access.
I can create a new drush alias to the Drupal-VM no problem by adding the following into
<SITE ROOT>/../drush/virtualbox.aliases.drushrc.php
:I can then run
drush @virtualbox.local status
, entervagrant
for my pw and everything works as expected.haha - In doing the above and running
drush sa
I realized aliases were already being created to all of the virtual hosts defined in the config. oops.Regardless though, this is where I get stuck. If I then try to sync with the Acquia DB running
drush sql-sync @<ACQUIA-DRUSH-ALIAS>.dev @drupalvm.drupalvm.dev
I consistently get a rsync error. I think this might have something to do with trying to rsync between two remote hosts. I feel like I've read somewhere that rsync doesn't like that.
Here's the full error I'm seeing:
I also tried
drush @<ACQUIA-DRUSH-ALIAS>.dev sql-dump | drush @drupalvm.drupalvm.dev sql-cli
with no luck even though I can create the sql file no problem withdrush @<ACQUIA-DRUSH-ALIAS>.dev sql-dump > sqldump.sql
I found a project called
Drush SQL Sync Pipe
that looks promising but wanted to check here before I start going down that road. https://www.drupal.org/project/drush_sql_sync_pipe@geerlingguy - Any help is greatly appreciated. Thanks!
Oh, a few more notes.
sql-sync
on the host and not within the vagrant ssh. Mainly because I don't have access to all of my Acquia aliases.UPDATE
I ended up installing Drush SQL Sync Pipe and was able to get the DB from the Acquia Dev site and push it up to the Virtual Box.
drush sql-sync-pipe @<ACQUIA-DRUSH-ALIAS>.dev @drupalvm.drupalvm.dev --progress
I'm not sure if this is the correct approach though and now I'm running into some php issues that I'm not seeing on dev desktop or on Acquia Dev oddly enough.