<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
I was pondering if there was a way to take just the relevant 'document' section from one of the revision files, and importing that - and then adding the file into the correct directory..?<br>
I think you would have to set some options on the import - to retain the docid - but I think that's a standard option of the bin/import script.<br>
<br>
I've never tried this at the document level before - but it might be an option!<br>
<br>
Cheers,<br>
John
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> eprints-tech-bounces@ecs.soton.ac.uk &lt;eprints-tech-bounces@ecs.soton.ac.uk&gt; on behalf of Newman D.R. via Eprints-tech &lt;eprints-tech@ecs.soton.ac.uk&gt;<br>
<b>Sent:</b> 24 May 2019 07:07:54<br>
<b>To:</b> eprints-tech@ecs.soton.ac.uk; Karl Goetz<br>
<b>Subject:</b> Re: [EP-tech] Reinstating deleted file</font>
<div>&nbsp;</div>
</div>
<div style="background-color:#FFFFFF">
<p>Hi Karl,</p>
<p>The only way I have found to do this is remove all uploaded documents and then re-add in the order they were originally added.&nbsp; In your case:</p>
<p>my_file_20190404.pdf (that is now actually a copy of my_file_20190510.pdf)</p>
<p>then <br>
</p>
<p>my_file_20190510.pdf</p>
<p>However, as you can see that the numbers are not just 1 and 2 but 1 and 7 originally. This means the indexer has run and generate thumbnails and other auxiliary files in between.&nbsp; So to make sure that the numbers are the same you would need to hit &quot;Save
 and return&quot; after the first upload, make sure the indexer has run to reindex that item and generate thumbnails and then upload the second item.&nbsp; If you cannot see if the EPrint has been re-index from the event queue, I would wait at least 20 minutes or so
 before uploading the second file. (Edit lock can last for a while after saving and if the item is in the event queue with an edit lock it will get postponed 10 minutes).&nbsp; I would also advise having a test run with a completely separate EPrint with some test
 files, so you can see&nbsp; that your repository will behave the same as I describe.</p>
<p>If this does not work, unfortunately I think the only way to fix this is hacking around moving files and modifying the database.&nbsp; This is far from ideal and I have to admit this it is something that has caused me problems in the past.&nbsp; Maybe others have
 found a workaround that I am not aware of, so it maybe worth waiting if my first approach does not work before resorting to the really hacky solution.<br>
