changes.rst 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097
  1. Changelog
  2. =========
  3. Version 1.0.3 (not released yet)
  4. --------------------------------
  5. Bug fixes:
  6. - prune: ignore checkpoints (avoid that checkpoints are kept and completed
  7. archives are deleted in a prune run), #997
  8. - prune: fix bad commandline argument validator, #942
  9. - fix capabilities extraction on Linux (set xattrs last, after chown())
  10. - repository: fix commit tags being seen in data
  11. - when probing key files, do binary reads. avoids crash when non-borg binary
  12. files are located in borg's key files directory.
  13. - handle SIGTERM and make a clean exit - avoids orphan lock files.
  14. - repository cache: don't cache large objects (avoid using lots of temp. disk
  15. space), #1063
  16. Other changes:
  17. - Vagrantfile: OS X: update osxfuse / install lzma package, #933
  18. - setup.py: add check for platform_darwin.c
  19. - docs / help:
  20. - update readthedocs URLs, #991
  21. - add missing docs for "borg break-lock", #992
  22. - borg create help: add some words to about the archive name
  23. - borg create help: document format tags, #894
  24. Version 1.0.2
  25. -------------
  26. Bug fixes:
  27. - fix malfunction and potential corruption on (nowadays rather rare) big-endian
  28. architectures or bi-endian archs in (rare) BE mode. #886, #889
  29. cache resync / index merge was malfunctioning due to this, potentially
  30. leading to data loss. borg info had cosmetic issues (displayed wrong values).
  31. note: all (widespread) little-endian archs (like x86/x64) or bi-endian archs
  32. in (widespread) LE mode (like ARMEL, MIPSEL, ...) were NOT affected.
  33. - add overflow and range checks for 1st (special) uint32 of the hashindex
  34. values, switch from int32 to uint32.
  35. - fix so that refcount will never overflow, but just stick to max. value after
  36. a overflow would have occured.
  37. - borg delete: fix --cache-only for broken caches, #874
  38. Makes --cache-only idempotent: it won't fail if the cache is already deleted.
  39. - fixed borg create --one-file-system erroneously traversing into other
  40. filesystems (if starting fs device number was 0), #873
  41. - workround a bug in Linux fadvise FADV_DONTNEED, #907
  42. Other changes:
  43. - better test coverage for hashindex, incl. overflow testing, checking correct
  44. computations so endianness issues would be discovered.
  45. - reproducible doc for ProgressIndicator*, make the build reproducible.
  46. - use latest llfuse for vagrant machines
  47. - docs:
  48. - use /path/to/repo in examples, fixes #901
  49. - fix confusing usage of "repo" as archive name (use "arch")
  50. Version 1.0.1
  51. -------------
  52. New features:
  53. Usually there are no new features in a bugfix release, but these were added
  54. due to their high impact on security/safety/speed or because they are fixes
  55. also:
  56. - append-only mode for repositories, #809, #36 (see docs)
  57. - borg create: add --ignore-inode option to make borg detect unmodified files
  58. even if your filesystem does not have stable inode numbers (like sshfs and
  59. possibly CIFS).
  60. - add options --warning, --error, --critical for missing log levels, #826.
  61. it's not recommended to suppress warnings or errors, but the user may decide
  62. this on his own.
  63. note: --warning is not given to borg serve so a <= 1.0.0 borg will still
  64. work as server (it is not needed as it is the default).
  65. do not use --error or --critical when using a <= 1.0.0 borg server.
  66. Bug fixes:
  67. - fix silently skipping EIO, #748
  68. - add context manager for Repository (avoid orphan repository locks), #285
  69. - do not sleep for >60s while waiting for lock, #773
  70. - unpack file stats before passing to FUSE
  71. - fix build on illumos
  72. - don't try to backup doors or event ports (Solaris and derivates)
  73. - remove useless/misleading libc version display, #738
  74. - test suite: reset exit code of persistent archiver, #844
  75. - RemoteRepository: clean up pipe if remote open() fails
  76. - Remote: don't print tracebacks for Error exceptions handled downstream, #792
  77. - if BORG_PASSPHRASE is present but wrong, don't prompt for password, but fail
  78. instead, #791
  79. - ArchiveChecker: move "orphaned objects check skipped" to INFO log level, #826
  80. - fix capitalization, add ellipses, change log level to debug for 2 messages,
  81. #798
  82. Other changes:
  83. - update llfuse requirement, llfuse 1.0 works
  84. - update OS / dist packages on build machines, #717
  85. - prefer showing --info over -v in usage help, #859
  86. - docs:
  87. - fix cygwin requirements (gcc-g++)
  88. - document how to debug / file filesystem issues, #664
  89. - fix reproducible build of api docs
  90. - RTD theme: CSS !important overwrite, #727
  91. - Document logo font. Recreate logo png. Remove GIMP logo file.
  92. Version 1.0.0
  93. -------------
  94. The major release number change (0.x -> 1.x) indicates bigger incompatible
  95. changes, please read the compatibility notes, adapt / test your scripts and
  96. check your backup logs.
  97. Compatibility notes:
  98. - drop support for python 3.2 and 3.3, require 3.4 or 3.5, #221 #65 #490
  99. note: we provide binaries that include python 3.5.1 and everything else
  100. needed. they are an option in case you are stuck with < 3.4 otherwise.
  101. - change encryption to be on by default (using "repokey" mode)
  102. - moved keyfile keys from ~/.borg/keys to ~/.config/borg/keys,
  103. you can either move them manually or run "borg upgrade <REPO>"
  104. - remove support for --encryption=passphrase,
  105. use borg migrate-to-repokey to switch to repokey mode, #97
  106. - remove deprecated --compression <number>,
  107. use --compression zlib,<number> instead
  108. in case of 0, you could also use --compression none
  109. - remove deprecated --hourly/daily/weekly/monthly/yearly
  110. use --keep-hourly/daily/weekly/monthly/yearly instead
  111. - remove deprecated --do-not-cross-mountpoints,
  112. use --one-file-system instead
  113. - disambiguate -p option, #563:
  114. - -p now is same as --progress
  115. - -P now is same as --prefix
  116. - remove deprecated "borg verify",
  117. use "borg extract --dry-run" instead
  118. - cleanup environment variable semantics, #355
  119. the environment variables used to be "yes sayers" when set, this was
  120. conceptually generalized to "automatic answerers" and they just give their
  121. value as answer (as if you typed in that value when being asked).
  122. See the "usage" / "Environment Variables" section of the docs for details.
  123. - change the builtin default for --chunker-params, create 2MiB chunks, #343
  124. --chunker-params new default: 19,23,21,4095 - old default: 10,23,16,4095
  125. one of the biggest issues with borg < 1.0 (and also attic) was that it had a
  126. default target chunk size of 64kiB, thus it created a lot of chunks and thus
  127. also a huge chunk management overhead (high RAM and disk usage).
  128. please note that the new default won't change the chunks that you already
  129. have in your repository. the new big chunks do not deduplicate with the old
  130. small chunks, so expect your repo to grow at least by the size of every
  131. changed file and in the worst case (e.g. if your files cache was lost / is
  132. not used) by the size of every file (minus any compression you might use).
  133. in case you want to immediately see a much lower resource usage (RAM / disk)
  134. for chunks management, it might be better to start with a new repo than
  135. continuing in the existing repo (with an existing repo, you'ld have to wait
  136. until all archives with small chunks got pruned to see a lower resource
  137. usage).
  138. if you used the old --chunker-params default value (or if you did not use
  139. --chunker-params option at all) and you'ld like to continue using small
  140. chunks (and you accept the huge resource usage that comes with that), just
  141. explicitly use borg create --chunker-params=10,23,16,4095.
  142. - archive timestamps: the 'time' timestamp now refers to archive creation
  143. start time (was: end time), the new 'time_end' timestamp refers to archive
  144. creation end time. This might affect prune if your backups take rather long.
  145. if you give a timestamp via cli this is stored into 'time', therefore it now
  146. needs to mean archive creation start time.
  147. New features:
  148. - implement password roundtrip, #695
  149. Bug fixes:
  150. - remote end does not need cache nor keys directories, do not create them, #701
  151. - added retry counter for passwords, #703
  152. Other changes:
  153. - fix compiler warnings, #697
  154. - docs:
  155. - update README.rst to new changelog location in docs/changes.rst
  156. - add Teemu to AUTHORS
  157. - changes.rst: fix old chunker params, #698
  158. - FAQ: how to limit bandwidth
  159. Version 1.0.0rc2
  160. ----------------
  161. New features:
  162. - format options for location: user, pid, fqdn, hostname, now, utcnow, user
  163. - borg list --list-format
  164. - borg prune -v --list enables the keep/prune list output, #658
  165. Bug fixes:
  166. - fix _open_rb noatime handling, #657
  167. - add a simple archivename validator, #680
  168. - borg create --stats: show timestamps in localtime, use same labels/formatting
  169. as borg info, #651
  170. - llfuse compatibility fixes (now compatible with: 0.40, 0.41, 0.42)
  171. Other changes:
  172. - it is now possible to use "pip install borgbackup[fuse]" to automatically
  173. install the llfuse dependency using the correct version requirement
  174. for it. you still need to care about having installed the FUSE / build
  175. related OS package first, though, so that building llfuse can succeed.
  176. - Vagrant: drop Ubuntu Precise (12.04) - does not have Python >= 3.4
  177. - Vagrant: use pyinstaller v3.1.1 to build binaries
  178. - docs:
  179. - borg upgrade: add to docs that only LOCAL repos are supported
  180. - borg upgrade also handles borg 0.xx -> 1.0
  181. - use pip extras or requirements file to install llfuse
  182. - fix order in release process
  183. - updated usage docs and other minor / cosmetic fixes
  184. - verified borg examples in docs, #644
  185. - freebsd dependency installation and fuse configuration, #649
  186. - add example how to restore a raw device, #671
  187. - add a hint about the dev headers needed when installing from source
  188. - add examples for delete (and handle delete after list, before prune), #656
  189. - update example for borg create -v --stats (use iso datetime format), #663
  190. - added example to BORG_RSH docs
  191. - "connection closed by remote": add FAQ entry and point to issue #636
  192. Version 1.0.0rc1
  193. ----------------
  194. New features:
  195. - borg migrate-to-repokey ("passphrase" -> "repokey" encryption key mode)
  196. - implement --short for borg list REPO, #611
  197. - implement --list for borg extract (consistency with borg create)
  198. - borg serve: overwrite client's --restrict-to-path with ssh forced command's
  199. option value (but keep everything else from the client commandline), #544
  200. - use $XDG_CONFIG_HOME/keys for keyfile keys (~/.config/borg/keys), #515
  201. - "borg upgrade" moves the keyfile keys to the new location
  202. - display both archive creation start and end time in "borg info", #627
  203. Bug fixes:
  204. - normalize trailing slashes for the repository path, #606
  205. - Cache: fix exception handling in __init__, release lock, #610
  206. Other changes:
  207. - suppress unneeded exception context (PEP 409), simpler tracebacks
  208. - removed special code needed to deal with imperfections / incompatibilities /
  209. missing stuff in py 3.2/3.3, simplify code that can be done simpler in 3.4
  210. - removed some version requirements that were kept on old versions because
  211. newer did not support py 3.2 any more
  212. - use some py 3.4+ stdlib code instead of own/openssl/pypi code:
  213. - use os.urandom instead of own cython openssl RAND_bytes wrapper, #493
  214. - use hashlib.pbkdf2_hmac from py stdlib instead of own openssl wrapper
  215. - use hmac.compare_digest instead of == operator (constant time comparison)
  216. - use stat.filemode instead of homegrown code
  217. - use "mock" library from stdlib, #145
  218. - remove borg.support (with non-broken argparse copy), it is ok in 3.4+, #358
  219. - Vagrant: copy CHANGES.rst as symlink, #592
  220. - cosmetic code cleanups, add flake8 to tox/travis, #4
  221. - docs / help:
  222. - make "borg -h" output prettier, #591
  223. - slightly rephrase prune help
  224. - add missing example for --list option of borg create
  225. - quote exclude line that includes an asterisk to prevent shell expansion
  226. - fix dead link to license
  227. - delete Ubuntu Vivid, it is not supported anymore (EOL)
  228. - OS X binary does not work for older OS X releases, #629
  229. - borg serve's special support for forced/original ssh commands, #544
  230. - misc. updates and fixes
  231. Version 0.30.0
  232. --------------
  233. Compatibility notes:
  234. - you may need to use -v (or --info) more often to actually see output emitted
  235. at INFO log level (because it is suppressed at the default WARNING log level).
  236. See the "general" section in the usage docs.
  237. - for borg create, you need --list (additionally to -v) to see the long file
  238. list (was needed so you can have e.g. --stats alone without the long list)
  239. - see below about BORG_DELETE_I_KNOW_WHAT_I_AM_DOING (was:
  240. BORG_CHECK_I_KNOW_WHAT_I_AM_DOING)
  241. Bug fixes:
  242. - fix crash when using borg create --dry-run --keep-tag-files, #570
  243. - make sure teardown with cleanup happens for Cache and RepositoryCache,
  244. avoiding leftover locks and TEMP dir contents, #285 (partially), #548
  245. - fix locking KeyError, partial fix for #502
  246. - log stats consistently, #526
  247. - add abbreviated weekday to timestamp format, fixes #496
  248. - strip whitespace when loading exclusions from file
  249. - unset LD_LIBRARY_PATH before invoking ssh, fixes strange OpenSSL library
  250. version warning when using the borg binary, #514
  251. - add some error handling/fallback for C library loading, #494
  252. - added BORG_DELETE_I_KNOW_WHAT_I_AM_DOING for check in "borg delete", #503
  253. - remove unused "repair" rpc method name
  254. New features:
  255. - borg create: implement exclusions using regular expression patterns.
  256. - borg create: implement inclusions using patterns.
  257. - borg extract: support patterns, #361
  258. - support different styles for patterns:
  259. - fnmatch (`fm:` prefix, default when omitted), like borg <= 0.29.
  260. - shell (`sh:` prefix) with `*` not matching directory separators and
  261. `**/` matching 0..n directories
  262. - path prefix (`pp:` prefix, for unifying borg create pp1 pp2 into the
  263. patterns system), semantics like in borg <= 0.29
  264. - regular expression (`re:`), new!
  265. - --progress option for borg upgrade (#291) and borg delete <archive>
  266. - update progress indication more often (e.g. for borg create within big
  267. files or for borg check repo), #500
  268. - finer chunker granularity for items metadata stream, #547, #487
  269. - borg create --list now used (additionally to -v) to enable the verbose
  270. file list output
  271. - display borg version below tracebacks, #532
  272. Other changes:
  273. - hashtable size (and thus: RAM and disk consumption) follows a growth policy:
  274. grows fast while small, grows slower when getting bigger, #527
  275. - Vagrantfile: use pyinstaller 3.1 to build binaries, freebsd sqlite3 fix,
  276. fixes #569
  277. - no separate binaries for centos6 any more because the generic linux binaries
  278. also work on centos6 (or in general: on systems with a slightly older glibc
  279. than debian7
  280. - dev environment: require virtualenv<14.0 so we get a py32 compatible pip
  281. - docs:
  282. - add space-saving chunks.archive.d trick to FAQ
  283. - important: clarify -v and log levels in usage -> general, please read!
  284. - sphinx configuration: create a simple man page from usage docs
  285. - add a repo server setup example
  286. - disable unneeded SSH features in authorized_keys examples for security.
  287. - borg prune only knows "--keep-within" and not "--within"
  288. - add gource video to resources docs, #507
  289. - add netbsd install instructions
  290. - authors: make it more clear what refers to borg and what to attic
  291. - document standalone binary requirements, #499
  292. - rephrase the mailing list section
  293. - development docs: run build_api and build_usage before tagging release
  294. - internals docs: hash table max. load factor is 0.75 now
  295. - markup, typo, grammar, phrasing, clarifications and other fixes.
  296. - add gcc gcc-c++ to redhat/fedora/corora install docs, fixes #583
  297. Version 0.29.0
  298. --------------
  299. Compatibility notes:
  300. - when upgrading to 0.29.0 you need to upgrade client as well as server
  301. installations due to the locking and commandline interface changes otherwise
  302. you'll get an error msg about a RPC protocol mismatch or a wrong commandline
  303. option.
  304. if you run a server that needs to support both old and new clients, it is
  305. suggested that you have a "borg-0.28.2" and a "borg-0.29.0" command.
  306. clients then can choose via e.g. "borg --remote-path=borg-0.29.0 ...".
  307. - the default waiting time for a lock changed from infinity to 1 second for a
  308. better interactive user experience. if the repo you want to access is
  309. currently locked, borg will now terminate after 1s with an error message.
  310. if you have scripts that shall wait for the lock for a longer time, use
  311. --lock-wait N (with N being the maximum wait time in seconds).
  312. Bug fixes:
  313. - hash table tuning (better chosen hashtable load factor 0.75 and prime initial
  314. size of 1031 gave ~1000x speedup in some scenarios)
  315. - avoid creation of an orphan lock for one case, #285
  316. - --keep-tag-files: fix file mode and multiple tag files in one directory, #432
  317. - fixes for "borg upgrade" (attic repo converter), #466
  318. - remove --progress isatty magic (and also --no-progress option) again, #476
  319. - borg init: display proper repo URL
  320. - fix format of umask in help pages, #463
  321. New features:
  322. - implement --lock-wait, support timeout for UpgradableLock, #210
  323. - implement borg break-lock command, #157
  324. - include system info below traceback, #324
  325. - sane remote logging, remote stderr, #461:
  326. - remote log output: intercept it and log it via local logging system,
  327. with "Remote: " prefixed to message. log remote tracebacks.
  328. - remote stderr: output it to local stderr with "Remote: " prefixed.
  329. - add --debug and --info (same as --verbose) to set the log level of the
  330. builtin logging configuration (which otherwise defaults to warning), #426
  331. note: there are few messages emitted at DEBUG level currently.
  332. - optionally configure logging via env var BORG_LOGGING_CONF
  333. - add --filter option for status characters: e.g. to show only the added
  334. or modified files (and also errors), use "borg create -v --filter=AME ...".
  335. - more progress indicators, #394
  336. - use ISO-8601 date and time format, #375
  337. - "borg check --prefix" to restrict archive checking to that name prefix, #206
  338. Other changes:
  339. - hashindex_add C implementation (speed up cache re-sync for new archives)
  340. - increase FUSE read_size to 1024 (speed up metadata operations)
  341. - check/delete/prune --save-space: free unused segments quickly, #239
  342. - increase rpc protocol version to 2 (see also Compatibility notes), #458
  343. - silence borg by default (via default log level WARNING)
  344. - get rid of C compiler warnings, #391
  345. - upgrade OS X FUSE to 3.0.9 on the OS X binary build system
  346. - use python 3.5.1 to build binaries
  347. - docs:
  348. - new mailing list borgbackup@python.org, #468
  349. - readthedocs: color and logo improvements
  350. - load coverage icons over SSL (avoids mixed content)
  351. - more precise binary installation steps
  352. - update release procedure docs about OS X FUSE
  353. - FAQ entry about unexpected 'A' status for unchanged file(s), #403
  354. - add docs about 'E' file status
  355. - add "borg upgrade" docs, #464
  356. - add developer docs about output and logging
  357. - clarify encryption, add note about client-side encryption
  358. - add resources section, with videos, talks, presentations, #149
  359. - Borg moved to Arch Linux [community]
  360. - fix wrong installation instructions for archlinux
  361. Version 0.28.2
  362. --------------
  363. New features:
  364. - borg create --exclude-if-present TAGFILE - exclude directories that have the
  365. given file from the backup. You can additionally give --keep-tag-files to
  366. preserve just the directory roots and the tag-files (but not backup other
  367. directory contents), #395, attic #128, attic #142
  368. Other changes:
  369. - do not create docs sources at build time (just have them in the repo),
  370. completely remove have_cython() hack, do not use the "mock" library at build
  371. time, #384
  372. - avoid hidden import, make it easier for PyInstaller, easier fix for #218
  373. - docs:
  374. - add description of item flags / status output, fixes #402
  375. - explain how to regenerate usage and API files (build_api or
  376. build_usage) and when to commit usage files directly into git, #384
  377. - minor install docs improvements
  378. Version 0.28.1
  379. --------------
  380. Bug fixes:
  381. - do not try to build api / usage docs for production install,
  382. fixes unexpected "mock" build dependency, #384
  383. Other changes:
  384. - avoid using msgpack.packb at import time
  385. - fix formatting issue in changes.rst
  386. - fix build on readthedocs
  387. Version 0.28.0
  388. --------------
  389. Compatibility notes:
  390. - changed return codes (exit codes), see docs. in short:
  391. old: 0 = ok, 1 = error. now: 0 = ok, 1 = warning, 2 = error
  392. New features:
  393. - refactor return codes (exit codes), fixes #61
  394. - add --show-rc option enable "terminating with X status, rc N" output, fixes 58, #351
  395. - borg create backups atime and ctime additionally to mtime, fixes #317
  396. - extract: support atime additionally to mtime
  397. - FUSE: support ctime and atime additionally to mtime
  398. - support borg --version
  399. - emit a warning if we have a slow msgpack installed
  400. - borg list --prefix=thishostname- REPO, fixes #205
  401. - Debug commands (do not use except if you know what you do: debug-get-obj,
  402. debug-put-obj, debug-delete-obj, debug-dump-archive-items.
  403. Bug fixes:
  404. - setup.py: fix bug related to BORG_LZ4_PREFIX processing
  405. - fix "check" for repos that have incomplete chunks, fixes #364
  406. - borg mount: fix unlocking of repository at umount time, fixes #331
  407. - fix reading files without touching their atime, #334
  408. - non-ascii ACL fixes for Linux, FreeBSD and OS X, #277
  409. - fix acl_use_local_uid_gid() and add a test for it, attic #359
  410. - borg upgrade: do not upgrade repositories in place by default, #299
  411. - fix cascading failure with the index conversion code, #269
  412. - borg check: implement 'cmdline' archive metadata value decoding, #311
  413. - fix RobustUnpacker, it missed some metadata keys (new atime and ctime keys
  414. were missing, but also bsdflags). add check for unknown metadata keys.
  415. - create from stdin: also save atime, ctime (cosmetic)
  416. - use default_notty=False for confirmations, fixes #345
  417. - vagrant: fix msgpack installation on centos, fixes #342
  418. - deal with unicode errors for symlinks in same way as for regular files and
  419. have a helpful warning message about how to fix wrong locale setup, fixes #382
  420. - add ACL keys the RobustUnpacker must know about
  421. Other changes:
  422. - improve file size displays, more flexible size formatters
  423. - explicitly commit to the units standard, #289
  424. - archiver: add E status (means that an error occurred when processing this
  425. (single) item
  426. - do binary releases via "github releases", closes #214
  427. - create: use -x and --one-file-system (was: --do-not-cross-mountpoints), #296
  428. - a lot of changes related to using "logging" module and screen output, #233
  429. - show progress display if on a tty, output more progress information, #303
  430. - factor out status output so it is consistent, fix surrogates removal,
  431. maybe fixes #309
  432. - move away from RawConfigParser to ConfigParser
  433. - archive checker: better error logging, give chunk_id and sequence numbers
  434. (can be used together with borg debug-dump-archive-items).
  435. - do not mention the deprecated passphrase mode
  436. - emit a deprecation warning for --compression N (giving a just a number)
  437. - misc .coverragerc fixes (and coverage measurement improvements), fixes #319
  438. - refactor confirmation code, reduce code duplication, add tests
  439. - prettier error messages, fixes #307, #57
  440. - tests:
  441. - add a test to find disk-full issues, #327
  442. - travis: also run tests on Python 3.5
  443. - travis: use tox -r so it rebuilds the tox environments
  444. - test the generated pyinstaller-based binary by archiver unit tests, #215
  445. - vagrant: tests: announce whether fakeroot is used or not
  446. - vagrant: add vagrant user to fuse group for debianoid systems also
  447. - vagrant: llfuse install on darwin needs pkgconfig installed
  448. - vagrant: use pyinstaller from develop branch, fixes #336
  449. - benchmarks: test create, extract, list, delete, info, check, help, fixes #146
  450. - benchmarks: test with both the binary and the python code
  451. - archiver tests: test with both the binary and the python code, fixes #215
  452. - make basic test more robust
  453. - docs:
  454. - moved docs to borgbackup.readthedocs.org, #155
  455. - a lot of fixes and improvements, use mobile-friendly RTD standard theme
  456. - use zlib,6 compression in some examples, fixes #275
  457. - add missing rename usage to docs, closes #279
  458. - include the help offered by borg help <topic> in the usage docs, fixes #293
  459. - include a list of major changes compared to attic into README, fixes #224
  460. - add OS X install instructions, #197
  461. - more details about the release process, #260
  462. - fix linux glibc requirement (binaries built on debian7 now)
  463. - build: move usage and API generation to setup.py
  464. - update docs about return codes, #61
  465. - remove api docs (too much breakage on rtd)
  466. - borgbackup install + basics presentation (asciinema)
  467. - describe the current style guide in documentation
  468. - add section about debug commands
  469. - warn about not running out of space
  470. - add example for rename
  471. - improve chunker params docs, fixes #362
  472. - minor development docs update
  473. Version 0.27.0
  474. --------------
  475. New features:
  476. - "borg upgrade" command - attic -> borg one time converter / migration, #21
  477. - temporary hack to avoid using lots of disk space for chunks.archive.d, #235:
  478. To use it: rm -rf chunks.archive.d ; touch chunks.archive.d
  479. - respect XDG_CACHE_HOME, attic #181
  480. - add support for arbitrary SSH commands, attic #99
  481. - borg delete --cache-only REPO (only delete cache, not REPO), attic #123
  482. Bug fixes:
  483. - use Debian 7 (wheezy) to build pyinstaller borgbackup binaries, fixes slow
  484. down observed when running the Centos6-built binary on Ubuntu, #222
  485. - do not crash on empty lock.roster, fixes #232
  486. - fix multiple issues with the cache config version check, #234
  487. - fix segment entry header size check, attic #352
  488. plus other error handling improvements / code deduplication there.
  489. - always give segment and offset in repo IntegrityErrors
  490. Other changes:
  491. - stop producing binary wheels, remove docs about it, #147
  492. - docs:
  493. - add warning about prune
  494. - generate usage include files only as needed
  495. - development docs: add Vagrant section
  496. - update / improve / reformat FAQ
  497. - hint to single-file pyinstaller binaries from README
  498. Version 0.26.1
  499. --------------
  500. This is a minor update, just docs and new pyinstaller binaries.
  501. - docs update about python and binary requirements
  502. - better docs for --read-special, fix #220
  503. - re-built the binaries, fix #218 and #213 (glibc version issue)
  504. - update web site about single-file pyinstaller binaries
  505. Note: if you did a python-based installation, there is no need to upgrade.
  506. Version 0.26.0
  507. --------------
  508. New features:
  509. - Faster cache sync (do all in one pass, remove tar/compression stuff), #163
  510. - BORG_REPO env var to specify the default repo, #168
  511. - read special files as if they were regular files, #79
  512. - implement borg create --dry-run, attic issue #267
  513. - Normalize paths before pattern matching on OS X, #143
  514. - support OpenBSD and NetBSD (except xattrs/ACLs)
  515. - support / run tests on Python 3.5
  516. Bug fixes:
  517. - borg mount repo: use absolute path, attic #200, attic #137
  518. - chunker: use off_t to get 64bit on 32bit platform, #178
  519. - initialize chunker fd to -1, so it's not equal to STDIN_FILENO (0)
  520. - fix reaction to "no" answer at delete repo prompt, #182
  521. - setup.py: detect lz4.h header file location
  522. - to support python < 3.2.4, add less buggy argparse lib from 3.2.6 (#194)
  523. - fix for obtaining ``char *`` from temporary Python value (old code causes
  524. a compile error on Mint 17.2)
  525. - llfuse 0.41 install troubles on some platforms, require < 0.41
  526. (UnicodeDecodeError exception due to non-ascii llfuse setup.py)
  527. - cython code: add some int types to get rid of unspecific python add /
  528. subtract operations (avoid ``undefined symbol FPE_``... error on some platforms)
  529. - fix verbose mode display of stdin backup
  530. - extract: warn if a include pattern never matched, fixes #209,
  531. implement counters for Include/ExcludePatterns
  532. - archive names with slashes are invalid, attic issue #180
  533. - chunker: add a check whether the POSIX_FADV_DONTNEED constant is defined -
  534. fixes building on OpenBSD.
  535. Other changes:
  536. - detect inconsistency / corruption / hash collision, #170
  537. - replace versioneer with setuptools_scm, #106
  538. - docs:
  539. - pkg-config is needed for llfuse installation
  540. - be more clear about pruning, attic issue #132
  541. - unit tests:
  542. - xattr: ignore security.selinux attribute showing up
  543. - ext3 seems to need a bit more space for a sparse file
  544. - do not test lzma level 9 compression (avoid MemoryError)
  545. - work around strange mtime granularity issue on netbsd, fixes #204
  546. - ignore st_rdev if file is not a block/char device, fixes #203
  547. - stay away from the setgid and sticky mode bits
  548. - use Vagrant to do easy cross-platform testing (#196), currently:
  549. - Debian 7 "wheezy" 32bit, Debian 8 "jessie" 64bit
  550. - Ubuntu 12.04 32bit, Ubuntu 14.04 64bit
  551. - Centos 7 64bit
  552. - FreeBSD 10.2 64bit
  553. - OpenBSD 5.7 64bit
  554. - NetBSD 6.1.5 64bit
  555. - Darwin (OS X Yosemite)
  556. Version 0.25.0
  557. --------------
  558. Compatibility notes:
  559. - lz4 compression library (liblz4) is a new requirement (#156)
  560. - the new compression code is very compatible: as long as you stay with zlib
  561. compression, older borg releases will still be able to read data from a
  562. repo/archive made with the new code (note: this is not the case for the
  563. default "none" compression, use "zlib,0" if you want a "no compression" mode
  564. that can be read by older borg). Also the new code is able to read repos and
  565. archives made with older borg versions (for all zlib levels 0..9).
  566. Deprecations:
  567. - --compression N (with N being a number, as in 0.24) is deprecated.
  568. We keep the --compression 0..9 for now to not break scripts, but it is
  569. deprecated and will be removed later, so better fix your scripts now:
  570. --compression 0 (as in 0.24) is the same as --compression zlib,0 (now).
  571. BUT: if you do not want compression, you rather want --compression none
  572. (which is the default).
  573. --compression 1 (in 0.24) is the same as --compression zlib,1 (now)
  574. --compression 9 (in 0.24) is the same as --compression zlib,9 (now)
  575. New features:
  576. - create --compression none (default, means: do not compress, just pass through
  577. data "as is". this is more efficient than zlib level 0 as used in borg 0.24)
  578. - create --compression lz4 (super-fast, but not very high compression)
  579. - create --compression zlib,N (slower, higher compression, default for N is 6)
  580. - create --compression lzma,N (slowest, highest compression, default N is 6)
  581. - honor the nodump flag (UF_NODUMP) and do not backup such items
  582. - list --short just outputs a simple list of the files/directories in an archive
  583. Bug fixes:
  584. - fixed --chunker-params parameter order confusion / malfunction, fixes #154
  585. - close fds of segments we delete (during compaction)
  586. - close files which fell out the lrucache
  587. - fadvise DONTNEED now is only called for the byte range actually read, not for
  588. the whole file, fixes #158.
  589. - fix issue with negative "all archives" size, fixes #165
  590. - restore_xattrs: ignore if setxattr fails with EACCES, fixes #162
  591. Other changes:
  592. - remove fakeroot requirement for tests, tests run faster without fakeroot
  593. (test setup does not fail any more without fakeroot, so you can run with or
  594. without fakeroot), fixes #151 and #91.
  595. - more tests for archiver
  596. - recover_segment(): don't assume we have an fd for segment
  597. - lrucache refactoring / cleanup, add dispose function, py.test tests
  598. - generalize hashindex code for any key length (less hardcoding)
  599. - lock roster: catch file not found in remove() method and ignore it
  600. - travis CI: use requirements file
  601. - improved docs:
  602. - replace hack for llfuse with proper solution (install libfuse-dev)
  603. - update docs about compression
  604. - update development docs about fakeroot
  605. - internals: add some words about lock files / locking system
  606. - support: mention BountySource and for what it can be used
  607. - theme: use a lighter green
  608. - add pypi, wheel, dist package based install docs
  609. - split install docs into system-specific preparations and generic instructions
  610. Version 0.24.0
  611. --------------
  612. Incompatible changes (compared to 0.23):
  613. - borg now always issues --umask NNN option when invoking another borg via ssh
  614. on the repository server. By that, it's making sure it uses the same umask
  615. for remote repos as for local ones. Because of this, you must upgrade both
  616. server and client(s) to 0.24.
  617. - the default umask is 077 now (if you do not specify via --umask) which might
  618. be a different one as you used previously. The default umask avoids that
  619. you accidentally give access permissions for group and/or others to files
  620. created by borg (e.g. the repository).
  621. Deprecations:
  622. - "--encryption passphrase" mode is deprecated, see #85 and #97.
  623. See the new "--encryption repokey" mode for a replacement.
  624. New features:
  625. - borg create --chunker-params ... to configure the chunker, fixes #16
  626. (attic #302, attic #300, and somehow also #41).
  627. This can be used to reduce memory usage caused by chunk management overhead,
  628. so borg does not create a huge chunks index/repo index and eats all your RAM
  629. if you back up lots of data in huge files (like VM disk images).
  630. See docs/misc/create_chunker-params.txt for more information.
  631. - borg info now reports chunk counts in the chunk index.
  632. - borg create --compression 0..9 to select zlib compression level, fixes #66
  633. (attic #295).
  634. - borg init --encryption repokey (to store the encryption key into the repo),
  635. fixes #85
  636. - improve at-end error logging, always log exceptions and set exit_code=1
  637. - LoggedIO: better error checks / exceptions / exception handling
  638. - implement --remote-path to allow non-default-path borg locations, #125
  639. - implement --umask M and use 077 as default umask for better security, #117
  640. - borg check: give a named single archive to it, fixes #139
  641. - cache sync: show progress indication
  642. - cache sync: reimplement the chunk index merging in C
  643. Bug fixes:
  644. - fix segfault that happened for unreadable files (chunker: n needs to be a
  645. signed size_t), #116
  646. - fix the repair mode, #144
  647. - repo delete: add destroy to allowed rpc methods, fixes issue #114
  648. - more compatible repository locking code (based on mkdir), maybe fixes #92
  649. (attic #317, attic #201).
  650. - better Exception msg if no Borg is installed on the remote repo server, #56
  651. - create a RepositoryCache implementation that can cope with >2GiB,
  652. fixes attic #326.
  653. - fix Traceback when running check --repair, attic #232
  654. - clarify help text, fixes #73.
  655. - add help string for --no-files-cache, fixes #140
  656. Other changes:
  657. - improved docs:
  658. - added docs/misc directory for misc. writeups that won't be included
  659. "as is" into the html docs.
  660. - document environment variables and return codes (attic #324, attic #52)
  661. - web site: add related projects, fix web site url, IRC #borgbackup
  662. - Fedora/Fedora-based install instructions added to docs
  663. - Cygwin-based install instructions added to docs
  664. - updated AUTHORS
  665. - add FAQ entries about redundancy / integrity
  666. - clarify that borg extract uses the cwd as extraction target
  667. - update internals doc about chunker params, memory usage and compression
  668. - added docs about development
  669. - add some words about resource usage in general
  670. - document how to backup a raw disk
  671. - add note about how to run borg from virtual env
  672. - add solutions for (ll)fuse installation problems
  673. - document what borg check does, fixes #138
  674. - reorganize borgbackup.github.io sidebar, prev/next at top
  675. - deduplicate and refactor the docs / README.rst
  676. - use borg-tmp as prefix for temporary files / directories
  677. - short prune options without "keep-" are deprecated, do not suggest them
  678. - improved tox configuration
  679. - remove usage of unittest.mock, always use mock from pypi
  680. - use entrypoints instead of scripts, for better use of the wheel format and
  681. modern installs
  682. - add requirements.d/development.txt and modify tox.ini
  683. - use travis-ci for testing based on Linux and (new) OS X
  684. - use coverage.py, pytest-cov and codecov.io for test coverage support
  685. I forgot to list some stuff already implemented in 0.23.0, here they are:
  686. New features:
  687. - efficient archive list from manifest, meaning a big speedup for slow
  688. repo connections and "list <repo>", "delete <repo>", "prune" (attic #242,
  689. attic #167)
  690. - big speedup for chunks cache sync (esp. for slow repo connections), fixes #18
  691. - hashindex: improve error messages
  692. Other changes:
  693. - explicitly specify binary mode to open binary files
  694. - some easy micro optimizations
  695. Version 0.23.0
  696. --------------
  697. Incompatible changes (compared to attic, fork related):
  698. - changed sw name and cli command to "borg", updated docs
  699. - package name (and name in urls) uses "borgbackup" to have less collisions
  700. - changed repo / cache internal magic strings from ATTIC* to BORG*,
  701. changed cache location to .cache/borg/ - this means that it currently won't
  702. accept attic repos (see issue #21 about improving that)
  703. Bug fixes:
  704. - avoid defect python-msgpack releases, fixes attic #171, fixes attic #185
  705. - fix traceback when trying to do unsupported passphrase change, fixes attic #189
  706. - datetime does not like the year 10.000, fixes attic #139
  707. - fix "info" all archives stats, fixes attic #183
  708. - fix parsing with missing microseconds, fixes attic #282
  709. - fix misleading hint the fuse ImportError handler gave, fixes attic #237
  710. - check unpacked data from RPC for tuple type and correct length, fixes attic #127
  711. - fix Repository._active_txn state when lock upgrade fails
  712. - give specific path to xattr.is_enabled(), disable symlink setattr call that
  713. always fails
  714. - fix test setup for 32bit platforms, partial fix for attic #196
  715. - upgraded versioneer, PEP440 compliance, fixes attic #257
  716. New features:
  717. - less memory usage: add global option --no-cache-files
  718. - check --last N (only check the last N archives)
  719. - check: sort archives in reverse time order
  720. - rename repo::oldname newname (rename repository)
  721. - create -v output more informative
  722. - create --progress (backup progress indicator)
  723. - create --timestamp (utc string or reference file/dir)
  724. - create: if "-" is given as path, read binary from stdin
  725. - extract: if --stdout is given, write all extracted binary data to stdout
  726. - extract --sparse (simple sparse file support)
  727. - extra debug information for 'fread failed'
  728. - delete <repo> (deletes whole repo + local cache)
  729. - FUSE: reflect deduplication in allocated blocks
  730. - only allow whitelisted RPC calls in server mode
  731. - normalize source/exclude paths before matching
  732. - use posix_fadvise to not spoil the OS cache, fixes attic #252
  733. - toplevel error handler: show tracebacks for better error analysis
  734. - sigusr1 / sigint handler to print current file infos - attic PR #286
  735. - RPCError: include the exception args we get from remote
  736. Other changes:
  737. - source: misc. cleanups, pep8, style
  738. - docs and faq improvements, fixes, updates
  739. - cleanup crypto.pyx, make it easier to adapt to other AES modes
  740. - do os.fsync like recommended in the python docs
  741. - source: Let chunker optionally work with os-level file descriptor.
  742. - source: Linux: remove duplicate os.fsencode calls
  743. - source: refactor _open_rb code a bit, so it is more consistent / regular
  744. - source: refactor indicator (status) and item processing
  745. - source: use py.test for better testing, flake8 for code style checks
  746. - source: fix tox >=2.0 compatibility (test runner)
  747. - pypi package: add python version classifiers, add FreeBSD to platforms
  748. Attic Changelog
  749. ---------------
  750. Here you can see the full list of changes between each Attic release until Borg
  751. forked from Attic:
  752. Version 0.17
  753. ~~~~~~~~~~~~
  754. (bugfix release, released on X)
  755. - Fix hashindex ARM memory alignment issue (#309)
  756. - Improve hashindex error messages (#298)
  757. Version 0.16
  758. ~~~~~~~~~~~~
  759. (bugfix release, released on May 16, 2015)
  760. - Fix typo preventing the security confirmation prompt from working (#303)
  761. - Improve handling of systems with improperly configured file system encoding (#289)
  762. - Fix "All archives" output for attic info. (#183)
  763. - More user friendly error message when repository key file is not found (#236)
  764. - Fix parsing of iso 8601 timestamps with zero microseconds (#282)
  765. Version 0.15
  766. ~~~~~~~~~~~~
  767. (bugfix release, released on Apr 15, 2015)
  768. - xattr: Be less strict about unknown/unsupported platforms (#239)
  769. - Reduce repository listing memory usage (#163).
  770. - Fix BrokenPipeError for remote repositories (#233)
  771. - Fix incorrect behavior with two character directory names (#265, #268)
  772. - Require approval before accessing relocated/moved repository (#271)
  773. - Require approval before accessing previously unknown unencrypted repositories (#271)
  774. - Fix issue with hash index files larger than 2GB.
  775. - Fix Python 3.2 compatibility issue with noatime open() (#164)
  776. - Include missing pyx files in dist files (#168)
  777. Version 0.14
  778. ~~~~~~~~~~~~
  779. (feature release, released on Dec 17, 2014)
  780. - Added support for stripping leading path segments (#95)
  781. "attic extract --strip-segments X"
  782. - Add workaround for old Linux systems without acl_extended_file_no_follow (#96)
  783. - Add MacPorts' path to the default openssl search path (#101)
  784. - HashIndex improvements, eliminates unnecessary IO on low memory systems.
  785. - Fix "Number of files" output for attic info. (#124)
  786. - limit create file permissions so files aren't read while restoring
  787. - Fix issue with empty xattr values (#106)
  788. Version 0.13
  789. ~~~~~~~~~~~~
  790. (feature release, released on Jun 29, 2014)
  791. - Fix sporadic "Resource temporarily unavailable" when using remote repositories
  792. - Reduce file cache memory usage (#90)
  793. - Faster AES encryption (utilizing AES-NI when available)
  794. - Experimental Linux, OS X and FreeBSD ACL support (#66)
  795. - Added support for backup and restore of BSDFlags (OSX, FreeBSD) (#56)
  796. - Fix bug where xattrs on symlinks were not correctly restored
  797. - Added cachedir support. CACHEDIR.TAG compatible cache directories
  798. can now be excluded using ``--exclude-caches`` (#74)
  799. - Fix crash on extreme mtime timestamps (year 2400+) (#81)
  800. - Fix Python 3.2 specific lockf issue (EDEADLK)
  801. Version 0.12
  802. ~~~~~~~~~~~~
  803. (feature release, released on April 7, 2014)
  804. - Python 3.4 support (#62)
  805. - Various documentation improvements a new style
  806. - ``attic mount`` now supports mounting an entire repository not only
  807. individual archives (#59)
  808. - Added option to restrict remote repository access to specific path(s):
  809. ``attic serve --restrict-to-path X`` (#51)
  810. - Include "all archives" size information in "--stats" output. (#54)
  811. - Added ``--stats`` option to ``attic delete`` and ``attic prune``
  812. - Fixed bug where ``attic prune`` used UTC instead of the local time zone
  813. when determining which archives to keep.
  814. - Switch to SI units (Power of 1000 instead 1024) when printing file sizes
  815. Version 0.11
  816. ~~~~~~~~~~~~
  817. (feature release, released on March 7, 2014)
  818. - New "check" command for repository consistency checking (#24)
  819. - Documentation improvements
  820. - Fix exception during "attic create" with repeated files (#39)
  821. - New "--exclude-from" option for attic create/extract/verify.
  822. - Improved archive metadata deduplication.
  823. - "attic verify" has been deprecated. Use "attic extract --dry-run" instead.
  824. - "attic prune --hourly|daily|..." has been deprecated.
  825. Use "attic prune --keep-hourly|daily|..." instead.
  826. - Ignore xattr errors during "extract" if not supported by the filesystem. (#46)
  827. Version 0.10
  828. ~~~~~~~~~~~~
  829. (bugfix release, released on Jan 30, 2014)
  830. - Fix deadlock when extracting 0 sized files from remote repositories
  831. - "--exclude" wildcard patterns are now properly applied to the full path
  832. not just the file name part (#5).
  833. - Make source code endianness agnostic (#1)
  834. Version 0.9
  835. ~~~~~~~~~~~
  836. (feature release, released on Jan 23, 2014)
  837. - Remote repository speed and reliability improvements.
  838. - Fix sorting of segment names to ignore NFS left over files. (#17)
  839. - Fix incorrect display of time (#13)
  840. - Improved error handling / reporting. (#12)
  841. - Use fcntl() instead of flock() when locking repository/cache. (#15)
  842. - Let ssh figure out port/user if not specified so we don't override .ssh/config (#9)
  843. - Improved libcrypto path detection (#23).
  844. Version 0.8.1
  845. ~~~~~~~~~~~~~
  846. (bugfix release, released on Oct 4, 2013)
  847. - Fix segmentation fault issue.
  848. Version 0.8
  849. ~~~~~~~~~~~
  850. (feature release, released on Oct 3, 2013)
  851. - Fix xattr issue when backing up sshfs filesystems (#4)
  852. - Fix issue with excessive index file size (#6)
  853. - Support access of read only repositories.
  854. - New syntax to enable repository encryption:
  855. attic init --encryption="none|passphrase|keyfile".
  856. - Detect and abort if repository is older than the cache.
  857. Version 0.7
  858. ~~~~~~~~~~~
  859. (feature release, released on Aug 5, 2013)
  860. - Ported to FreeBSD
  861. - Improved documentation
  862. - Experimental: Archives mountable as fuse filesystems.
  863. - The "user." prefix is no longer stripped from xattrs on Linux
  864. Version 0.6.1
  865. ~~~~~~~~~~~~~
  866. (bugfix release, released on July 19, 2013)
  867. - Fixed an issue where mtime was not always correctly restored.
  868. Version 0.6
  869. ~~~~~~~~~~~
  870. First public release on July 9, 2013