Export from JFrog Artifactory
How to export packages from JFrog Artifactory
Migrating from JFrog Artifactory requires you to migrate hosted repositories only, since any proxy repositories configured in Artifactory can just be set up with the same configuration in Cloudsmith Repository Manager, and all data will be retrieved from the upstream repositories again. All the upstream repositories supported by Cloudsmith are listed here.
Hosted repositories will have to be migrated from Artifactory to Cloudsmith.
To migrate from JFrog Artifactory cloud or a JFrog Artifactory cluster you will be required to have access to Artifactory.
Exporting via the Cloudsmith Migration Toolkit
The Toolkit provides repository structure mappings, upstream/remote source configurations, and ETL-style data migration. It will securely create your Cloudsmith repos, let you decide which Artifactory repos you want to migrate, transfer artifacts, and preserve metadata and versioning.
Prerequisites
Make sure you have the following installed:
Install node.js and npm by downloading the latest version based on your current operating system.
node -v
npm -v
Create an account on npmjs.com and login to npm from terminal/shell.
npm login
Install cloudsmith-migration-tool
Clone the repository and navigate to the project directory:
git clone https://github.com/cloudsmith-io/cloudsmith-migration-tool.git
cd cloudsmith-migration-tool
All information about installing and using the Migration Toolkit can be found here.
The source code for the mapping-tool is available in GitHub and we invite anyone to make improvements, submit pull requests.
Contact us to get started migrating your artifacts.
Exporting via Artifactorys UI
You can use the import/export feature of Artifactory and migrate one hosted repository after another. Please consult the Artifactory documentation for step-by-step instructions on how to export a repository.
Exporting via the CLI
Exporting via Jfrogs CLI can provide more control over how and what you export. Below are some instructions on how to conduct your export.
Install jfrog-cli
All the information about installing jfrog-cli can be found here.
It can be installed on Linux, Mac, or Windows.
Configure jfrog-cli
Log into jfrog-cli with your Artifactory credentials
jfrog config add
Server ID: server_name
JFrog platform URL: https://server_name.jfrog.io/
JFrog access token (Leave blank for username and password/API key):
JFrog username: artifactory_user
JFrog password or API key:
Is the Artifactory reverse proxy configured to accept a client certificate? (y/n)
Download your packages from Artifactory
The jfrog rt dl
command can be used to download all packages from Artifactory.
To get all artifacts from all repos in Artifactory do the following:
jfrog rt dl "*/*"
The following examples use the --flat
option to dump all the packages into the same folder.
NOTE
Be careful that the use of the --flat option doesn't cause issues due to packages with the same name in different repositories.
To get all packages from a particular repository called REPO
jfrog rt dl REPO --flat
The command below shows you how to just get a particular package type from all repositories, using .tgz as an example
jfrog rt dl "*/*.tgz" --flat
Updated 8 months ago