EPrints Technical Mailing List Archive
Message: #06209
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Correct EPrints Export/Import syntax and issues
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] Correct EPrints Export/Import syntax and issues
- From: Adam Field <Adam.Field@jisc.ac.uk>
- Date: Tue, 31 Jan 2017 12:11:41 +0000
~ is always the user’s home, as far as I know. What’s not always true is that the eprints root directory is the home of the eprints user. It depends how it was installed. I think <eprints_root>/bin/export is better. From:
<eprints-tech-bounces@ecs.soton.ac.uk> on behalf of John Salter <J.Salter@leeds.ac.uk> So, for my own notes, how 'usual' is having '~' mapped to the user's home? If we're answering questions or writing documentation about a command to run, should we be specifying e.g. eprints@server> [EPRINTS_HOME]/bin/export Cheers, John From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Andrew Beeken And there we have it – export runs properly when you do it from the root with bin/export. Thanks folks! From: Andrew Beeken That’s… likely to be the issue. Teach me for being a Microsoft noob… From:
eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Adam Field If you’re *in* the bin folder, you’ll need: ./<command> type ‘which <command>’ and it’ll tell you what’s actually running. Unlike MS-Dos, the current directory is never assumed to be in the execution path. From:
<eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Andrew Beeken <anbeeken@lincoln.ac.uk> Thanks John, Yes, I’m running these while sat in the /bin folder – probably should have been more specific ;P I’ll give that more specific export a try and see what happens. From:
eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of John Salter Hi Andrew, Should you be calling '~/bin/export' and '~/bin/import'? 'export' is a different unix command entirely (as is 'import')! If you're calling the right thing, I'd suggest trying to export a single item using: > bin/export ARCHIVEID eprint XML 1 This *should* export eprint #1 - if this doesn't exist, try another one! Cheers, John From:
eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Andrew Beeken Right, I’ve been trying to get my head around the back end import/export routine for EPrints. Exporting from our current live box generates an xml file for me, however the xml file is empty. I’ve left this running to see if it would populate in the background but this never seems to happen. The command
I’m running is: export <MYARCHIVE> archive XML > filename.xml As this hasn’t been working I decided to take an image from the front end by doing a search and extracting the results as EPrints XML. I don’t know if that is affecting the next step! On Import to a local Virtual Machine with EPrints set up I’ve tried a couple of things. The syntax I’m using is: import <MYARCHIVE> --verbose --enable-import-fields --update --force archive XML filename.xml Running this as the eprints user in this environment throws this error: No protocol specified Import.im6: unable to open X server ‘:0’ @ error/import.c/ImportImageCommand/368. The “no protocol specified” error, on some Googling, suggests that the eprints user does not have sufficient rights to run this command. So I decided to run it with a sudo. This results in the box sitting there
and doing nothing – no output, nothing happening in EPrints. I have to force quite to get any response. So, I’m at a lose end with this! Am I doing something wrong in both of these cases? Any suggestions would be most welcome! Best regards, Andrew
|
- References:
- Re: [EP-tech] Correct EPrints Export/Import syntax and issues
- From: Adam Field <Adam.Field@jisc.ac.uk>
- Re: [EP-tech] Correct EPrints Export/Import syntax and issues
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- Re: [EP-tech] Correct EPrints Export/Import syntax and issues
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] Correct EPrints Export/Import syntax and issues
- Prev by Date: Re: [EP-tech] Correct EPrints Export/Import syntax and issues
- Next by Date: Re: [EP-tech] Correct EPrints Export/Import syntax and issues
- Previous by thread: Re: [EP-tech] Correct EPrints Export/Import syntax and issues
- Next by thread: Re: [EP-tech] Correct EPrints Export/Import syntax and issues
- Index(es):