akkoma/docs/administration/CLI_tasks/config.md

29 lines
651 B
Markdown
Raw Normal View History

# Transfering the config to/from the database
!!! danger
This is a Work In Progress, not usable just yet.
{! backend/administration/CLI_tasks/general_cli_task_info.include !}
## Transfer config from file to DB.
```sh tab="OTP"
./bin/pleroma_ctl config migrate_to_db
```
```sh tab="From Source"
mix pleroma.config migrate_to_db
```
## Transfer config from DB to `config/env.exported_from_db.secret.exs`
2020-01-21 14:49:22 +00:00
To delete transfered settings from database optional flag `-d` can be used.
```sh tab="OTP"
2020-01-21 14:49:22 +00:00
./bin/pleroma_ctl config migrate_from_db --env=<env> [-d]
```
```sh tab="From Source"
2020-01-21 14:49:22 +00:00
mix pleroma.config migrate_from_db --env=<env> [-d]
```