code: def migrate(ignore: Sequence[str], name: str):
      
      try:
          with mount_data_partition() as datamount:
              migrate_data(ignore, datamount, DATA_DIR_NAME)
              migrate_connections(datamount)
              migrate_hostname(datamount, name)
      except Exception:
          LOG.exception("Exception during data migration")
          raise
docs: Copy everything in the app data to the root of the new partition
  
      :param ignore: Files to ignore in the root. This should be populated
                     with the names (with no directory elements) of the migration
                     update zipfile and everything unzipped from it.
      :param str: The name of the robot