EPrints Technical Mailing List Archive

Message: #06394


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Dissecting the Documents folder


it’s the eprint id, padded with zeros and then broken up into pairs of digits to make directory names.  That way there’s only ever 100 directories in each directory.

 

--

Adam

 

 

From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Andrew Beeken <anbeeken@lincoln.ac.uk>
Reply-To: <eprints-tech@ecs.soton.ac.uk>
Date: Wednesday, 29 March 2017 13:37
To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
Subject: Re: [EP-tech] Dissecting the Documents folder

 

You know me all too well ;)

 

So that should work? I was only wondering because I know that under the Documents folder the structure seems rather ambiguous to me, 00 with 00, 01 and 02 and further numbers underneath that. Is there a method to that?

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Adam Field
Sent: 29 March 2017 11:56
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Dissecting the Documents folder

 

Hi Andrew

 

                If it were anyone but you, I’d recommend doing a mysqldump and keeping all paths the same as the simplest way to migrate a repository.  However, I’m sure you’ll counter that with “…but my repository is non-standard and I’m trying to make it standard”

 

                When I’ve had to monkey around with paths in XML files, I’ve usually done it with vim and find/replace commands.  Move the documents directory to the new server into a temporary directory, then compare the path in the XML file to the path on disk.  This will help you understand what string replacement you need to do.  The command will be something like:

 

:%s/\/usr\/share\/eprint3\/archives\/foo\/documents/\/home\/anbeeken\/migration\/documents/g

 

                ...it may take some time to run.

 

--

Adam

 

 

 

From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Andrew Beeken <anbeeken@lincoln.ac.uk>
Reply-To: <eprints-tech@ecs.soton.ac.uk>
Date: Wednesday, 29 March 2017 11:38
To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] Dissecting the Documents folder

 

Hi all,

 

I’m looking into the best options for migrating EPrints to a new server and investigating the possibility of pulling our 43.6Gb worth of documents across so as not to embed them in XML and create large files. I know that I can bring the Documents folder over, however I’m not sure how to interpret the folder structure to rewrite the URL’s in the XML export. Any thoughts?

 

Andrew


The University of Lincoln, located in the heart of the city of Lincoln, has established an international reputation based on high student satisfaction, excellent graduate employment and world-class research.


The information in this e-mail and any attachments may be confidential. If you have received this email in error please notify the sender immediately and remove it from your system. Do not disclose the contents to another person or take copies.

Email is not secure and may contain viruses. The University of Lincoln makes every effort to ensure email is sent without viruses, but cannot guarantee this and recommends recipients take appropriate precautions.

The University may monitor email traffic data and content in accordance with its policies and English law. Further information can be found at: http://www.lincoln.ac.uk/legal.

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/ *** EPrints developers Forum: http://forum.eprints.org/

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/ *** EPrints developers Forum: http://forum.eprints.org/