From d36fbb73b7bc1a00bd0e63d83de017fda57511ff Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Wed, 22 Jan 2020 11:42:06 +1100 Subject: [PATCH] Add example for v3 -> v4 migrations utilising Docker --- BREAKING.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BREAKING.md b/BREAKING.md index daf0c7d61..e11d3b9e2 100644 --- a/BREAKING.md +++ b/BREAKING.md @@ -41,6 +41,12 @@ supported by Authelia v4. Example of usage: + # Migrate a local database into the targeted database defined in config-v4.yml with Docker + docker run --rm -v /path/to/config-v4.yml:/config.yml -v /old/db/path:/db authelia/authelia authelia migrate local --config=/config.yml --db-path=/db + + # Migrate a mongo database into the targeted database defined in config-v4.yml with Docker + docker run --rm -v /path/to/config-v4.yml:/config.yml authelia/authelia authelia migrate mongo --config=/config.yml --url=mongodb://myuser:mypassword@mymongo:27017 --database=authelia + # Migrate a local database into the targeted database defined in config-v4.yml authelia-scripts migrate local --config=/path/to/config-v4.yml --db-path=/old/db/path