EPrints 2.2 Documentation - rehash_documents command


rehash_documents - Regenerate all the hashes of all documents in the archive.


rehash_documents archiveid [options] [documentid]


This command regenerates the hash values for all documents. This will, by default, create an MD5 hash of all the files in the document in alphabetic order of their path. This value is then stored as a string of hexidecimal characters in the metadata for the document.

This value is automatically re-calculated if more files are uploaded or any files are removed.

It is useful as a quick reliable way of seeing if the document contents has changed. If you generate other formats of a document on-the-fly the MD5 can be useful as part of caching, or you may wish to pass the hashes to a third party to allow you to later verify that an item was in the archive since a given date.

The ID of the eprint archive to rehash the documents of.


Print a brief help message and exit.

Print the full manual page and then exit.

Be vewwy vewwy quiet. This option will supress all output unless an error occurs.

Explain in detail what is going on. May be repeated for greater effect.

Output version information and exit.


This is part of this EPrints 2 system. EPrints 2 is developed by Christopher Gutteridge.


EPrints Version: 2.2.1


For more information goto http://www.eprints.org/ which give information on mailing lists and the like.

Chris Gutteridge may be contacted at support@eprints.org

Should you need a real world address for some reason, EPrints can be contacted in the real world at

 EPrints c/o Christopher Gutteridge
 Department of Electronics and Computer Science
 University of Southampton
 SO17 1BJ
 United Kingdom


This file is part of EPrints 2.

Copyright (c) 2000,2001,2002 University of Southampton, UK. SO17 1BJ.

EPrints 2 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 2 of the License, or (at your option) any later version.

EPrints 2 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 2; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

 EPrints 2.2 Documentation - rehash_documents command