This commit is contained in:
2022-03-11 16:08:00 +00:00
parent d7d8e9340c
commit 3363a5ae43
4 changed files with 30 additions and 17 deletions

View File

@@ -4,9 +4,9 @@ This setting controls where AyaNova stores it's data by default and is required
All data path configurations default to a location under the location specified by AYANOVA_DATA_PATH as follows:
- AYANOVA_BACKUP_FILES_PATH defaults to 'backup' folder inside AYANOVA_DATA_PATH
- AYANOVA_ATTACHMENT_FILES_PATH defaults to 'attachments' folder inside AYANOVA_DATA_PATH
- AYANOVA_TEMP_FILES_PATH defaults to 'temp' folder inside AYANOVA_DATA_PATH
- [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

View File

@@ -50,9 +50,17 @@ PostgreSQL will display `database system is ready to accept connections` indicat
Check the [server configuration](ops-config-environment-variables.md) and identify the location of the attachment files. There are two ways this can be specified, either directly through the [AYANOVA_ATTACHMENT_FILES_PATH](ops-config-folder-user-files.md) setting or indirectly through the [AYANOVA_DATA_PATH](ops-config-data-path.md) setting in which case the attachments folder will be found in a folder called `attachments` inside the folder specified by the AYANOVA_DATA_PATH setting.
### Make a copy of the server data folder
### Make a copy of the AyaNova server's data folder
If there is any existing data then a file system copy of any existing AyaNova server's [data folders](ops-config-data-path.md) to a safe location should be done first as a precaution.
Restoring data will wipe out any existing data and mistakes can happen.
If you have used the default configuration all data will be stored in sub-folders under the single folder specified in the [AYANOVA_DATA_PATH](ops-config-data-path.md). If you have split them out into [individually specified locations](ops-config-data-path.md) then be sure to make copies of each of them before proceeding with restoration.
The location of these folders is also logged on server startup in the [server log](ops-log.md) and also can be viewed in the AyaNova user interface on the [server information](ops-server-information.md) page.
If there is any existing data then a file copy of the existing data folders to a safe location should be done first as a precaution. Restoring data will wipe out any existing data and mistakes can happen.
### Restore the attachments

View File

@@ -2,6 +2,21 @@
This form shows information required for management and troubleshooting of the AyaNova server. This information is captured at startup of the server.
## Authorization Roles required
This form is available to User's with the following [roles](ay-biz-admin-roles.md):
Read only access
- System operations
- System operations - restricted
## How to access Server information
Server information is accessed in the following way:
- From the `Server operations` navigation pane `Server information` item.
## Menu options
#### Copy support information
@@ -16,7 +31,7 @@ Displays the server [environment variables](ops-config-environment-variables.md)
### Server environment
Displays basic information about the AyaNova server host machine.
Technical information about the AyaNova server host machine.
### DB Server parameters

View File

@@ -623,17 +623,7 @@ namespace AyaNova.Api.Controllers
using (var dr = await cmd.ExecuteReaderAsync())
{
while (dr.Read())
{
// var v = new FileAttachmentListItem();
// v.Id = dr.GetInt64(0);
// v.DisplayFileName = dr.GetString(1);
// v.ContentType = dr.GetString(2);
// v.LastModified = dr.GetDateTime(3);
// v.Notes = dr.GetString(4);
// v.AttachedByUser = dr.GetString(5);
// v.Size = dr.GetInt64(6);
// retList.Add(v);
{
retList.Add(new FileAttachmentListItem()
{
Id = dr.GetInt64(0),