EPrints Technical Mailing List Archive
Message: #01025
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: backup
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: backup
- From: Ian Stuart <Ian.Stuart@ed.ac.uk>
- Date: Tue, 04 Sep 2012 15:09:02 +0100
On 04/09/12 06:23, Masomeh Adhami wrote:
Hi I would like to know how to take full backup from my eprints repository? I want to import this backup to another eprints repository
How to copy data from one instance of the Depot to anotherwhen creating a new version of the service, you will want to copy the data across.
*Exporting*Use the admin interface of the service, and export all the users (as "EP3 XML") and items (as "EP3 XML with Files Included")
*Importing*Having created a working installation, with the additional tables, extra fields, and new code used in the EDINA service, and at least tested that one can generate the static pages, you are ready to import data.
*users*The users should be imported with their own userIDs, and their existing datestamps:
bin/import depot --enable-import-ids --enable-import-datestamps user XML exported.users.file.xml
You will also need to copy across the (encrypted) passwords, as these are not included in the export file (wisely enough.)
This can really only be done at SQL level:Update newDB.user, oldDB.user SET newDB.user.password = oldDB.user.password where newDB.user.userid = oldDB.user.userid
*eprints*The eprints also need to be imported, keeping the ID tags (which should therefor match the original depositors) and the data/time stamps (so maintain a sense of chronology):
bin/import depot --enable-import-ids --enable-import-datestamps eprint XML exported.eprints.file.xml
-- Ian Stuart. Developer: ORI, RJ-Broker, and OpenDepot.org Bibliographics and Multimedia Service Delivery team, EDINA, The University of Edinburgh. http://edina.ac.uk/ This email was sent via the University of Edinburgh. The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
- References:
- [EP-tech] backup
- From: Masomeh Adhami <masomeh.adham@gmail.com>
- [EP-tech] backup
- Prev by Date: [EP-tech] Re: backup
- Next by Date: [EP-tech] Re: {Disarmed} Citation Count Dataset and Import Plug-ins for GNU EPrints 3
- Previous by thread: [EP-tech] Re: backup
- Next by thread: [EP-tech] backup
- Index(es):