- On a machine with access to both the source and target Artifactory (this can be the source instance itself). Download and Install the latest JFrog CLI using one of the JFrog CLI installers:
For example:
curl -fL https://install-cli.jfrog.io | sh
- Configure the connection details of the source Artifactory instance with your admin credentials. Run the following command and follow the instructions.
When asked about an Authentication method please use the Access Token Method.
jf c add source-server
Please make sure to create and use an Access Token for the authentication method for both the source and target Artifactories.
You can validate the configuration addition to the file with the following command:
jf config show
jf rt ping --server-id source-server
- Configure the connection details of the Target Artifactory instance. (Use an access token for authentication as well)
jf c add target-server
- Ensure that the JFROG_HOME environment variable is set and holds the value of the JFrog Artifactory installation directory. It usually points to the /opt/jfrog directory.
Add the following line to your shell configuration file, e.g., $HOME/.bashrc or more globally in /etc/environment.
export JFROG_HOME=/opt/jfrog