Copy from one Vault to another

Copy from one Vault to another

avatar


Hi
I am trying to copy a folder from one Vault to a different Vault using powershell and Export-RDMSession and Import-RDMSession.

When I import the folder to a repository it disappears from the first one, I suspect it moves it.
Is there a setting to prevent it from moving it?

All Comments (3)

avatar

Hello,

Because the Export-RDMSession cannot modify the GUIDs of the entries, when importing the session, the Import-RDMSession will move the entries in the destination vault. You can use instead the Copy-RDMSession cmdlet for that operation.
$sessions = Get-RDMSession
$newcopy = Copy-RDMSession -PSConnection $sessions
$vault = Get-RDMRepository -Name MyDestinationVault
Set-RDMCurrentRepository $vault
Set-RDMSession $newcopy
Update-RDMUI

Best regards,

Érica Poirier

avatar

That solved the problem, thank you very much

avatar

Hello,

Thank you for your feedback and glad that it's working as expected.

Best regards,

Érica Poirier