Hi - Based on the help text and code, I gather that "resume where you left off" should be an option presented upon running drush sup @newsite if the previous run of the same was interrupted or failed somewhere. However, I don't get a prompt. Could you please provide some tips on why that might be? .. file permissions? location of ~/.drush folder ..? or ..?

Along the same lines, it's not clear to me how to specify the command line option stage. One more example in the top of the help file would aid there, I think.

Thanks!

Comments

texas-bronius’s picture

Status: Active » Needs review

Hi Bronius- Great question.
Now having ventured well down the path of D6->D7 upgrade via drush_sup (this module is totally awesome), you have undoubtedly found that "resume" is not an option until you've made it past the first dragons of missing tables, duplicate keys, and other data cleanup that needs to be done to get the hook_update_n's to execute successfully.

Now having sat through a lot of loop of individual contrib module updates and hit a fatal snag, I run drush sup @env7 and do see the following menu choices:
A Drupal site exists at the destination. What would you like to do?

 [0]  :  Cancel                                                                                                           
 [1]  :  Resume the upgrade at the stage it left off at: Upgrading Contrib Modules from Drupal 6 to Drupal 7 Step 4       
 [2]  :  Re-use the existing code: re-import the database from the source site and update core and contrib modules again. 
 [3]  :  Delete the existing target: start over from the beginning.                                                       
 [4]  :  Restore backup 'Upgraded Contrib Module strongarm' and resume upgrade                                            
 [5]  :  Restore backup 'Upgraded Core' and resume upgrade

Ahoy!

greg.1.anderson’s picture

Title: Diagnosing why 'resume' is not offered as an option » Documenting why 'resume' is not offered as an option
Category: support » task
Status: Needs review » Active

'Resume' usually only works when you 'cancel' the last step. If you get an error (e.g. from updatedb), it's usually better to restore from one of the offered backups. Also, using the --stage option is risky; things may go amiss if you start at the wrong stage and have not done the appropriate steps by hand. I might remove this option.

Glad you worked out the issue; you are correct that better documentation would be helpful. Contributions welcome.