How to move artifacts in artifactory?

artifactory

Solution

The easiest way is using the REST API. Here's an example:

curl -v -X -d "" POST -uusername "http://host:port/artifactory/api/move/repository/com/module-1/x1?to=/repository/com/module2/x1"

Problem

Can someone help me find a way to copy an artifact from one artifactory location to another location, inside the same repository. I understand there are ways to move artifactory between repositories, but my requirement is to move `x1` to `module-2` as in below folder structure. ``` + +- repository +- com +- module-1 | +- x1 +- module-2 +- x2 ``` Thank you very much in advance.

Original source