</p>
<p>Regards</p>
<p>David Newman<br>
</p>
<p><br>
</p>
<div class="x_moz-cite-prefix">On 24/05/2019 00:40, Karl Goetz via Eprints-tech wrote:<br>
</div>
<blockquote type="cite">Hi,
<div class="">I havenít managed to find a solution to this so Iím hoping someone has some experience in this area.<br class="">
<div class=""><br class="">
</div>
<div class="">
<div class="" style="font-family:HelveticaNeue">
<div class="">I have a situation something like this:</div>
<ul class="x_Apple-dash-list">
<li class="">Staff member creates empty eprint&nbsp;<span class="" style="font-family:Calibri,sans-serif; font-size:14.666666984558105px">29788</span></li><li class="">Staff member uploads the first version, my_file_20190404.pdf, as supplied by academic. URL is /29788/1/my_file_20190404.pdf</li><li class="">Staff member uploads revised version, my_file_20190510.pdf, as supplied by academic. URL is /29788/7/my_file_20190510.pdf</li><li class="">Staff member removes first version,&nbsp;my_file_20190404</li><li class="">Academic asks for the first version to be re-instated as it had been hot linked to</li><li class="">Staff member uploads a copy of&nbsp;my_file_20190510.pdf as&nbsp;my_file_20190404.pdf. URL is /29788/13/my_file_20190404.pdf</li></ul>
<div class=""><br class="">
</div>
<div class="">This matches the expectations set out in the documentation where each upload was recorded separately as a file but I canít find anything covering Ďundeletes'</div>
</div>
<span class="" style="font-family:HelveticaNeue"><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FEPrints_Directory_Structure%2Feprints3%2Farchives%2FARCHIVEID%2Fdocuments%2Fdisk0%2F00%2F00%2F00%2F01%2F01&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C34348d8eae6d43d599c008d6e010ca90%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=wIpu%2FisjURb9iqBHU5ucFJYZhNsDcsk3beRkfB9vh5w%3D&amp;reserved=0" originalSrc="https://wiki.eprints.org/w/EPrints_Directory_Structure/eprints3/archives/ARCHIVEID/documents/disk0/00/00/00/01/01" shash="OOERSKtARrvN+f0BY2TstD1UvutfBtIgZkvYxOZnVLT/xC0x4yY6hNA/eCxBgvt5pfniVXyoywIzOCVHJ2rxAePuQdUtH/ywhkQsheaB1xp/fls6CL5acc2bRf79ZqadrciPlY24Ui8S7k+sk5K13+RJKWiKryXLhjNaMsKw3eA=" originalsrc="https://wiki.eprints.org/w/EPrints_Directory_Structure/eprints3/archives/ARCHIVEID/documents/disk0/00/00/00/01/01" shash="vMYKbwEGECcVPjGeJT1TceBC6VdzfavkaH2zQL9PuPJVSjIXKv0La5OGGjw14g0Mz9KtVflsiD76RNxLwYTSQp9to30MpE8aVDDYL1UKYyHRkcw8wIu0oIwreIJP60RZY&#43;mwt8BelaGJF/rXxLNy02O2s7ypiqJtd&#43;GEtLiVytI=" originalsrc="https://wiki.eprints.org/w/EPrints_Directory_Structure/eprints3/archives/ARCHIVEID/documents/disk0/00/00/00/01/01" shash="EHb42dvGr51ItISYOIo6XQ2isxN9cUEVxzwZpgM2aCE&#43;2it6A65wf5e73w1IRscS9Y50NRixiXJVfYJ/G9Nz7ZSglMLaQEcT3NTPuI9c6be89Y2wGgbkHO&#43;1leTkZasdTY&#43;PyuS81N8JmHaN8Jo6ZDFdWYkikRsmwWe5oNMfa7g=" class="">https://wiki.eprints.org/w/EPrints_Directory_Structure/eprints3/archives/ARCHIVEID/documents/disk0/00/00/00/01/01</a></span>
<div class="" style="font-family:HelveticaNeue"><br class="">
</div>
<div class="" style="font-family:HelveticaNeue">Can I re create file 01 and add it back to eprints, using means fair or foul?</div>
<div class="" style="font-family:HelveticaNeue">Weíre using IRStats2 for tracking access so a solution would need to work with that - otherwise I'll simply tell the staff member in question we canít fix the deletion.</div>
<div class="" style="font-family:HelveticaNeue"><br class="">
</div>
<div class="" style="font-family:HelveticaNeue">Thanks,</div>
</div>
<div class=""><br class="">
<div class="">
<div dir="auto" class="" style="color:rgb(0,0,0); letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; word-wrap:break-word; line-break:after-white-space">
<div dir="auto" class="" style="color:rgb(0,0,0); letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; word-wrap:break-word; line-break:after-white-space">
<div dir="auto" class="" style="word-wrap:break-word; line-break:after-white-space">
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
--&nbsp;</div>
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
Karl Goetz</div>
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
Mon, Tue, Wed,&nbsp;Technical Services Officer - eResearch</div>
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
Wed, Thu, Fri Senior Library Officer (Library Systems)</div>
<div class="" style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
University of Tasmania,&nbsp;Private Bag&nbsp;25,&nbsp;Hobart 7001</div>
</div>
</div>
</div>
</div>
<br class="">
</div>
</div>
<p style="font-size:10pt; line-height:10pt; font-family:Calibri,sans-serif"><br>
<br>
University of Tasmania Electronic Communications Policy (December, 2014). <br>
This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained
 in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.
