准备要导入 GitHub Enterprise Server 的迁移数据
在将迁移的数据应用到您的目标实例之前,您需要将迁移存档复制到目标实例,并针对导入进行准备。
-
使用
scp
命令将从源实例或组织生成的迁移存档复制到 GitHub Enterprise Server 目标:$ scp -P 122 /path/to/archive/MIGRATION_GUID.tar.gz admin@hostname:/home/admin/
-
As a site admin, SSH into your target GitHub Enterprise Server instance.
$ ssh -p 122 admin@HOSTNAME
-
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
.
- To start a new import attempt, run