changes.rst 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  1. Changelog
  2. =========
  3. Version 0.28.0
  4. --------------
  5. Bug fixes:
  6. - setup.py: fix bug related to BORG_LZ4_PREFIX processing
  7. - non-ascii ACL fixes for Linux, FreeBSD and OS X, #277
  8. - fix acl_use_local_uid_gid() and add a test for it, attic #359
  9. - borg upgrade: do not upgrade repositories in place by default, #299
  10. - fix cascading failure with the index conversion code, #269
  11. - borg check: implement 'cmdline' archive metadata value decoding, #311
  12. Other changes:
  13. - do binary releases via "github releases", closes #214
  14. - create: use -x and --one-file-system (was: --do-not-cross-mountpoints), #296
  15. - a lot of changes related to using "logging" module and screen output, #233
  16. - show progress display if on a tty, output more progress information, #303
  17. - factor out status output so it is consistent, fix surrogates removal,
  18. maybe fixes #309
  19. - benchmarks: test create, extract, list, delete, info, check, help, fixes #146
  20. - benchmarks: test with both the binary and the python code
  21. - archiver tests: test with both the binary and the python code, fixes #215
  22. - travis: use tox -r so it rebuilds the tox environments
  23. - vagrant: llfuse install on darwin needs pkgconfig installed
  24. - docs:
  25. - moved docs to borgbackup.readthedocs.org, #155
  26. - a lot of fixes and improvements, use mobile-friendly RTD standard theme
  27. - use zlib,6 compression in some examples, fixes #275
  28. - add missing rename usage to docs, closes #279
  29. - include the help offered by borg help <topic> in the usage docs, fixes #293
  30. - include a list of major changes compared to attic into README, fixes #224
  31. - add OS X install instructions, #197
  32. - more details about the release process, #260
  33. - fix linux glibc requirement (binaries built on debian7 now)
  34. - build: move usage and API generation to setup.py
  35. Version 0.27.0
  36. --------------
  37. New features:
  38. - "borg upgrade" command - attic -> borg one time converter / migration, #21
  39. - temporary hack to avoid using lots of disk space for chunks.archive.d, #235:
  40. To use it: rm -rf chunks.archive.d ; touch chunks.archive.d
  41. - respect XDG_CACHE_HOME, attic #181
  42. - add support for arbitrary SSH commands, attic #99
  43. - borg delete --cache-only REPO (only delete cache, not REPO), attic #123
  44. Bug fixes:
  45. - use Debian 7 (wheezy) to build pyinstaller borgbackup binaries, fixes slow
  46. down observed when running the Centos6-built binary on Ubuntu, #222
  47. - do not crash on empty lock.roster, fixes #232
  48. - fix multiple issues with the cache config version check, #234
  49. - fix segment entry header size check, attic #352
  50. plus other error handling improvements / code deduplication there.
  51. - always give segment and offset in repo IntegrityErrors
  52. Other changes:
  53. - stop producing binary wheels, remove docs about it, #147
  54. - docs:
  55. - add warning about prune
  56. - generate usage include files only as needed
  57. - development docs: add Vagrant section
  58. - update / improve / reformat FAQ
  59. - hint to single-file pyinstaller binaries from README
  60. Version 0.26.1
  61. --------------
  62. This is a minor update, just docs and new pyinstaller binaries.
  63. - docs update about python and binary requirements
  64. - better docs for --read-special, fix #220
  65. - re-built the binaries, fix #218 and #213 (glibc version issue)
  66. - update web site about single-file pyinstaller binaries
  67. Note: if you did a python-based installation, there is no need to upgrade.
  68. Version 0.26.0
  69. --------------
  70. New features:
  71. - Faster cache sync (do all in one pass, remove tar/compression stuff), #163
  72. - BORG_REPO env var to specify the default repo, #168
  73. - read special files as if they were regular files, #79
  74. - implement borg create --dry-run, attic issue #267
  75. - Normalize paths before pattern matching on OS X, #143
  76. - support OpenBSD and NetBSD (except xattrs/ACLs)
  77. - support / run tests on Python 3.5
  78. Bug fixes:
  79. - borg mount repo: use absolute path, attic #200, attic #137
  80. - chunker: use off_t to get 64bit on 32bit platform, #178
  81. - initialize chunker fd to -1, so it's not equal to STDIN_FILENO (0)
  82. - fix reaction to "no" answer at delete repo prompt, #182
  83. - setup.py: detect lz4.h header file location
  84. - to support python < 3.2.4, add less buggy argparse lib from 3.2.6 (#194)
  85. - fix for obtaining ``char *`` from temporary Python value (old code causes
  86. a compile error on Mint 17.2)
  87. - llfuse 0.41 install troubles on some platforms, require < 0.41
  88. (UnicodeDecodeError exception due to non-ascii llfuse setup.py)
  89. - cython code: add some int types to get rid of unspecific python add /
  90. subtract operations (avoid ``undefined symbol FPE_``... error on some platforms)
  91. - fix verbose mode display of stdin backup
  92. - extract: warn if a include pattern never matched, fixes #209,
  93. implement counters for Include/ExcludePatterns
  94. - archive names with slashes are invalid, attic issue #180
  95. - chunker: add a check whether the POSIX_FADV_DONTNEED constant is defined -
  96. fixes building on OpenBSD.
  97. Other changes:
  98. - detect inconsistency / corruption / hash collision, #170
  99. - replace versioneer with setuptools_scm, #106
  100. - docs:
  101. - pkg-config is needed for llfuse installation
  102. - be more clear about pruning, attic issue #132
  103. - unit tests:
  104. - xattr: ignore security.selinux attribute showing up
  105. - ext3 seems to need a bit more space for a sparse file
  106. - do not test lzma level 9 compression (avoid MemoryError)
  107. - work around strange mtime granularity issue on netbsd, fixes #204
  108. - ignore st_rdev if file is not a block/char device, fixes #203
  109. - stay away from the setgid and sticky mode bits
  110. - use Vagrant to do easy cross-platform testing (#196), currently:
  111. - Debian 7 "wheezy" 32bit, Debian 8 "jessie" 64bit
  112. - Ubuntu 12.04 32bit, Ubuntu 14.04 64bit
  113. - Centos 7 64bit
  114. - FreeBSD 10.2 64bit
  115. - OpenBSD 5.7 64bit
  116. - NetBSD 6.1.5 64bit
  117. - Darwin (OS X Yosemite)
  118. Version 0.25.0
  119. --------------
  120. Compatibility notes:
  121. - lz4 compression library (liblz4) is a new requirement (#156)
  122. - the new compression code is very compatible: as long as you stay with zlib
  123. compression, older borg releases will still be able to read data from a
  124. repo/archive made with the new code (note: this is not the case for the
  125. default "none" compression, use "zlib,0" if you want a "no compression" mode
  126. that can be read by older borg). Also the new code is able to read repos and
  127. archives made with older borg versions (for all zlib levels 0..9).
  128. Deprecations:
  129. - --compression N (with N being a number, as in 0.24) is deprecated.
  130. We keep the --compression 0..9 for now to not break scripts, but it is
  131. deprecated and will be removed later, so better fix your scripts now:
  132. --compression 0 (as in 0.24) is the same as --compression zlib,0 (now).
  133. BUT: if you do not want compression, you rather want --compression none
  134. (which is the default).
  135. --compression 1 (in 0.24) is the same as --compression zlib,1 (now)
  136. --compression 9 (in 0.24) is the same as --compression zlib,9 (now)
  137. New features:
  138. - create --compression none (default, means: do not compress, just pass through
  139. data "as is". this is more efficient than zlib level 0 as used in borg 0.24)
  140. - create --compression lz4 (super-fast, but not very high compression)
  141. - create --compression zlib,N (slower, higher compression, default for N is 6)
  142. - create --compression lzma,N (slowest, highest compression, default N is 6)
  143. - honor the nodump flag (UF_NODUMP) and do not backup such items
  144. - list --short just outputs a simple list of the files/directories in an archive
  145. Bug fixes:
  146. - fixed --chunker-params parameter order confusion / malfunction, fixes #154
  147. - close fds of segments we delete (during compaction)
  148. - close files which fell out the lrucache
  149. - fadvise DONTNEED now is only called for the byte range actually read, not for
  150. the whole file, fixes #158.
  151. - fix issue with negative "all archives" size, fixes #165
  152. - restore_xattrs: ignore if setxattr fails with EACCES, fixes #162
  153. Other changes:
  154. - remove fakeroot requirement for tests, tests run faster without fakeroot
  155. (test setup does not fail any more without fakeroot, so you can run with or
  156. without fakeroot), fixes #151 and #91.
  157. - more tests for archiver
  158. - recover_segment(): don't assume we have an fd for segment
  159. - lrucache refactoring / cleanup, add dispose function, py.test tests
  160. - generalize hashindex code for any key length (less hardcoding)
  161. - lock roster: catch file not found in remove() method and ignore it
  162. - travis CI: use requirements file
  163. - improved docs:
  164. - replace hack for llfuse with proper solution (install libfuse-dev)
  165. - update docs about compression
  166. - update development docs about fakeroot
  167. - internals: add some words about lock files / locking system
  168. - support: mention BountySource and for what it can be used
  169. - theme: use a lighter green
  170. - add pypi, wheel, dist package based install docs
  171. - split install docs into system-specific preparations and generic instructions
  172. Version 0.24.0
  173. --------------
  174. Incompatible changes (compared to 0.23):
  175. - borg now always issues --umask NNN option when invoking another borg via ssh
  176. on the repository server. By that, it's making sure it uses the same umask
  177. for remote repos as for local ones. Because of this, you must upgrade both
  178. server and client(s) to 0.24.
  179. - the default umask is 077 now (if you do not specify via --umask) which might
  180. be a different one as you used previously. The default umask avoids that
  181. you accidentally give access permissions for group and/or others to files
  182. created by borg (e.g. the repository).
  183. Deprecations:
  184. - "--encryption passphrase" mode is deprecated, see #85 and #97.
  185. See the new "--encryption repokey" mode for a replacement.
  186. New features:
  187. - borg create --chunker-params ... to configure the chunker, fixes #16
  188. (attic #302, attic #300, and somehow also #41).
  189. This can be used to reduce memory usage caused by chunk management overhead,
  190. so borg does not create a huge chunks index/repo index and eats all your RAM
  191. if you back up lots of data in huge files (like VM disk images).
  192. See docs/misc/create_chunker-params.txt for more information.
  193. - borg info now reports chunk counts in the chunk index.
  194. - borg create --compression 0..9 to select zlib compression level, fixes #66
  195. (attic #295).
  196. - borg init --encryption repokey (to store the encryption key into the repo),
  197. fixes #85
  198. - improve at-end error logging, always log exceptions and set exit_code=1
  199. - LoggedIO: better error checks / exceptions / exception handling
  200. - implement --remote-path to allow non-default-path borg locations, #125
  201. - implement --umask M and use 077 as default umask for better security, #117
  202. - borg check: give a named single archive to it, fixes #139
  203. - cache sync: show progress indication
  204. - cache sync: reimplement the chunk index merging in C
  205. Bug fixes:
  206. - fix segfault that happened for unreadable files (chunker: n needs to be a
  207. signed size_t), #116
  208. - fix the repair mode, #144
  209. - repo delete: add destroy to allowed rpc methods, fixes issue #114
  210. - more compatible repository locking code (based on mkdir), maybe fixes #92
  211. (attic #317, attic #201).
  212. - better Exception msg if no Borg is installed on the remote repo server, #56
  213. - create a RepositoryCache implementation that can cope with >2GiB,
  214. fixes attic #326.
  215. - fix Traceback when running check --repair, attic #232
  216. - clarify help text, fixes #73.
  217. - add help string for --no-files-cache, fixes #140
  218. Other changes:
  219. - improved docs:
  220. - added docs/misc directory for misc. writeups that won't be included
  221. "as is" into the html docs.
  222. - document environment variables and return codes (attic #324, attic #52)
  223. - web site: add related projects, fix web site url, IRC #borgbackup
  224. - Fedora/Fedora-based install instructions added to docs
  225. - Cygwin-based install instructions added to docs
  226. - updated AUTHORS
  227. - add FAQ entries about redundancy / integrity
  228. - clarify that borg extract uses the cwd as extraction target
  229. - update internals doc about chunker params, memory usage and compression
  230. - added docs about development
  231. - add some words about resource usage in general
  232. - document how to backup a raw disk
  233. - add note about how to run borg from virtual env
  234. - add solutions for (ll)fuse installation problems
  235. - document what borg check does, fixes #138
  236. - reorganize borgbackup.github.io sidebar, prev/next at top
  237. - deduplicate and refactor the docs / README.rst
  238. - use borg-tmp as prefix for temporary files / directories
  239. - short prune options without "keep-" are deprecated, do not suggest them
  240. - improved tox configuration
  241. - remove usage of unittest.mock, always use mock from pypi
  242. - use entrypoints instead of scripts, for better use of the wheel format and
  243. modern installs
  244. - add requirements.d/development.txt and modify tox.ini
  245. - use travis-ci for testing based on Linux and (new) OS X
  246. - use coverage.py, pytest-cov and codecov.io for test coverage support
  247. I forgot to list some stuff already implemented in 0.23.0, here they are:
  248. New features:
  249. - efficient archive list from manifest, meaning a big speedup for slow
  250. repo connections and "list <repo>", "delete <repo>", "prune" (attic #242,
  251. attic #167)
  252. - big speedup for chunks cache sync (esp. for slow repo connections), fixes #18
  253. - hashindex: improve error messages
  254. Other changes:
  255. - explicitly specify binary mode to open binary files
  256. - some easy micro optimizations
  257. Version 0.23.0
  258. --------------
  259. Incompatible changes (compared to attic, fork related):
  260. - changed sw name and cli command to "borg", updated docs
  261. - package name (and name in urls) uses "borgbackup" to have less collisions
  262. - changed repo / cache internal magic strings from ATTIC* to BORG*,
  263. changed cache location to .cache/borg/ - this means that it currently won't
  264. accept attic repos (see issue #21 about improving that)
  265. Bug fixes:
  266. - avoid defect python-msgpack releases, fixes attic #171, fixes attic #185
  267. - fix traceback when trying to do unsupported passphrase change, fixes attic #189
  268. - datetime does not like the year 10.000, fixes attic #139
  269. - fix "info" all archives stats, fixes attic #183
  270. - fix parsing with missing microseconds, fixes attic #282
  271. - fix misleading hint the fuse ImportError handler gave, fixes attic #237
  272. - check unpacked data from RPC for tuple type and correct length, fixes attic #127
  273. - fix Repository._active_txn state when lock upgrade fails
  274. - give specific path to xattr.is_enabled(), disable symlink setattr call that
  275. always fails
  276. - fix test setup for 32bit platforms, partial fix for attic #196
  277. - upgraded versioneer, PEP440 compliance, fixes attic #257
  278. New features:
  279. - less memory usage: add global option --no-cache-files
  280. - check --last N (only check the last N archives)
  281. - check: sort archives in reverse time order
  282. - rename repo::oldname newname (rename repository)
  283. - create -v output more informative
  284. - create --progress (backup progress indicator)
  285. - create --timestamp (utc string or reference file/dir)
  286. - create: if "-" is given as path, read binary from stdin
  287. - extract: if --stdout is given, write all extracted binary data to stdout
  288. - extract --sparse (simple sparse file support)
  289. - extra debug information for 'fread failed'
  290. - delete <repo> (deletes whole repo + local cache)
  291. - FUSE: reflect deduplication in allocated blocks
  292. - only allow whitelisted RPC calls in server mode
  293. - normalize source/exclude paths before matching
  294. - use posix_fadvise to not spoil the OS cache, fixes attic #252
  295. - toplevel error handler: show tracebacks for better error analysis
  296. - sigusr1 / sigint handler to print current file infos - attic PR #286
  297. - RPCError: include the exception args we get from remote
  298. Other changes:
  299. - source: misc. cleanups, pep8, style
  300. - docs and faq improvements, fixes, updates
  301. - cleanup crypto.pyx, make it easier to adapt to other AES modes
  302. - do os.fsync like recommended in the python docs
  303. - source: Let chunker optionally work with os-level file descriptor.
  304. - source: Linux: remove duplicate os.fsencode calls
  305. - source: refactor _open_rb code a bit, so it is more consistent / regular
  306. - source: refactor indicator (status) and item processing
  307. - source: use py.test for better testing, flake8 for code style checks
  308. - source: fix tox >=2.0 compatibility (test runner)
  309. - pypi package: add python version classifiers, add FreeBSD to platforms
  310. Attic Changelog
  311. ---------------
  312. Here you can see the full list of changes between each Attic release until Borg
  313. forked from Attic:
  314. Version 0.17
  315. ~~~~~~~~~~~~
  316. (bugfix release, released on X)
  317. - Fix hashindex ARM memory alignment issue (#309)
  318. - Improve hashindex error messages (#298)
  319. Version 0.16
  320. ~~~~~~~~~~~~
  321. (bugfix release, released on May 16, 2015)
  322. - Fix typo preventing the security confirmation prompt from working (#303)
  323. - Improve handling of systems with improperly configured file system encoding (#289)
  324. - Fix "All archives" output for attic info. (#183)
  325. - More user friendly error message when repository key file is not found (#236)
  326. - Fix parsing of iso 8601 timestamps with zero microseconds (#282)
  327. Version 0.15
  328. ~~~~~~~~~~~~
  329. (bugfix release, released on Apr 15, 2015)
  330. - xattr: Be less strict about unknown/unsupported platforms (#239)
  331. - Reduce repository listing memory usage (#163).
  332. - Fix BrokenPipeError for remote repositories (#233)
  333. - Fix incorrect behavior with two character directory names (#265, #268)
  334. - Require approval before accessing relocated/moved repository (#271)
  335. - Require approval before accessing previously unknown unencrypted repositories (#271)
  336. - Fix issue with hash index files larger than 2GB.
  337. - Fix Python 3.2 compatibility issue with noatime open() (#164)
  338. - Include missing pyx files in dist files (#168)
  339. Version 0.14
  340. ~~~~~~~~~~~~
  341. (feature release, released on Dec 17, 2014)
  342. - Added support for stripping leading path segments (#95)
  343. "attic extract --strip-segments X"
  344. - Add workaround for old Linux systems without acl_extended_file_no_follow (#96)
  345. - Add MacPorts' path to the default openssl search path (#101)
  346. - HashIndex improvements, eliminates unnecessary IO on low memory systems.
  347. - Fix "Number of files" output for attic info. (#124)
  348. - limit create file permissions so files aren't read while restoring
  349. - Fix issue with empty xattr values (#106)
  350. Version 0.13
  351. ~~~~~~~~~~~~
  352. (feature release, released on Jun 29, 2014)
  353. - Fix sporadic "Resource temporarily unavailable" when using remote repositories
  354. - Reduce file cache memory usage (#90)
  355. - Faster AES encryption (utilizing AES-NI when available)
  356. - Experimental Linux, OS X and FreeBSD ACL support (#66)
  357. - Added support for backup and restore of BSDFlags (OSX, FreeBSD) (#56)
  358. - Fix bug where xattrs on symlinks were not correctly restored
  359. - Added cachedir support. CACHEDIR.TAG compatible cache directories
  360. can now be excluded using ``--exclude-caches`` (#74)
  361. - Fix crash on extreme mtime timestamps (year 2400+) (#81)
  362. - Fix Python 3.2 specific lockf issue (EDEADLK)
  363. Version 0.12
  364. ~~~~~~~~~~~~
  365. (feature release, released on April 7, 2014)
  366. - Python 3.4 support (#62)
  367. - Various documentation improvements a new style
  368. - ``attic mount`` now supports mounting an entire repository not only
  369. individual archives (#59)
  370. - Added option to restrict remote repository access to specific path(s):
  371. ``attic serve --restrict-to-path X`` (#51)
  372. - Include "all archives" size information in "--stats" output. (#54)
  373. - Added ``--stats`` option to ``attic delete`` and ``attic prune``
  374. - Fixed bug where ``attic prune`` used UTC instead of the local time zone
  375. when determining which archives to keep.
  376. - Switch to SI units (Power of 1000 instead 1024) when printing file sizes
  377. Version 0.11
  378. ~~~~~~~~~~~~
  379. (feature release, released on March 7, 2014)
  380. - New "check" command for repository consistency checking (#24)
  381. - Documentation improvements
  382. - Fix exception during "attic create" with repeated files (#39)
  383. - New "--exclude-from" option for attic create/extract/verify.
  384. - Improved archive metadata deduplication.
  385. - "attic verify" has been deprecated. Use "attic extract --dry-run" instead.
  386. - "attic prune --hourly|daily|..." has been deprecated.
  387. Use "attic prune --keep-hourly|daily|..." instead.
  388. - Ignore xattr errors during "extract" if not supported by the filesystem. (#46)
  389. Version 0.10
  390. ~~~~~~~~~~~~
  391. (bugfix release, released on Jan 30, 2014)
  392. - Fix deadlock when extracting 0 sized files from remote repositories
  393. - "--exclude" wildcard patterns are now properly applied to the full path
  394. not just the file name part (#5).
  395. - Make source code endianness agnostic (#1)
  396. Version 0.9
  397. ~~~~~~~~~~~
  398. (feature release, released on Jan 23, 2014)
  399. - Remote repository speed and reliability improvements.
  400. - Fix sorting of segment names to ignore NFS left over files. (#17)
  401. - Fix incorrect display of time (#13)
  402. - Improved error handling / reporting. (#12)
  403. - Use fcntl() instead of flock() when locking repository/cache. (#15)
  404. - Let ssh figure out port/user if not specified so we don't override .ssh/config (#9)
  405. - Improved libcrypto path detection (#23).
  406. Version 0.8.1
  407. ~~~~~~~~~~~~~
  408. (bugfix release, released on Oct 4, 2013)
  409. - Fix segmentation fault issue.
  410. Version 0.8
  411. ~~~~~~~~~~~
  412. (feature release, released on Oct 3, 2013)
  413. - Fix xattr issue when backing up sshfs filesystems (#4)
  414. - Fix issue with excessive index file size (#6)
  415. - Support access of read only repositories.
  416. - New syntax to enable repository encryption:
  417. attic init --encryption="none|passphrase|keyfile".
  418. - Detect and abort if repository is older than the cache.
  419. Version 0.7
  420. ~~~~~~~~~~~
  421. (feature release, released on Aug 5, 2013)
  422. - Ported to FreeBSD
  423. - Improved documentation
  424. - Experimental: Archives mountable as fuse filesystems.
  425. - The "user." prefix is no longer stripped from xattrs on Linux
  426. Version 0.6.1
  427. ~~~~~~~~~~~~~
  428. (bugfix release, released on July 19, 2013)
  429. - Fixed an issue where mtime was not always correctly restored.
  430. Version 0.6
  431. ~~~~~~~~~~~
  432. First public release on July 9, 2013