diff options
Diffstat (limited to 'docs/administration')
-rw-r--r-- | docs/administration/CLI_tasks/config.md | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/docs/administration/CLI_tasks/config.md b/docs/administration/CLI_tasks/config.md index fc9f3cbd5..4657f2111 100644 --- a/docs/administration/CLI_tasks/config.md +++ b/docs/administration/CLI_tasks/config.md @@ -2,7 +2,7 @@ {! backend/administration/CLI_tasks/general_cli_task_info.include !} -## Transfer config from file to DB. +## Transfer config from file to DB !!! note You need to add the following to your config before executing this command: @@ -154,4 +154,24 @@ This forcibly removes all saved values in the database. ```sh mix pleroma.config [--force] reset + +## Rollback config version + +!!! note + You need to add the following to your config before executing this command: + + ```elixir + config :pleroma, configurable_from_database: true + ``` + +Rollback will restore last backup by default. If you want to restore older version use `-s` parameter. + +=== "OTP" + ```sh + ./bin/pleroma_ctl config rollback [-s 2] + ``` + +=== "From Source" + ```sh + mix pleroma.config rollback [-s 2] ``` |