manitou-mgr is a Perl script that can perform management tasks and monitoring on a manitou-mail database.
manitou-mgr [--conf=/path/to/configfile (the same as manitou-mdx)]
[--quiet]
{[--create-database [(1) db-options] [(2) db-superuser-options]] | [--create-schema [(1) db-options]]
| [--hash-attachments] | [--merge-attachments] | [--print-size]}
(1) [--db-name=val] [--db-user=val] [--db-host=val] [--db-port=val]
(2) [--db-super-user=val] [--db-super-password=val]
Create a new, empty PostgreSQL database to hold the mail data, and a dedicated database user that owns it. Both are named manitou by default.
Create all database objects to hold the mail data (should be applied to an empty database).
Upgrade all database objects to a newer version.
Compute and update the fingerprints of the attachments in the database that have no fingerprint. This is done automatically by manitou-mdx during normal import so this option shouldn't be used except for troubleshooting or after an upgrade from a version older than 0.9.9.
Merge attachments that share the same fingerprint. This is done automatically by manitou-mdx and the user interface so this option shouldn't be used except for troubleshooting or after an upgrade from a version older than 0.9.9.
Print the total database size, and a subset of the database tables with their sizes in bytes
Database options:
Database name to create a new database (manitou by default).
Database user that will own a newly created database (manitou by default).
Database host name to connect to. By default, connect to a local database (by Unix socket).
Database port number to connect to. By default, 5432.
Database superuser to connect to in order to create a new database (postgres by default)
Password of database superuser, empty by default.