Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 352f435

Browse files
committed
feat: create backups after exporting data
1 parent 2cbe6a0 commit 352f435

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/import_packages.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import json
44
import os
55

6+
67
import weaviate
78
from weaviate.classes.config import DataType, Property
89
from weaviate.embedded import EmbeddedOptions
@@ -87,7 +88,7 @@ async def add_data(self):
8788

8889
async def run_import(self):
8990
self.setup_schema()
90-
await self.add_data()
91+
#await self.add_data()
9192

9293
#  take a backup of the data
9394
await self.client.backup.create(backup_id="backup-"+date.today().strftime("%Y-%m-%d"), backend="filesystem", wait_for_completion=True)

0 commit comments

Comments
 (0)