Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    apiproget
    5 Posts 1 Posters 7 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          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?

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              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.

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post
              Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation