Synchronize Multiple Packages
search cancel

Synchronize Multiple Packages

book

Article ID: 115347

calendar_today

Updated On:

Products

CA Harvest Software Change Manager - OpenMake Meister CA Harvest Software Change Manager CA Harvest Software Change Manager - OpenMake Meister

Issue/Introduction

I am trying to "Synchronize" multiple packages to the server. Usually, I select 1 package at a time. Is there a way to synchronize multiple packages? I tried a selecting multiple packages but I will only highlight one package at a time. There are packages in "Migration" state that I would like to sync.

Environment

Harvest Software Change Manager v12.x and higher

Resolution

The way to synchronize multiple packages is not by selecting them all and selecting Check Out.  In my test I don't even get the Check Out process when I do that.

Instead, the command to use to do this is the "hsync" command.  Here's where you can read more about this:  hsync Command-Synchronize Directory from View Path

What you'll do is set up a stand-alone UDP, similar to this:

The command you would put in the "Program" field to synchronize multiple directories to a folder on your local machine is:

hsync -b [broker] -en [project] -st [state] -vp "\SampleRepository" -cp "C:\Temp" -usr [user] -pw [password] -sy -av


If you want to synchronize to another computer where the Harvest Agent is running is:

hsync -b [broker] -en [project] -st [state] -vp "\SampleRepository" -cp "C:\Temp" -usr [user] -pw [password] -sy -av -rm <remote hostname> -rport <remote host port> -rusr <remote login user> -rpw <remote login password>


Then you can select multiple packages and run the "Synchronize" process to do the check out:

Additional Information

You should also read this section of the online documentation to get more details about using hsync, and a "wrapper" utility called hrefresh that lets you keep the synchronization details for multiple projects all in one configuration file.  Here's where you can read more about that: Synchronize Reference Directories