EPrints 2.3 Documentation - rehash_documents command

- NAME
- SYNOPSIS
- DESCRIPTION
- OPTIONS

# NAME

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

# SYNOPSIS

rehash_documents repository_id [options] [documentid]

# DESCRIPTION

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 repository since a given date.

repository_id

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

# OPTIONS

--help

  Print a brief help message and exit.

--man

  Print the full manual page and then exit.

--quiet

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

--verbose

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

--version

  Output version information and exit.

EPrints 2.3 Documentation - rehash_documents command