Debian Codegraph @

docs/changes.rst

raw
1 Changelog
2 =========
3
4 Version 0.7.0 (2026-09-26)
5 --------------------------
6
7 New features:
8
9 - gather: read multiple byte ranges (from one or multiple items) with one call, #211.
10 The REST backend does it with one roundtrip (server-side gather), other backends
11 do one partial load per range.
12
13 Fixes:
14
15 - caching: a partial load with a negative offset from a cached namespace returned
16 wrong data (e.g. nothing for the last N bytes of an item) if the item was loaded
17 from the primary backend (mirror mode, or a cache miss in writethrough mode).
18 - posixfs: "move" replaces an existing destination also on Windows
19
20
21 Other changes:
22
23 - defrag: implement it on top of gather.
24 - Store.defrag / Store.gather: all items must be in the given namespace, a "/" in
25 an item name (or the defrag target name) raises ValueError.
26
27
28 Version 0.6.4 (2026-09-24)
29 --------------------------
30
31 Fixes:
32
33 - posixfs: a name below a non-directory object does not exist
34
35
36 Version 0.6.3 (2026-09-20)
37 --------------------------
38
39 Fixes:
40
41 - nginx-systemd units: fix service start and socket removal
42 - caching:
43
44 - continuous cache eviction, #183.
45 The cache was only cleaned up by Store.open() and Store.close(), so reading a
46 lot of data grew a size limited cache without bounds while the store was in use.
47 - scan the cache in steps while the store is in use
48 - use the mtime if the cache backend has no atime
49
50
51 Version 0.6.2 (2026-09-08)
52 --------------------------
53
54 Fixes:
55
56 - sftp and posixfs backends: remove the partially written temp file if writing it fails
57 - rest server: serialize access to the shared backend
58 - posixfs: fix lost quota updates when sessions persist concurrently
59
60 Other changes:
61
62 - CI:
63
64 - add a release workflow, with provenance attestation
65 - let dependabot update the actions and the requirements
66 - harden workflows, as suggested by zizmor
67
68
69 Version 0.6.1 (2026-08-11)
70 --------------------------
71
72 New features:
73
74 - ItemInfo: new ``mtime`` field - the last modification timestamp stamped by the
75 *storage side's* clock (0 if unknown). Implemented for posixfs, sftp, s3 and
76 rest; rclone reports 0 because its ModTime is a client-supplied timestamp.
77
78 Other changes:
79
80 - ItemInfo: sftp now also reports ``atime``.
81
82
83 Version 0.6.0 (2026-08-02)
84 --------------------------
85
86 New features:
87
88 - Store: thread safety - a Store instance can now be shared between threads, #206
89 - hash / defrag: support the "blake3" algorithm (in addition to all hashlib algorithms).
90 Needs the optional "blake3" package: pip install 'borgstore[blake3]'.
91 - store: accept a memoryview value in addition to bytes, #200
92
93 Fixes:
94
95 - docs: build the docs even if borgstore is not installed, #204
96
97 Other changes:
98
99 - add testing for Python 3.15 (note: blake3 1.0.8 does not build with 3.15)
100
101
102 Version 0.5.5 (2026-07-10)
103 --------------------------
104
105 Fixes:
106
107 - rest (stdio-over-ssh): recover from a lost ssh connection instead of hanging forever. The ssh
108 command now uses keepalive (ServerAliveInterval/CountMax) so a dead peer is noticed, and on a
109 broken connection the client transparently restarts the ssh + server process and retries the
110 request (giving up with a BackendError if it can't be reestablished), #167
111 - rest (stdio-over-ssh): raise BackendConnectionError on unexpected EOF during response headers
112 or response body transfer, preventing silent data truncation.
113 - defrag: check for short/long reads in range requests and raise ReadRangeError exception in
114 case of a size mismatch, #194
115
116
117
118 Version 0.5.4 (2026-07-09)
119 --------------------------
120
121 Fixes:
122
123 - sftp: recover from a lost connection instead of hanging forever. Operations now use a
124 socket timeout and, on a broken/dead connection, transparently reconnect and retry (and
125 give up with a BackendError if the connection can't be reestablished), #167
126 - Spawn rclone and ssh ignoring SIGINT, so they don't get interrupted by Ctrl-C.
127
128
129 Version 0.5.3 (2026-06-30)
130 --------------------------
131
132 Fixes:
133
134 - caching: serve partial reads directly from the cache instead of always
135 doing a full load from cache and slicing afterwards, #182
136
137
138 Version 0.5.2 (2026-06-26)
139 --------------------------
140
141 Fixes:
142
143 - REST client: fix info() size for nonexistent objects
144 - REST client: fix hang on HEAD requests
145 - REST server: allow HEAD requests for root directory
146 - REST client/server: add atime support
147 - nesting: fix root directory nesting
148
149 Other changes:
150
151 - require python 3.11+
152 - posixfs: use more efficient hashlib.file_digest (available since py311)
153 - docs: misc. updates (atime, rest, env vars)
154 - docs generation with sphinx: use importlib.metadata to derive version
155
156
157 Version 0.5.1 (2026-06-02)
158 --------------------------
159
160 New features:
161
162 - borgstore.server.rest: support REST http via stdio (so one can, for example,
163 invoke borgstore-server-rest --stdio via ssh). Speaks http over stdin/stdout,
164 stderr is used for log output.
165 - Store now supports "rest:" backend URLs:
166
167 - rest://user@host:port/relative/path - creates an ssh connection to a
168 remote system, starts a borgstore-server-rest process there with a posixfs
169 backend at ./relative/path on the remote system.
170 - rest:///relative/path - creates and connects to a borgstore-server-rest
171 process with a posixfs backend at ./relative/path on the local system,
172 without using ssh (good for testing).
173
174
175 Version 0.5.0 (2026-05-28)
176 --------------------------
177
178 New features:
179
180 - implement an optional cache (modes: off, mirror, writethrough; max_age and
181 size LRU eviction need atime support), see the store_caching.rst docs
182 - rclone: add BORGSTORE_RCLONE_DEBUG env var
183
184 Other changes:
185
186 - Store: remove "levels" argument, replaced by new "config" argument
187 - Store: optimize / speed up .find method (no backend.info calls when there
188 is only 1 level, as usual)
189 - docs: split README, real docs, sphinx
190
191
192 Version 0.4.1 (2026-04-26)
193 --------------------------
194
195 New features:
196
197 - quota: implement quota tracking and enforcement (posixfs), #19
198 - load: implement tail loading support (negative offset)
199 - store: hashsum content verification (REST server/client), #148
200 - hash: item content hashing, e.g. sha256
201 - defrag: defragmentation helper (copies blocks from source to target items)
202 - sftp: try to use "check-file" for SFTP server-side hashing (not supported
203 by OpenSSH and also not tested by us; please give feedback if you use it)
204 - REST backend (client): support sub-paths, #155, #156
205 - REST server:
206
207 - server-side implementation of defrag and hash
208 - --socket-activation - add systemd socket activation support, enabling
209 on-demand per-repo startup without port management.
210 - contrib/server/nginx-systemd/ has a nginx reverse proxy setup
211 example that can support multiple stores at different sub-paths.
212 - support quotas (via posixfs backend)
213
214 Fixes:
215
216 - rclone: fix process leak in close()
217 - REST server:
218
219 - sanitize error messages to avoid leaking absolute storage paths
220 - harden authentication against timing attacks
221 - slightly optimize directory listing memory usage
222 - sftp:
223
224 - fix SSH connection leak
225 - host_config["port"] is a str
226 - Store paramiko.SSHClient in self.ssh and ensure it is closed in
227 _disconnect, _connect calls _disconnect on any failure during setup.
228
229
230 Version 0.4.0 (2026-03-15)
231 --------------------------
232
233 New features:
234
235 - REST (http/https) backend, REST server, #18
236
237 Fixes:
238
239 - fix permissions check, #139
240 - posixfs/sftp: do not raise if base_path can not be deleted, #133
241 - list: do not yield invalid names, #130
242 - posixfs, s3, sftp: URL-unquote, #129
243
244 Other changes:
245
246 - add "rclone" and "rest" extras, "requests" is now an optional requirement
247
248
249 Version 0.3.1 (2026-02-09)
250 --------------------------
251
252 Bug fixes:
253
254 - s3 URL: ensure s3 endpoint is optional
255
256 Other changes:
257
258 - add support for Python 3.14, remove 3.9
259 - backends: have separate exceptions for invalid URL and dependency missing
260 - posixfs: better exception message if not absolute path
261 - use SPDX license identifier, require a recent setuptools
262 - CI:
263
264 - add sftp store testing, #64
265 - add s3 store testing
266 - docs:
267
268 - describe the posixfs permissions system
269 - updates, typos and grammar fixes
270 - mention the permissions system of posixfs backend
271
272
273 Version 0.3.0 2025-05-22
274 ------------------------
275
276 New features:
277
278 - posixfs: add a permissions system, #105
279 - Store: add permissions argument (only supported by posixfs)
280 - Store: add logging for Store ops, #104. It logs:
281
282 - operation
283 - name(s)
284 - parameters such as deleted
285 - size and timing
286
287 Please note:
288
289 - logging is done at DEBUG level, so log output is not visible with a default logger.
290 - borgstore does not configure logging; that is the task of the application that uses borgstore.
291
292
293 Version 0.2.0 2025-04-21
294 ------------------------
295
296 Breaking changes:
297
298 - Store.list: changed deleted argument semantics, #83:
299
300 - True: list ONLY soft-deleted items
301 - False: list ONLY non-deleted items
302
303 New features:
304
305 - new s3/b2 backend that uses the boto3 library, #96
306 - posixfs/sftp: create missing parent directories of the base path
307 - rclone: add a way to specify the path to the rclone binary for custom installations
308
309 Bug fixes:
310
311 - rclone: fix discard thread issues, #92
312 - rclone: check rclone regex before raising rclone-related exceptions
313
314 Other changes:
315
316 - posixfs: also support Windows file:/// URLs, #82
317 - posixfs / sftp: optimize mkdir usage, add retries, #85
318 - posixfs / sftp: change .precreate_dirs default to False
319 - rclone init: use a random port instead of relying on rclone to pick one
320
321
322 Version 0.1.0 2024-10-15
323 ------------------------
324
325 Breaking changes:
326
327 - accepted store URLs: see README
328 - Store: require complete levels configuration, #46
329
330 Other changes:
331
332 - sftp/posixfs backends: remove ad hoc mkdir calls, #46
333 - optimize Sftp._mkdir, #80
334 - sftp backend is now optional, avoiding dependency issues on some platforms, #74.
335 Use pip install "borgstore[sftp]" to install with the sftp backend.
336
337
338 Version 0.0.5 2024-10-01
339 ------------------------
340
341 Fixes:
342
343 - backend.create: only reject non-empty storage, #57
344 - backends.sftp: fix _mkdir edge case
345 - backends.sftp: raise BackendDoesNotExist if base path is not found
346
347 - rclone backend:
348
349 - don't error on create if source directory is empty, #57
350 - fix hang on termination, #54
351
352 New features:
353
354 - rclone backend: retry errors on load and store 3 times
355
356 Other changes:
357
358 - remove MStore for now, see commit 6a6fb334.
359 - refactor Store tests, add Store.set_levels method
360 - move types-requests to tox.ini, only needed for development
361
362
363 Version 0.0.4 2024-09-22
364 ------------------------
365
366 - rclone: new backend to access any of the 100s of cloud backends that rclone
367 supports; needs rclone >= v1.57.0.
368
369 See the rclone docs for installing rclone and creating remotes.
370 After that, borgstore will support URLs like:
371
372 - rclone://remote:
373 - rclone://remote:path
374 - rclone:///tmp/testdir (local fs, for testing)
375 - Store.list: give up trying to do anything with a directory's "size"
376 - .info / .list: return st.st_size for a directory "as-is"
377 - tests: BORGSTORE_TEST_RCLONE_URL to set rclone test URL
378 - tests: allow BORGSTORE_TEST_*_URL in the testenv to make tox work
379 for testing sftp, rclone, or other URLs.
380
381
382 Version 0.0.3 2024-09-17
383 ------------------------
384
385 - sftp: add support for ~/.ssh/config, #37
386 - sftp: username is optional, #27
387 - load known_hosts, remove AutoAddPolicy, #39
388 - store: raise backend-specific exceptions, #34
389 - add Store.stats property, #25
390 - bandwidth emulation via BORGSTORE_BANDWIDTH [bit/s], #24
391 - latency emulation via BORGSTORE_LATENCY [us], #24
392 - fix demo code, also output stats
393 - tests: BORGSTORE_TEST_SFTP_URL to set sftp test URL
394
395
396 Version 0.0.2 2024-09-10
397 ------------------------
398
399 - sftp backend: use paramiko's client.posix_rename, #17
400 - posixfs backend: hack: accept file://relative/path, #23
401 - support and test on Python 3.13, #21
402
403
404 Version 0.0.1 2024-08-23
405 ------------------------
406
407 First PyPI release.