7. Managing MFBASE

See also

Plugins guide documentation.

7.1. Managing mfbase services (as mfbase user)

7.1.1. Command commands and utilities

Check the common utilities in order to manage mfbase services.

7.1.2. Init

With mfbase.init, you can reinit your module.

Caution

You must use this command with caution. This command removes ALL the databases store on the PostgreSQL server and resets the PostgreSQL configuration to the default configuration.
This command is executed without any confirmation.

Note

When executing this command, services are automatically stopped, so you have to start them again after this command is executed.

See also

Dump database section.

7.2. Managing mfbase plugins (as mfbase user)

Check Plugins Commands documentation in order to manage mfbase plugins.

7.3. Make commands

Check Make Commands.

The following commands described in this Make Commands are not available or do not make sense for the MFBASE module:

  • make develop

  • make clean

  • make superclean

  • make

7.4. Dump database

In order to save/dump your database, you may issue the following command from the root MFBASE directory:

plugins.pgdump.sh {your_plugin_name} > {path_to_your_dump_file.sql}

e.g., if the plugin name is foo:

plugins.pgdump.sh foo > /tmp/foo_dump.sql

Note

Begin the output with a command to create the database itself and reconnect to the created database. (With a script of this form, it doesn’t matter which database in the destination installation you connect to before running the script).

7.5. Restore database

In order to restore your database, you may issue the following command from the root MFBASE directory:

plugins.pgrestore.sh {your_plugin_name} > {path_to_your_restore_file.sql}

e.g., if the plugin name is foo:

plugins.pgrestore.sh foo  /tmp/foo_dump.sql

Caution

If the database exists, it will be dropped before restoring it.