24 lines
966 B
C#
24 lines
966 B
C#
namespace HanaToolbox.Config;
|
|
|
|
public sealed class AuroraConfig
|
|
{
|
|
public bool Enabled { get; set; } = false;
|
|
public int ScheduleHour { get; set; } = 5;
|
|
public int ScheduleMinute { get; set; } = 0;
|
|
|
|
/// <summary>hdbuserstore key with admin rights (DROP SCHEMA, EXPORT, IMPORT, GRANT).</summary>
|
|
public string AdminUserKey { get; set; } = "CRONKEY";
|
|
|
|
/// <summary>Source schema to export and re-import as <SourceSchema>_AURORA.</summary>
|
|
public string SourceSchema { get; set; } = string.Empty;
|
|
|
|
/// <summary>DB user that receives ALL PRIVILEGES on the Aurora schema.</summary>
|
|
public string AuroraUser { get; set; } = string.Empty;
|
|
|
|
/// <summary>Directory used for temporary export files during the Aurora refresh.</summary>
|
|
public string BackupBasePath { get; set; } = "/hana/backup/aurora";
|
|
|
|
/// <summary>Thread count for export/import. 0 = auto (nproc/2).</summary>
|
|
public int Threads { get; set; } = 0;
|
|
}
|