👋 We've unified all of GitHub's product documentation in one place! Check out the content for REST API, GraphQL API, and Developers. Learn more on the GitHub blog.
Article version: Enterprise Server 2.21

Preparing the migrated data for import to GitHub Enterprise Server

Before applying the migrated data to your target instance, you'll need to copy the migration archive to your target instance and prepare it for import.

Were you able to find what you were looking for?

  1. Using the scp command, copy the migration archive generated from your source instance or organization to your GitHub Enterprise Server target:

    $ scp -P 122 /path/to/archive/MIGRATION_GUID.tar.gz admin@hostname:/home/admin/
  2. As a site admin, SSH into your target GitHub Enterprise Server instance.

    $ ssh -p 122 admin@HOSTNAME
  3. Use the ghe-migrator prepare command to prepare the archive for import on the target instance and generate a new Migration GUID for you to use in subsequent steps:

    ghe-migrator prepare /home/admin/MIGRATION_GUID.tar.gz
    • To start a new import attempt, run ghe-migrator prepare again and get a new Migration GUID.
    • To specify where migration files should be staged append the command with --staging-path=/full/staging/path. Defaults to /data/user/tmp.

Were you able to find what you were looking for?

Ask a human

Can't find what you're looking for?

Contact us