Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

API support for copying / mirroring packages



  • Hi,

    Does the API support this? Nuget has a mirror command that I can use to mirror a package from one feed to another. I'd like to achieve this via the API if possible.

    Thanks,
    Joel

    Product: ProGet
    Version: 3.8.0



  • Haven't tried the mirror command myself, but it should work as long as it's the same as a series of downloads from the source and pushes to the target.



  • Thanks. Yes, I'd imagine that would work - replicating the GETs and PUTs that are happening under the covers. However, it'd be nice if this functionality could be accomplished without having to pull down the package manually and then push it back up. If you're copying from feed to feed on the same ProGet server, can this somehow be done locally on the server itself?



  • Easiest method would be to use the Bulk Import path for the target feed, and then use a simple PowerShell script to copy all the packages in the source feed's storage path to the import path.



  • Thanks, Tod, but I want to keep all the actions on the client side.

    I found that I can just do a GET and a PUT, and once I constructed the multi-part form data correctly and added a boundary to the content, it worked.


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation