Skip to content

Commit 3bce16e

Browse files
committed
Add support for incremental backups
1 parent bd488bb commit 3bce16e

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

weaviate/backup/async_.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class _BackupAsync(_BackupExecutor[ConnectionAsync]):
2020
backend: BackupStorage,
2121
include_collections: Union[List[str], str, None] = None,
2222
exclude_collections: Union[List[str], str, None] = None,
23+
base_backup_id: Optional[str] = None,
2324
wait_for_completion: bool = False,
2425
config: Optional[BackupConfigCreate] = None,
2526
backup_location: Optional[BackupLocationType] = None,

weaviate/backup/executor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def create(
4747
backend: BackupStorage,
4848
include_collections: Union[List[str], str, None] = None,
4949
exclude_collections: Union[List[str], str, None] = None,
50+
base_backup_id: Optional[str] = None,
5051
wait_for_completion: bool = False,
5152
config: Optional[BackupConfigCreate] = None,
5253
backup_location: Optional[BackupLocationType] = None,
@@ -89,6 +90,7 @@ def create(
8990
"id": backup_id,
9091
"include": include_collections,
9192
"exclude": exclude_collections,
93+
"incremental_backup_base_id": base_backup_id,
9294
}
9395

9496
if config is not None:

weaviate/backup/sync.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class _Backup(_BackupExecutor[ConnectionSync]):
2020
backend: BackupStorage,
2121
include_collections: Union[List[str], str, None] = None,
2222
exclude_collections: Union[List[str], str, None] = None,
23+
base_backup_id: Optional[str] = None,
2324
wait_for_completion: bool = False,
2425
config: Optional[BackupConfigCreate] = None,
2526
backup_location: Optional[BackupLocationType] = None,

0 commit comments

Comments
 (0)