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

51 lines
1.5 KiB
Markdown

# Backup files folder setting
This setting controls where AyaNova stores backup and restore files used by the backup and restore features built into AyaNova.
Warning: this folder MUST NOT be the same location set for [AYANOVA_ATTACHMENT_FILES_PATH](ops-config-folder-user-files.md) or [AYANOVA_TEMP_FILES_PATH](ops-config-folder-temporary-files.md) or AyaNova will not start.
## Default
If no override is specified AyaNova will store backup files in a `backup` folder in the location specified by [AYANOVA_DATA_PATH](ops-config-data-path.md) setting.
## Overriding
AyaNova expects the backup files folder path to be provided by a config.json property, environment variable or command line parameter named
`AYANOVA_BACKUP_FILES_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_BACKUP_FILES_PATH": "/var/lib/ayanova/backupfiles"
}
```
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_BACKUP_FILES_PATH": "c:\\ProgramData\\backupfiles"
}
```
Example command line parameter
`ayanova.exe --AYANOVA_BACKUP_FILES_PATH="/var/lib/ayanova/backupfiles"`
Example environment variable
Windows
`set "AYANOVA_BACKUP_FILES_PATH=c:\ProgramData\ayanova\backupfiles"`
Linux
`export AYANOVA_BACKUP_FILES_PATH="/var/lib/ayanova/backupfiles"`