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

Add an option to import just DB and/or files #195

Open
cboyden opened this issue Nov 24, 2014 · 4 comments
Open

Add an option to import just DB and/or files #195

cboyden opened this issue Nov 24, 2014 · 4 comments

Comments

@cboyden
Copy link

cboyden commented Nov 24, 2014

The psite-import command imports a single archive to create a site - including code. It would be nice to have an option to replicate the Workflow/Import tab where you can import just the DB and/or files to an existing site.

@joshkoenig
Copy link
Contributor

Interesting. Typically people just push databases directly and/or rsync files, which are both quite a bit quicker than sending up a tarball and then having Pantheon do the same.

Can you provide a little more context on your use-case? I am all for replicating the dashboard 100% (that's our party line) but I'd like to understand how you're running into this need on the CLI.

@cboyden
Copy link
Author

cboyden commented Nov 24, 2014

We are looking to import just the DB from a previous backup without having to download/upload the file. This is part of a migration process we're testing for 70+ sites, so we'd like to script it and have it be as efficient as possible.

@cboyden
Copy link
Author

cboyden commented Nov 24, 2014

So, the ideal flow for us would be:

  1. Get the source backup URL (use terminus to pass in the site ID, env, bucket, and specify "latest" or a particular backup)
  2. Pass that URL into psite-import-bucket with the target site ID, env, and bucket.

@joshkoenig
Copy link
Contributor

Hey @cboyden that makes a ton of sense. Thanks for providing the context.

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

No branches or pull requests

2 participants