IntroductionThe Fedora server distribution comes with several useful command-line utilities. A description and usage instructions for each follows. The scripts are located in FEDORA_HOME/server/bin/. In Windows, these commands resolve to batch files (.bat); in Unix, they resolve to shell scripts (.sh). Note: There are also client command-line utilities which perform object ingest and export as well as several other functions. This guide assumes you have correctly installed the Fedora server distribution as per the install guide, including having set up your PATH and FEDORA_HOME appropriately.
fedora-rebuildfedora-rebuildReconstitutes Fedora's indexes (the SQL database and/or Resource Index) from the FOXML and datastream files on disk. This is an interactive utility that should be run only when the server is offline. Depending on the size of your repository, this may take minutes (thousands of objects) or hours (millions of objects) to complete. It is useful in a variety of situations:
When you run this utility, a text menu will appear, allowing you to specify whether you need to rebuild the SQL database or the Resource Index. To Run a Rebuild:
fedora-reload-policiesfedora-reload-policies [http|https] [username] [password]Where:
Causes any new or changed repository-wide policies to take effect immediately on the running Fedora server. As described in the document, Fedora Authorization with XACML Policy Enforcement, Fedora can be configured to enforce a variety of access policies. Many of these XACML policies are applied for all actions and access attempts performed on the repository as a whole. These "repository-wide" XACML policies are automatically loaded at the time the Fedora server is started. If the Fedora server administrator needs to change one or more of these repository-wide policies, this command can be used to tell the running Fedora server to reload the policies. The alternative to using this command is to stop the Fedora server and restart it. validate-policyvalidate-policy [policyFilename]Where:
Schema-validates a XACML policy file. If the Fedora server administrator creates or modifies an existing repository-wide XACML policy, the new policy should be run through this program to ensure that it is well-formed before attempting to install it in the Fedora server. Validating a policy in this way will ensure that it is well-formed XML and can follows the XACML XML schema. Copyright © 2009 DuraSpace |