[Archivesspace_Users_Group] Transfer/export to another repository on another server ?

Steven Majewski sdm7g at virginia.edu
Sat Sep 20 16:11:23 EDT 2014


I guess I didn’t try the MOST obvious method — 
posting to: 

./curl_as_osx admin [pwd] -d @3964  http://localhost:8089/repositories/2/resources 

appears to do what I wanted. 


( I will test this further on the whole set of resource I need to move. ) 

— Steve Majewski / UVA Alderman Library



On Sep 12, 2014, at 4:24 PM, Steven Majewski <sdm7g at virginia.edu> wrote:

> 
> I know I can transfer a resource from one repository to another on the same server. 
> I there a way to easily move a resource from one ArchivesSpace server instance to another ? 
> 
> I know I can export to EAD and reload that again, but we’ve been having enough problems with
> EAD import and export that I’ld rather not do it this way. 
> 
> I tried what I thought was the obvious API method: 
> 
> 
> ./curl_as_osx admin [pwd] -O http://archives-test.lib.virginia.edu:8089/repositories/9/resources/3964 
> 
> ./curl_as_osx admin [pwd] -d @3964  http://localhost:8089/repositories/2/batch_imports
> 
> But I get this error: 
> 
> [
> {"status":[{"id":1,"label":"Reading JSON records","type":"started"},{"id":1,"label":"Reading JSON records","type":"done"},{"id":2,"label":"Validating records and checking links","type":"started"}]},
> {"saved":[],"errors":["Server error: Can not deserialize instance of java.util.LinkedHashMap out of VALUE_STRING token\n at [Source: java.io.FileReader at 51d866d9; line: 1, column: 1]"]}
> 
> ]
> 
> 
> Is that something that should theoretically work ? Or am I trying to feed it the wrong JSON schema ? 
> 
> I only want to move selected records, so a database dump is not a simple way to do it either. 
> 
> Are there any other migration tools to help with this problem ? 
> 
> 
> 
> 
> — Steve Majewski / UVA Alderman Library
> 
> 
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20140920/f6d10657/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4943 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20140920/f6d10657/attachment.bin>


More information about the Archivesspace_Users_Group mailing list