<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def migrate(ignore: Sequence[str], name: str):
 """ 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 """

    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