This commit is contained in:
33
docs/8.0/ayanova/docs/ops-config-backup-pgdump-path.md
Normal file
33
docs/8.0/ayanova/docs/ops-config-backup-pgdump-path.md
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# BACKUP UTILITY "pg_dump" PATH SETTING
|
||||||
|
|
||||||
|
This setting controls where AyaNova will find the Postgres pg_dump utlity for automated backups.
|
||||||
|
|
||||||
|
## Default
|
||||||
|
|
||||||
|
Default is empty.
|
||||||
|
|
||||||
|
If no override is specified AyaNova will assume the utility is on the environment PATH.
|
||||||
|
|
||||||
|
## Overriding
|
||||||
|
|
||||||
|
AyaNova expects the pg_dump utility path to be provided by an environment variable or command line parameter named
|
||||||
|
|
||||||
|
`AYANOVA_BACKUP_PG_DUMP_PATH`
|
||||||
|
|
||||||
|
The value specified should be a string containing a fully qualified file path to the pg_dump utility.
|
||||||
|
|
||||||
|
Example command line parameter
|
||||||
|
|
||||||
|
`dotnet run --AYANOVA_BACKUP_PG_DUMP_PATH="/usr/lib/postgresql/14.1/bin/"` (not real)
|
||||||
|
|
||||||
|
Example environment variable
|
||||||
|
|
||||||
|
Windows
|
||||||
|
|
||||||
|
`set "AYANOVA_BACKUP_PG_DUMP_PATH=c:\Program files\postgresql\14.1\bin"` (not real)
|
||||||
|
|
||||||
|
Linux / MAC
|
||||||
|
|
||||||
|
`export AYANOVA_BACKUP_PG_DUMP_PATH="/usr/lib/postgresql/14.1/bin/"` (not real)
|
||||||
|
|
||||||
|
If both a command line parameter and an environment variable are set the command line parameter takes precedence.
|
||||||
@@ -13,6 +13,10 @@ These values can all be specified as an environment variable or as a command lin
|
|||||||
- [AYANOVA_FOLDER_BACKUP_FILES](ops-config-folder-backup-files.md)
|
- [AYANOVA_FOLDER_BACKUP_FILES](ops-config-folder-backup-files.md)
|
||||||
- [AYANOVA_FOLDER_USER_FILES](ops-config-folder-user-files.md)
|
- [AYANOVA_FOLDER_USER_FILES](ops-config-folder-user-files.md)
|
||||||
|
|
||||||
|
## BACKUP UTILITY "pg_dump" PATH
|
||||||
|
- [AYANOVA_BACKUP_PG_DUMP_PATH](ops-config-backup-pgdump-path.md)
|
||||||
|
|
||||||
|
|
||||||
## LOGGING
|
## LOGGING
|
||||||
|
|
||||||
- [AYANOVA_LOG_ENABLE_LOGGER_DIAGNOSTIC_LOG](common-log.md#troubleshooting-logging)
|
- [AYANOVA_LOG_ENABLE_LOGGER_DIAGNOSTIC_LOG](common-log.md#troubleshooting-logging)
|
||||||
|
|||||||
@@ -43,6 +43,9 @@ namespace AyaNova.Util
|
|||||||
internal static string AYANOVA_FOLDER_USER_FILES { get; set; }
|
internal static string AYANOVA_FOLDER_USER_FILES { get; set; }
|
||||||
internal static string AYANOVA_FOLDER_BACKUP_FILES { get; set; }
|
internal static string AYANOVA_FOLDER_BACKUP_FILES { get; set; }
|
||||||
|
|
||||||
|
//BACKUP PG_DUMP PATH (IF NOT IN PATH ALREADY)
|
||||||
|
internal static string AYANOVA_BACKUP_PG_DUMP_PATH { get; set; }
|
||||||
|
|
||||||
//LOGGING
|
//LOGGING
|
||||||
internal static string AYANOVA_LOG_PATH { get; set; }
|
internal static string AYANOVA_LOG_PATH { get; set; }
|
||||||
internal static string AYANOVA_LOG_LEVEL { get; set; }
|
internal static string AYANOVA_LOG_LEVEL { get; set; }
|
||||||
@@ -159,6 +162,10 @@ namespace AyaNova.Util
|
|||||||
|
|
||||||
//BackupFiles
|
//BackupFiles
|
||||||
AYANOVA_FOLDER_BACKUP_FILES = config.GetValue<string>("AYANOVA_FOLDER_BACKUP_FILES");
|
AYANOVA_FOLDER_BACKUP_FILES = config.GetValue<string>("AYANOVA_FOLDER_BACKUP_FILES");
|
||||||
|
|
||||||
|
//pgdump backup utility path
|
||||||
|
AYANOVA_BACKUP_PG_DUMP_PATH = config.GetValue<string>("AYANOVA_BACKUP_PG_DUMP_PATH");
|
||||||
|
|
||||||
#endregion server BASICS
|
#endregion server BASICS
|
||||||
|
|
||||||
#region METRICS
|
#region METRICS
|
||||||
|
|||||||
Reference in New Issue
Block a user