Create the Repositories and Settings on the New Artifactory

How to Migrate Artifacts via Push Replication

AuthorFullName__c
Patrick Russell
articleNumber
000005191
ft:sourceType
Salesforce
FirstPublishedDate
2021-12-28T22:21:46Z
lastModifiedDate
2024-03-10T07:49:11Z
VersionNumber
8
It's possible to import the Artifactory configurations from the Old Artifactory to the New Artifactory using an empty System Export even at scale. At large scales (Above 1 million artifacts) the default Full System Export takes too long to complete. For our purposes, we just need to create the repositories on the other side.

You can exclude everything but the configurations and users by checking both "Exclude" checkboxes. This will save a nearly-empty backup of the Old Artifactory's configurations and permissions; it should complete fairly quickly.


User-added image

Note: Due to an open bug, RTFACT-25899, you have to decrypt the passwords before the export in Artifactory 7.X
   curl -u admin http://localhost:8081/artifactory/api/system/decrypt -XPOST

   [Expected Output]
   DONE
Note: If anything goes wrong later, you should reload this exported configuration to undo the replication settings

Next, copy the export into the New Artifactory. Import it using the Import System menu to automatically create all the target repositories:

User-added image

If both checkboxes are checked on the Import, nothing will be deleted. This way the import can be done again later to update the repositories list and permissions. This is also how you can recover if the replications are not set up correctly.