updated documentation for config-dump

master
Alexander Graf 4 years ago
parent adc9c70c3e
commit 0a907a744e

@ -78,22 +78,29 @@ The purpose of this command is to dump domain-, relay-, alias- and user-configur
# docker-compose exec admin flask mailu config-dump --help # docker-compose exec admin flask mailu config-dump --help
Usage: flask mailu config-dump [OPTIONS] Usage: flask mailu config-dump [OPTIONS] [SECTIONS]...
dump configuration as YAML-formatted data to stdout dump configuration as YAML-formatted data to stdout
SECTIONS can be: domains, relays, users, aliases
Options: Options:
-f, --full Include default attributes -f, --full Include default attributes
-s, --secrets Include secrets (plain-text / not hashed) -s, --secrets Include secrets (dkim-key, plain-text / not hashed)
-d, --dns Include dns records
--help Show this message and exit. --help Show this message and exit.
If you want to export secrets (plain-text / not hashed) you have to add the ``--secrets`` option. If you want to export secrets (dkim-keys, plain-text / not hashed) you have to add the ``--secrets`` option.
Only non-default attributes are dumped. If you want to dump all attributes use ``--full``. Only non-default attributes are dumped. If you want to dump all attributes use ``--full``.
To include dns records (mx, spf, dkim and dmarc) add the ``--dns`` option.
Unless you specify some sections all sections are dumped by default.
.. code-block:: bash .. code-block:: bash
docker-compose exec admin flask mailu config-dump > mail-config.yml docker-compose exec admin flask mailu config-dump > mail-config.yml
docker-compose exec admin flask mailu config-dump --dns domains
config-update config-update
------------- -------------

Loading…
Cancel
Save