Having difficulties setting up backup directory #1563
-
Hello, Can someone send me a step-by-step version for changing backup directory from %appdata to another drive? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
https://triliumnext.github.io/Docs/Wiki/data-directory.html |
Beta Was this translation helpful? Give feedback.
-
Thank you @SiriusXT I have tried that before. Here is my config.ini, I have tried various version of it. It doesn't work. Config.ini placed in C:\Users\USER\AppData\Roaming\trilium-data I have tried paths with and without the "" (double inverted comma) ---Start Config.Ini ------- [General] Instance name can be used to distinguish between different instances using backend api.getInstanceName()instanceName= set to true to allow using Trilium without authentication (makes sense for server build only, desktop build doesn't need password)noAuthentication=false set to true to disable backups (e.g. because of limited space on server)noBackup=false Disable automatically generating desktop iconnoDesktopIcon=true[Network] host setting is relevant only for web deployments - set the host on which the server will listenhost=0.0.0.0port setting is relevant only for web deployments, desktop builds run on a fixed port (changeable with TRILIUM_PORT environment variable)port=8080 true for TLS/SSL/HTTPS (secure), false for HTTP (insecure).https=false path to certificate (run "bash bin/generate-cert.sh" to generate self-signed certificate). Relevant only if https=truecertPath= setting to give trust to reverse proxies, a comma-separated list of trusted rev. proxy IPs can be specified (CIDR notation is permitted),alternatively 'true' will make use of the leftmost IP in X-Forwarded-For, ultimately an integer can be used to tell about the number of hops betweenTrilium (which is hop 0) and the first trusted rev. proxy.once set, expressjs will use the X-Forwarded-For header set by the rev. proxy to determinate the real IPs of clients.expressjs shortcuts are supported: loopback(127.0.0.1/8, ::1/128), linklocal(169.254.0.0/16, fe80::/10), uniquelocal(10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, fc00::/7)trustedReverseProxy=false [Session] Use this setting to set a custom value for the "Path" Attribute value of the session cookie.This can be useful, when you have several instances running on the same domain, under different paths (e.g. by using a reverse proxy).It prevents your instances from overwriting each others' cookies, allowing you to stay logged in multiple instances simultanteously.E.g. if you have instances running under https://your-domain.com/triliumNext/instanceA and https://your-domain.com/triliumNext/instanceByou would want to set the cookiePath value to "/triliumNext/instanceA" for your first and "/triliumNext/instanceB" for your second instancecookiePath=/ Use this setting to set a custom value for the "Max-Age" Attribute of the session cookie.This controls how long your session will be valid, before it expires and you need to log in again, when you use the "Remember Me" option.Value needs to be entered in Seconds.Default value is 1814400 Seconds, which is 21 Days.cookieMaxAge=1814400 [Sync] |
Beta Was this translation helpful? Give feedback.
-
quick info, I see you are trying to add TRILIUM_BACKUP_DIR to the config.ini -> that is not supported currently. Unfortunately our docs are not showing how to do it for Windows, but this here might help: (disclaimer: I did not test this myself) |
Beta Was this translation helpful? Give feedback.
-
I have got the answer. Add the variables as "SYSTEM Variables" not user variable. Then it works. |
Beta Was this translation helpful? Give feedback.
I have got the answer.
Add the variables as "SYSTEM Variables" not user variable. Then it works.