Step 1: Set up the source instance for pushing files to the target instance

ARTIFACTORY: Transfer Artifactory Files between Artifactory instances from On-Prem to On-Prem using Hermes

AuthorFullName__c
Gal Einhorn
articleNumber
000005813
FirstPublishedDate
2023-07-12T15:47:10Z
lastModifiedDate
2025-05-14
VersionNumber
5

To set up the source instance, you must install the data-transfer user plugin in the primary node of the source instance or on a linux machine with connectivity to both source and destination machines. 
This section guides you through the installation steps:

1. Install JFrog CLI as described here.

2. Configure the connection details of the source Artifactory instance with your admin credentials by running the following command from the terminal.    

jf c add source-server
3. Ensure that the JFROG_HOME environment variable is set and holds the value of JFrog installation directory. It usually points to the /opt/jfrog directory. In case the variable isn't set, set its value to point to the correct directory as described in the JFrog Product Directory Structure article.

Install the data-transfer plugin 

1. Download the following two files from a machine that has direct internet access: Download data-transfer.jar from https://releases.jfrog.io/artifactory/jfrog-releases/data-transfer/[RELEASE]/lib/data-transfer.jar.

Download dataTransfer.groovy from https://releases.jfrog.io/artifactory/jfrog-releases/data-transfer/[RELEASE]/dataTransfer.groovy.

2. Create a new directory on the primary node machine of the source instance and place the two files you downloaded inside this directory.     

 jf rt transfer-plugin-install source-server --dir "<plugin files dir>"