src/Robo/Commands/Sync/SyncCommand.php
public function syncDbAllSites() {
    $exit_code = 0;
    $multisites = $this->getConfigValue('multisites');

    $this->printSyncMap($multisites);
    $continue = $this->confirm("Continue?");
    if (!$continue) {
      return $exit_code;
    }

    foreach ($multisites as $multisite) {
      $this->say("Refreshing site <comment>$multisite</comment>...");
      $this->switchSiteContext($multisite);
      $result = $this->syncDb();
      if (!$result->wasSuccessful()) {
        $this->logger->error("Could not sync database for site <comment>$multisite</comment>.");
        throw new BltException("Could not sync database.");
      }
    }

    return $exit_code;
  }
public function syncDbAllSites() {
    $exit_code = 0;
    $multisites = $this->getConfigValue('multisites');

    $this->printSyncMap($multisites);
    $continue = $this->confirm("Continue?");
    if (!$continue) {
      return $exit_code;
    }

    foreach ($multisites as $multisite) {
      $this->say("Refreshing site <comment>$multisite</comment>...");
      $this->switchSiteContext($multisite);
      $result = $this->syncDb();
      if (!$result->wasSuccessful()) {
        $this->logger->error("Could not sync database for site <comment>$multisite</comment>.");
        throw new BltException("Could not sync database.");
      }
    }

    return $exit_code;
  }
public function syncDbAllSites ( ) { $ exit_code = 0 ; $ multisites = $ this -> getConfigValue ( 'multisites' ) ; $ this -> printSyncMap ( $ multisites ) ; $ continue = $ this -> confirm ( "Continue?" ) ; if ( ! $ continue ) { return $ exit_code ; } foreach ( $ multisites as $ multisite ) { $ this -> say ( "Refreshing site <comment>$multisite</comment>..." ) ; $ this -> switchSiteContext ( $ multisite ) ; $ result = $ this -> syncDb ( ) ; if ( ! $ result -> wasSuccessful ( ) ) { $ this -> logger -> error ( "Could not sync database for site <comment>$multisite</comment>." ) ; throw new BltException ( "Could not sync database." ) ; } } return $ exit_code ; }
Iteratively copies remote db to local db for each multisite.

@command drupal:sync:db:all-sites
@aliases dsba sync:all:db
@executeInVm
Iteratively copies remote db to local db for each multisite .