<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">If you export without the files, you'll get paths to files in the file object. &nbsp;Through cunning use of symbolic linked directories or global find and replace in the XML file, you can put the files where the XML import will find them. &nbsp;It's a bit hacky, but it works.<div class=""><br class=""></div><div class=""><br class=""><div class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">--</div><div class="">Adam Field</div><div class="">Business Relationship Manager and Community Lead<br class="">EPrints Services</div></div>

</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 2 Jul 2015, at 13:38, Andrew Beeken &lt;<a href="mailto:anbeeken@lincoln.ac.uk" class="">anbeeken@lincoln.ac.uk</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class="">That seems like a bit of a round the houses approach. I’ll dig through the<br class="">source and see what I can find.<br class=""><br class="">On 02/07/2015 13:16, "<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk" class="">eprints-tech-bounces@ecs.soton.ac.uk</a> on behalf of<br class="">George Mamalakis" &lt;<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk" class="">eprints-tech-bounces@ecs.soton.ac.uk</a> on behalf of<br class=""><a href="mailto:mamalos@eng.auth.gr" class="">mamalos@eng.auth.gr</a>&gt; wrote:<br class=""><br class=""><blockquote type="cite" class="">From its documentation (perldoc ./bin/export) there doesn't seem to<br class="">support something like that. On the other hand, the documentation<br class="">mentions the option:<br class=""><br class="">'<br class="">dataset: &nbsp;The name of the dataset to export, such as "archive",<br class="">"subject" or "user".<br class="">'<br class=""><br class="">You could maybe "exploit" this option by moving some eprints from one<br class="">dataset to another and by exporting/importing each dataset separately<br class="">(and then moving the appropriate eprints where they really belong).<br class=""><br class="">Haven't checked the source code, though, so maybe there's another<br class="">solution hidden somewhere there...:)<br class=""><br class=""><br class="">On 02/07/2015 02:56 μμ, Andrew Beeken wrote:<br class=""><blockquote type="cite" class="">I wonder... Is it possible to export by type? I could perhaps export<br class="">each<br class="">type separately...<br class=""><br class="">On 02/07/2015 12:18, "<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk" class="">eprints-tech-bounces@ecs.soton.ac.uk</a> on behalf of<br class="">George Mamalakis" &lt;<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk" class="">eprints-tech-bounces@ecs.soton.ac.uk</a> on behalf of<br class=""><a href="mailto:mamalos@eng.auth.gr" class="">mamalos@eng.auth.gr</a>&gt; wrote:<br class=""><br class=""><blockquote type="cite" class="">Ian and Andrew,<br class=""><br class="">I think that one can import/export specific entries -if I'm not<br class="">mistaken-, but I'm not exactly sure about the syntax. If it allows for<br class="">ranges, the 100.000 entries problem may be addressed by just splitting<br class="">the export/import process to more than one export/import operations. I<br class="">have used this syntax to select specific eprints, but my syntax was<br class="">something like the following:<br class=""><br class="">./bin/export archid archive XML 114 115 116 117 &gt; /tmp/export1<br class=""><br class="">which would seem very peculiar if it would have to be used for<br class="">thousands<br class="">of records (I assume args would overflow!:)). Nonetheless, on the worst<br class="">case where ranges are not allowed, the former syntax could be used<br class="">successfully within a very carefully written script.<br class=""><br class=""><br class="">On 01/07/2015 06:37 μμ, Ian Stuart wrote:<br class=""><blockquote type="cite" class="">On 01/07/15 15:25, Andrew Beeken wrote:<br class=""><blockquote type="cite" class="">Hello all!<br class=""><br class="">I’m currently looking at migrating our repository to a fresh install,<br class="">mainly because we have a bit of customisation to our live repo and I<br class="">want to see how this process would affect the integrity of the data.<br class="">Is there an easy way of importing all records from one repository,<br class="">say to an XML file and then importing to the new one?<br class=""></blockquote>In general (and as George says) the XML-with-files export is the way<br class="">to<br class="">go.<br class=""><br class="">I discovered it falls over with 100,000 records, so I just copied the<br class="">database &amp; attached a new eprints to it :D<br class=""><br class=""></blockquote><br class="">--<br class="">George Mamalakis<br class=""><br class="">IT and Security Officer,<br class="">Electrical and Computer Engineer (Aristotle Univ. of Thessaloniki),<br class="">PhD (Aristotle Univ. of Thessaloniki),<br class="">MSc (Imperial College of London)<br class=""><br class="">School of Electrical and Computer Engineering<br class="">Aristotle University of Thessaloniki<br class=""><br class="">phone number : +30 (2310) 994379<br class=""><br class=""><br class=""><br class="">*** Options: <br class=""><a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" class="">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br class="">*** Archive: http://www.eprints.org/tech.php/<br class="">*** EPrints community wiki: http://wiki.eprints.org/<br class="">*** EPrints developers Forum: http://forum.eprints.org/<br class=""></blockquote><br class="">The University of Lincoln, located in the heart of the city of Lincoln,<br class="">has established an international reputation based on high student<br class="">satisfaction, excellent graduate employment and world-class research.<br class=""><br class="">The information in this e-mail and any attachments may be confidential.<br class="">If you have received this email in error please notify the sender<br class="">immediately and remove it from your system. Do not disclose the contents<br class="">to another person or take copies.<br class=""><br class="">Email is not secure and may contain viruses. The University of Lincoln<br class="">makes every effort to ensure email is sent without viruses, but cannot<br class="">guarantee this and recommends recipients take appropriate precautions.<br class=""><br class="">The University may monitor email traffic data and content in accordance<br class="">with its policies and English law. Further information can be found at:<br class=""><a href="http://www.lincoln.ac.uk/legal" class="">http://www.lincoln.ac.uk/legal</a>.<br class=""><br class="">*** Options: <br class=""><a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" class="">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br class="">*** Archive: http://www.eprints.org/tech.php/<br class="">*** EPrints community wiki: http://wiki.eprints.org/<br class="">*** EPrints developers Forum: http://forum.eprints.org/<br class=""></blockquote><br class=""><br class="">-- <br class="">George Mamalakis<br class=""><br class="">IT and Security Officer,<br class="">Electrical and Computer Engineer (Aristotle Univ. of Thessaloniki),<br class="">PhD (Aristotle Univ. of Thessaloniki),<br class="">MSc (Imperial College of London)<br class=""><br class="">School of Electrical and Computer Engineering<br class="">Aristotle University of Thessaloniki<br class=""><br class="">phone number : +30 (2310) 994379<br class=""><br class=""><br class=""><br class="">*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" class="">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br class="">*** Archive: <a href="http://www.eprints.org/tech.php/" class="">http://www.eprints.org/tech.php/</a><br class="">*** EPrints community wiki: <a href="http://wiki.eprints.org/" class="">http://wiki.eprints.org/</a><br class="">*** EPrints developers Forum: <a href="http://forum.eprints.org/" class="">http://forum.eprints.org/</a><br class=""></blockquote><br class=""><br class="">*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" class="">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br class="">*** Archive: <a href="http://www.eprints.org/tech.php/" class="">http://www.eprints.org/tech.php/</a><br class="">*** EPrints community wiki: <a href="http://wiki.eprints.org/" class="">http://wiki.eprints.org/</a><br class="">*** EPrints developers Forum: <a href="http://forum.eprints.org/" class="">http://forum.eprints.org/</a><br class=""></div></blockquote></div><br class=""></div></div></body></html>