an_toni.a
05/07/2024, 8:24 AMan_toni.a
05/07/2024, 8:35 AM$ aws backup list-backup-vaultsTuomo Jorri
05/07/2024, 11:22 AMTuomo Jorri
05/07/2024, 11:33 AMan_toni.a
05/08/2024, 9:26 AMNomi
05/08/2024, 1:25 PMan_toni.a
05/08/2024, 3:32 PMan_toni.a
05/14/2024, 11:44 AMNomi
05/15/2024, 9:00 AMNomi
05/15/2024, 9:10 AMDefaultImportGuildHandler and DefaultExportGuildHandler if you want to take a peek.
Looks like you just need to define the export and import handlers, and then tag your entity config with a EntityArchiveImporterExporterAttribute
[EntityArchiveImporterExporter("myEntity", typeof(MyEntityImportHandler), typeof(MyEntityExportHandler))]
public class MyCustomEntityConfig : PersistedEntityConfig
{
public override EntityKind EntityKind => EntityKindCore.MyEntity;
public override IShardingStrategy ShardingStrategy => ShardingStrategies.CreateStaticSharded();
}Nomi
05/15/2024, 10:33 AMan_toni.a
05/15/2024, 11:40 AMan_toni.a
05/15/2024, 12:16 PMNomi
05/15/2024, 12:40 PM/api/entityArchive/export api with a dictionary of the entities you want to export in the request body:
{
"allowExportOnFailure": false,
"entities": {
"myEntity": [
"MyEntity:0000000000",
"MyEntity:0000000002",
"MyEntity:00000000EF"
]
}
}Nomi
05/15/2024, 12:44 PMan_toni.a
05/15/2024, 1:52 PMan_toni.a
05/16/2024, 5:42 AM/export call, and before that i see this in the log, so maybe my entity is missing such a handler
[08:37:52.645 WRN Challenge:KF6kXF7i4E] Received unknown ask from AdminApi:0000000000: PersistStateRequestRequest{ }an_toni.a
05/16/2024, 5:45 AMcsharp
[EntityAskHandler]
async Task<PersistStateRequestResponse> HandlePersistStateRequestRequest(PersistStateRequestRequest _)
{
await PersistStateIntermediate();
return PersistStateRequestResponse.Instance;
}an_toni.a
05/16/2024, 5:48 AMan_toni.a
05/16/2024, 5:54 AM