Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/borgbackup/borg
/ add
Method
add
src/borg/archive.py:367–370 ·
view source on GitHub ↗
(self, item)
Source
from the content-addressed store, hash-verified
365
self.saved_chunks_len = None
366
367
def
add(self, item):
368
self.buffer.write(self.packer.pack(item.as_dict()))
369
if
self.is_full():
370
self.flush()
371
372
def
write_chunk(self, chunk):
373
raise
NotImplementedError
Callers
15
rebuild_archives
Method · 0.95
load
Method · 0.45
modify
Method · 0.45
_build_files_cache
Method · 0.45
add_chunk
Method · 0.45
add_entry
Method · 0.45
add_entry
Method · 0.45
preload_item_chunks
Method · 0.45
add_item
Method · 0.45
chunk_processor
Method · 0.45
matcher_add_tagged_dirs
Method · 0.45
use_it
Method · 0.45
Calls
5
is_full
Method · 0.95
flush
Method · 0.95
pack
Method · 0.80
as_dict
Method · 0.80
write
Method · 0.45
Tested by
3
test_chunkindex_add
Function · 0.36
test_cache_chunk_buffer
Function · 0.36
test_partial_cache_chunk_buffer
Function · 0.36