babylon.utils.backup
Backup and restore utilities for the Archive (ChromaDB).
Data preservation is a revolutionary act. The historical record must survive state repression.
Functions
|
Create a backup of the ChromaDB data directory. |
|
List all available ChromaDB backups. |
|
Restore ChromaDB from a backup. |
- babylon.utils.backup.backup_chroma(backup_dir=None, backup_name=None)[source]
Create a backup of the ChromaDB data directory.
- Parameters:
- Return type:
- Returns:
Path to the created backup directory
- Raises:
FileNotFoundError – If ChromaDB directory doesn’t exist
PermissionError – If backup directory isn’t writable
- babylon.utils.backup.restore_chroma(backup_path, force=False)[source]
Restore ChromaDB from a backup.
- Parameters:
- Raises:
FileNotFoundError – If backup doesn’t exist
FileExistsError – If ChromaDB exists and force=False
- Return type: