There may be issues when you want to migrate artifacts from one instance of JFrog cloud to another instance. The simplest way to do so is with federated repositories. However there may be times that you do not wish to set up federated repositories. The steps below are intended to provide another solution.
First you will need to run a series of api calls to get the repository configuration from the source and then upload it to the target instance:
- The api to get a list of the repositories from the source instance (get repositories api)
- From the list from the first api use the repository names to get their details (get repository details)
- Finally upload the json from the second api to create the repository on the target (create repository)
Once you have done this you can follow our guide on how to migrate the artifacts using push replications here. Please note that you will SKIP the step(Create the Repositories and Settings on the New Artifactory) as this is what the first three api calls should have accomplished and cloud artifactories do not allow you to import.
The steps above can provide an alternative way of migrating artifacts from one jfrog cloud instance to another if federated repositories are not a viable option.