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