Confirm that no backups will start while this activity is performed, the Quest vRanger services in services.msc can be stopped during this activity to prevent backup jobs from running.
Using PowerShell ISE to run the Robocopy script is recommended as it is simple to edit and execute with it.
It would be best to map the repository's shared folder to the vRanger server with a drive letter to make it simple.
The basic script to make sure the source repository matches the target one would be as follows:
$localdirectory = "E:\REPO1\"
$targetdirectoy = "F:\REPO2\"
robocopy $localdirectory $targetdirectoy /mir
This will work, however, it is recommended trying to replicate the full backups first. To mirror the full backups, this format can be used:
$localdirectory = "E:\REPO1\"
$targetdirectoy = "F:\REPO2\"
robocopy $localdirectory $targetdirectoy *_F*.* /mir
Then, in a different script, to ensure any incremental backup will get copied as well, run it without the *_F*.*.
robocopy $localdirectory $targetdirectoy /mir
Additional parameters can be added to the script, for example:
/sec (to copy files with security).
/b (to copy files if problems with access are appearing).