ARTIFACTORY: How to copy a large repository or folder from one location to the other

ARTIFACTORY: How to copy a large repository or folder from one location to the other

AuthorFullName__c
Derek Pang
articleNumber
000005727
FirstPublishedDate
2023-05-18T12:27:28Z
lastModifiedDate
2025-05-21
VersionNumber
1

You may have the use case of needing to copy a particularly large repository or folder from one location to another. At first, you may have just tried a copy command from the Artifactory UI or rest API but with large folders/repositories with many items, this may cause issues either due to the copying taking too long or you may run into a resource bottleneck. 

If your concern is just with how long the copy command is taking you can use the JFrog CLI which is multithreaded and performs many copy calls by calling a copy command on each item. You can read more about the JFrog CLI and copying large repositories in this other Knowledge Base article.

But if your concern is with the resource bottleneck go ahead and take a look at the rest of this article for an example to workaround this. This example will demonstrate how you can instead perform a copy on smaller batches of items at a period of time. The following will guide you through a possible way to do this with the rest API and some scripts.