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

SSH Tunnel #746

Open
dalin- opened this issue Dec 14, 2015 · 3 comments
Open

SSH Tunnel #746

dalin- opened this issue Dec 14, 2015 · 3 comments

Comments

@dalin-
Copy link

dalin- commented Dec 14, 2015

SSH Tunnels are required for doing anything with a database.
https://pantheon.io/docs/articles/local/ssh-tunnels-for-secure-connections-to-pantheon-services/

This is a scriptable problem. Terminus could provide a command such as
terminus --site=foo --env=bar ssh-tunnel

This could then be a stepping stone to allow commands like

terminus --site=foo --env=bar drush sql-dump

And then

terminus --site=foo --env=bar drush sql-dump --structure-tables-list='accesslog,cache_*,devel_queries,devel_times,history,search_*,sessions,watchdog' | drush sql-cli

Which could potentially offer some performance gains for grabbing a local DB.

@bensheldon
Copy link
Contributor

@dalin- there is some work in this direction (see #276).

There is a bit of an engineering challenge in providing and supporting deeper hooks into the local development system. Lots of benefits to adding workflow sugar, but also difficulty in ensuring compatibility across systems and setups. But we're definitely exploring these kinds of things.

@joshkoenig
Copy link
Member

I'm curious if/how we can get past compatibility blockers. I'm open to the notion that some of these "macro" type commands will fail fast if they're run on incompatible systems (aka Windows without extra stuff installed).

As long as the failure is clear and refers users to helpful documentation, if we can deliver features that are valuable and helpful to 80% (or more) of users, I think that would be a win.

We could even architect a little platform awareness and pluggability into things, such that if we find some community developers who are windows-savvy and want to provide an alternate implementation, that can be done as a PR...

@dalin-
Copy link
Author

dalin- commented Feb 23, 2016

Here's a script that I've been using for those sites where sql-sync-pipe inexplicably doesn't work:

terminus-db-dump.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants