mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 01:17:59 +00:00
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
22 lines
1.2 KiB
C#
22 lines
1.2 KiB
C#
namespace AIStudio.Tools.DataBackup;
|
|
|
|
/// <summary>
|
|
/// What a backup holds, and what wrote it.
|
|
/// </summary>
|
|
/// <param name="FormatVersion">The version of the format, cf. DataBackupFormat.FORMAT_VERSION.</param>
|
|
/// <param name="AppVersion">The version of AI Studio which wrote the backup.</param>
|
|
/// <param name="SettingsVersion">The version of the settings in the backup.</param>
|
|
/// <param name="CreatedAtUtc">When the backup was written.</param>
|
|
/// <param name="SourceDataDirectory">The data folder the backup was made from, for whoever wonders where it came from.</param>
|
|
/// <param name="SourceConfigDirectory">The configuration folder the backup was made from.</param>
|
|
/// <param name="IncludesDataSourceIndexes">Whether the backup holds the indexes of the data sources. Without them, a restore keeps the indexes there are.</param>
|
|
/// <param name="Entries">Every file of the backup, the manifest aside.</param>
|
|
public sealed record DataBackupManifest(
|
|
int FormatVersion,
|
|
string AppVersion,
|
|
string SettingsVersion,
|
|
DateTimeOffset CreatedAtUtc,
|
|
string SourceDataDirectory,
|
|
string SourceConfigDirectory,
|
|
bool IncludesDataSourceIndexes,
|
|
IReadOnlyList<DataBackupManifestEntry> Entries); |