kenorb

drush-ops/drush/issues/161

Oct 29th, 2014
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.83 KB | None | 0 0
  1. $ drush -vy sql-sync @remote.dev @remote.test
  2. ssh -o PasswordAuthentication=no drush@remote 'COLUMNS=278 drush --backend=2 --verbose --yes --uri=dev.remote --root=/var/www/remote.dev sql-conf --all 2>&1' 2>&1
  3. ssh -o PasswordAuthentication=no drush@remote 'COLUMNS=278 drush --backend=2 --verbose --yes --uri=test.remote --root=/var/www/remote.test sql-conf --all 2>&1' 2>&1
  4. You will destroy data in foo/remote_test and replace with data from foo/remote_dev.
  5. Do you really want to continue? (y/n): y
  6. Array to string conversion environment.inc:643
  7. Array to string conversion environment.inc:643
  8. Starting to create database on Destination.
  9. ssh -o PasswordAuthentication=no drush@remote 'COLUMNS=278 drush --backend=2 --verbose --yes --strict=0 --root=/var/www/remote.test --uri=test.remote sql-create --sanitize --create-db --cache --structure-tables-key=common --skip-tables-key=common 2>&1'
  10. 2>&1
  11. Initialized Drupal 7.32 root directory at /var/www/remote.test
  12. Initialized Drupal site test.remote at sites/default
  13. Creating database remote_test. Any possible existing database will be dropped!
  14. Do you really want to continue? (y/n): y
  15. Calling system(mysql --database=information_schema --host=localhost --user=remote_test --password='pass' < /tmp/drush_u0EbBG);
  16. Command dispatch complete
  17. ERROR 1227 (42000) at line 1: Access denied; you need (at least one of) the RELOAD privilege(s) for this operation
  18. Starting to dump database on Source.
  19. ssh -o PasswordAuthentication=no drush@remote 'COLUMNS=278 drush --backend=2 --verbose --yes --strict=0 --root=/var/www/remote.dev --uri=dev.remote sql-dump --sanitize --create-db --cache --structure-tables-key=common --skip-tables-key=common --gzip
  20. --result-file --ordered-dump 2>&1' 2>&1
  21. Initialized Drupal 7.32 root directory at /var/www/remote.dev
  22. Initialized Drupal site dev.remote at sites/default
  23. /usr/bin/php -d magic_quotes_gpc=Off -d magic_quotes_runtime=Off -d magic_quotes_sybase=Off /usr/share/php/drush/drush.php --php=/usr/bin/php --php-options=' -d magic_quotes_gpc=Off -d magic_quotes_runtime=Off -d magic_quotes_sybase=Off' --backend=2
  24. --root=/var/www/remote.dev --uri=dev.remote sql-query 'SHOW TABLES' 2>&1
  25. Command dispatch complete
  26. Calling system(mysqldump --result-file /home/drush/drush-backups/foo/20141029171753/foo_20141029_171753.sql --no-autocommit --single-transaction --opt -Q foo --host=localhost --port=3306 --user=root --password=root --skip-extended-insert --order-by-primary --ignore-table=foo.cache --ignore-table=foo.cache_filter --ignore-table=foo.cache_menu --ignore-table=foo.cache_page --ignore-table=foo.history --ignore-table=foo.sessions --ignore-table=foo.watchdog && mysqldump --no-data --no-autocommit --single-transaction --opt -Q foo --host=localhost --port=3306 --user=root --password=root --skip-extended-insert --order-by-primary cache cache_filter cache_menu cache_page history sessions watchdog >> /home/drush/drush-backups/foo/20141029171753/foo_20141029_171753.sql && gzip -f /home/drush/drush-backups/foo/20141029171753/foo_20141029_171753.sql);
  27. Database dump saved to /home/drush/drush-backups/foo/20141029171753/foo_20141029_171753.sql.gz
  28. Command dispatch complete
  29. The Drush sql-dump command did not report the path to the dump file produced. Try upgrading the version of Drush you are using on the source machine.
  30. Command dispatch complete
  31.  
  32. $aliases["remote.dev"] = array (
  33. '#name' => 'remote.dev',
  34. 'path-aliases' =>
  35. array (
  36. '%files' => 'sites/default/files',
  37. '%private' => 'sites/default/private/files',
  38. ),
  39. 'command-specific' =>
  40. array (
  41. 'sql-sync' =>
  42. array (
  43. 'cache' => true,
  44. 'create-db' => true,
  45. 'sanitize' => true,
  46. 'ordered-dump' => false,
  47. 'structure-tables-key' => 'common',
  48. 'skip-tables-key' => 'common',
  49. 'structure-tables' =>
  50. array (
  51. 'common' =>
  52. array (
  53. 0 => 'cache',
  54. 1 => 'cache_filter',
  55. 2 => 'cache_menu',
  56. 3 => 'cache_page',
  57. 4 => 'history',
  58. 5 => 'search_index',
  59. 6 => 'sessions',
  60. 7 => 'watchdog',
  61. ),
  62. ),
  63. 'skip-tables' =>
  64. array (
  65. 'common' =>
  66. array (
  67. 0 => 'field_deleted_revision_63',
  68. ),
  69. ),
  70. ),
  71. 'sql-dump' =>
  72. array (
  73. 'ordered-dump' => true,
  74. 'structure-tables-key' => 'common',
  75. 'skip-tables-key' => 'common',
  76. ),
  77. 'rsync' =>
  78. array (
  79. 'mode' => 'rlptzO',
  80. 'verbose' => true,
  81. 'no-perms' => true,
  82. 'exclude-files' => '\'*.gz\'',
  83. 'ssh-options' => '-v',
  84. 'filter' => '\'exclude *.sql\'',
  85. ),
  86. ),
  87. 'source-command-specific' =>
  88. array (
  89. ),
  90. 'target-command-specific' =>
  91. array (
  92. ),
  93. 'variables' =>
  94. array (
  95. 'mail_system' =>
  96. array (
  97. 'default-system' => 'DevelMailLog',
  98. ),
  99. ),
  100. 'uri' => 'dev.remote',
  101. 'root' => '/var/www/remote.dev',
  102. 'remote-host' => 'foo',
  103. 'remote-user' => 'drush',
  104. '#test' => '@remote.test',
  105. 'ssh-options' => '-o PasswordAuthentication=no',
  106. '#file' => '~/Sites/drush/remote.aliases.drushrc.php',
  107. );
  108.  
  109. $aliases["remote.test"] = array (
  110. '#name' => 'remote.test',
  111. 'path-aliases' =>
  112. array (
  113. '%files' => 'sites/default/files',
  114. '%private' => 'sites/default/private/files',
  115. ),
  116. 'command-specific' =>
  117. array (
  118. 'sql-sync' =>
  119. array (
  120. 'cache' => true,
  121. 'create-db' => true,
  122. 'sanitize' => true,
  123. 'ordered-dump' => false,
  124. 'structure-tables-key' => 'common',
  125. 'skip-tables-key' => 'common',
  126. 'structure-tables' =>
  127. array (
  128. 'common' =>
  129. array (
  130. 0 => 'cache',
  131. 1 => 'cache_filter',
  132. 2 => 'cache_menu',
  133. 3 => 'cache_page',
  134. 4 => 'history',
  135. 5 => 'search_index',
  136. 6 => 'sessions',
  137. 7 => 'watchdog',
  138. ),
  139. ),
  140. 'skip-tables' =>
  141. array (
  142. 'common' =>
  143. array (
  144. 0 => 'field_deleted_revision_63',
  145. ),
  146. ),
  147. ),
  148. 'sql-dump' =>
  149. array (
  150. 'ordered-dump' => true,
  151. 'structure-tables-key' => 'common',
  152. 'skip-tables-key' => 'common',
  153. ),
  154. 'rsync' =>
  155. array (
  156. 'mode' => 'rlptzO',
  157. 'verbose' => true,
  158. 'no-perms' => true,
  159. 'exclude-files' => '\'*.gz\'',
  160. 'ssh-options' => '-v',
  161. 'filter' => '\'exclude *.sql\'',
  162. ),
  163. ),
  164. 'source-command-specific' =>
  165. array (
  166. ),
  167. 'target-command-specific' =>
  168. array (
  169. ),
  170. 'variables' =>
  171. array (
  172. 'mail_system' =>
  173. array (
  174. 'default-system' => 'DevelMailLog',
  175. ),
  176. ),
  177. 'uri' => 'test.remote',
  178. 'root' => '/var/www/remote.test',
  179. 'remote-host' => 'foo',
  180. 'remote-user' => 'drush',
  181. 'ssh-options' => '-o PasswordAuthentication=no',
  182. '#file' => '~/Sites/drush/remote.aliases.drushrc.php',
  183. );
Advertisement
Add Comment
Please, Sign In to add comment