</p>
<br>
<fieldset class="x_mimeAttachmentHeader"></fieldset>
<pre class="x_moz-quote-pre">*** Options: <a class="x_moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="x_moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C34348d8eae6d43d599c008d6e010ca90%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=MghMICZMGRS61k7JXY%2B4GmRrZb4aJyYZb3XWEfFHLgs%3D&amp;reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="IhZT2B/CEiu2t39cheWA81uJaMzFP9uwA/fIpjUTfHVzfNYjXsvuk+pgIj1C2KnCxAFcHsVE3dSHfm3jAybBZjpVHESMt32Q421cPpFqA3l3aDn0BVTk/UIieJHgfZIO/giy2SPwicCEKixszlr9a+9nWPzz8MRe+I+jOwYc3Io=" originalsrc="http://www.eprints.org/tech.php/" shash="jLk16rksPYAKLKQ8LneVehz&#43;xVaxjfzBYSn&#43;KnUg9Ls9/ZX/qh6CPEoaPtAau&#43;bC9NvhWiPiQW5sVFgluMktmwRNu8skO&#43;5YQ&#43;V9WJwrzcKRgZmYtAqghYPKJS3s/vHKXssMOtqlxIyGnVgJuctPcIgaRjPHxHfanGNQXOpGVLs=">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="x_moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C34348d8eae6d43d599c008d6e010ca90%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Mkvsa4zttDjCsfUt9VgSZsvbnJXURAacaQGSnFUhGzk%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/" shash="oMGytLVN9JwbK6gY/VSbLUPzk+YLa3biMk+62nwsTQENqwuEx2xF8ysCACrPLEY1Kv3Zh5BxxQjslIkiLVGoOGAxJZiggtEHwqi+GCwV92JsdvW3oWuWxUy4HzIJaXuBv5lSElr/RK4L2+z8tdTnphiK7qD1fafspRu9H4w2JFs=" originalsrc="http://wiki.eprints.org/" shash="HkGED45QNyfYANFHHLjC9qkIRbt24OkR9kOzmwTQaDksiet5uLL6J25aQaPCGgA7yFpMY&#43;0On2TS8TPdkXFfjpymGHLgQ4d7Sqv59TwHwd97plJn8llJ0RNFOtT6x1HKrwZdO4D7IkuKZlqgKjEfMIoO3yuDqxxctsnULK0pT4o=">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a class="x_moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C34348d8eae6d43d599c008d6e010ca90%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=JTcxpOCmcZR54YuuZiTIq2rFypYh1FDX53Y19tWUTAQ%3D&amp;reserved=0" originalSrc="http://forum.eprints.org/" shash="UfYPcQYNK/Rin3VOLcZgbvexvyLLGgnYdg545ntUssqb/j8AlCkHqeLuxJ29/Ba0pNCRIw4MFPWIrXwGHLQxPuDl/KNEd/O4h0Tk+PwiuJ1ceIrYcOilbckJMjrOjzq9lTMGDxIh2KGHHj0Td7x8jueNGxHOv9yr4u1m1qBTfBY=" originalsrc="http://forum.eprints.org/" shash="LNbM3TooQd7s/N1gbMMeZxkHBidtQnGxabF6vGUsAwdLiUsPTxRpB7I5GWYZPT&#43;ecs5xZa7/ltYuA/dnRyYj2xu1JeQdHPdByLczj6fTwKB4O6oJK340b9b4vYBoIsg&#43;M2S7yudV/XasMWoyKDcK8EzA20EgQCuZ4J6ywatmlHw=">http://forum.eprints.org/</a>
</pre>
</blockquote>
<div id="x_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #D3D4DE">
<tbody>
<tr>
<td style="width:55px; padding-top:13px"><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C34348d8eae6d43d599c008d6e010ca90%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=%2Bc%2FLrDbagn8Og9hDUGnOnCnpxZJhOkC0gope4qqER6U%3D&amp;reserved=0" originalSrc="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" shash="a1PNgfvCQ0T4UwRavyAdi05z29WGwfG9v2yAuvkr0/SodwMxHK7SiMOwVPnqYGLe11rdbP+x8JdRPnIMauvroAmCro5hgthoF2GoFdQARobkFV0GtyI/DfKYO8yG3qYO04mQVL/nQhoOajqBfhqEnDfcjsNRnThJEVAibR3cUM4=" originalsrc="http://www.avg.com/email-signature?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=emailclient" shash="K&#43;JMPSkVCY9x2qo0EaAfkbr5hSG3MLLUjsHCWwkly1fdjuM7cs&#43;&#43;BTT5hVXalWdGAaooA0sZfeP1XTsYfOWbY2qWY17EyArhI2hoMLYIlrfMDcKdoN1UtquPf8LrpiCAV45IL78NDgh5GFdsKJTqGqaFSrE41Fa0VjhymVKXTVQ=" target="_blank"><img alt="" width="46" height="29" style="width:46px; height:29px" src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png"></a></td>
<td style="width:470px; padding-top:12px; color:#41424e; font-size:13px; font-family:Arial,Helvetica,sans-serif; line-height:18px">
Virus-free. <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C34348d8eae6d43d599c008d6e010ca90%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=%2Bc%2FLrDbagn8Og9hDUGnOnCnpxZJhOkC0gope4qqER6U%3D&amp;reserved=0" originalSrc="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" shash="a1PNgfvCQ0T4UwRavyAdi05z29WGwfG9v2yAuvkr0/SodwMxHK7SiMOwVPnqYGLe11rdbP+x8JdRPnIMauvroAmCro5hgthoF2GoFdQARobkFV0GtyI/DfKYO8yG3qYO04mQVL/nQhoOajqBfhqEnDfcjsNRnThJEVAibR3cUM4=" originalsrc="http://www.avg.com/email-signature?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=emailclient" shash="K&#43;JMPSkVCY9x2qo0EaAfkbr5hSG3MLLUjsHCWwkly1fdjuM7cs&#43;&#43;BTT5hVXalWdGAaooA0sZfeP1XTsYfOWbY2qWY17EyArhI2hoMLYIlrfMDcKdoN1UtquPf8LrpiCAV45IL78NDgh5GFdsKJTqGqaFSrE41Fa0VjhymVKXTVQ=" target="_blank" style="color:#4453ea">
www.avg.com</a> </td>
</tr>
</tbody>
</table>
<a href="#x_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>
</div>
</body>
</html>