Skip to content

A modern, self-hosted backup solution for secure, encrypted backups across local and cloud storage.

chore: update types to facilitate pro sync revision refactor

towfiqi30e798a304a4
diff --git a/backend/src/types/plans.ts b/backend/src/types/plans.ts
index eebcfa8..fe12ea7 100644
--- a/backend/src/types/plans.ts
+++ b/backend/src/types/plans.ts
@@ -9,6 +9,7 @@ export type PlanPrune = {
snapCount: number;
policy: string; // forgetByAge, forgetByDate, custom
revisions?: boolean; //for sync backup types.
+ revisionSkipThreshold?: number; // Auto-skip revisions when sync changes exceed this count (default: 50000, 0 = disabled)
forgetAge?: string;
forgetDate?: string;
keepDailySnaps?: number;
@@ -124,6 +125,7 @@ export type PlanPerformanceSettings = {
multiThreadCutoff?: string; //sync [rclone] --multi-thread-cutoff. Use multi-thread downloads for files above this size (default 256Mi)
multiThreadWriteBufferSize?: string; //sync [rclone] --multi-thread-write-buffer-size. In memory buffer size for writing when in multi-thread mode (default 128Ki)
syncStrategy?: string; // sync [rclone] checksum | size-only | default
+ maxChangeFiles?: number; // Max number of individual file changes stored per sync entry (default: 10000)
};
export type PlanScripts = {
diff --git a/frontend/src/@types/backups.ts b/frontend/src/@types/backups.ts
index 44e29b0..46a69b1 100644
--- a/frontend/src/@types/backups.ts
+++ b/frontend/src/@types/backups.ts
@@ -62,6 +62,9 @@ export type Backup = {
changes: { new: number; modified: number; removed: number };
active?: boolean;
errorMsg?: string;
+ hasRevisions?: boolean;
+ revisionsSkipped?: boolean;
+ hasChangesFile?: boolean;
download?: {
status: string;
storageId?: string;
diff --git a/frontend/src/@types/plans.ts b/frontend/src/@types/plans.ts
index 58cbf2b..53ad36b 100644
--- a/frontend/src/@types/plans.ts
+++ b/frontend/src/@types/plans.ts
@@ -10,6 +10,7 @@ export type PlanPrune = {
keepWeeklySnaps?: number;
keepMonthlySnaps?: number;
revisions?: boolean; // for sync backups
+ revisionSkipThreshold?: number; // Auto-skip revisions when sync changes exceed this count (default: 50000, 0 = disabled)
};
export type PlanNotificationCase = 'start' | 'end' | 'success' | 'failure' | 'both';
@@ -100,6 +101,7 @@ export type PlanPerformanceSettings = {
multiThreadCutoff?: string; //sync
multiThreadWriteBufferSize?: string; //sync
syncStrategy?: string;
+ maxChangeFiles?: number; // Max number of individual file changes stored per sync entry (default: 10000)
};
export type PlanIntegritySettings = {