pantheon-deprecated / terminus-deprecated

Deprecated CLI for Pantheon. Do not install. Current project:
https://github.com/pantheon-systems/cli
82 stars 24 forks source link

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

Open cboyden opened 10 years ago

cboyden commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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