Tech. Documentation - erase_archive command



NAME

erase_archive - Erase all database tables and files associated with an EPrint archive


SYNOPSIS

erase_archive archiveid [options]


DESCRIPTION

This script completely erases the archive 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 archive.


ARGUMENTS

archiveid
The ID of the eprint archive to use.


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.

--force
Don't ask before making the changes.

--noerasedb
Don't delete the database tables.

--noerasefiles
Don't erase the document and website files.

--rootpass password
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...


BUGS

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