Files
raven/docs/8.0/ayanova/docs/ops-config-data-path.md
2022-03-22 20:09:17 +00:00

60 lines
1.9 KiB
Markdown

# Data path setting
This setting controls where AyaNova stores it's data by default and is required to be present unless all other path related configuration settings are specified individually.
All data path configurations default to a location under the location specified by AYANOVA_DATA_PATH as follows:
- [AYANOVA_BACKUP_FILES_PATH](ops-config-folder-backup-files.md) defaults to 'backup' folder inside AYANOVA_DATA_PATH
- [AYANOVA_ATTACHMENT_FILES_PATH](ops-config-folder-user-files.md) defaults to 'attachments' folder inside AYANOVA_DATA_PATH
- [AYANOVA_TEMP_FILES_PATH](ops-config-folder-temporary-files.md) defaults to 'temp' folder inside AYANOVA_DATA_PATH
- AYANOVA_LOG_PATH defaults to 'logs' folder inside AYANOVA_DATA_PATH
## Override individual locations
Each of the path related configuration settings can also be specified individually, any that are left out will default to the above settings.
## Default
On Windows computers that use the installer, the default location for this setting is set by the installer the 'ProgramData' folder. There is no default for other operating systems or manual installations.
## Overriding
AyaNova expects the data path to be provided by a config.json property, environment variable or command line parameter named
`AYANOVA_DATA_PATH`
The value specified should be a string containing a fully qualified file path for the platform.
Example LINUX config.json entry
```json
{
...other properties...
"AYANOVA_DATA_PATH": "/var/lib/ayanova"
}
```
Example WINDOWS config.json entry
(Back slashes need to be **doubled** in config.json file or the server will fail to start)
```json
{
...other properties...
"AYANOVA_DATA_PATH": "c:\\ProgramData\\ayanova"
}
```
Example command line parameter
`ayanova.exe --AYANOVA_DATA_PATH="/var/lib/ayanova"`
Example environment variable
Windows
`set "AYANOVA_DATA_PATH=c:\ProgramData\ayanova"`
Linux
`export AYANOVA_DATA_PATH="/var/lib/ayanova"`