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