Difference between revisions of "API:bin/epadmin"
(→reindex) |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<!-- Pod2Wiki=_preamble_ | <!-- Pod2Wiki=_preamble_ | ||
This page has been automatically generated from the EPrints 3.2 source. Any wiki changes made between the 'Pod2Wiki=*' and 'Edit below this comment' comments will be lost. | This page has been automatically generated from the EPrints 3.2 source. Any wiki changes made between the 'Pod2Wiki=*' and 'Edit below this comment' comments will be lost. | ||
− | -->{{API}}{{Pod2Wiki}}{{API:Source|file=bin/epadmin | + | -->{{API}}{{Pod2Wiki}}{{API:Source|file=bin/epadmin|package_name=bin/epadmin}}[[Category:API|BIN/EPADMIN]][[Category:API:bin/epadmin|BIN/EPADMIN]][[Category:API:bin/epadmin|BIN/EPADMIN]]<div><!-- Edit below this comment --> |
<!-- Pod2Wiki=_private_ --><!-- Pod2Wiki=head_name --> | <!-- Pod2Wiki=_private_ --><!-- Pod2Wiki=head_name --> | ||
==NAME== | ==NAME== | ||
− | + | epadmin - EPrints repository admin tool | |
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | |||
<!-- Pod2Wiki=head_synopsis --> | <!-- Pod2Wiki=head_synopsis --> | ||
==SYNOPSIS== | ==SYNOPSIS== | ||
− | ''' | + | epadmin '''options''' <em>command</em> [repository_id] |
Where <em>command</em> is one of: | Where <em>command</em> is one of: | ||
− | + | * cleanup_cachemaps | |
− | + | * config_core | |
− | + | * config_db | |
− | + | * create | |
− | + | * create_db | |
− | < | + | * create_tables |
− | </ | + | * create_user |
− | + | * erase_data | |
− | + | * erase_eprints | |
+ | * erase_fulltext_index | ||
+ | * help | ||
+ | * profile | ||
+ | * rebuild_triples | ||
+ | * recommit | ||
+ | * reorder | ||
+ | * redo_files_modified | ||
+ | * redo_mime_type | ||
+ | * redo_thumbnails | ||
+ | * refresh_abstracts | ||
+ | * refresh_views | ||
+ | * reindex | ||
+ | * reload | ||
+ | * set_developer_mode | ||
+ | * show_config | ||
+ | * show_plugins | ||
+ | * test | ||
+ | * unit_tests | ||
+ | * update | ||
+ | * upgrade | ||
+ | Type <code>epadmin help command</code> for further help. | ||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_commands --> | |
− | <!-- Pod2Wiki= | + | ==COMMANDS== |
− | === | ||
− | |||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_create --> | |
− | <!-- Pod2Wiki= | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===create=== | ===create=== | ||
+ | <pre> epadmin create</pre> | ||
− | + | Create a new repository instance based on question-and-answer. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_create_test --> | |
− | <!-- Pod2Wiki= | + | ===create_test=== |
− | === | + | <pre> epadmin create_test</pre> |
− | |||
− | < | ||
− | |||
− | |||
− | |||
− | + | Create a test repository instance called "test". | |
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_cleanup_cachemaps --> | |
− | <!-- Pod2Wiki= | + | ===cleanup_cachemaps=== |
− | === | + | <pre> epadmin cleanup_cachemaps repository_id</pre> |
− | + | Drop any orphaned cache tables. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_config_core --> | |
− | <!-- Pod2Wiki= | + | ===config_core=== |
− | === | + | <pre> epadmin config_core repository_id</pre> |
− | + | Set hostname, contact email and repository name. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_config_db --> | |
− | <!-- Pod2Wiki= | + | ===config_db=== |
− | === | + | <pre> epadmin config_db repository_id</pre> |
− | |||
− | < | ||
− | |||
− | |||
+ | Set database connection properties and, optionally, to create database and database user. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_create_db --> | |
− | <!-- Pod2Wiki= | + | ===create_db=== |
− | === | + | <pre> epadmin create_db repository_id</pre> |
− | |||
− | < | ||
− | |||
− | |||
+ | Create a database and database user with the current settings. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_create_user --> | |
− | <!-- Pod2Wiki= | + | ===create_user=== |
− | === | + | <pre> epadmin create_user repository_id</pre> |
− | + | Create a new user. You need to do this to create your first admin account. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_delete --> | |
− | <!-- Pod2Wiki= | + | ===delete=== |
− | === | + | <pre> epadmin delete repository_id</pre> |
− | |||
− | < | ||
− | |||
− | |||
+ | Destroy repository_id and all of its content. Only use if you are absolutely sure you know what you're doing. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_help --> | |
− | <!-- Pod2Wiki= | + | ===help=== |
− | === | + | <pre> epadmin help [command]</pre> |
− | |||
− | < | ||
− | |||
− | |||
+ | Show help for <code>epadmin</code>. Specify a <code>command</code> to get detailed help on a particular command | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_redo_files_modified --> | |
− | <!-- Pod2Wiki= | + | ===redo_files_modified=== |
− | === | + | <pre> epadmin redo_files_modified repository_id [ dataset objectid, ... ]</pre> |
− | |||
− | < | ||
− | |||
− | |||
− | |||
− | + | Call [[API:EPrints/DataObj/Document#files_modified|EPrints::DataObj::Document/files_modified]] for every document. | |
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_redo_mime_type --> | |
− | <!-- Pod2Wiki= | + | ===redo_mime_type=== |
− | === | + | <pre> epadmin redo_mime_type repository_id dataset [ objectid, ... ]</pre> |
− | < | + | Redo file format identification. Dataset may be <code>eprint</code>, <code>document</code> or <code>file</code>. |
− | < | ||
− | < | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_redo_thumbnails --> | |
− | <!-- Pod2Wiki= | + | ===redo_thumbnails=== |
− | === | + | <pre> epadmin redo_thumbnails repository_id [ eprintid, ... ]</pre> |
− | + | Regenerate all the thumbnail and image-preview files and any other things which are triggered if the document file changed. Optionally supply a list of eprint ids to re-generate thumbnails for. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_refresh_views --> | |
− | <!-- Pod2Wiki= | + | ===refresh_views=== |
− | === | + | <pre> epadmin refresh_views repository_id</pre> |
− | |||
− | < | ||
− | |||
− | |||
+ | Tell the webserver that all views pages must be regenerated. The webserver will update them next time they are requested. Also causes config to be reloaded. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_refresh_abstracts --> | |
− | <!-- Pod2Wiki= | + | ===refresh_abstracts=== |
− | === | + | <pre> epadmin refresh_abstracts repository_id</pre> |
− | + | Tell the webserver that all abstract summary pages must be regenerated. The webserver will update them next , but won't update them again unless something on the EPrint changes or you re-run refresh abstracts. Also causes config to be reloaded. | |
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_reload --> | |
− | <!-- Pod2Wiki= | + | ===reload=== |
− | === | + | <pre> epadmin reload repository_id</pre> |
− | + | Cause the web server to reload the repository configuration. | |
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_create_tables --> | |
− | <!-- Pod2Wiki= | + | ===create_tables=== |
− | === | + | <pre> epadmin create_tables repository_id</pre> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Create the database tables. | Create the database tables. | ||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_erase_data --> | |
− | <!-- Pod2Wiki= | + | ===erase_data=== |
− | === | + | <pre> epadmin erase_data repository_id</pre> |
− | + | Erases and recreates the database. Removes all documents and files. Does not touch the configuration files. | |
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_erase_eprints --> | |
− | <!-- Pod2Wiki= | + | ===erase_eprints=== |
− | === | + | <pre> epadmin erase_eprints repository_id</pre> |
− | + | Erases all the documents and eprints (including their files). Recreates the eprint and document tables. Leaves configuration files and the users and subjects tables alone. | |
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_erase_fulltext_index --> | |
− | <!-- Pod2Wiki= | + | ===erase_fulltext_index=== |
− | === | + | <pre> epadmin erase_fulltext_index repository_id</pre> |
This erases all the .words and .indexcodes cache files from your repository, forcing the indexer to rerun the tools used to extract full text from your documents. | This erases all the .words and .indexcodes cache files from your repository, forcing the indexer to rerun the tools used to extract full text from your documents. | ||
Line 432: | Line 247: | ||
This is useful if you only setup the fulltext indexing after your repository is already live, or if you discover there has been a problem. | This is useful if you only setup the fulltext indexing after your repository is already live, or if you discover there has been a problem. | ||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_show_config --> | |
− | <!-- Pod2Wiki= | + | ===show_config=== |
− | === | + | <pre> epadmin show_config repository_id key1 [key2 ...]</pre> |
− | + | Dump the given configuration section identified by key1. Use extra keys to get a lower-level configuration setting. | |
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_show_plugins --> | |
− | <!-- Pod2Wiki= | + | ===show_plugins=== |
− | === | + | <pre> epadmin show_plugins repository_id [filters]</pre> |
− | + | Dump a list of all enabled plugins. You can constrain this list by providing filters e.g.: | |
− | |||
− | |||
− | |||
− | |||
+ | <pre> type=Import</pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_test --> | |
− | <!-- Pod2Wiki= | + | ===test=== |
− | === | + | <pre> epadmin test repository_id</pre> |
− | + | A null operation which just checks your configuration files are OK and that you can connect to the database. If no repository_id is specified loads each repository in turn. Use --verbose to generate more information. | |
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_profile --> | |
− | <!-- Pod2Wiki= | + | ===profile=== |
− | === | + | <pre> epadmin profile test</pre> |
− | + | Run a performance profile of test using {{API:PodLink|file=Devel/NYTProf|package_name=Devel::NYTProf|section=|text=Devel::NYTProf}}. | |
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_unit_tests --> | |
− | <!-- Pod2Wiki= | + | ===unit_tests=== |
− | === | + | <pre> epadmin unit_tests</pre> |
− | + | Run unit tests, printing the results to STDOUT. If everything passed will exit with a return code of 0. | |
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_rehash --> | |
− | <!-- Pod2Wiki= | + | ===rehash=== |
− | === | + | <pre> epadmin rehash repository_id [document_id]</pre> |
− | + | Recalculate the hashes of the files in this document and write it to a probity log file. If a document id is given then just generate the hash for that document. | |
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_update --> | |
− | <!-- Pod2Wiki= | + | ===update=== |
− | === | + | <pre> epadmin update repository_id</pre> |
− | + | This will add tables and columns to your SQL database to bring it in-line with your current configuration. It will not remove data. Use with caution on a live database. Database backup is recommended before use on live systems. | |
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_recommit --> | |
− | <!-- Pod2Wiki= | + | ===recommit=== |
− | === | + | <pre> epadmin recommit repository_id dataset_id [eprint_id eprint_id ...]</pre> |
− | + | Recommit all the records in the given dataset. What this does is cause the automatic values to be re-calculated. If a list of eprint_ids is given then just recommit those. | |
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_reorder --> | |
− | <!-- Pod2Wiki= | + | ===reorder=== |
− | === | + | <pre> epadmin reorder repository_id dataset_id [eprint_id eprint_id ...]</pre> |
− | + | Regenerate the order values for the dataset. If a list of eprint_ids is given then just recalculate ordervalues for those. | |
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_rebuild_triples --> | |
− | <!-- Pod2Wiki= | + | ===rebuild_triples=== |
− | === | + | <pre> epadmin rebuild_triples repository_id [dataset_id item_id item_id ...]]</pre> |
− | + | Queue all the records to have their RDF triple cache rebuilt. This may tie-up the indexer for some time on a large repository. Do this if you have made changes to the way RDF triples are produced from an EPrint. | |
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_reindex --> | |
− | <!-- Pod2Wiki= | + | ===reindex=== |
− | === | + | <pre> epadmin reindex repository_id dataset_id [eprint_id eprint_id ...]</pre> |
− | + | Schedule the dataset for reindexing. The indexer will do the actual indexing and it may take some time. This only schedules the reindexing. If a list of eprint_ids is given then just reindex those. | |
− | + | Please note it only works on the indexable dataset, e.g. eprint, document, but not the '''file''' dataset. | |
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_remove_field --> | |
− | <!-- Pod2Wiki= | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | ===remove_field=== | |
− | + | <pre> epadmin remove_field repository_id dataset field_id</pre> | |
− | |||
− | |||
− | = | ||
− | |||
− | |||
− | |||
− | < | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Remove the database entries for the given field, can not be undone! | Remove the database entries for the given field, can not be undone! | ||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_set_developer_mode --> | |
− | <!-- Pod2Wiki= | + | ===set_developer_mode=== |
− | === | + | <pre> epadmin set_developer_mode repository_id <on|off></pre> |
− | + | While set to on developer mode causes the web server to reload the repository configuration on every page request. This makes development much quicker but must not be left switched on in a production environment since it increases server load dramatically. | |
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_upgrade --> | |
− | <!-- Pod2Wiki= | + | ===upgrade=== |
− | === | + | <pre> epadmin upgrade repository_id</pre> |
After upgrading EPrints, use this to update the database tables. It will advise any other tasks that are required. | After upgrading EPrints, use this to update the database tables. It will advise any other tasks that are required. | ||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- Pod2Wiki=head_options --> | <!-- Pod2Wiki=head_options --> | ||
==OPTIONS== | ==OPTIONS== | ||
− | + | * '''--help''' | |
− | + | : Print a brief help message and exit. | |
− | |||
+ | * '''--man''' | ||
+ | : Print the full manual page and then exit. | ||
− | + | * '''--quiet''' | |
− | + | : This option does not do anything. | |
− | |||
− | |||
− | + | * '''--verbose''' | |
+ | : Explain in detail what is going on. May be repeated for greater effect. | ||
− | + | * '''--force''' | |
− | + | : Be more forceful (don't ask for confirmation). | |
− | |||
+ | * '''--version''' | ||
+ | : Output version information and exit. | ||
− | < | + | <pre></pre> |
− | </ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=head_copyright --> | |
− | <!-- Pod2Wiki= | + | ==COPYRIGHT== |
− | === | + | Copyright 2000-2011 University of Southampton. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | This file is part of EPrints http://www.eprints.org/. | |
− | |||
− | |||
+ | EPrints is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
− | + | EPrints is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
− | |||
− | |||
− | |||
− | + | You should have received a copy of the GNU General Public License along with EPrints. If not, see http://www.gnu.org/licenses/. | |
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
− | + | <!-- Pod2Wiki=_postamble_ --> | |
− | <!-- Pod2Wiki= | ||
− | |||
− | |||
− | |||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 09:49, 6 June 2017
EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki
Contents
- 1 NAME
- 2 SYNOPSIS
- 3 COMMANDS
- 3.1 create
- 3.2 create_test
- 3.3 cleanup_cachemaps
- 3.4 config_core
- 3.5 config_db
- 3.6 create_db
- 3.7 create_user
- 3.8 delete
- 3.9 help
- 3.10 redo_files_modified
- 3.11 redo_mime_type
- 3.12 redo_thumbnails
- 3.13 refresh_views
- 3.14 refresh_abstracts
- 3.15 reload
- 3.16 create_tables
- 3.17 erase_data
- 3.18 erase_eprints
- 3.19 erase_fulltext_index
- 3.20 show_config
- 3.21 show_plugins
- 3.22 test
- 3.23 profile
- 3.24 unit_tests
- 3.25 rehash
- 3.26 update
- 3.27 recommit
- 3.28 reorder
- 3.29 rebuild_triples
- 3.30 reindex
- 3.31 remove_field
- 3.32 set_developer_mode
- 3.33 upgrade
- 4 OPTIONS
- 5 COPYRIGHT
NAME
epadmin - EPrints repository admin tool
SYNOPSIS
epadmin options command [repository_id]
Where command is one of:
- cleanup_cachemaps
- config_core
- config_db
- create
- create_db
- create_tables
- create_user
- erase_data
- erase_eprints
- erase_fulltext_index
- help
- profile
- rebuild_triples
- recommit
- reorder
- redo_files_modified
- redo_mime_type
- redo_thumbnails
- refresh_abstracts
- refresh_views
- reindex
- reload
- set_developer_mode
- show_config
- show_plugins
- test
- unit_tests
- update
- upgrade
Type epadmin help command
for further help.
COMMANDS
create
epadmin create
Create a new repository instance based on question-and-answer.
create_test
epadmin create_test
Create a test repository instance called "test".
cleanup_cachemaps
epadmin cleanup_cachemaps repository_id
Drop any orphaned cache tables.
config_core
epadmin config_core repository_id
Set hostname, contact email and repository name.
config_db
epadmin config_db repository_id
Set database connection properties and, optionally, to create database and database user.
create_db
epadmin create_db repository_id
Create a database and database user with the current settings.
create_user
epadmin create_user repository_id
Create a new user. You need to do this to create your first admin account.
delete
epadmin delete repository_id
Destroy repository_id and all of its content. Only use if you are absolutely sure you know what you're doing.
help
epadmin help [command]
Show help for epadmin
. Specify a command
to get detailed help on a particular command
redo_files_modified
epadmin redo_files_modified repository_id [ dataset objectid, ... ]
Call EPrints::DataObj::Document/files_modified for every document.
redo_mime_type
epadmin redo_mime_type repository_id dataset [ objectid, ... ]
Redo file format identification. Dataset may be eprint
, document
or file
.
redo_thumbnails
epadmin redo_thumbnails repository_id [ eprintid, ... ]
Regenerate all the thumbnail and image-preview files and any other things which are triggered if the document file changed. Optionally supply a list of eprint ids to re-generate thumbnails for.
refresh_views
epadmin refresh_views repository_id
Tell the webserver that all views pages must be regenerated. The webserver will update them next time they are requested. Also causes config to be reloaded.
refresh_abstracts
epadmin refresh_abstracts repository_id
Tell the webserver that all abstract summary pages must be regenerated. The webserver will update them next , but won't update them again unless something on the EPrint changes or you re-run refresh abstracts. Also causes config to be reloaded.
reload
epadmin reload repository_id
Cause the web server to reload the repository configuration.
create_tables
epadmin create_tables repository_id
Create the database tables.
erase_data
epadmin erase_data repository_id
Erases and recreates the database. Removes all documents and files. Does not touch the configuration files.
erase_eprints
epadmin erase_eprints repository_id
Erases all the documents and eprints (including their files). Recreates the eprint and document tables. Leaves configuration files and the users and subjects tables alone.
erase_fulltext_index
epadmin erase_fulltext_index repository_id
This erases all the .words and .indexcodes cache files from your repository, forcing the indexer to rerun the tools used to extract full text from your documents.
This is useful if you only setup the fulltext indexing after your repository is already live, or if you discover there has been a problem.
show_config
epadmin show_config repository_id key1 [key2 ...]
Dump the given configuration section identified by key1. Use extra keys to get a lower-level configuration setting.
show_plugins
epadmin show_plugins repository_id [filters]
Dump a list of all enabled plugins. You can constrain this list by providing filters e.g.:
type=Import
test
epadmin test repository_id
A null operation which just checks your configuration files are OK and that you can connect to the database. If no repository_id is specified loads each repository in turn. Use --verbose to generate more information.
profile
epadmin profile test
Run a performance profile of test using Devel::NYTProf.
unit_tests
epadmin unit_tests
Run unit tests, printing the results to STDOUT. If everything passed will exit with a return code of 0.
rehash
epadmin rehash repository_id [document_id]
Recalculate the hashes of the files in this document and write it to a probity log file. If a document id is given then just generate the hash for that document.
update
epadmin update repository_id
This will add tables and columns to your SQL database to bring it in-line with your current configuration. It will not remove data. Use with caution on a live database. Database backup is recommended before use on live systems.
recommit
epadmin recommit repository_id dataset_id [eprint_id eprint_id ...]
Recommit all the records in the given dataset. What this does is cause the automatic values to be re-calculated. If a list of eprint_ids is given then just recommit those.
reorder
epadmin reorder repository_id dataset_id [eprint_id eprint_id ...]
Regenerate the order values for the dataset. If a list of eprint_ids is given then just recalculate ordervalues for those.
rebuild_triples
epadmin rebuild_triples repository_id [dataset_id item_id item_id ...]]
Queue all the records to have their RDF triple cache rebuilt. This may tie-up the indexer for some time on a large repository. Do this if you have made changes to the way RDF triples are produced from an EPrint.
reindex
epadmin reindex repository_id dataset_id [eprint_id eprint_id ...]
Schedule the dataset for reindexing. The indexer will do the actual indexing and it may take some time. This only schedules the reindexing. If a list of eprint_ids is given then just reindex those. Please note it only works on the indexable dataset, e.g. eprint, document, but not the file dataset.
remove_field
epadmin remove_field repository_id dataset field_id
Remove the database entries for the given field, can not be undone!
set_developer_mode
epadmin set_developer_mode repository_id <on|off>
While set to on developer mode causes the web server to reload the repository configuration on every page request. This makes development much quicker but must not be left switched on in a production environment since it increases server load dramatically.
upgrade
epadmin upgrade repository_id
After upgrading EPrints, use this to update the database tables. It will advise any other tasks that are required.
OPTIONS
- --help
- Print a brief help message and exit.
- --man
- Print the full manual page and then exit.
- --quiet
- This option does not do anything.
- --verbose
- Explain in detail what is going on. May be repeated for greater effect.
- --force
- Be more forceful (don't ask for confirmation).
- --version
- Output version information and exit.
COPYRIGHT
Copyright 2000-2011 University of Southampton.
This file is part of EPrints http://www.eprints.org/.
EPrints is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
EPrints is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with EPrints. If not, see http://www.gnu.org/licenses/.