<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><br></div><div>I guess I didn’t try the MOST obvious method — </div><div>posting to: </div><div><br></div><div>./curl_as_osx admin [pwd] -d @3964  <a href="http://localhost:8089/repositories/2/resources">http://localhost:8089/repositories/2/resources</a> </div><div><br></div><div>appears to do what I wanted. </div><div><br></div><div><br></div><div>( I will test this further on the whole set of resource I need to move. ) </div><div><br></div><div>— Steve Majewski / UVA Alderman Library</div><div><br></div><div><br></div><br><div><div>On Sep 12, 2014, at 4:24 PM, Steven Majewski <<a href="mailto:sdm7g@virginia.edu">sdm7g@virginia.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><br></div><div>I know I can transfer a resource from one repository to another on the same server. </div><div>I there a way to easily move a resource from one ArchivesSpace server instance to another ? </div><div><br></div><div>I know I can export to EAD and reload that again, but we’ve been having enough problems with</div><div>EAD import and export that I’ld rather not do it this way. </div><div><br></div><div>I tried what I thought was the obvious API method: </div><div><br></div><div><br></div><div><font face="Courier">./curl_as_osx admin [pwd] -O <a href="http://archives-test.lib.virginia.edu:8089/repositories/9/resources/3964">http://archives-test.lib.virginia.edu:8089/repositories/9/resources/3964</a> </font></div><div><font face="Courier"><br></font></div><div><font face="Courier">./curl_as_osx admin [pwd] -d @3964  <a href="http://localhost:8089/repositories/2/batch_imports">http://localhost:8089/repositories/2/batch_imports</a></font></div><div><font face="Courier"><br></font></div><div>But I get this error: </div><div><br></div><div><font face="Courier">[<br>{"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"}]},<br>{"saved":[],"errors":["Server error: Can not deserialize instance of java.util.LinkedHashMap out of VALUE_STRING token\n at [Source: java.io.FileReader@51d866d9; line: 1, column: 1]"]}<br><br>]</font></div><div><br></div><div><div><br></div><div>Is that something that should theoretically work ? Or am I trying to feed it the wrong JSON schema ? </div><div><br></div><div>I only want to move selected records, so a database dump is not a simple way to do it either. </div></div><div><br></div><div>Are there any other migration tools to help with this problem ? </div><div><br></div><div><br></div><div><br></div><div><br></div><div>— Steve Majewski / UVA Alderman Library</div><div><br></div><div><br></div></div>_______________________________________________<br>Archivesspace_Users_Group mailing list<br><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<br></blockquote></div><br></body></html>