From 88b61d268622a3beea3a558234c249c8559c2391 Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 26 Apr 2020 23:22:56 +0200 Subject: [PATCH] Updated Data directory (markdown) --- Data directory.md => Data-directory.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) rename Data directory.md => Data-directory.md (71%) diff --git a/Data directory.md b/Data-directory.md similarity index 71% rename from Data directory.md rename to Data-directory.md index d8faf7a..f3314aa 100644 --- a/Data directory.md +++ b/Data-directory.md @@ -28,4 +28,16 @@ If you want to use some other location for the data directory than the default o ``` export TRILIUM_DATA_DIR=/home/myuser/data/my-trilium-data -``` \ No newline at end of file +``` + +### Create a script to run with specific data directory + +And alternative to globally setting environment variable is to run only the Trilium Notes with this environment variable. This then allows for different setup styles like two [[document]] instances or "portable" installation. + +To do this in unix based systems simply run trilium like this: + +``` +TRILIUM_DATA_DIR=/home/myuser/data/my-trilium-data trilium +``` + +You can then save the above command as a shell script on your path for convenience. \ No newline at end of file