feat(s3-storage): add backup metadata, upload verification, restore, and retention
This commit is contained in:
1 parent
dbefb42725
commit
8470a68e78
12 files changed
+1278
-558
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -48,6 +48,10 @@ function toDestinationInput(
|
||||
additionalFlags: overrides?.additionalFlags ?? [
|
||||
...destination.additionalFlags,
|
||||
],
|
||||
retentionDays: overrides?.retentionDays ?? destination.retentionDays,
|
||||
maxBackupCount:
|
||||
overrides?.maxBackupCount ?? destination.maxBackupCount,
|
||||
objectPrefix: overrides?.objectPrefix ?? destination.objectPrefix,
|
||||
serverId: overrides?.serverId ?? destination.serverId,
|
||||
};
|
||||
}
|
||||
@@ -123,6 +127,10 @@ export default function S3StoragePage() {
|
||||
!draft.region && "Region",
|
||||
!draft.bucket && "Bucket",
|
||||
!draft.name && "Destination Name",
|
||||
draft.provider !== "awsS3" && !draft.endpoint && "Endpoint",
|
||||
(draft.retentionDays || draft.maxBackupCount) &&
|
||||
!draft.objectPrefix &&
|
||||
"Object Prefix",
|
||||
].filter(Boolean) as string[];
|
||||
|
||||
if (missing.length > 0) {
|
||||
@@ -175,6 +183,10 @@ export default function S3StoragePage() {
|
||||
!draft.region && "Region",
|
||||
!draft.bucket && "Bucket",
|
||||
!draft.name && "Destination Name",
|
||||
draft.provider !== "awsS3" && !draft.endpoint && "Endpoint",
|
||||
(draft.retentionDays || draft.maxBackupCount) &&
|
||||
!draft.objectPrefix &&
|
||||
"Object Prefix",
|
||||
].filter(Boolean) as string[];
|
||||
|
||||
if (missing.length > 0) {
|
||||
@@ -333,3 +345,4 @@ export default function S3StoragePage() {
|
||||
</GuardedPage>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user