jfrog / jfrog-client-go

All go clients for JFrog products
Apache License 2.0
265 stars 141 forks source link

Export/Import repository (single) as in admin gui #621

Open verthais opened 2 years ago

verthais commented 2 years ago

Is your feature request related to a problem? Please describe. My company requires the propagation only of certain types of repositories and after attempt to automate tomate the process I've discovered that export works only on system wide level ( and there is no import feature ) and that Artifactory itself does not provide the API for this kind of automation yet.

Describe the solution you'd like to see

  1. Introduce more agile api and extend /jfrog-client-go/artifactory/services/export.go service.

    1. export single repository to given local dir
  2. Introduce /jfrog-client-go/artifactory/services/import.go service.

    1. export single repository to given local dir

Describe alternatives you've considered . Clicking manually via Admin GUI via each repository. . Export everything ( which takes to much time ) and then remove not needed repositories and only manually import ( since service is not introduced yet )

verthais commented 2 years ago

Is there another way to do it?

eyalbe4 commented 2 years ago

@verthais - I think that way to do this is to use Artifactory's Repository Replication feature.