Debian Codegraph @

docs/changes.rst

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