Jump to content
Wiki Home
EPrints Home
Bazaar
Files
Main menu
Main menu
move to sidebar
hide
Navigation
Front Page
EPrints 3 Manual
EPrints Training Course
EPrints Glossary
Installing EPrints
How-to Configure EPrints
EPrints 3.2+ API
EPrints 3 Reference
EPrints Plugins
Wiki
All categories
Recent changes
Main Page
Help
EPrints Documentation
Search
Search
Appearance
Log in
Request account
Personal tools
Log in
Request account
Pages for logged out editors
learn more
Contributions
Talk
Editing
Moving a repository
Page
Discussion
British English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
[[Category:Management]] [[Category:Howto]] This Howto has been written for EPrints 3.3. You may need to adjust the instructions for earlier versions. You will require your database name, username and password, which can be found in: archives/[archiveid/cfg/cfg.d/database.pl The remainder of this page assumes your database name and repository are called 'myrepo' and your database username and password are 'myrepo'/'XYXY'. ==Migrate the MySQL database== Dump the MySQL database for the repository: $ mysqldump --user=myrepo --password=XYXY myrepo | gzip > myrepo.sql.gz Transfer the MySQL dump file to your new server e.g.: $ scp myrepo.sql.gz user@mynewserver:/tmp Create the MySQL database on the new server and give it the appropriate permissions: $ mysql --user=root --password { root password } mysql> create database myrepo; mysql> grant all privileges on myrepo.* to myrepo@localhost identified by 'XYXY'; Load the database: $ gunzip -c /tmp/myrepo.sql.gz | mysql --user=myrepo --password=XYXY myrepo ==Install EPrints on the new server== Install the version of EPrints that you want to migrate to (e.g. you may want to upgrade). Take a note of the EPrints user and group, as you may need to re-assign the ownership of the transferred repository files. ==Migrate the repository== Use tar and ssh to transfer your repository to the new server ('''note''' the space in the source!): $ tar -czf - -C /opt/eprints3/archives myrepo/ | ssh user@mynewserver "tar -xzf - -C /opt/eprints3/archives" Fix permissions and ownership: $ sudo chown -R eprints:eprints /opt/eprints3/ $ sudo chmod -R 02775 /opt/eprints3/archives/ ===Migrate the repository's Apache configuration=== If you have customised your Apache configuration you will need to transfer it: $ scp /opt/eprints3/cfg/apache/myrepo.conf user@mynewserver:/opt/eprints3/cfg/apache/myrepo.conf $ scp /opt/eprints3/cfg/apache_ssl/myrepo.conf user@mynewserver:/opt/eprints3/cfg/apache_ssl/myrepo.conf ==Upgrading the repository== '''Skip if you installed the same EPrints version''' $ ./bin/epadmin upgrade myrepo ==Finishing== Make sure your repository is OK: $ ./bin/epadmin test For example you may need to install extra dependencies. Generate any missing Apache configuration: $ ./bin/generate_apacheconf Restart Apache. '''Optional''' you may - especially when upgrading - need to clear out static files: $ rm -rf /opt/eprints3/archives/myrepo/html/*
Summary:
Please note that all contributions to EPrints Documentation may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
EPrints Documentation:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)