How to migrate my repositories from my on-prem Artifactory to my Artifactory SaaS?

JFrog Support
2018-03-26 07:53

There are several ways that you may choose from in order to migrate and upload your existing content to your Artifactory SaaS server:


1. If you are already using an on-prem version of Artifactory, you can either set up and use repositories replication between the desired to-be-migrated repositories or perform a content export and import to your new SaaS repository for these repositories.

2. Deploying files using the UI:

a. You may navigate to a repository of your choice and then perform single/multi file deploy by clicking on the Deploy button (Wiki page). Note that the default UI upload file size is 100MB, this is configurable on Artifactory's UI | Admin | Configuration | General Configuration | File Upload Max Size.

b. Similar to #1 If using an existing Artifactory on-prem server you can use the Repositories import functionality under Artifactory's UI | Admin | Import & Export | repositories and select your exported repository(ies) content.

3. Use Artifactory's powerful REST API to perform your deployments, utilize the deploy file, deploy archive, deploy by checksum queries.

4. You may also use the JFrog CLI for uploading your content, note that the CLI tool perform checksum deploy as well, and can be used for multi-threaded uploads.

5. Finally, you can use this file and folder deploy by checksum already prepared scripts that we publish on our GitHub page in order to only deploy files that do not already exist on your Artifactory server, if they do exist a file transaction will not be opened.

*** For comers from Artifactory 3.x:

If you have multi-type package repositories, you can use two scripts created to assist with kind of migration. There are multi-package repositories to single-type scripts, or depending on the way you choose to migrate, there are replication/export & import scripts. You will also need to move the irrelevant packages to a defined repository type from it. Follow this section on our Wiki to do so.

The scripts:

1. Before the replication or repositories export and import to from your on-prem Artifactory to your SaaS instance, run the script which will tell you which repositories are configured to support multiple package types, and what types those are.

2. Should you prefer to replicate or perform the export/import process you can use the – Êscript to get a list of all your repositories, along with their package types and layouts.