CHANGES.rst 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. Borg Changelog
  2. ==============
  3. Version 0.25.0 (not released yet)
  4. ---------------------------------
  5. Compatibility notes:
  6. - the new compression code is very compatible: as long as you stay with zlib
  7. compression, older borg releases will still be able to read data from a
  8. repo/archive made with the new code (note: this is not the case for the
  9. default "none" compression, use "zlib,0" if you want a "no compression" mode
  10. that can be read by older borg). Also the new code is able to read repos and
  11. archives made with older borg versions (for all zlib levels 0..9).
  12. Deprecations:
  13. - --compression N (with N being a number, as in 0.24) is deprecated.
  14. We keep the --compression 0..9 for now to not break scripts, but it is
  15. deprecated and will be removed later, so better fix your scripts now:
  16. --compression 0 (as in 0.24) is the same as --compression zlib,0 (now).
  17. BUT: if you do not want compression, you rather want --compression none
  18. (which is the default).
  19. --compression 1 (in 0.24) is the same as --compression zlib,1 (now)
  20. --compression 9 (in 0.24) is the same as --compression zlib,9 (now)
  21. New features:
  22. - create --compression none (default, means: do not compress, just pass through
  23. data "as is". this is more efficient than zlib level 0 as used in borg 0.24)
  24. - create --compression lz4 (super-fast, but not very high compression)
  25. Please note that borgbackup needs lz4 library as additional requirement (#156).
  26. - create --compression zlib,N (slower, higher compression, default for N is 6)
  27. - create --compression lzma,N (slowest, highest compression, default N is 6)
  28. - honor the nodump flag (UF_NODUMP) and do not backup such items
  29. - list --short just outputs a simple list of the files/directories in an archive
  30. Bug fixes:
  31. - fixed --chunker-params parameter order confusion / malfunction, fixes #154
  32. - close fds of segments we delete (during compaction)
  33. - close files which fell out the lrucache
  34. - fadvise DONTNEED now is only called for the byte range actually read, not for
  35. the whole file, fixes #158.
  36. Other changes:
  37. - remove fakeroot requirement for tests, tests run faster without fakeroot
  38. (test setup does not fail any more without fakeroot, so you can run with or
  39. without fakeroot), fixes #151 and #91.
  40. - more tests for archiver
  41. - recover_segment(): don't assume we have an fd for segment
  42. - lrucache refactoring / cleanup, add dispose function, py.test tests
  43. - generalize hashindex code for any key length (less hardcoding)
  44. - lock roster: catch file not found in remove() method and ignore it
  45. - improved docs:
  46. - replace hack for llfuse with proper solution (install libfuse-dev)
  47. - update docs about compression
  48. - update development docs about fakeroot
  49. - internals: add some words about lock files / locking system
  50. Version 0.24.0
  51. --------------
  52. Incompatible changes (compared to 0.23):
  53. - borg now always issues --umask NNN option when invoking another borg via ssh
  54. on the repository server. By that, it's making sure it uses the same umask
  55. for remote repos as for local ones. Because of this, you must upgrade both
  56. server and client(s) to 0.24.
  57. - the default umask is 077 now (if you do not specify via --umask) which might
  58. be a different one as you used previously. The default umask avoids that
  59. you accidentally give access permissions for group and/or others to files
  60. created by borg (e.g. the repository).
  61. Deprecations:
  62. - "--encryption passphrase" mode is deprecated, see #85 and #97.
  63. See the new "--encryption repokey" mode for a replacement.
  64. New features:
  65. - borg create --chunker-params ... to configure the chunker, fixes #16
  66. (attic #302, attic #300, and somehow also #41).
  67. This can be used to reduce memory usage caused by chunk management overhead,
  68. so borg does not create a huge chunks index/repo index and eats all your RAM
  69. if you back up lots of data in huge files (like VM disk images).
  70. See docs/misc/create_chunker-params.txt for more information.
  71. - borg info now reports chunk counts in the chunk index.
  72. - borg create --compression 0..9 to select zlib compression level, fixes #66
  73. (attic #295).
  74. - borg init --encryption repokey (to store the encryption key into the repo),
  75. fixes #85
  76. - improve at-end error logging, always log exceptions and set exit_code=1
  77. - LoggedIO: better error checks / exceptions / exception handling
  78. - implement --remote-path to allow non-default-path borg locations, #125
  79. - implement --umask M and use 077 as default umask for better security, #117
  80. - borg check: give a named single archive to it, fixes #139
  81. - cache sync: show progress indication
  82. - cache sync: reimplement the chunk index merging in C
  83. Bug fixes:
  84. - fix segfault that happened for unreadable files (chunker: n needs to be a
  85. signed size_t), #116
  86. - fix the repair mode, #144
  87. - repo delete: add destroy to allowed rpc methods, fixes issue #114
  88. - more compatible repository locking code (based on mkdir), maybe fixes #92
  89. (attic #317, attic #201).
  90. - better Exception msg if no Borg is installed on the remote repo server, #56
  91. - create a RepositoryCache implementation that can cope with >2GiB,
  92. fixes attic #326.
  93. - fix Traceback when running check --repair, attic #232
  94. - clarify help text, fixes #73.
  95. - add help string for --no-files-cache, fixes #140
  96. Other changes:
  97. - improved docs:
  98. - added docs/misc directory for misc. writeups that won't be included
  99. "as is" into the html docs.
  100. - document environment variables and return codes (attic #324, attic #52)
  101. - web site: add related projects, fix web site url, IRC #borgbackup
  102. - Fedora/Fedora-based install instructions added to docs
  103. - Cygwin-based install instructions added to docs
  104. - updated AUTHORS
  105. - add FAQ entries about redundancy / integrity
  106. - clarify that borg extract uses the cwd as extraction target
  107. - update internals doc about chunker params, memory usage and compression
  108. - added docs about development
  109. - add some words about resource usage in general
  110. - document how to backup a raw disk
  111. - add note about how to run borg from virtual env
  112. - add solutions for (ll)fuse installation problems
  113. - document what borg check does, fixes #138
  114. - reorganize borgbackup.github.io sidebar, prev/next at top
  115. - deduplicate and refactor the docs / README.rst
  116. - use borg-tmp as prefix for temporary files / directories
  117. - short prune options without "keep-" are deprecated, do not suggest them
  118. - improved tox configuration
  119. - remove usage of unittest.mock, always use mock from pypi
  120. - use entrypoints instead of scripts, for better use of the wheel format and
  121. modern installs
  122. - add requirements.d/development.txt and modify tox.ini
  123. - use travis-ci for testing based on Linux and (new) OS X
  124. - use coverage.py, pytest-cov and codecov.io for test coverage support
  125. I forgot to list some stuff already implemented in 0.23.0, here they are:
  126. New features:
  127. - efficient archive list from manifest, meaning a big speedup for slow
  128. repo connections and "list <repo>", "delete <repo>", "prune" (attic #242,
  129. attic #167)
  130. - big speedup for chunks cache sync (esp. for slow repo connections), fixes #18
  131. - hashindex: improve error messages
  132. Other changes:
  133. - explicitly specify binary mode to open binary files
  134. - some easy micro optimizations
  135. Version 0.23.0
  136. --------------
  137. Incompatible changes (compared to attic, fork related):
  138. - changed sw name and cli command to "borg", updated docs
  139. - package name (and name in urls) uses "borgbackup" to have less collisions
  140. - changed repo / cache internal magic strings from ATTIC* to BORG*,
  141. changed cache location to .cache/borg/ - this means that it currently won't
  142. accept attic repos (see issue #21 about improving that)
  143. Bug fixes:
  144. - avoid defect python-msgpack releases, fixes attic #171, fixes attic #185
  145. - fix traceback when trying to do unsupported passphrase change, fixes attic #189
  146. - datetime does not like the year 10.000, fixes attic #139
  147. - fix "info" all archives stats, fixes attic #183
  148. - fix parsing with missing microseconds, fixes attic #282
  149. - fix misleading hint the fuse ImportError handler gave, fixes attic #237
  150. - check unpacked data from RPC for tuple type and correct length, fixes attic #127
  151. - fix Repository._active_txn state when lock upgrade fails
  152. - give specific path to xattr.is_enabled(), disable symlink setattr call that
  153. always fails
  154. - fix test setup for 32bit platforms, partial fix for attic #196
  155. - upgraded versioneer, PEP440 compliance, fixes attic #257
  156. New features:
  157. - less memory usage: add global option --no-cache-files
  158. - check --last N (only check the last N archives)
  159. - check: sort archives in reverse time order
  160. - rename repo::oldname newname (rename repository)
  161. - create -v output more informative
  162. - create --progress (backup progress indicator)
  163. - create --timestamp (utc string or reference file/dir)
  164. - create: if "-" is given as path, read binary from stdin
  165. - extract: if --stdout is given, write all extracted binary data to stdout
  166. - extract --sparse (simple sparse file support)
  167. - extra debug information for 'fread failed'
  168. - delete <repo> (deletes whole repo + local cache)
  169. - FUSE: reflect deduplication in allocated blocks
  170. - only allow whitelisted RPC calls in server mode
  171. - normalize source/exclude paths before matching
  172. - use posix_fadvise to not spoil the OS cache, fixes attic #252
  173. - toplevel error handler: show tracebacks for better error analysis
  174. - sigusr1 / sigint handler to print current file infos - attic PR #286
  175. - RPCError: include the exception args we get from remote
  176. Other changes:
  177. - source: misc. cleanups, pep8, style
  178. - docs and faq improvements, fixes, updates
  179. - cleanup crypto.pyx, make it easier to adapt to other AES modes
  180. - do os.fsync like recommended in the python docs
  181. - source: Let chunker optionally work with os-level file descriptor.
  182. - source: Linux: remove duplicate os.fsencode calls
  183. - source: refactor _open_rb code a bit, so it is more consistent / regular
  184. - source: refactor indicator (status) and item processing
  185. - source: use py.test for better testing, flake8 for code style checks
  186. - source: fix tox >=2.0 compatibility (test runner)
  187. - pypi package: add python version classifiers, add FreeBSD to platforms
  188. Attic Changelog
  189. ===============
  190. Here you can see the full list of changes between each Attic release until Borg
  191. forked from Attic:
  192. Version 0.17
  193. ------------
  194. (bugfix release, released on X)
  195. - Fix hashindex ARM memory alignment issue (#309)
  196. - Improve hashindex error messages (#298)
  197. Version 0.16
  198. ------------
  199. (bugfix release, released on May 16, 2015)
  200. - Fix typo preventing the security confirmation prompt from working (#303)
  201. - Improve handling of systems with improperly configured file system encoding (#289)
  202. - Fix "All archives" output for attic info. (#183)
  203. - More user friendly error message when repository key file is not found (#236)
  204. - Fix parsing of iso 8601 timestamps with zero microseconds (#282)
  205. Version 0.15
  206. ------------
  207. (bugfix release, released on Apr 15, 2015)
  208. - xattr: Be less strict about unknown/unsupported platforms (#239)
  209. - Reduce repository listing memory usage (#163).
  210. - Fix BrokenPipeError for remote repositories (#233)
  211. - Fix incorrect behavior with two character directory names (#265, #268)
  212. - Require approval before accessing relocated/moved repository (#271)
  213. - Require approval before accessing previously unknown unencrypted repositories (#271)
  214. - Fix issue with hash index files larger than 2GB.
  215. - Fix Python 3.2 compatibility issue with noatime open() (#164)
  216. - Include missing pyx files in dist files (#168)
  217. Version 0.14
  218. ------------
  219. (feature release, released on Dec 17, 2014)
  220. - Added support for stripping leading path segments (#95)
  221. "attic extract --strip-segments X"
  222. - Add workaround for old Linux systems without acl_extended_file_no_follow (#96)
  223. - Add MacPorts' path to the default openssl search path (#101)
  224. - HashIndex improvements, eliminates unnecessary IO on low memory systems.
  225. - Fix "Number of files" output for attic info. (#124)
  226. - limit create file permissions so files aren't read while restoring
  227. - Fix issue with empty xattr values (#106)
  228. Version 0.13
  229. ------------
  230. (feature release, released on Jun 29, 2014)
  231. - Fix sporadic "Resource temporarily unavailable" when using remote repositories
  232. - Reduce file cache memory usage (#90)
  233. - Faster AES encryption (utilizing AES-NI when available)
  234. - Experimental Linux, OS X and FreeBSD ACL support (#66)
  235. - Added support for backup and restore of BSDFlags (OSX, FreeBSD) (#56)
  236. - Fix bug where xattrs on symlinks were not correctly restored
  237. - Added cachedir support. CACHEDIR.TAG compatible cache directories
  238. can now be excluded using ``--exclude-caches`` (#74)
  239. - Fix crash on extreme mtime timestamps (year 2400+) (#81)
  240. - Fix Python 3.2 specific lockf issue (EDEADLK)
  241. Version 0.12
  242. ------------
  243. (feature release, released on April 7, 2014)
  244. - Python 3.4 support (#62)
  245. - Various documentation improvements a new style
  246. - ``attic mount`` now supports mounting an entire repository not only
  247. individual archives (#59)
  248. - Added option to restrict remote repository access to specific path(s):
  249. ``attic serve --restrict-to-path X`` (#51)
  250. - Include "all archives" size information in "--stats" output. (#54)
  251. - Added ``--stats`` option to ``attic delete`` and ``attic prune``
  252. - Fixed bug where ``attic prune`` used UTC instead of the local time zone
  253. when determining which archives to keep.
  254. - Switch to SI units (Power of 1000 instead 1024) when printing file sizes
  255. Version 0.11
  256. ------------
  257. (feature release, released on March 7, 2014)
  258. - New "check" command for repository consistency checking (#24)
  259. - Documentation improvements
  260. - Fix exception during "attic create" with repeated files (#39)
  261. - New "--exclude-from" option for attic create/extract/verify.
  262. - Improved archive metadata deduplication.
  263. - "attic verify" has been deprecated. Use "attic extract --dry-run" instead.
  264. - "attic prune --hourly|daily|..." has been deprecated.
  265. Use "attic prune --keep-hourly|daily|..." instead.
  266. - Ignore xattr errors during "extract" if not supported by the filesystem. (#46)
  267. Version 0.10
  268. ------------
  269. (bugfix release, released on Jan 30, 2014)
  270. - Fix deadlock when extracting 0 sized files from remote repositories
  271. - "--exclude" wildcard patterns are now properly applied to the full path
  272. not just the file name part (#5).
  273. - Make source code endianness agnostic (#1)
  274. Version 0.9
  275. -----------
  276. (feature release, released on Jan 23, 2014)
  277. - Remote repository speed and reliability improvements.
  278. - Fix sorting of segment names to ignore NFS left over files. (#17)
  279. - Fix incorrect display of time (#13)
  280. - Improved error handling / reporting. (#12)
  281. - Use fcntl() instead of flock() when locking repository/cache. (#15)
  282. - Let ssh figure out port/user if not specified so we don't override .ssh/config (#9)
  283. - Improved libcrypto path detection (#23).
  284. Version 0.8.1
  285. -------------
  286. (bugfix release, released on Oct 4, 2013)
  287. - Fix segmentation fault issue.
  288. Version 0.8
  289. -----------
  290. (feature release, released on Oct 3, 2013)
  291. - Fix xattr issue when backing up sshfs filesystems (#4)
  292. - Fix issue with excessive index file size (#6)
  293. - Support access of read only repositories.
  294. - New syntax to enable repository encryption:
  295. attic init --encryption="none|passphrase|keyfile".
  296. - Detect and abort if repository is older than the cache.
  297. Version 0.7
  298. -----------
  299. (feature release, released on Aug 5, 2013)
  300. - Ported to FreeBSD
  301. - Improved documentation
  302. - Experimental: Archives mountable as fuse filesystems.
  303. - The "user." prefix is no longer stripped from xattrs on Linux
  304. Version 0.6.1
  305. -------------
  306. (bugfix release, released on July 19, 2013)
  307. - Fixed an issue where mtime was not always correctly restored.
  308. Version 0.6
  309. -----------
  310. First public release on July 9, 2013