EPrints 2.3 Documentation - erase_archive command |
erase_archive - Erase all database tables and files associated with an EPrint repository
erase_archive repository_id [options]
This script completely erases the repository contents, including all database tables and eprint document files and the web site. After running this, the metadata configuration can be safely updated and the creation scripts run again.
Without the --force option, this script asks for confirmation before actually erasing anything.
After this script you will need to run create_tables before you can use the repository.
The ID of the eprint repository to use.
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.
Don't ask before making the changes.
Don't delete the database tables.
Don't erase the document and website files.
This option allows you to specify the MySQL root password, which will skip the bit where you get asked for it. It's not very secure to put a root password on the command line. Consider yourself warned...
This script assumes that the root mysql user is called root.
You may run into problems if your mysql install is not on the same machine as EPrints. If this happens use --noerasefiles and delete and recreate the database yourself.
You can specify --noerasedb and --noerasefiles at the same time, but that's really stupid, as then nothing will happen.
EPrints 2.3 Documentation - erase_archive command |