Migration Tool Run in Multiple Stages
Run migration stages sequentially (config, getConfig, createRepo, migrateArtifact, migrateSecurity) with options to filter repos and resume.
Run the script with the options in the following order if you want to go through the different stages individually.
configgetConfigcreateRepomigrateArtifactmigrateSecurity
The following table provides information about the options available with the migrator script.
Option | Description |
|---|---|
| Run the migration script in a single step.
For example, |
| Configure information about Artifactory and Nexus Repository. |
| Get configuration information from Nexus Repository.
For example, |
| Create target repositories in Artifactory. |
| Migrate artifacts from Nexus Repository to Artifactory. You can use the following optional commands when you migrate from Nexus 3.
|
| Migrate users, groups, and permission targets from Nexus Repository to Artifactory. |
You can run the migration script with the getConfig, createRepo, migrateArtifact, and migrateSecurity options in sequence to load new objects from the configured Nexus Repository Manager into Artifactory. If you pause the migration on a Nexus 3 installation and resume later, the migrator tool migrates only repositories and security entities added after the pause. For Nexus 2 installations, the migrator tool migrates all repositories and security entities regardless of whether they were migrated before the pause.
Note
If you convert an existing repository to a federated repository, the migrator tool migrates new artifacts to the federated repository.
The migrator tool creates YAML files and JSON files based on the Nexus Repository Manager inside the folder, <working directory>/migration/nexus-migrator.
The migrator tool creates the following configuration files:
- migrationConfig.yaml
- repositories.list
- repositories.yaml
- security.json
- securityLdapConf.yaml
- securityRegexMap.list
Related Topics
- Nexus Repository Manager Migration to JFrog Artifactory
- Before You Begin
- Run the Migration Tool in a Single Step
- Repository Migration Status
- Edit Migration Configuration [OPTIONAL]
- Avoid Repositories from Migration [OPTIONAL]
Frequently Asked Questions
This section provides answers to frequently asked questions.
FAQs
Q: What is the required order for running the migration stages?
A: The stages must run in this sequence: config, getConfig, createRepo, migrateArtifact, then migrateSecurity. Running them out of order will produce incomplete or inconsistent results in Artifactory.
Q: How do I migrate only specific repositories instead of all repositories?
A: Use the --repos option with the migrateArtifact (ma) stage. You can specify a comma-separated list of exact repository names or use wildcard patterns. For example, --repos="docker*,maven*" migrates all repositories whose names start with docker or maven.
Q: What happens if I pause the migration and resume it later?
A: For Nexus 3 installations, resuming migration processes only repositories and security entities added after the pause. For Nexus 2 installations, the migrator tool migrates all repositories and security entities regardless of whether they were previously migrated.
Q: How do I skip artifacts that already exist in Artifactory?
A: Pass the --check-binary-exists flag to the migrateArtifact stage. When set, the tool skips artifacts already present in Artifactory. If Artifactory already contains a user-readable artifact with the same checksum, the artifact content is copied to the new location rather than re-downloaded.
Q: How do I exclude security data such as users, groups, and privileges from migration?
A: Add --disable-security-migration="true" to the all or getConfig stage command. For example: ./jfrog-nexus-migrator-<version>.sh gc --disable-security-migration="true". This prevents the tool from fetching security details from Nexus during that stage.
