changes.rst 119 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039
  1. .. _important_notes:
  2. Important notes
  3. ===============
  4. This section provides information about security and corruption issues.
  5. .. _broken_validator:
  6. Pre-1.1.4 potential data corruption issue
  7. -----------------------------------------
  8. A data corruption bug was discovered in borg check --repair, see issue #3444.
  9. This is a 1.1.x regression, releases < 1.1 (e.g. 1.0.x) are not affected.
  10. To avoid data loss, you must not run borg check --repair using an unfixed version
  11. of borg 1.1.x. The first official release that has the fix is 1.1.4.
  12. Package maintainers may have applied the fix to updated packages of 1.1.x (x<4)
  13. though, see the package maintainer's package changelog to make sure.
  14. If you never had missing item metadata chunks, the bug has not affected you
  15. even if you did run borg check --repair with an unfixed version.
  16. When borg check --repair tried to repair corrupt archives that miss item metadata
  17. chunks, the resync to valid metadata in still present item metadata chunks
  18. malfunctioned. This was due to a broken validator that considered all (even valid)
  19. item metadata as invalid. As they were considered invalid, borg discarded them.
  20. Practically, that means the affected files, directories or other fs objects were
  21. discarded from the archive.
  22. Due to the malfunction, the process was extremely slow, but if you let it
  23. complete, borg would have created a "repaired" archive that has lost a lot of items.
  24. If you interrupted borg check --repair because it was so strangely slow (killing
  25. borg somehow, e.g. Ctrl-C) the transaction was rolled back and no corruption occurred.
  26. The log message indicating the precondition for the bug triggering looks like:
  27. item metadata chunk missing [chunk: 001056_bdee87d...a3e50d]
  28. If you never had that in your borg check --repair runs, you're not affected.
  29. But if you're unsure or you actually have seen that, better check your archives.
  30. By just using "borg list repo::archive" you can see if all expected filesystem
  31. items are listed.
  32. .. _tam_vuln:
  33. Pre-1.0.9 manifest spoofing vulnerability (CVE-2016-10099)
  34. ----------------------------------------------------------
  35. A flaw in the cryptographic authentication scheme in Borg allowed an attacker
  36. to spoof the manifest. The attack requires an attacker to be able to
  37. 1. insert files (with no additional headers) into backups
  38. 2. gain write access to the repository
  39. This vulnerability does not disclose plaintext to the attacker, nor does it
  40. affect the authenticity of existing archives.
  41. The vulnerability allows an attacker to create a spoofed manifest (the list of archives).
  42. Creating plausible fake archives may be feasible for small archives, but is unlikely
  43. for large archives.
  44. The fix adds a separate authentication tag to the manifest. For compatibility
  45. with prior versions this authentication tag is *not* required by default
  46. for existing repositories. Repositories created with 1.0.9 and later require it.
  47. Steps you should take:
  48. 1. Upgrade all clients to 1.0.9 or later.
  49. 2. Run ``borg upgrade --tam <repository>`` *on every client* for *each* repository.
  50. 3. This will list all archives, including archive IDs, for easy comparison with your logs.
  51. 4. Done.
  52. Prior versions can access and modify repositories with this measure enabled, however,
  53. to 1.0.9 or later their modifications are indiscernible from an attack and will
  54. raise an error until the below procedure is followed. We are aware that this can
  55. be be annoying in some circumstances, but don't see a way to fix the vulnerability
  56. otherwise.
  57. In case a version prior to 1.0.9 is used to modify a repository where above procedure
  58. was completed, and now you get an error message from other clients:
  59. 1. ``borg upgrade --tam --force <repository>`` once with *any* client suffices.
  60. This attack is mitigated by:
  61. - Noting/logging ``borg list``, ``borg info``, or ``borg create --stats``, which
  62. contain the archive IDs.
  63. We are not aware of others having discovered, disclosed or exploited this vulnerability.
  64. Vulnerability time line:
  65. * 2016-11-14: Vulnerability and fix discovered during review of cryptography by Marian Beermann (@enkore)
  66. * 2016-11-20: First patch
  67. * 2016-12-20: Released fixed version 1.0.9
  68. * 2017-01-02: CVE was assigned
  69. * 2017-01-15: Released fixed version 1.1.0b3 (fix was previously only available from source)
  70. .. _attic013_check_corruption:
  71. Pre-1.0.9 potential data loss
  72. -----------------------------
  73. If you have archives in your repository that were made with attic <= 0.13
  74. (and later migrated to borg), running borg check would report errors in these
  75. archives. See issue #1837.
  76. The reason for this is a invalid (and useless) metadata key that was
  77. always added due to a bug in these old attic versions.
  78. If you run borg check --repair, things escalate quickly: all archive items
  79. with invalid metadata will be killed. Due to that attic bug, that means all
  80. items in all archives made with these old attic versions.
  81. Pre-1.0.4 potential repo corruption
  82. -----------------------------------
  83. Some external errors (like network or disk I/O errors) could lead to
  84. corruption of the backup repository due to issue #1138.
  85. A sign that this happened is if "E" status was reported for a file that can
  86. not be explained by problems with the source file. If you still have logs from
  87. "borg create -v --list", you can check for "E" status.
  88. Here is what could cause corruption and what you can do now:
  89. 1) I/O errors (e.g. repo disk errors) while writing data to repo.
  90. This could lead to corrupted segment files.
  91. Fix::
  92. # check for corrupt chunks / segments:
  93. borg check -v --repository-only REPO
  94. # repair the repo:
  95. borg check -v --repository-only --repair REPO
  96. # make sure everything is fixed:
  97. borg check -v --repository-only REPO
  98. 2) Unreliable network / unreliable connection to the repo.
  99. This could lead to archive metadata corruption.
  100. Fix::
  101. # check for corrupt archives:
  102. borg check -v --archives-only REPO
  103. # delete the corrupt archives:
  104. borg delete --force REPO::CORRUPT_ARCHIVE
  105. # make sure everything is fixed:
  106. borg check -v --archives-only REPO
  107. 3) In case you want to do more intensive checking.
  108. The best check that everything is ok is to run a dry-run extraction::
  109. borg extract -v --dry-run REPO::ARCHIVE
  110. .. _changelog:
  111. Changelog
  112. =========
  113. Version 1.1.4 (not released yet)
  114. --------------------------------
  115. Compatibility notes:
  116. - When upgrading from borg 1.0.x to 1.1.x, please note:
  117. - read all the compatibility notes for 1.1.0*, starting from 1.1.0b1.
  118. - borg upgrade: you do not need to and you also should not run it.
  119. - borg might ask some security-related questions once after upgrading.
  120. You can answer them either manually or via environment variable.
  121. One known case is if you use unencrypted repositories, then it will ask
  122. about a unknown unencrypted repository one time.
  123. - your first backup with 1.1.x might be significantly slower (it might
  124. completely read, chunk, hash a lot files) - this is due to the
  125. --files-cache mode change (and happens every time you change mode).
  126. You can avoid the one-time slowdown by using the pre-1.1.0rc4-compatible
  127. mode (but that is less safe for detecting changed files than the default).
  128. See the --files-cache docs for details.
  129. - borg 1.1.4 changes:
  130. - zstd compression is new in borg 1.1.4, older borg can't handle it.
  131. - new minimum requirements for the compression libraries - if the required
  132. versions (header and lib) can't be found at build time, bundled code will
  133. be used:
  134. - added: libzstd >= 1.3.0 (bundled: 1.3.2)
  135. - updated: liblz4 >= 1.7.0 / r129 (bundled: 1.8.0)
  136. Fixes:
  137. - data corruption fix: fix for borg check --repair malfunction, #3444.
  138. See the more detailled notes close to the top of this document.
  139. - also delete security dir when deleting a repo, #3427
  140. - fix building the "borg prune" man page, #3398
  141. New features:
  142. - added zstd compression. try it!
  143. - added placeholder for fqdn in reverse notation
  144. Other changes:
  145. - list help topics when invalid topic is requested
  146. - add auto-generated docs for borg config
  147. - don't generate HTML docs page for borgfs, #3404
  148. - refactored build of the compress and crypto.low_level extensions, #3415:
  149. - move some lib/build related code to setup_{zstd,lz4,b2}.py
  150. - bundle lz4 1.8.0 (requirement: >= 1.7.0 / r129)
  151. - bundle zstd 1.3.2 (requirement: >= 1.3.0)
  152. - blake2 was already bundled
  153. - rename BORG_LZ4_PREFIX env var to BORG_LIBLZ4_PREFIX for better consistency:
  154. we also have BORG_LIBB2_PREFIX and BORG_LIBZSTD_PREFIX now.
  155. - add prefer_system_lib* = True settings to setup.py - by default the build
  156. will prefer a shared library over the bundled code, if library and headers
  157. can be found and meet the minimum requirements.
  158. - fix lz4 deprecation warning, requires lz4 >= 1.7.0 (r129)
  159. - add parens for C preprocessor macro argument usages (did not cause malfunction)
  160. - exclude broken pytest 3.3.0 release
  161. Version 1.1.3 (2017-11-27)
  162. --------------------------
  163. Fixes:
  164. - Security Fix for CVE-2017-15914: Incorrect implementation of access controls
  165. allows remote users to override repository restrictions in Borg servers.
  166. A user able to access a remote Borg SSH server is able to circumvent access
  167. controls post-authentication.
  168. Affected releases: 1.1.0, 1.1.1, 1.1.2. Releases 1.0.x are NOT affected.
  169. - crc32: deal with unaligned buffer, add tests - this broke borg on older ARM
  170. CPUs that can not deal with unaligned 32bit memory accesses and raise a bus
  171. error in such cases. the fix might also improve performance on some CPUs as
  172. all 32bit memory accesses by the crc32 code are properly aligned now. #3317
  173. - mount: fixed support of --consider-part-files and do not show .borg_part_N
  174. files by default in the mounted FUSE filesystem. #3347
  175. - fixed cache/repo timestamp inconsistency message, highlight that information
  176. is obtained from security dir (deleting the cache will not bypass this error
  177. in case the user knows this is a legitimate repo).
  178. - borgfs: don't show sub-command in borgfs help, #3287
  179. - create: show an error when --dry-run and --stats are used together, #3298
  180. New features:
  181. - mount: added exclusion group options and paths, #2138
  182. Reused some code to support similar options/paths as borg extract offers -
  183. making good use of these to only mount a smaller subset of dirs/files can
  184. speed up mounting a lot and also will consume way less memory.
  185. borg mount [options] repo_or_archive mountpoint path [paths...]
  186. paths: you can just give some "root paths" (like for borg extract) to
  187. only partially populate the FUSE filesystem.
  188. new options: --exclude[-from], --pattern[s-from], --strip-components
  189. - create/extract: support st_birthtime on platforms supporting it, #3272
  190. - add "borg config" command for querying/setting/deleting config values, #3304
  191. Other changes:
  192. - clean up and simplify packaging (only package committed files, do not install
  193. .c/.h/.pyx files)
  194. - docs:
  195. - point out tuning options for borg create, #3239
  196. - add instructions for using ntfsclone, zerofree, #81
  197. - move image backup-related FAQ entries to a new page
  198. - clarify key aliases for borg list --format, #3111
  199. - mention break-lock in checkpointing FAQ entry, #3328
  200. - document sshfs rename workaround, #3315
  201. - add FAQ about removing files from existing archives
  202. - add FAQ about different prune policies
  203. - usage and man page for borgfs, #3216
  204. - clarify create --stats duration vs. wall time, #3301
  205. - clarify encrypted key format for borg key export, #3296
  206. - update release checklist about security fixes
  207. - document good and problematic option placements, fix examples, #3356
  208. - add note about using --nobsdflags to avoid speed penalty related to
  209. bsdflags, #3239
  210. - move most of support section to www.borgbackup.org
  211. Version 1.1.2 (2017-11-05)
  212. --------------------------
  213. Fixes:
  214. - fix KeyError crash when talking to borg server < 1.0.7, #3244
  215. - extract: set bsdflags last (include immutable flag), #3263
  216. - create: don't do stat() call on excluded-norecurse directory, fix exception
  217. handling for stat() call, #3209
  218. - create --stats: do not count data volume twice when checkpointing, #3224
  219. - recreate: move chunks_healthy when excluding hardlink master, #3228
  220. - recreate: get rid of chunks_healthy when rechunking (does not match), #3218
  221. - check: get rid of already existing not matching chunks_healthy metadata, #3218
  222. - list: fix stdout broken pipe handling, #3245
  223. - list/diff: remove tag-file options (not used), #3226
  224. New features:
  225. - bash, zsh and fish shell auto-completions, see scripts/shell_completions/
  226. - added BORG_CONFIG_DIR env var, #3083
  227. Other changes:
  228. - docs:
  229. - clarify using a blank passphrase in keyfile mode
  230. - mention "!" (exclude-norecurse) type in "patterns" help
  231. - document to first heal before running borg recreate to re-chunk stuff,
  232. because that will have to get rid of chunks_healthy metadata.
  233. - more than 23 is not supported for CHUNK_MAX_EXP, #3115
  234. - borg does not respect nodump flag by default any more
  235. - clarify same-filesystem requirement for borg upgrade, #2083
  236. - update / rephrase cygwin / WSL status, #3174
  237. - improve docs about --stats, #3260
  238. - vagrant: openindiana new clang package
  239. Already contained in 1.1.1 (last minute fix):
  240. - arg parsing: fix fallback function, refactor, #3205. This is a fixup
  241. for #3155, which was broken on at least python <= 3.4.2.
  242. Version 1.1.1 (2017-10-22)
  243. --------------------------
  244. Compatibility notes:
  245. - The deprecated --no-files-cache is not a global/common option any more,
  246. but only available for borg create (it is not needed for anything else).
  247. Use --files-cache=disabled instead of --no-files-cache.
  248. - The nodump flag ("do not backup this file") is not honoured any more by
  249. default because this functionality (esp. if it happened by error or
  250. unexpected) was rather confusing and unexplainable at first to users.
  251. If you want that "do not backup NODUMP-flagged files" behaviour, use:
  252. borg create --exclude-nodump ...
  253. Fixes:
  254. - borg recreate: correctly compute part file sizes. fixes cosmetic, but
  255. annoying issue as borg check complains about size inconsistencies of part
  256. files in affected archives. you can solve that by running borg recreate on
  257. these archives, see also #3157.
  258. - bsdflags support: do not open BLK/CHR/LNK files, avoid crashes and
  259. slowness, #3130
  260. - recreate: don't crash on attic archives w/o time_end, #3109
  261. - don't crash on repository filesystems w/o hardlink support, #3107
  262. - don't crash in first part of truncate_and_unlink, #3117
  263. - fix server-side IndexError crash with clients < 1.0.7, #3192
  264. - don't show traceback if only a global option is given, show help, #3142
  265. - cache: use SaveFile for more safety, #3158
  266. - init: fix wrong encryption choices in command line parser, fix missing
  267. "authenticated-blake2", #3103
  268. - move --no-files-cache from common to borg create options, #3146
  269. - fix detection of non-local path (failed on ..filename), #3108
  270. - logging with fileConfig: set json attr on "borg" logger, #3114
  271. - fix crash with relative BORG_KEY_FILE, #3197
  272. - show excluded dir with "x" for tagged dirs / caches, #3189
  273. New features:
  274. - create: --nobsdflags and --exclude-nodump options, #3160
  275. - extract: --nobsdflags option, #3160
  276. Other changes:
  277. - remove annoying hardlinked symlinks warning, #3175
  278. - vagrant: use self-made FreeBSD 10.3 box, #3022
  279. - travis: don't brew update, hopefully fixes #2532
  280. - docs:
  281. - readme: -e option is required in borg 1.1
  282. - add example showing --show-version --show-rc
  283. - use --format rather than --list-format (deprecated) in example
  284. - update docs about hardlinked symlinks limitation
  285. Version 1.1.0 (2017-10-07)
  286. --------------------------
  287. Compatibility notes:
  288. - borg command line: do not put options in between positional arguments
  289. This sometimes works (e.g. it worked in borg 1.0.x), but can easily stop
  290. working if we make positional arguments optional (like it happened for
  291. borg create's "paths" argument in 1.1). There are also places in borg 1.0
  292. where we do that, so it doesn't work there in general either. #3356
  293. Good: borg create -v --stats repo::archive path
  294. Good: borg create repo::archive path -v --stats
  295. Bad: borg create repo::archive -v --stats path
  296. Fixes:
  297. - fix LD_LIBRARY_PATH restoration for subprocesses, #3077
  298. - "auto" compression: make sure expensive compression is actually better,
  299. otherwise store lz4 compressed data we already computed.
  300. Other changes:
  301. - docs:
  302. - FAQ: we do not implement futile attempts of ETA / progress displays
  303. - manpage: fix typos, update homepage
  304. - implement simple "issue" role for manpage generation, #3075
  305. Version 1.1.0rc4 (2017-10-01)
  306. -----------------------------
  307. Compatibility notes:
  308. - A borg server >= 1.1.0rc4 does not support borg clients 1.1.0b3-b5. #3033
  309. - The files cache is now controlled differently and has a new default mode:
  310. - the files cache now uses ctime by default for improved file change
  311. detection safety. You can still use mtime for more speed and less safety.
  312. - --ignore-inode is deprecated (use --files-cache=... without "inode")
  313. - --no-files-cache is deprecated (use --files-cache=disabled)
  314. New features:
  315. - --files-cache - implement files cache mode control, #911
  316. You can now control the files cache mode using this option:
  317. --files-cache={ctime,mtime,size,inode,rechunk,disabled}
  318. (only some combinations are supported). See the docs for details.
  319. Fixes:
  320. - remote progress/logging: deal with partial lines, #2637
  321. - remote progress: flush json mode output
  322. - fix subprocess environments, #3050 (and more)
  323. Other changes:
  324. - remove client_supports_log_v3 flag, #3033
  325. - exclude broken Cython 0.27(.0) in requirements, #3066
  326. - vagrant:
  327. - upgrade to FUSE for macOS 3.7.1
  328. - use Python 3.5.4 to build the binaries
  329. - docs:
  330. - security: change-passphrase only changes the passphrase, #2990
  331. - fixed/improved borg create --compression examples, #3034
  332. - add note about metadata dedup and --no[ac]time, #2518
  333. - twitter account @borgbackup now, better visible, #2948
  334. - simplified rate limiting wrapper in FAQ
  335. Version 1.1.0rc3 (2017-09-10)
  336. -----------------------------
  337. New features:
  338. - delete: support naming multiple archives, #2958
  339. Fixes:
  340. - repo cleanup/write: invalidate cached FDs, #2982
  341. - fix datetime.isoformat() microseconds issues, #2994
  342. - recover_segment: use mmap(), lower memory needs, #2987
  343. Other changes:
  344. - with-lock: close segment file before invoking subprocess
  345. - keymanager: don't depend on optional readline module, #2976
  346. - docs:
  347. - fix macOS keychain integration command
  348. - show/link new screencasts in README, #2936
  349. - document utf-8 locale requirement for json mode, #2273
  350. - vagrant: clean up shell profile init, user name, #2977
  351. - test_detect_attic_repo: don't test mount, #2975
  352. - add debug logging for repository cleanup
  353. Version 1.1.0rc2 (2017-08-28)
  354. -----------------------------
  355. Compatibility notes:
  356. - list: corrected mix-up of "isomtime" and "mtime" formats. Previously,
  357. "isomtime" was the default but produced a verbose human format,
  358. while "mtime" produced a ISO-8601-like format.
  359. The behaviours have been swapped (so "mtime" is human, "isomtime" is ISO-like),
  360. and the default is now "mtime".
  361. "isomtime" is now a real ISO-8601 format ("T" between date and time, not a space).
  362. New features:
  363. - None.
  364. Fixes:
  365. - list: fix weird mixup of mtime/isomtime
  366. - create --timestamp: set start time, #2957
  367. - ignore corrupt files cache, #2939
  368. - migrate locks to child PID when daemonize is used
  369. - fix exitcode of borg serve, #2910
  370. - only compare contents when chunker params match, #2899
  371. - umount: try fusermount, then try umount, #2863
  372. Other changes:
  373. - JSON: use a more standard ISO 8601 datetime format, #2376
  374. - cache: write_archive_index: truncate_and_unlink on error, #2628
  375. - detect non-upgraded Attic repositories, #1933
  376. - delete various nogil and threading related lines
  377. - coala / pylint related improvements
  378. - docs:
  379. - renew asciinema/screencasts, #669
  380. - create: document exclusion through nodump, #2949
  381. - minor formatting fixes
  382. - tar: tarpipe example
  383. - improve "with-lock" and "info" docs, #2869
  384. - detail how to use macOS/GNOME/KDE keyrings for repo passwords, #392
  385. - travis: only short-circuit docs-only changes for pull requests
  386. - vagrant:
  387. - netbsd: bash is already installed
  388. - fix netbsd version in PKG_PATH
  389. - add exe location to PATH when we build an exe
  390. Version 1.1.0rc1 (2017-07-24)
  391. -----------------------------
  392. Compatibility notes:
  393. - delete: removed short option for --cache-only
  394. New features:
  395. - support borg list repo --format {comment} {bcomment} {end}, #2081
  396. - key import: allow reading from stdin, #2760
  397. Fixes:
  398. - with-lock: avoid creating segment files that might be overwritten later, #1867
  399. - prune: fix checkpoints processing with --glob-archives
  400. - FUSE: versions view: keep original file extension at end, #2769
  401. - fix --last, --first: do not accept values <= 0,
  402. fix reversed archive ordering with --last
  403. - include testsuite data (attic.tar.gz) when installing the package
  404. - use limited unpacker for outer key, for manifest (both security precautions),
  405. #2174 #2175
  406. - fix bashism in shell scripts, #2820, #2816
  407. - cleanup endianness detection, create _endian.h,
  408. fixes build on alpine linux, #2809
  409. - fix crash with --no-cache-sync (give known chunk size to chunk_incref), #2853
  410. Other changes:
  411. - FUSE: versions view: linear numbering by archive time
  412. - split up interval parsing from filtering for --keep-within, #2610
  413. - add a basic .editorconfig, #2734
  414. - use archive creation time as mtime for FUSE mount, #2834
  415. - upgrade FUSE for macOS (osxfuse) from 3.5.8 to 3.6.3, #2706
  416. - hashindex: speed up by replacing modulo with "if" to check for wraparound
  417. - coala checker / pylint: fixed requirements and .coafile, more ignores
  418. - borg upgrade: name backup directories as 'before-upgrade', #2811
  419. - add .mailmap
  420. - some minor changes suggested by lgtm.com
  421. - docs:
  422. - better explanation of the --ignore-inode option relevance, #2800
  423. - fix openSUSE command and add openSUSE section
  424. - simplify ssh authorized_keys file using "restrict", add legacy note, #2121
  425. - mount: show usage of archive filters
  426. - mount: add repository example, #2462
  427. - info: update and add examples, #2765
  428. - prune: include example
  429. - improved style / formatting
  430. - improved/fixed segments_per_dir docs
  431. - recreate: fix wrong "remove unwanted files" example
  432. - reference list of status chars in borg recreate --filter description
  433. - update source-install docs about doc build dependencies, #2795
  434. - cleanup installation docs
  435. - file system requirements, update segs per dir
  436. - fix checkpoints/parts reference in FAQ, #2859
  437. - code:
  438. - hashindex: don't pass side effect into macro
  439. - crypto low_level: don't mutate local bytes()
  440. - use dash_open function to open file or "-" for stdin/stdout
  441. - archiver: argparse cleanup / refactoring
  442. - shellpattern: add match_end arg
  443. - tests: added some additional unit tests, some fixes, #2700 #2710
  444. - vagrant: fix setup of cygwin, add Debian 9 "stretch"
  445. - travis: don't perform full travis build on docs-only changes, #2531
  446. Version 1.1.0b6 (2017-06-18)
  447. ----------------------------
  448. Compatibility notes:
  449. - Running "borg init" via a "borg serve --append-only" server will *not* create
  450. an append-only repository anymore. Use "borg init --append-only" to initialize
  451. an append-only repository.
  452. - Repositories in the "repokey" and "repokey-blake2" modes with an empty passphrase
  453. are now treated as unencrypted repositories for security checks (e.g.
  454. BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK).
  455. Previously there would be no prompts nor messages if an unknown repository
  456. in one of these modes with an empty passphrase was encountered. This would
  457. allow an attacker to swap a repository, if one assumed that the lack of
  458. password prompts was due to a set BORG_PASSPHRASE.
  459. Since the "trick" does not work if BORG_PASSPHRASE is set, this does generally
  460. not affect scripts.
  461. - Repositories in the "authenticated" mode are now treated as the unencrypted
  462. repositories they are.
  463. - The client-side temporary repository cache now holds unencrypted data for better speed.
  464. - borg init: removed the short form of --append-only (-a).
  465. - borg upgrade: removed the short form of --inplace (-i).
  466. New features:
  467. - reimplemented the RepositoryCache, size-limited caching of decrypted repo
  468. contents, integrity checked via xxh64. #2515
  469. - reduced space usage of chunks.archive.d. Existing caches are migrated during
  470. a cache sync. #235 #2638
  471. - integrity checking using xxh64 for important files used by borg, #1101:
  472. - repository: index and hints files
  473. - cache: chunks and files caches, chunks.archive.d
  474. - improve cache sync speed, #1729
  475. - create: new --no-cache-sync option
  476. - add repository mandatory feature flags infrastructure, #1806
  477. - Verify most operations against SecurityManager. Location, manifest timestamp
  478. and key types are now checked for almost all non-debug commands. #2487
  479. - implement storage quotas, #2517
  480. - serve: add --restrict-to-repository, #2589
  481. - BORG_PASSCOMMAND: use external tool providing the key passphrase, #2573
  482. - borg export-tar, #2519
  483. - list: --json-lines instead of --json for archive contents, #2439
  484. - add --debug-profile option (and also "borg debug convert-profile"), #2473
  485. - implement --glob-archives/-a, #2448
  486. - normalize authenticated key modes for better naming consistency:
  487. - rename "authenticated" to "authenticated-blake2" (uses blake2b)
  488. - implement "authenticated" mode (uses hmac-sha256)
  489. Fixes:
  490. - hashindex: read/write indices >2 GiB on 32bit systems, better error
  491. reporting, #2496
  492. - repository URLs: implement IPv6 address support and also more informative
  493. error message when parsing fails.
  494. - mount: check whether llfuse is installed before asking for passphrase, #2540
  495. - mount: do pre-mount checks before opening repository, #2541
  496. - FUSE:
  497. - fix crash if empty (None) xattr is read, #2534
  498. - fix read(2) caching data in metadata cache
  499. - fix negative uid/gid crash (fix crash when mounting archives
  500. of external drives made on cygwin), #2674
  501. - redo ItemCache, on top of object cache
  502. - use decrypted cache
  503. - remove unnecessary normpaths
  504. - serve: ignore --append-only when initializing a repository (borg init), #2501
  505. - serve: fix incorrect type of exception_short for Errors, #2513
  506. - fix --exclude and --exclude-from recursing into directories, #2469
  507. - init: don't allow creating nested repositories, #2563
  508. - --json: fix encryption[mode] not being the cmdline name
  509. - remote: propagate Error.traceback correctly
  510. - fix remote logging and progress, #2241
  511. - implement --debug-topic for remote servers
  512. - remote: restore "Remote:" prefix (as used in 1.0.x)
  513. - rpc negotiate: enable v3 log protocol only for supported clients
  514. - fix --progress and logging in general for remote
  515. - fix parse_version, add tests, #2556
  516. - repository: truncate segments (and also some other files) before unlinking, #2557
  517. - recreate: keep timestamps as in original archive, #2384
  518. - recreate: if single archive is not processed, exit 2
  519. - patterns: don't recurse with ! / --exclude for pf:, #2509
  520. - cache sync: fix n^2 behaviour in lookup_name
  521. - extract: don't write to disk with --stdout (affected non-regular-file items), #2645
  522. - hashindex: implement KeyError, more tests
  523. Other changes:
  524. - remote: show path in PathNotAllowed
  525. - consider repokey w/o passphrase == unencrypted, #2169
  526. - consider authenticated mode == unencrypted, #2503
  527. - restrict key file names, #2560
  528. - document follow_symlinks requirements, check libc, use stat and chown
  529. with follow_symlinks=False, #2507
  530. - support common options on the main command, #2508
  531. - support common options on mid-level commands (e.g. borg *key* export)
  532. - make --progress a common option
  533. - increase DEFAULT_SEGMENTS_PER_DIR to 1000
  534. - chunker: fix invalid use of types (function only used by tests)
  535. - chunker: don't do uint32_t >> 32
  536. - FUSE:
  537. - add instrumentation (--debug and SIGUSR1/SIGINFO)
  538. - reduced memory usage for repository mounts by lazily instantiating archives
  539. - improved archive load times
  540. - info: use CacheSynchronizer & HashIndex.stats_against (better performance)
  541. - docs:
  542. - init: document --encryption as required
  543. - security: OpenSSL usage
  544. - security: used implementations; note python libraries
  545. - security: security track record of OpenSSL and msgpack
  546. - patterns: document denial of service (regex, wildcards)
  547. - init: note possible denial of service with "none" mode
  548. - init: document SHA extension is supported in OpenSSL and thus SHA is
  549. faster on AMD Ryzen than blake2b.
  550. - book: use A4 format, new builder option format.
  551. - book: create appendices
  552. - data structures: explain repository compaction
  553. - data structures: add chunk layout diagram
  554. - data structures: integrity checking
  555. - data structures: demingle cache and repo index
  556. - Attic FAQ: separate section for attic stuff
  557. - FAQ: I get an IntegrityError or similar - what now?
  558. - FAQ: Can I use Borg on SMR hard drives?, #2252
  559. - FAQ: specify "using inline shell scripts"
  560. - add systemd warning regarding placeholders, #2543
  561. - xattr: document API
  562. - add docs/misc/borg-data-flow data flow chart
  563. - debugging facilities
  564. - README: how to help the project, #2550
  565. - README: add bountysource badge, #2558
  566. - fresh new theme + tweaking
  567. - logo: vectorized (PDF and SVG) versions
  568. - frontends: use headlines - you can link to them
  569. - mark --pattern, --patterns-from as experimental
  570. - highlight experimental features in online docs
  571. - remove regex based pattern examples, #2458
  572. - nanorst for "borg help TOPIC" and --help
  573. - split deployment
  574. - deployment: hosting repositories
  575. - deployment: automated backups to a local hard drive
  576. - development: vagrant, windows10 requirements
  577. - development: update docs remarks
  578. - split usage docs, #2627
  579. - usage: avoid bash highlight, [options] instead of <options>
  580. - usage: add benchmark page
  581. - helpers: truncate_and_unlink doc
  582. - don't suggest to leak BORG_PASSPHRASE
  583. - internals: columnize rather long ToC [webkit fixup]
  584. internals: manifest & feature flags
  585. - internals: more HashIndex details
  586. - internals: fix ASCII art equations
  587. - internals: edited obj graph related sections a bit
  588. - internals: layers image + description
  589. - fix way too small figures in pdf
  590. - index: disable syntax highlight (bash)
  591. - improve options formatting, fix accidental block quotes
  592. - testing / checking:
  593. - add support for using coala, #1366
  594. - testsuite: add ArchiverCorruptionTestCase
  595. - do not test logger name, #2504
  596. - call setup_logging after destroying logging config
  597. - testsuite.archiver: normalise pytest.raises vs. assert_raises
  598. - add test for preserved intermediate folder permissions, #2477
  599. - key: add round-trip test
  600. - remove attic dependency of the tests, #2505
  601. - enable remote tests on cygwin
  602. - tests: suppress tar's future timestamp warning
  603. - cache sync: add more refcount tests
  604. - repository: add tests, including corruption tests
  605. - vagrant:
  606. - control VM cpus and pytest workers via env vars VMCPUS and XDISTN
  607. - update cleaning workdir
  608. - fix openbsd shell
  609. - add OpenIndiana
  610. - packaging:
  611. - binaries: don't bundle libssl
  612. - setup.py clean to remove compiled files
  613. - fail in borg package if version metadata is very broken (setuptools_scm)
  614. - repo / code structure:
  615. - create borg.algorithms and borg.crypto packages
  616. - algorithms: rename crc32 to checksums
  617. - move patterns to module, #2469
  618. - gitignore: complete paths for src/ excludes
  619. - cache: extract CacheConfig class
  620. - implement IntegrityCheckedFile + Detached variant, #2502 #1688
  621. - introduce popen_with_error_handling to handle common user errors
  622. Version 1.1.0b5 (2017-04-30)
  623. ----------------------------
  624. Compatibility notes:
  625. - BORG_HOSTNAME_IS_UNIQUE is now on by default.
  626. - removed --compression-from feature
  627. - recreate: add --recompress flag, unify --always-recompress and
  628. --recompress
  629. Fixes:
  630. - catch exception for os.link when hardlinks are not supported, #2405
  631. - borg rename / recreate: expand placeholders, #2386
  632. - generic support for hardlinks (files, devices, FIFOs), #2324
  633. - extract: also create parent dir for device files, if needed, #2358
  634. - extract: if a hardlink master is not in the to-be-extracted subset,
  635. the "x" status was not displayed for it, #2351
  636. - embrace y2038 issue to support 32bit platforms: clamp timestamps to int32,
  637. #2347
  638. - verify_data: fix IntegrityError handling for defect chunks, #2442
  639. - allow excluding parent and including child, #2314
  640. Other changes:
  641. - refactor compression decision stuff
  642. - change global compression default to lz4 as well, to be consistent
  643. with --compression defaults.
  644. - placeholders: deny access to internals and other unspecified stuff
  645. - clearer error message for unrecognized placeholder
  646. - more clear exception if borg check does not help, #2427
  647. - vagrant: upgrade FUSE for macOS to 3.5.8, #2346
  648. - linux binary builds: get rid of glibc 2.13 dependency, #2430
  649. - docs:
  650. - placeholders: document escaping
  651. - serve: env vars in original commands are ignored
  652. - tell what kind of hardlinks we support
  653. - more docs about compression
  654. - LICENSE: use canonical formulation
  655. ("copyright holders and contributors" instead of "author")
  656. - document borg init behaviour via append-only borg serve, #2440
  657. - be clear about what buzhash is used for, #2390
  658. - add hint about chunker params, #2421
  659. - clarify borg upgrade docs, #2436
  660. - FAQ to explain warning when running borg check --repair, #2341
  661. - repository file system requirements, #2080
  662. - pre-install considerations
  663. - misc. formatting / crossref fixes
  664. - tests:
  665. - enhance travis setuptools_scm situation
  666. - add extra test for the hashindex
  667. - fix invalid param issue in benchmarks
  668. These belong to 1.1.0b4 release, but did not make it into changelog by then:
  669. - vagrant: increase memory for parallel testing
  670. - lz4 compress: lower max. buffer size, exception handling
  671. - add docstring to do_benchmark_crud
  672. - patterns help: mention path full-match in intro
  673. Version 1.1.0b4 (2017-03-27)
  674. ----------------------------
  675. Compatibility notes:
  676. - init: the --encryption argument is mandatory now (there are several choices)
  677. - moved "borg migrate-to-repokey" to "borg key migrate-to-repokey".
  678. - "borg change-passphrase" is deprecated, use "borg key change-passphrase"
  679. instead.
  680. - the --exclude-if-present option now supports tagging a folder with any
  681. filesystem object type (file, folder, etc), instead of expecting only files
  682. as tags, #1999
  683. - the --keep-tag-files option has been deprecated in favor of the new
  684. --keep-exclude-tags, to account for the change mentioned above.
  685. - use lz4 compression by default, #2179
  686. New features:
  687. - JSON API to make developing frontends and automation easier
  688. (see :ref:`json_output`)
  689. - add JSON output to commands: `borg create/list/info --json ...`.
  690. - add --log-json option for structured logging output.
  691. - add JSON progress information, JSON support for confirmations (yes()).
  692. - add two new options --pattern and --patterns-from as discussed in #1406
  693. - new path full match pattern style (pf:) for very fast matching, #2334
  694. - add 'debug dump-manifest' and 'debug dump-archive' commands
  695. - add 'borg benchmark crud' command, #1788
  696. - new 'borg delete --force --force' to delete severely corrupted archives, #1975
  697. - info: show utilization of maximum archive size, #1452
  698. - list: add dsize and dcsize keys, #2164
  699. - paperkey.html: Add interactive html template for printing key backups.
  700. - key export: add qr html export mode
  701. - securely erase config file (which might have old encryption key), #2257
  702. - archived file items: add size to metadata, 'borg extract' and 'borg check' do
  703. check the file size for consistency, FUSE uses precomputed size from Item.
  704. Fixes:
  705. - fix remote speed regression introduced in 1.1.0b3, #2185
  706. - fix regression handling timestamps beyond 2262 (revert bigint removal),
  707. introduced in 1.1.0b3, #2321
  708. - clamp (nano)second values to unproblematic range, #2304
  709. - hashindex: rebuild hashtable if we have too little empty buckets
  710. (performance fix), #2246
  711. - Location regex: fix bad parsing of wrong syntax
  712. - ignore posix_fadvise errors in repository.py, #2095
  713. - borg rpc: use limited msgpack.Unpacker (security precaution), #2139
  714. - Manifest: Make sure manifest timestamp is strictly monotonically increasing.
  715. - create: handle BackupOSError on a per-path level in one spot
  716. - create: clarify -x option / meaning of "same filesystem"
  717. - create: don't create hard link refs to failed files
  718. - archive check: detect and fix missing all-zero replacement chunks, #2180
  719. - files cache: update inode number when --ignore-inode is used, #2226
  720. - fix decompression exceptions crashing ``check --verify-data`` and others
  721. instead of reporting integrity error, #2224 #2221
  722. - extract: warning for unextracted big extended attributes, #2258, #2161
  723. - mount: umount on SIGINT/^C when in foreground
  724. - mount: handle invalid hard link refs
  725. - mount: fix huge RAM consumption when mounting a repository (saves number of
  726. archives * 8 MiB), #2308
  727. - hashindex: detect mingw byte order #2073
  728. - hashindex: fix wrong skip_hint on hashindex_set when encountering tombstones,
  729. the regression was introduced in #1748
  730. - fix ChunkIndex.__contains__ assertion for big-endian archs
  731. - fix borg key/debug/benchmark crashing without subcommand, #2240
  732. - Location: accept //servername/share/path
  733. - correct/refactor calculation of unique/non-unique chunks
  734. - extract: fix missing call to ProgressIndicator.finish
  735. - prune: fix error msg, it is --keep-within, not --within
  736. - fix "auto" compression mode bug (not compressing), #2331
  737. - fix symlink item fs size computation, #2344
  738. Other changes:
  739. - remote repository: improved async exception processing, #2255 #2225
  740. - with --compression auto,C, only use C if lz4 achieves at least 3% compression
  741. - PatternMatcher: only normalize path once, #2338
  742. - hashindex: separate endian-dependent defs from endian detection
  743. - migrate-to-repokey: ask using canonical_path() as we do everywhere else.
  744. - SyncFile: fix use of fd object after close
  745. - make LoggedIO.close_segment reentrant
  746. - creating a new segment: use "xb" mode, #2099
  747. - redo key_creator, key_factory, centralise key knowledge, #2272
  748. - add return code functions, #2199
  749. - list: only load cache if needed
  750. - list: files->items, clarifications
  751. - list: add "name" key for consistency with info cmd
  752. - ArchiveFormatter: add "start" key for compatibility with "info"
  753. - RemoteRepository: account rx/tx bytes
  754. - setup.py build_usage/build_man/build_api fixes
  755. - Manifest.in: simplify, exclude .so, .dll and .orig, #2066
  756. - FUSE: get rid of chunk accounting, st_blocks = ceil(size / blocksize).
  757. - tests:
  758. - help python development by testing 3.6-dev
  759. - test for borg delete --force
  760. - vagrant:
  761. - freebsd: some fixes, #2067
  762. - darwin64: use osxfuse 3.5.4 for tests / to build binaries
  763. - darwin64: improve VM settings
  764. - use python 3.5.3 to build binaries, #2078
  765. - upgrade pyinstaller from 3.1.1+ to 3.2.1
  766. - pyinstaller: use fixed AND freshly compiled bootloader, #2002
  767. - pyinstaller: automatically builds bootloader if missing
  768. - docs:
  769. - create really nice man pages
  770. - faq: mention --remote-ratelimit in bandwidth limit question
  771. - fix caskroom link, #2299
  772. - docs/security: reiterate that RPC in Borg does no networking
  773. - docs/security: counter tracking, #2266
  774. - docs/development: update merge remarks
  775. - address SSH batch mode in docs, #2202 #2270
  776. - add warning about running build_usage on Python >3.4, #2123
  777. - one link per distro in the installation page
  778. - improve --exclude-if-present and --keep-exclude-tags, #2268
  779. - improve automated backup script in doc, #2214
  780. - improve remote-path description
  781. - update docs for create -C default change (lz4)
  782. - document relative path usage, #1868
  783. - document snapshot usage, #2178
  784. - corrected some stuff in internals+security
  785. - internals: move toctree to after the introduction text
  786. - clarify metadata kind, manifest ops
  787. - key enc: correct / clarify some stuff, link to internals/security
  788. - datas: enc: 1.1.x mas different MACs
  789. - datas: enc: correct factual error -- no nonce involved there.
  790. - make internals.rst an index page and edit it a bit
  791. - add "Cryptography in Borg" and "Remote RPC protocol security" sections
  792. - document BORG_HOSTNAME_IS_UNIQUE, #2087
  793. - FAQ by categories as proposed by @anarcat in #1802
  794. - FAQ: update Which file types, attributes, etc. are *not* preserved?
  795. - development: new branching model for git repository
  796. - development: define "ours" merge strategy for auto-generated files
  797. - create: move --exclude note to main doc
  798. - create: move item flags to main doc
  799. - fix examples using borg init without -e/--encryption
  800. - list: don't print key listings in fat (html + man)
  801. - remove Python API docs (were very incomplete, build problems on RTFD)
  802. - added FAQ section about backing up root partition
  803. Version 1.0.10 (2017-02-13)
  804. ---------------------------
  805. Bug fixes:
  806. - Manifest timestamps are now monotonically increasing,
  807. this fixes issues when the system clock jumps backwards
  808. or is set inconsistently across computers accessing the same repository, #2115
  809. - Fixed testing regression in 1.0.10rc1 that lead to a hard dependency on
  810. py.test >= 3.0, #2112
  811. New features:
  812. - "key export" can now generate a printable HTML page with both a QR code and
  813. a human-readable "paperkey" representation (and custom text) through the
  814. ``--qr-html`` option.
  815. The same functionality is also available through `paperkey.html <paperkey.html>`_,
  816. which is the same HTML page generated by ``--qr-html``. It works with existing
  817. "key export" files and key files.
  818. Other changes:
  819. - docs:
  820. - language clarification - "borg create --one-file-system" option does not respect
  821. mount points, but considers different file systems instead, #2141
  822. - setup.py: build_api: sort file list for determinism
  823. Version 1.1.0b3 (2017-01-15)
  824. ----------------------------
  825. Compatibility notes:
  826. - borg init: removed the default of "--encryption/-e", #1979
  827. This was done so users do a informed decision about -e mode.
  828. Bug fixes:
  829. - borg recreate: don't rechunkify unless explicitly told so
  830. - borg info: fixed bug when called without arguments, #1914
  831. - borg init: fix free space check crashing if disk is full, #1821
  832. - borg debug delete/get obj: fix wrong reference to exception
  833. - fix processing of remote ~/ and ~user/ paths (regressed since 1.1.0b1), #1759
  834. - posix platform module: only build / import on non-win32 platforms, #2041
  835. New features:
  836. - new CRC32 implementations that are much faster than the zlib one used previously, #1970
  837. - add blake2b key modes (use blake2b as MAC). This links against system libb2,
  838. if possible, otherwise uses bundled code
  839. - automatically remove stale locks - set BORG_HOSTNAME_IS_UNIQUE env var
  840. to enable stale lock killing. If set, stale locks in both cache and
  841. repository are deleted. #562 #1253
  842. - borg info <repo>: print general repo information, #1680
  843. - borg check --first / --last / --sort / --prefix, #1663
  844. - borg mount --first / --last / --sort / --prefix, #1542
  845. - implement "health" item formatter key, #1749
  846. - BORG_SECURITY_DIR to remember security related infos outside the cache.
  847. Key type, location and manifest timestamp checks now survive cache
  848. deletion. This also means that you can now delete your cache and avoid
  849. previous warnings, since Borg can still tell it's safe.
  850. - implement BORG_NEW_PASSPHRASE, #1768
  851. Other changes:
  852. - borg recreate:
  853. - remove special-cased --dry-run
  854. - update --help
  855. - remove bloat: interruption blah, autocommit blah, resuming blah
  856. - re-use existing checkpoint functionality
  857. - archiver tests: add check_cache tool - lints refcounts
  858. - fixed cache sync performance regression from 1.1.0b1 onwards, #1940
  859. - syncing the cache without chunks.archive.d (see :ref:`disable_archive_chunks`)
  860. now avoids any merges and is thus faster, #1940
  861. - borg check --verify-data: faster due to linear on-disk-order scan
  862. - borg debug-xxx commands removed, we use "debug xxx" subcommands now, #1627
  863. - improve metadata handling speed
  864. - shortcut hashindex_set by having hashindex_lookup hint about address
  865. - improve / add progress displays, #1721
  866. - check for index vs. segment files object count mismatch
  867. - make RPC protocol more extensible: use named parameters.
  868. - RemoteRepository: misc. code cleanups / refactors
  869. - clarify cache/repository README file
  870. - docs:
  871. - quickstart: add a comment about other (remote) filesystems
  872. - quickstart: only give one possible ssh url syntax, all others are
  873. documented in usage chapter.
  874. - mention file://
  875. - document repo URLs / archive location
  876. - clarify borg diff help, #980
  877. - deployment: synthesize alternative --restrict-to-path example
  878. - improve cache / index docs, esp. files cache docs, #1825
  879. - document using "git merge 1.0-maint -s recursive -X rename-threshold=20%"
  880. for avoiding troubles when merging the 1.0-maint branch into master.
  881. - tests:
  882. - FUSE tests: catch ENOTSUP on freebsd
  883. - FUSE tests: test troublesome xattrs last
  884. - fix byte range error in test, #1740
  885. - use monkeypatch to set env vars, but only on pytest based tests.
  886. - point XDG_*_HOME to temp dirs for tests, #1714
  887. - remove all BORG_* env vars from the outer environment
  888. Version 1.0.10rc1 (2017-01-29)
  889. ------------------------------
  890. Bug fixes:
  891. - borg serve: fix transmission data loss of pipe writes, #1268
  892. This affects only the cygwin platform (not Linux, BSD, OS X).
  893. - Avoid triggering an ObjectiveFS bug in xattr retrieval, #1992
  894. - When running out of buffer memory when reading xattrs, only skip the
  895. current file, #1993
  896. - Fixed "borg upgrade --tam" crashing with unencrypted repositories. Since
  897. :ref:`the issue <tam_vuln>` is not relevant for unencrypted repositories,
  898. it now does nothing and prints an error, #1981.
  899. - Fixed change-passphrase crashing with unencrypted repositories, #1978
  900. - Fixed "borg check repo::archive" indicating success if "archive" does not exist, #1997
  901. - borg check: print non-exit-code warning if --last or --prefix aren't fulfilled
  902. - fix bad parsing of wrong repo location syntax
  903. - create: don't create hard link refs to failed files,
  904. mount: handle invalid hard link refs, #2092
  905. - detect mingw byte order, #2073
  906. - creating a new segment: use "xb" mode, #2099
  907. - mount: umount on SIGINT/^C when in foreground, #2082
  908. Other changes:
  909. - binary: use fixed AND freshly compiled pyinstaller bootloader, #2002
  910. - xattr: ignore empty names returned by llistxattr(2) et al
  911. - Enable the fault handler: install handlers for the SIGSEGV, SIGFPE, SIGABRT,
  912. SIGBUS and SIGILL signals to dump the Python traceback.
  913. - Also print a traceback on SIGUSR2.
  914. - borg change-passphrase: print key location (simplify making a backup of it)
  915. - officially support Python 3.6 (setup.py: add Python 3.6 qualifier)
  916. - tests:
  917. - vagrant / travis / tox: add Python 3.6 based testing
  918. - vagrant: fix openbsd repo, #2042
  919. - vagrant: fix the freebsd64 machine, #2037 #2067
  920. - vagrant: use python 3.5.3 to build binaries, #2078
  921. - vagrant: use osxfuse 3.5.4 for tests / to build binaries
  922. vagrant: improve darwin64 VM settings
  923. - travis: fix osxfuse install (fixes OS X testing on Travis CI)
  924. - travis: require succeeding OS X tests, #2028
  925. - travis: use latest pythons for OS X based testing
  926. - use pytest-xdist to parallelize testing
  927. - fix xattr test race condition, #2047
  928. - setup.cfg: fix pytest deprecation warning, #2050
  929. - docs:
  930. - language clarification - VM backup FAQ
  931. - borg create: document how to backup stdin, #2013
  932. - borg upgrade: fix incorrect title levels
  933. - add CVE numbers for issues fixed in 1.0.9, #2106
  934. - fix typos (taken from Debian package patch)
  935. - remote: include data hexdump in "unexpected RPC data" error message
  936. - remote: log SSH command line at debug level
  937. - API_VERSION: use numberspaces, #2023
  938. - remove .github from pypi package, #2051
  939. - add pip and setuptools to requirements file, #2030
  940. - SyncFile: fix use of fd object after close (cosmetic)
  941. - Manifest.in: simplify, exclude \*.{so,dll,orig}, #2066
  942. - ignore posix_fadvise errors in repository.py, #2095
  943. (works around issues with docker on ARM)
  944. - make LoggedIO.close_segment reentrant, avoid reentrance
  945. Version 1.0.9 (2016-12-20)
  946. --------------------------
  947. Security fixes:
  948. - A flaw in the cryptographic authentication scheme in Borg allowed an attacker
  949. to spoof the manifest. See :ref:`tam_vuln` above for the steps you should
  950. take.
  951. CVE-2016-10099 was assigned to this vulnerability.
  952. - borg check: When rebuilding the manifest (which should only be needed very rarely)
  953. duplicate archive names would be handled on a "first come first serve" basis, allowing
  954. an attacker to apparently replace archives.
  955. CVE-2016-10100 was assigned to this vulnerability.
  956. Bug fixes:
  957. - borg check:
  958. - rebuild manifest if it's corrupted
  959. - skip corrupted chunks during manifest rebuild
  960. - fix TypeError in integrity error handler, #1903, #1894
  961. - fix location parser for archives with @ char (regression introduced in 1.0.8), #1930
  962. - fix wrong duration/timestamps if system clock jumped during a create
  963. - fix progress display not updating if system clock jumps backwards
  964. - fix checkpoint interval being incorrect if system clock jumps
  965. Other changes:
  966. - docs:
  967. - add python3-devel as a dependency for cygwin-based installation
  968. - clarify extract is relative to current directory
  969. - FAQ: fix link to changelog
  970. - markup fixes
  971. - tests:
  972. - test_get\_(cache|keys)_dir: clean env state, #1897
  973. - get back pytest's pretty assertion failures, #1938
  974. - setup.py build_usage:
  975. - fixed build_usage not processing all commands
  976. - fixed build_usage not generating includes for debug commands
  977. Version 1.0.9rc1 (2016-11-27)
  978. -----------------------------
  979. Bug fixes:
  980. - files cache: fix determination of newest mtime in backup set (which is
  981. used in cache cleanup and led to wrong "A" [added] status for unchanged
  982. files in next backup), #1860.
  983. - borg check:
  984. - fix incorrectly reporting attic 0.13 and earlier archives as corrupt
  985. - handle repo w/o objects gracefully and also bail out early if repo is
  986. *completely* empty, #1815.
  987. - fix tox/pybuild in 1.0-maint
  988. - at xattr module import time, loggers are not initialized yet
  989. New features:
  990. - borg umount <mountpoint>
  991. exposed already existing umount code via the CLI api, so users can use it,
  992. which is more consistent than using borg to mount and fusermount -u (or
  993. umount) to un-mount, #1855.
  994. - implement borg create --noatime --noctime, fixes #1853
  995. Other changes:
  996. - docs:
  997. - display README correctly on PyPI
  998. - improve cache / index docs, esp. files cache docs, fixes #1825
  999. - different pattern matching for --exclude, #1779
  1000. - datetime formatting examples for {now} placeholder, #1822
  1001. - clarify passphrase mode attic repo upgrade, #1854
  1002. - clarify --umask usage, #1859
  1003. - clarify how to choose PR target branch
  1004. - clarify prune behavior for different archive contents, #1824
  1005. - fix PDF issues, add logo, fix authors, headings, TOC
  1006. - move security verification to support section
  1007. - fix links in standalone README (:ref: tags)
  1008. - add link to security contact in README
  1009. - add FAQ about security
  1010. - move fork differences to FAQ
  1011. - add more details about resource usage
  1012. - tests: skip remote tests on cygwin, #1268
  1013. - travis:
  1014. - allow OS X failures until the brew cask osxfuse issue is fixed
  1015. - caskroom osxfuse-beta gone, it's osxfuse now (3.5.3)
  1016. - vagrant:
  1017. - upgrade OSXfuse / FUSE for macOS to 3.5.3
  1018. - remove llfuse from tox.ini at a central place
  1019. - do not try to install llfuse on centos6
  1020. - fix FUSE test for darwin, #1546
  1021. - add windows virtual machine with cygwin
  1022. - Vagrantfile cleanup / code deduplication
  1023. Version 1.1.0b2 (2016-10-01)
  1024. ----------------------------
  1025. Bug fixes:
  1026. - fix incorrect preservation of delete tags, leading to "object count mismatch"
  1027. on borg check, #1598. This only occurred with 1.1.0b1 (not with 1.0.x) and is
  1028. normally fixed by running another borg create/delete/prune.
  1029. - fix broken --progress for double-cell paths (e.g. CJK), #1624
  1030. - borg recreate: also catch SIGHUP
  1031. - FUSE:
  1032. - fix hardlinks in versions view, #1599
  1033. - add parameter check to ItemCache.get to make potential failures more clear
  1034. New features:
  1035. - Archiver, RemoteRepository: add --remote-ratelimit (send data)
  1036. - borg help compression, #1582
  1037. - borg check: delete chunks with integrity errors, #1575, so they can be
  1038. "repaired" immediately and maybe healed later.
  1039. - archives filters concept (refactoring/unifying older code)
  1040. - covers --first/--last/--prefix/--sort-by options
  1041. - currently used for borg list/info/delete
  1042. Other changes:
  1043. - borg check --verify-data slightly tuned (use get_many())
  1044. - change {utcnow} and {now} to ISO-8601 format ("T" date/time separator)
  1045. - repo check: log transaction IDs, improve object count mismatch diagnostic
  1046. - Vagrantfile: use TW's fresh-bootloader pyinstaller branch
  1047. - fix module names in api.rst
  1048. - hashindex: bump api_version
  1049. Version 1.1.0b1 (2016-08-28)
  1050. ----------------------------
  1051. New features:
  1052. - new commands:
  1053. - borg recreate: re-create existing archives, #787 #686 #630 #70, also see
  1054. #757, #770.
  1055. - selectively remove files/dirs from old archives
  1056. - re-compress data
  1057. - re-chunkify data, e.g. to have upgraded Attic / Borg 0.xx archives
  1058. deduplicate with Borg 1.x archives or to experiment with chunker-params.
  1059. - borg diff: show differences between archives
  1060. - borg with-lock: execute a command with the repository locked, #990
  1061. - borg create:
  1062. - Flexible compression with pattern matching on path/filename,
  1063. and LZ4 heuristic for deciding compressibility, #810, #1007
  1064. - visit files in inode order (better speed, esp. for large directories and rotating disks)
  1065. - in-file checkpoints, #1217
  1066. - increased default checkpoint interval to 30 minutes (was 5 minutes), #896
  1067. - added uuid archive format tag, #1151
  1068. - save mountpoint directories with --one-file-system, makes system restore easier, #1033
  1069. - Linux: added support for some BSD flags, #1050
  1070. - add 'x' status for excluded paths, #814
  1071. - also means files excluded via UF_NODUMP, #1080
  1072. - borg check:
  1073. - will not produce the "Checking segments" output unless new --progress option is passed, #824.
  1074. - --verify-data to verify data cryptographically on the client, #975
  1075. - borg list, #751, #1179
  1076. - removed {formatkeys}, see "borg list --help"
  1077. - --list-format is deprecated, use --format instead
  1078. - --format now also applies to listing archives, not only archive contents, #1179
  1079. - now supports the usual [PATH [PATHS…]] syntax and excludes
  1080. - new keys: csize, num_chunks, unique_chunks, NUL
  1081. - supports guaranteed_available hashlib hashes
  1082. (to avoid varying functionality depending on environment),
  1083. which includes the SHA1 and SHA2 family as well as MD5
  1084. - borg prune:
  1085. - to better visualize the "thinning out", we now list all archives in
  1086. reverse time order. rephrase and reorder help text.
  1087. - implement --keep-last N via --keep-secondly N, also --keep-minutely.
  1088. assuming that there is not more than 1 backup archive made in 1s,
  1089. --keep-last N and --keep-secondly N are equivalent, #537
  1090. - cleanup checkpoints except the latest, #1008
  1091. - borg extract:
  1092. - added --progress, #1449
  1093. - Linux: limited support for BSD flags, #1050
  1094. - borg info:
  1095. - output is now more similar to borg create --stats, #977
  1096. - borg mount:
  1097. - provide "borgfs" wrapper for borg mount, enables usage via fstab, #743
  1098. - "versions" mount option - when used with a repository mount, this gives
  1099. a merged, versioned view of the files in all archives, #729
  1100. - repository:
  1101. - added progress information to commit/compaction phase (often takes some time when deleting/pruning), #1519
  1102. - automatic recovery for some forms of repository inconsistency, #858
  1103. - check free space before going forward with a commit, #1336
  1104. - improved write performance (esp. for rotating media), #985
  1105. - new IO code for Linux
  1106. - raised default segment size to approx 512 MiB
  1107. - improved compaction performance, #1041
  1108. - reduced client CPU load and improved performance for remote repositories, #940
  1109. - options that imply output (--show-rc, --show-version, --list, --stats,
  1110. --progress) don't need -v/--info to have that output displayed, #865
  1111. - add archive comments (via borg (re)create --comment), #842
  1112. - borg list/prune/delete: also output archive id, #731
  1113. - --show-version: shows/logs the borg version, #725
  1114. - added --debug-topic for granular debug logging, #1447
  1115. - use atomic file writing/updating for configuration and key files, #1377
  1116. - BORG_KEY_FILE environment variable, #1001
  1117. - self-testing module, #970
  1118. Bug fixes:
  1119. - list: fixed default output being produced if --format is given with empty parameter, #1489
  1120. - create: fixed overflowing progress line with CJK and similar characters, #1051
  1121. - prune: fixed crash if --prefix resulted in no matches, #1029
  1122. - init: clean up partial repo if passphrase input is aborted, #850
  1123. - info: quote cmdline arguments that have spaces in them
  1124. - fix hardlinks failing in some cases for extracting subtrees, #761
  1125. Other changes:
  1126. - replace stdlib hmac with OpenSSL, zero-copy decrypt (10-15% increase in
  1127. performance of hash-lists and extract).
  1128. - improved chunker performance, #1021
  1129. - open repository segment files in exclusive mode (fail-safe), #1134
  1130. - improved error logging, #1440
  1131. - Source:
  1132. - pass meta-data around, #765
  1133. - move some constants to new constants module
  1134. - better readability and fewer errors with namedtuples, #823
  1135. - moved source tree into src/ subdirectory, #1016
  1136. - made borg.platform a package, #1113
  1137. - removed dead crypto code, #1032
  1138. - improved and ported parts of the test suite to py.test, #912
  1139. - created data classes instead of passing dictionaries around, #981, #1158, #1161
  1140. - cleaned up imports, #1112
  1141. - Docs:
  1142. - better help texts and sphinx reproduction of usage help:
  1143. - Group options
  1144. - Nicer list of options in Sphinx
  1145. - Deduplicate 'Common options' (including --help)
  1146. - chunker: added some insights by "Voltara", #903
  1147. - clarify what "deduplicated size" means
  1148. - fix / update / add package list entries
  1149. - added a SaltStack usage example, #956
  1150. - expanded FAQ
  1151. - new contributors in AUTHORS!
  1152. - Tests:
  1153. - vagrant: add ubuntu/xenial 64bit - this box has still some issues
  1154. - ChunkBuffer: add test for leaving partial chunk in buffer, fixes #945
  1155. Version 1.0.8 (2016-10-29)
  1156. --------------------------
  1157. Bug fixes:
  1158. - RemoteRepository: Fix busy wait in call_many, #940
  1159. New features:
  1160. - implement borgmajor/borgminor/borgpatch placeholders, #1694
  1161. {borgversion} was already there (full version string). With the new
  1162. placeholders you can now also get e.g. 1 or 1.0 or 1.0.8.
  1163. Other changes:
  1164. - avoid previous_location mismatch, #1741
  1165. due to the changed canonicalization for relative paths in PR #1711 / #1655
  1166. (implement /./ relpath hack), there would be a changed repo location warning
  1167. and the user would be asked if this is ok. this would break automation and
  1168. require manual intervention, which is unwanted.
  1169. thus, we automatically fix the previous_location config entry, if it only
  1170. changed in the expected way, but still means the same location.
  1171. - docs:
  1172. - deployment.rst: do not use bare variables in ansible snippet
  1173. - add clarification about append-only mode, #1689
  1174. - setup.py: add comment about requiring llfuse, #1726
  1175. - update usage.rst / api.rst
  1176. - repo url / archive location docs + typo fix
  1177. - quickstart: add a comment about other (remote) filesystems
  1178. - vagrant / tests:
  1179. - no chown when rsyncing (fixes boxes w/o vagrant group)
  1180. - fix FUSE permission issues on linux/freebsd, #1544
  1181. - skip FUSE test for borg binary + fakeroot
  1182. - ignore security.selinux xattrs, fixes tests on centos, #1735
  1183. Version 1.0.8rc1 (2016-10-17)
  1184. -----------------------------
  1185. Bug fixes:
  1186. - fix signal handling (SIGINT, SIGTERM, SIGHUP), #1620 #1593
  1187. Fixes e.g. leftover lock files for quickly repeated signals (e.g. Ctrl-C
  1188. Ctrl-C) or lost connections or systemd sending SIGHUP.
  1189. - progress display: adapt formatting to narrow screens, do not crash, #1628
  1190. - borg create --read-special - fix crash on broken symlink, #1584.
  1191. also correctly processes broken symlinks. before this regressed to a crash
  1192. (5b45385) a broken symlink would've been skipped.
  1193. - process_symlink: fix missing backup_io()
  1194. Fixes a chmod/chown/chgrp/unlink/rename/... crash race between getting
  1195. dirents and dispatching to process_symlink.
  1196. - yes(): abort on wrong answers, saying so, #1622
  1197. - fixed exception borg serve raised when connection was closed before reposiory
  1198. was openend. add an error message for this.
  1199. - fix read-from-closed-FD issue, #1551
  1200. (this seems not to get triggered in 1.0.x, but was discovered in master)
  1201. - hashindex: fix iterators (always raise StopIteration when exhausted)
  1202. (this seems not to get triggered in 1.0.x, but was discovered in master)
  1203. - enable relative paths in ssh:// repo URLs, via /./relpath hack, #1655
  1204. - allow repo paths with colons, #1705
  1205. - update changed repo location immediately after acceptance, #1524
  1206. - fix debug get-obj / delete-obj crash if object not found and remote repo,
  1207. #1684
  1208. - pyinstaller: use a spec file to build borg.exe binary, exclude osxfuse dylib
  1209. on Mac OS X (avoids mismatch lib <-> driver), #1619
  1210. New features:
  1211. - add "borg key export" / "borg key import" commands, #1555, so users are able
  1212. to backup / restore their encryption keys more easily.
  1213. Supported formats are the keyfile format used by borg internally and a
  1214. special "paper" format with by line checksums for printed backups. For the
  1215. paper format, the import is an interactive process which checks each line as
  1216. soon as it is input.
  1217. - add "borg debug-refcount-obj" to determine a repo objects' referrer counts,
  1218. #1352
  1219. Other changes:
  1220. - add "borg debug ..." subcommands
  1221. (borg debug-* still works, but will be removed in borg 1.1)
  1222. - setup.py: Add subcommand support to build_usage.
  1223. - remote: change exception message for unexpected RPC data format to indicate
  1224. dataflow direction.
  1225. - improved messages / error reporting:
  1226. - IntegrityError: add placeholder for message, so that the message we give
  1227. appears not only in the traceback, but also in the (short) error message,
  1228. #1572
  1229. - borg.key: include chunk id in exception msgs, #1571
  1230. - better messages for cache newer than repo, #1700
  1231. - vagrant (testing/build VMs):
  1232. - upgrade OSXfuse / FUSE for macOS to 3.5.2
  1233. - update Debian Wheezy boxes, #1686
  1234. - openbsd / netbsd: use own boxes, fixes misc rsync installation and
  1235. FUSE/llfuse related testing issues, #1695 #1696 #1670 #1671 #1728
  1236. - docs:
  1237. - add docs for "key export" and "key import" commands, #1641
  1238. - fix inconsistency in FAQ (pv-wrapper).
  1239. - fix second block in "Easy to use" section not showing on GitHub, #1576
  1240. - add bestpractices badge
  1241. - link reference docs and faq about BORG_FILES_CACHE_TTL, #1561
  1242. - improve borg info --help, explain size infos, #1532
  1243. - add release signing key / security contact to README, #1560
  1244. - add contribution guidelines for developers
  1245. - development.rst: add sphinx_rtd_theme to the sphinx install command
  1246. - adjust border color in borg.css
  1247. - add debug-info usage help file
  1248. - internals.rst: fix typos
  1249. - setup.py: fix build_usage to always process all commands
  1250. - added docs explaining multiple --restrict-to-path flags, #1602
  1251. - add more specific warning about write-access debug commands, #1587
  1252. - clarify FAQ regarding backup of virtual machines, #1672
  1253. - tests:
  1254. - work around FUSE xattr test issue with recent fakeroot
  1255. - simplify repo/hashindex tests
  1256. - travis: test FUSE-enabled borg, use trusty to have a recent FUSE
  1257. - re-enable FUSE tests for RemoteArchiver (no deadlocks any more)
  1258. - clean env for pytest based tests, #1714
  1259. - fuse_mount contextmanager: accept any options
  1260. Version 1.0.7 (2016-08-19)
  1261. --------------------------
  1262. Security fixes:
  1263. - borg serve: fix security issue with remote repository access, #1428
  1264. If you used e.g. --restrict-to-path /path/client1/ (with or without trailing
  1265. slash does not make a difference), it acted like a path prefix match using
  1266. /path/client1 (note the missing trailing slash) - the code then also allowed
  1267. working in e.g. /path/client13 or /path/client1000.
  1268. As this could accidentally lead to major security/privacy issues depending on
  1269. the paths you use, the behaviour was changed to be a strict directory match.
  1270. That means --restrict-to-path /path/client1 (with or without trailing slash
  1271. does not make a difference) now uses /path/client1/ internally (note the
  1272. trailing slash here!) for matching and allows precisely that path AND any
  1273. path below it. So, /path/client1 is allowed, /path/client1/repo1 is allowed,
  1274. but not /path/client13 or /path/client1000.
  1275. If you willingly used the undocumented (dangerous) previous behaviour, you
  1276. may need to rearrange your --restrict-to-path paths now. We are sorry if
  1277. that causes work for you, but we did not want a potentially dangerous
  1278. behaviour in the software (not even using a for-backwards-compat option).
  1279. Bug fixes:
  1280. - fixed repeated LockTimeout exceptions when borg serve tried to write into
  1281. a already write-locked repo (e.g. by a borg mount), #502 part b)
  1282. This was solved by the fix for #1220 in 1.0.7rc1 already.
  1283. - fix cosmetics + file leftover for "not a valid borg repository", #1490
  1284. - Cache: release lock if cache is invalid, #1501
  1285. - borg extract --strip-components: fix leak of preloaded chunk contents
  1286. - Repository, when a InvalidRepository exception happens:
  1287. - fix spurious, empty lock.roster
  1288. - fix repo not closed cleanly
  1289. New features:
  1290. - implement borg debug-info, fixes #1122
  1291. (just calls already existing code via cli, same output as below tracebacks)
  1292. Other changes:
  1293. - skip the O_NOATIME test on GNU Hurd, fixes #1315
  1294. (this is a very minor issue and the GNU Hurd project knows the bug)
  1295. - document using a clean repo to test / build the release
  1296. Version 1.0.7rc2 (2016-08-13)
  1297. -----------------------------
  1298. Bug fixes:
  1299. - do not write objects to repository that are bigger than the allowed size,
  1300. borg will reject reading them, #1451.
  1301. Important: if you created archives with many millions of files or
  1302. directories, please verify if you can open them successfully,
  1303. e.g. try a "borg list REPO::ARCHIVE".
  1304. - lz4 compression: dynamically enlarge the (de)compression buffer, the static
  1305. buffer was not big enough for archives with extremely many items, #1453
  1306. - larger item metadata stream chunks, raise archive item limit by 8x, #1452
  1307. - fix untracked segments made by moved DELETEs, #1442
  1308. Impact: Previously (metadata) segments could become untracked when deleting data,
  1309. these would never be cleaned up.
  1310. - extended attributes (xattrs) related fixes:
  1311. - fixed a race condition in xattrs querying that led to the entire file not
  1312. being backed up (while logging the error, exit code = 1), #1469
  1313. - fixed a race condition in xattrs querying that led to a crash, #1462
  1314. - raise OSError including the error message derived from errno, deal with
  1315. path being a integer FD
  1316. Other changes:
  1317. - print active env var override by default, #1467
  1318. - xattr module: refactor code, deduplicate, clean up
  1319. - repository: split object size check into too small and too big
  1320. - add a transaction_id assertion, so borg init on a broken (inconsistent)
  1321. filesystem does not look like a coding error in borg, but points to the
  1322. real problem.
  1323. - explain confusing TypeError caused by compat support for old servers, #1456
  1324. - add forgotten usage help file from build_usage
  1325. - refactor/unify buffer code into helpers.Buffer class, add tests
  1326. - docs:
  1327. - document archive limitation, #1452
  1328. - improve prune examples
  1329. Version 1.0.7rc1 (2016-08-05)
  1330. -----------------------------
  1331. Bug fixes:
  1332. - fix repo lock deadlocks (related to lock upgrade), #1220
  1333. - catch unpacker exceptions, resync, #1351
  1334. - fix borg break-lock ignoring BORG_REPO env var, #1324
  1335. - files cache performance fixes (fixes unnecessary re-reading/chunking/
  1336. hashing of unmodified files for some use cases):
  1337. - fix unintended file cache eviction, #1430
  1338. - implement BORG_FILES_CACHE_TTL, update FAQ, raise default TTL from 10
  1339. to 20, #1338
  1340. - FUSE:
  1341. - cache partially read data chunks (performance), #965, #966
  1342. - always create a root dir, #1125
  1343. - use an OrderedDict for helptext, making the build reproducible, #1346
  1344. - RemoteRepository init: always call close on exceptions, #1370 (cosmetic)
  1345. - ignore stdout/stderr broken pipe errors (cosmetic), #1116
  1346. New features:
  1347. - better borg versions management support (useful esp. for borg servers
  1348. wanting to offer multiple borg versions and for clients wanting to choose
  1349. a specific server borg version), #1392:
  1350. - add BORG_VERSION environment variable before executing "borg serve" via ssh
  1351. - add new placeholder {borgversion}
  1352. - substitute placeholders in --remote-path
  1353. - borg init --append-only option (makes using the more secure append-only mode
  1354. more convenient. when used remotely, this requires 1.0.7+ also on the borg
  1355. server), #1291.
  1356. Other changes:
  1357. - Vagrantfile:
  1358. - darwin64: upgrade to FUSE for macOS 3.4.1 (aka osxfuse), #1378
  1359. - xenial64: use user "ubuntu", not "vagrant" (as usual), #1331
  1360. - tests:
  1361. - fix FUSE tests on OS X, #1433
  1362. - docs:
  1363. - FAQ: add backup using stable filesystem names recommendation
  1364. - FAQ about glibc compatibility added, #491, glibc-check improved
  1365. - FAQ: 'A' unchanged file; remove ambiguous entry age sentence.
  1366. - OS X: install pkg-config to build with FUSE support, fixes #1400
  1367. - add notes about shell/sudo pitfalls with env. vars, #1380
  1368. - added platform feature matrix
  1369. - implement borg debug-dump-repo-objs
  1370. Version 1.0.6 (2016-07-12)
  1371. --------------------------
  1372. Bug fixes:
  1373. - Linux: handle multiple LD_PRELOAD entries correctly, #1314, #1111
  1374. - Fix crash with unclear message if the libc is not found, #1314, #1111
  1375. Other changes:
  1376. - tests:
  1377. - Fixed O_NOATIME tests for Solaris and GNU Hurd, #1315
  1378. - Fixed sparse file tests for (file) systems not supporting it, #1310
  1379. - docs:
  1380. - Fixed syntax highlighting, #1313
  1381. - misc docs: added data processing overview picture
  1382. Version 1.0.6rc1 (2016-07-10)
  1383. -----------------------------
  1384. New features:
  1385. - borg check --repair: heal damaged files if missing chunks re-appear (e.g. if
  1386. the previously missing chunk was added again in a later backup archive),
  1387. #148. (*) Also improved logging.
  1388. Bug fixes:
  1389. - sync_dir: silence fsync() failing with EINVAL, #1287
  1390. Some network filesystems (like smbfs) don't support this and we use this in
  1391. repository code.
  1392. - borg mount (FUSE):
  1393. - fix directories being shadowed when contained paths were also specified,
  1394. #1295
  1395. - raise I/O Error (EIO) on damaged files (unless -o allow_damaged_files is
  1396. used), #1302. (*)
  1397. - borg extract: warn if a damaged file is extracted, #1299. (*)
  1398. - Added some missing return code checks (ChunkIndex._add, hashindex_resize).
  1399. - borg check: fix/optimize initial hash table size, avoids resize of the table.
  1400. Other changes:
  1401. - tests:
  1402. - add more FUSE tests, #1284
  1403. - deduplicate FUSE (u)mount code
  1404. - fix borg binary test issues, #862
  1405. - docs:
  1406. - changelog: added release dates to older borg releases
  1407. - fix some sphinx (docs generator) warnings, #881
  1408. Notes:
  1409. (*) Some features depend on information (chunks_healthy list) added to item
  1410. metadata when a file with missing chunks was "repaired" using all-zero
  1411. replacement chunks. The chunks_healthy list is generated since borg 1.0.4,
  1412. thus borg can't recognize such "repaired" (but content-damaged) files if the
  1413. repair was done with an older borg version.
  1414. Version 1.0.5 (2016-07-07)
  1415. --------------------------
  1416. Bug fixes:
  1417. - borg mount: fix FUSE crash in xattr code on Linux introduced in 1.0.4, #1282
  1418. Other changes:
  1419. - backport some FAQ entries from master branch
  1420. - add release helper scripts
  1421. - Vagrantfile:
  1422. - centos6: no FUSE, don't build binary
  1423. - add xz for redhat-like dists
  1424. Version 1.0.4 (2016-07-07)
  1425. --------------------------
  1426. New features:
  1427. - borg serve --append-only, #1168
  1428. This was included because it was a simple change (append-only functionality
  1429. was already present via repository config file) and makes better security now
  1430. practically usable.
  1431. - BORG_REMOTE_PATH environment variable, #1258
  1432. This was included because it was a simple change (--remote-path cli option
  1433. was already present) and makes borg much easier to use if you need it.
  1434. - Repository: cleanup incomplete transaction on "no space left" condition.
  1435. In many cases, this can avoid a 100% full repo filesystem (which is very
  1436. problematic as borg always needs free space - even to delete archives).
  1437. Bug fixes:
  1438. - Fix wrong handling and reporting of OSErrors in borg create, #1138.
  1439. This was a serious issue: in the context of "borg create", errors like
  1440. repository I/O errors (e.g. disk I/O errors, ssh repo connection errors)
  1441. were handled badly and did not lead to a crash (which would be good for this
  1442. case, because the repo transaction would be incomplete and trigger a
  1443. transaction rollback to clean up).
  1444. Now, error handling for source files is cleanly separated from every other
  1445. error handling, so only problematic input files are logged and skipped.
  1446. - Implement fail-safe error handling for borg extract.
  1447. Note that this isn't nearly as critical as the borg create error handling
  1448. bug, since nothing is written to the repo. So this was "merely" misleading
  1449. error reporting.
  1450. - Add missing error handler in directory attr restore loop.
  1451. - repo: make sure write data hits disk before the commit tag (#1236) and also
  1452. sync the containing directory.
  1453. - FUSE: getxattr fail must use errno.ENOATTR, #1126
  1454. (fixes Mac OS X Finder malfunction: "zero bytes" file length, access denied)
  1455. - borg check --repair: do not lose information about the good/original chunks.
  1456. If we do not lose the original chunk IDs list when "repairing" a file
  1457. (replacing missing chunks with all-zero chunks), we have a chance to "heal"
  1458. the file back into its original state later, in case the chunks re-appear
  1459. (e.g. in a fresh backup). Healing is not implemented yet, see #148.
  1460. - fixes for --read-special mode:
  1461. - ignore known files cache, #1241
  1462. - fake regular file mode, #1214
  1463. - improve symlinks handling, #1215
  1464. - remove passphrase from subprocess environment, #1105
  1465. - Ignore empty index file (will trigger index rebuild), #1195
  1466. - add missing placeholder support for --prefix, #1027
  1467. - improve exception handling for placeholder replacement
  1468. - catch and format exceptions in arg parsing
  1469. - helpers: fix "undefined name 'e'" in exception handler
  1470. - better error handling for missing repo manifest, #1043
  1471. - borg delete:
  1472. - make it possible to delete a repo without manifest
  1473. - borg delete --forced allows to delete corrupted archives, #1139
  1474. - borg check:
  1475. - make borg check work for empty repo
  1476. - fix resync and msgpacked item qualifier, #1135
  1477. - rebuild_manifest: fix crash if 'name' or 'time' key were missing.
  1478. - better validation of item metadata dicts, #1130
  1479. - better validation of archive metadata dicts
  1480. - close the repo on exit - even if rollback did not work, #1197.
  1481. This is rather cosmetic, it avoids repo closing in the destructor.
  1482. - tests:
  1483. - fix sparse file test, #1170
  1484. - flake8: ignore new F405, #1185
  1485. - catch "invalid argument" on cygwin, #257
  1486. - fix sparseness assertion in test prep, #1264
  1487. Other changes:
  1488. - make borg build/work on OpenSSL 1.0 and 1.1, #1187
  1489. - docs / help:
  1490. - fix / clarify prune help, #1143
  1491. - fix "patterns" help formatting
  1492. - add missing docs / help about placeholders
  1493. - resources: rename atticmatic to borgmatic
  1494. - document sshd settings, #545
  1495. - more details about checkpoints, add split trick, #1171
  1496. - support docs: add freenode web chat link, #1175
  1497. - add prune visualization / example, #723
  1498. - add note that Fnmatch is default, #1247
  1499. - make clear that lzma levels > 6 are a waste of cpu cycles
  1500. - add a "do not edit" note to auto-generated files, #1250
  1501. - update cygwin installation docs
  1502. - repository interoperability with borg master (1.1dev) branch:
  1503. - borg check: read item metadata keys from manifest, #1147
  1504. - read v2 hints files, #1235
  1505. - fix hints file "unknown version" error handling bug
  1506. - tests: add tests for format_line
  1507. - llfuse: update version requirement for freebsd
  1508. - Vagrantfile:
  1509. - use openbsd 5.9, #716
  1510. - do not install llfuse on netbsd (broken)
  1511. - update OSXfuse to version 3.3.3
  1512. - use Python 3.5.2 to build the binaries
  1513. - glibc compatibility checker: scripts/glibc_check.py
  1514. - add .eggs to .gitignore
  1515. Version 1.0.3 (2016-05-20)
  1516. --------------------------
  1517. Bug fixes:
  1518. - prune: avoid that checkpoints are kept and completed archives are deleted in
  1519. a prune run), #997
  1520. - prune: fix commandline argument validation - some valid command lines were
  1521. considered invalid (annoying, but harmless), #942
  1522. - fix capabilities extraction on Linux (set xattrs last, after chown()), #1069
  1523. - repository: fix commit tags being seen in data
  1524. - when probing key files, do binary reads. avoids crash when non-borg binary
  1525. files are located in borg's key files directory.
  1526. - handle SIGTERM and make a clean exit - avoids orphan lock files.
  1527. - repository cache: don't cache large objects (avoid using lots of temp. disk
  1528. space), #1063
  1529. Other changes:
  1530. - Vagrantfile: OS X: update osxfuse / install lzma package, #933
  1531. - setup.py: add check for platform_darwin.c
  1532. - setup.py: on freebsd, use a llfuse release that builds ok
  1533. - docs / help:
  1534. - update readthedocs URLs, #991
  1535. - add missing docs for "borg break-lock", #992
  1536. - borg create help: add some words to about the archive name
  1537. - borg create help: document format tags, #894
  1538. Version 1.0.2 (2016-04-16)
  1539. --------------------------
  1540. Bug fixes:
  1541. - fix malfunction and potential corruption on (nowadays rather rare) big-endian
  1542. architectures or bi-endian archs in (rare) BE mode. #886, #889
  1543. cache resync / index merge was malfunctioning due to this, potentially
  1544. leading to data loss. borg info had cosmetic issues (displayed wrong values).
  1545. note: all (widespread) little-endian archs (like x86/x64) or bi-endian archs
  1546. in (widespread) LE mode (like ARMEL, MIPSEL, ...) were NOT affected.
  1547. - add overflow and range checks for 1st (special) uint32 of the hashindex
  1548. values, switch from int32 to uint32.
  1549. - fix so that refcount will never overflow, but just stick to max. value after
  1550. a overflow would have occurred.
  1551. - borg delete: fix --cache-only for broken caches, #874
  1552. Makes --cache-only idempotent: it won't fail if the cache is already deleted.
  1553. - fixed borg create --one-file-system erroneously traversing into other
  1554. filesystems (if starting fs device number was 0), #873
  1555. - workround a bug in Linux fadvise FADV_DONTNEED, #907
  1556. Other changes:
  1557. - better test coverage for hashindex, incl. overflow testing, checking correct
  1558. computations so endianness issues would be discovered.
  1559. - reproducible doc for ProgressIndicator*, make the build reproducible.
  1560. - use latest llfuse for vagrant machines
  1561. - docs:
  1562. - use /path/to/repo in examples, fixes #901
  1563. - fix confusing usage of "repo" as archive name (use "arch")
  1564. Version 1.0.1 (2016-04-08)
  1565. --------------------------
  1566. New features:
  1567. Usually there are no new features in a bugfix release, but these were added
  1568. due to their high impact on security/safety/speed or because they are fixes
  1569. also:
  1570. - append-only mode for repositories, #809, #36 (see docs)
  1571. - borg create: add --ignore-inode option to make borg detect unmodified files
  1572. even if your filesystem does not have stable inode numbers (like sshfs and
  1573. possibly CIFS).
  1574. - add options --warning, --error, --critical for missing log levels, #826.
  1575. it's not recommended to suppress warnings or errors, but the user may decide
  1576. this on his own.
  1577. note: --warning is not given to borg serve so a <= 1.0.0 borg will still
  1578. work as server (it is not needed as it is the default).
  1579. do not use --error or --critical when using a <= 1.0.0 borg server.
  1580. Bug fixes:
  1581. - fix silently skipping EIO, #748
  1582. - add context manager for Repository (avoid orphan repository locks), #285
  1583. - do not sleep for >60s while waiting for lock, #773
  1584. - unpack file stats before passing to FUSE
  1585. - fix build on illumos
  1586. - don't try to backup doors or event ports (Solaris and derivates)
  1587. - remove useless/misleading libc version display, #738
  1588. - test suite: reset exit code of persistent archiver, #844
  1589. - RemoteRepository: clean up pipe if remote open() fails
  1590. - Remote: don't print tracebacks for Error exceptions handled downstream, #792
  1591. - if BORG_PASSPHRASE is present but wrong, don't prompt for password, but fail
  1592. instead, #791
  1593. - ArchiveChecker: move "orphaned objects check skipped" to INFO log level, #826
  1594. - fix capitalization, add ellipses, change log level to debug for 2 messages,
  1595. #798
  1596. Other changes:
  1597. - update llfuse requirement, llfuse 1.0 works
  1598. - update OS / dist packages on build machines, #717
  1599. - prefer showing --info over -v in usage help, #859
  1600. - docs:
  1601. - fix cygwin requirements (gcc-g++)
  1602. - document how to debug / file filesystem issues, #664
  1603. - fix reproducible build of api docs
  1604. - RTD theme: CSS !important overwrite, #727
  1605. - Document logo font. Recreate logo png. Remove GIMP logo file.
  1606. Version 1.0.0 (2016-03-05)
  1607. --------------------------
  1608. The major release number change (0.x -> 1.x) indicates bigger incompatible
  1609. changes, please read the compatibility notes, adapt / test your scripts and
  1610. check your backup logs.
  1611. Compatibility notes:
  1612. - drop support for python 3.2 and 3.3, require 3.4 or 3.5, #221 #65 #490
  1613. note: we provide binaries that include python 3.5.1 and everything else
  1614. needed. they are an option in case you are stuck with < 3.4 otherwise.
  1615. - change encryption to be on by default (using "repokey" mode)
  1616. - moved keyfile keys from ~/.borg/keys to ~/.config/borg/keys,
  1617. you can either move them manually or run "borg upgrade <REPO>"
  1618. - remove support for --encryption=passphrase,
  1619. use borg migrate-to-repokey to switch to repokey mode, #97
  1620. - remove deprecated --compression <number>,
  1621. use --compression zlib,<number> instead
  1622. in case of 0, you could also use --compression none
  1623. - remove deprecated --hourly/daily/weekly/monthly/yearly
  1624. use --keep-hourly/daily/weekly/monthly/yearly instead
  1625. - remove deprecated --do-not-cross-mountpoints,
  1626. use --one-file-system instead
  1627. - disambiguate -p option, #563:
  1628. - -p now is same as --progress
  1629. - -P now is same as --prefix
  1630. - remove deprecated "borg verify",
  1631. use "borg extract --dry-run" instead
  1632. - cleanup environment variable semantics, #355
  1633. the environment variables used to be "yes sayers" when set, this was
  1634. conceptually generalized to "automatic answerers" and they just give their
  1635. value as answer (as if you typed in that value when being asked).
  1636. See the "usage" / "Environment Variables" section of the docs for details.
  1637. - change the builtin default for --chunker-params, create 2MiB chunks, #343
  1638. --chunker-params new default: 19,23,21,4095 - old default: 10,23,16,4095
  1639. one of the biggest issues with borg < 1.0 (and also attic) was that it had a
  1640. default target chunk size of 64kiB, thus it created a lot of chunks and thus
  1641. also a huge chunk management overhead (high RAM and disk usage).
  1642. please note that the new default won't change the chunks that you already
  1643. have in your repository. the new big chunks do not deduplicate with the old
  1644. small chunks, so expect your repo to grow at least by the size of every
  1645. changed file and in the worst case (e.g. if your files cache was lost / is
  1646. not used) by the size of every file (minus any compression you might use).
  1647. in case you want to immediately see a much lower resource usage (RAM / disk)
  1648. for chunks management, it might be better to start with a new repo than
  1649. continuing in the existing repo (with an existing repo, you'ld have to wait
  1650. until all archives with small chunks got pruned to see a lower resource
  1651. usage).
  1652. if you used the old --chunker-params default value (or if you did not use
  1653. --chunker-params option at all) and you'ld like to continue using small
  1654. chunks (and you accept the huge resource usage that comes with that), just
  1655. explicitly use borg create --chunker-params=10,23,16,4095.
  1656. - archive timestamps: the 'time' timestamp now refers to archive creation
  1657. start time (was: end time), the new 'time_end' timestamp refers to archive
  1658. creation end time. This might affect prune if your backups take rather long.
  1659. if you give a timestamp via cli this is stored into 'time', therefore it now
  1660. needs to mean archive creation start time.
  1661. New features:
  1662. - implement password roundtrip, #695
  1663. Bug fixes:
  1664. - remote end does not need cache nor keys directories, do not create them, #701
  1665. - added retry counter for passwords, #703
  1666. Other changes:
  1667. - fix compiler warnings, #697
  1668. - docs:
  1669. - update README.rst to new changelog location in docs/changes.rst
  1670. - add Teemu to AUTHORS
  1671. - changes.rst: fix old chunker params, #698
  1672. - FAQ: how to limit bandwidth
  1673. Version 1.0.0rc2 (2016-02-28)
  1674. -----------------------------
  1675. New features:
  1676. - format options for location: user, pid, fqdn, hostname, now, utcnow, user
  1677. - borg list --list-format
  1678. - borg prune -v --list enables the keep/prune list output, #658
  1679. Bug fixes:
  1680. - fix _open_rb noatime handling, #657
  1681. - add a simple archivename validator, #680
  1682. - borg create --stats: show timestamps in localtime, use same labels/formatting
  1683. as borg info, #651
  1684. - llfuse compatibility fixes (now compatible with: 0.40, 0.41, 0.42)
  1685. Other changes:
  1686. - it is now possible to use "pip install borgbackup[fuse]" to automatically
  1687. install the llfuse dependency using the correct version requirement
  1688. for it. you still need to care about having installed the FUSE / build
  1689. related OS package first, though, so that building llfuse can succeed.
  1690. - Vagrant: drop Ubuntu Precise (12.04) - does not have Python >= 3.4
  1691. - Vagrant: use pyinstaller v3.1.1 to build binaries
  1692. - docs:
  1693. - borg upgrade: add to docs that only LOCAL repos are supported
  1694. - borg upgrade also handles borg 0.xx -> 1.0
  1695. - use pip extras or requirements file to install llfuse
  1696. - fix order in release process
  1697. - updated usage docs and other minor / cosmetic fixes
  1698. - verified borg examples in docs, #644
  1699. - freebsd dependency installation and FUSE configuration, #649
  1700. - add example how to restore a raw device, #671
  1701. - add a hint about the dev headers needed when installing from source
  1702. - add examples for delete (and handle delete after list, before prune), #656
  1703. - update example for borg create -v --stats (use iso datetime format), #663
  1704. - added example to BORG_RSH docs
  1705. - "connection closed by remote": add FAQ entry and point to issue #636
  1706. Version 1.0.0rc1 (2016-02-07)
  1707. -----------------------------
  1708. New features:
  1709. - borg migrate-to-repokey ("passphrase" -> "repokey" encryption key mode)
  1710. - implement --short for borg list REPO, #611
  1711. - implement --list for borg extract (consistency with borg create)
  1712. - borg serve: overwrite client's --restrict-to-path with ssh forced command's
  1713. option value (but keep everything else from the client commandline), #544
  1714. - use $XDG_CONFIG_HOME/keys for keyfile keys (~/.config/borg/keys), #515
  1715. - "borg upgrade" moves the keyfile keys to the new location
  1716. - display both archive creation start and end time in "borg info", #627
  1717. Bug fixes:
  1718. - normalize trailing slashes for the repository path, #606
  1719. - Cache: fix exception handling in __init__, release lock, #610
  1720. Other changes:
  1721. - suppress unneeded exception context (PEP 409), simpler tracebacks
  1722. - removed special code needed to deal with imperfections / incompatibilities /
  1723. missing stuff in py 3.2/3.3, simplify code that can be done simpler in 3.4
  1724. - removed some version requirements that were kept on old versions because
  1725. newer did not support py 3.2 any more
  1726. - use some py 3.4+ stdlib code instead of own/openssl/pypi code:
  1727. - use os.urandom instead of own cython openssl RAND_bytes wrapper, #493
  1728. - use hashlib.pbkdf2_hmac from py stdlib instead of own openssl wrapper
  1729. - use hmac.compare_digest instead of == operator (constant time comparison)
  1730. - use stat.filemode instead of homegrown code
  1731. - use "mock" library from stdlib, #145
  1732. - remove borg.support (with non-broken argparse copy), it is ok in 3.4+, #358
  1733. - Vagrant: copy CHANGES.rst as symlink, #592
  1734. - cosmetic code cleanups, add flake8 to tox/travis, #4
  1735. - docs / help:
  1736. - make "borg -h" output prettier, #591
  1737. - slightly rephrase prune help
  1738. - add missing example for --list option of borg create
  1739. - quote exclude line that includes an asterisk to prevent shell expansion
  1740. - fix dead link to license
  1741. - delete Ubuntu Vivid, it is not supported anymore (EOL)
  1742. - OS X binary does not work for older OS X releases, #629
  1743. - borg serve's special support for forced/original ssh commands, #544
  1744. - misc. updates and fixes
  1745. Version 0.30.0 (2016-01-23)
  1746. ---------------------------
  1747. Compatibility notes:
  1748. - you may need to use -v (or --info) more often to actually see output emitted
  1749. at INFO log level (because it is suppressed at the default WARNING log level).
  1750. See the "general" section in the usage docs.
  1751. - for borg create, you need --list (additionally to -v) to see the long file
  1752. list (was needed so you can have e.g. --stats alone without the long list)
  1753. - see below about BORG_DELETE_I_KNOW_WHAT_I_AM_DOING (was:
  1754. BORG_CHECK_I_KNOW_WHAT_I_AM_DOING)
  1755. Bug fixes:
  1756. - fix crash when using borg create --dry-run --keep-tag-files, #570
  1757. - make sure teardown with cleanup happens for Cache and RepositoryCache,
  1758. avoiding leftover locks and TEMP dir contents, #285 (partially), #548
  1759. - fix locking KeyError, partial fix for #502
  1760. - log stats consistently, #526
  1761. - add abbreviated weekday to timestamp format, fixes #496
  1762. - strip whitespace when loading exclusions from file
  1763. - unset LD_LIBRARY_PATH before invoking ssh, fixes strange OpenSSL library
  1764. version warning when using the borg binary, #514
  1765. - add some error handling/fallback for C library loading, #494
  1766. - added BORG_DELETE_I_KNOW_WHAT_I_AM_DOING for check in "borg delete", #503
  1767. - remove unused "repair" rpc method name
  1768. New features:
  1769. - borg create: implement exclusions using regular expression patterns.
  1770. - borg create: implement inclusions using patterns.
  1771. - borg extract: support patterns, #361
  1772. - support different styles for patterns:
  1773. - fnmatch (`fm:` prefix, default when omitted), like borg <= 0.29.
  1774. - shell (`sh:` prefix) with `*` not matching directory separators and
  1775. `**/` matching 0..n directories
  1776. - path prefix (`pp:` prefix, for unifying borg create pp1 pp2 into the
  1777. patterns system), semantics like in borg <= 0.29
  1778. - regular expression (`re:`), new!
  1779. - --progress option for borg upgrade (#291) and borg delete <archive>
  1780. - update progress indication more often (e.g. for borg create within big
  1781. files or for borg check repo), #500
  1782. - finer chunker granularity for items metadata stream, #547, #487
  1783. - borg create --list now used (additionally to -v) to enable the verbose
  1784. file list output
  1785. - display borg version below tracebacks, #532
  1786. Other changes:
  1787. - hashtable size (and thus: RAM and disk consumption) follows a growth policy:
  1788. grows fast while small, grows slower when getting bigger, #527
  1789. - Vagrantfile: use pyinstaller 3.1 to build binaries, freebsd sqlite3 fix,
  1790. fixes #569
  1791. - no separate binaries for centos6 any more because the generic linux binaries
  1792. also work on centos6 (or in general: on systems with a slightly older glibc
  1793. than debian7
  1794. - dev environment: require virtualenv<14.0 so we get a py32 compatible pip
  1795. - docs:
  1796. - add space-saving chunks.archive.d trick to FAQ
  1797. - important: clarify -v and log levels in usage -> general, please read!
  1798. - sphinx configuration: create a simple man page from usage docs
  1799. - add a repo server setup example
  1800. - disable unneeded SSH features in authorized_keys examples for security.
  1801. - borg prune only knows "--keep-within" and not "--within"
  1802. - add gource video to resources docs, #507
  1803. - add netbsd install instructions
  1804. - authors: make it more clear what refers to borg and what to attic
  1805. - document standalone binary requirements, #499
  1806. - rephrase the mailing list section
  1807. - development docs: run build_api and build_usage before tagging release
  1808. - internals docs: hash table max. load factor is 0.75 now
  1809. - markup, typo, grammar, phrasing, clarifications and other fixes.
  1810. - add gcc gcc-c++ to redhat/fedora/corora install docs, fixes #583
  1811. Version 0.29.0 (2015-12-13)
  1812. ---------------------------
  1813. Compatibility notes:
  1814. - when upgrading to 0.29.0 you need to upgrade client as well as server
  1815. installations due to the locking and commandline interface changes otherwise
  1816. you'll get an error msg about a RPC protocol mismatch or a wrong commandline
  1817. option.
  1818. if you run a server that needs to support both old and new clients, it is
  1819. suggested that you have a "borg-0.28.2" and a "borg-0.29.0" command.
  1820. clients then can choose via e.g. "borg --remote-path=borg-0.29.0 ...".
  1821. - the default waiting time for a lock changed from infinity to 1 second for a
  1822. better interactive user experience. if the repo you want to access is
  1823. currently locked, borg will now terminate after 1s with an error message.
  1824. if you have scripts that shall wait for the lock for a longer time, use
  1825. --lock-wait N (with N being the maximum wait time in seconds).
  1826. Bug fixes:
  1827. - hash table tuning (better chosen hashtable load factor 0.75 and prime initial
  1828. size of 1031 gave ~1000x speedup in some scenarios)
  1829. - avoid creation of an orphan lock for one case, #285
  1830. - --keep-tag-files: fix file mode and multiple tag files in one directory, #432
  1831. - fixes for "borg upgrade" (attic repo converter), #466
  1832. - remove --progress isatty magic (and also --no-progress option) again, #476
  1833. - borg init: display proper repo URL
  1834. - fix format of umask in help pages, #463
  1835. New features:
  1836. - implement --lock-wait, support timeout for UpgradableLock, #210
  1837. - implement borg break-lock command, #157
  1838. - include system info below traceback, #324
  1839. - sane remote logging, remote stderr, #461:
  1840. - remote log output: intercept it and log it via local logging system,
  1841. with "Remote: " prefixed to message. log remote tracebacks.
  1842. - remote stderr: output it to local stderr with "Remote: " prefixed.
  1843. - add --debug and --info (same as --verbose) to set the log level of the
  1844. builtin logging configuration (which otherwise defaults to warning), #426
  1845. note: there are few messages emitted at DEBUG level currently.
  1846. - optionally configure logging via env var BORG_LOGGING_CONF
  1847. - add --filter option for status characters: e.g. to show only the added
  1848. or modified files (and also errors), use "borg create -v --filter=AME ...".
  1849. - more progress indicators, #394
  1850. - use ISO-8601 date and time format, #375
  1851. - "borg check --prefix" to restrict archive checking to that name prefix, #206
  1852. Other changes:
  1853. - hashindex_add C implementation (speed up cache re-sync for new archives)
  1854. - increase FUSE read_size to 1024 (speed up metadata operations)
  1855. - check/delete/prune --save-space: free unused segments quickly, #239
  1856. - increase rpc protocol version to 2 (see also Compatibility notes), #458
  1857. - silence borg by default (via default log level WARNING)
  1858. - get rid of C compiler warnings, #391
  1859. - upgrade OS X FUSE to 3.0.9 on the OS X binary build system
  1860. - use python 3.5.1 to build binaries
  1861. - docs:
  1862. - new mailing list borgbackup@python.org, #468
  1863. - readthedocs: color and logo improvements
  1864. - load coverage icons over SSL (avoids mixed content)
  1865. - more precise binary installation steps
  1866. - update release procedure docs about OS X FUSE
  1867. - FAQ entry about unexpected 'A' status for unchanged file(s), #403
  1868. - add docs about 'E' file status
  1869. - add "borg upgrade" docs, #464
  1870. - add developer docs about output and logging
  1871. - clarify encryption, add note about client-side encryption
  1872. - add resources section, with videos, talks, presentations, #149
  1873. - Borg moved to Arch Linux [community]
  1874. - fix wrong installation instructions for archlinux
  1875. Version 0.28.2 (2015-11-15)
  1876. ---------------------------
  1877. New features:
  1878. - borg create --exclude-if-present TAGFILE - exclude directories that have the
  1879. given file from the backup. You can additionally give --keep-tag-files to
  1880. preserve just the directory roots and the tag-files (but not backup other
  1881. directory contents), #395, attic #128, attic #142
  1882. Other changes:
  1883. - do not create docs sources at build time (just have them in the repo),
  1884. completely remove have_cython() hack, do not use the "mock" library at build
  1885. time, #384
  1886. - avoid hidden import, make it easier for PyInstaller, easier fix for #218
  1887. - docs:
  1888. - add description of item flags / status output, fixes #402
  1889. - explain how to regenerate usage and API files (build_api or
  1890. build_usage) and when to commit usage files directly into git, #384
  1891. - minor install docs improvements
  1892. Version 0.28.1 (2015-11-08)
  1893. ---------------------------
  1894. Bug fixes:
  1895. - do not try to build api / usage docs for production install,
  1896. fixes unexpected "mock" build dependency, #384
  1897. Other changes:
  1898. - avoid using msgpack.packb at import time
  1899. - fix formatting issue in changes.rst
  1900. - fix build on readthedocs
  1901. Version 0.28.0 (2015-11-08)
  1902. ---------------------------
  1903. Compatibility notes:
  1904. - changed return codes (exit codes), see docs. in short:
  1905. old: 0 = ok, 1 = error. now: 0 = ok, 1 = warning, 2 = error
  1906. New features:
  1907. - refactor return codes (exit codes), fixes #61
  1908. - add --show-rc option enable "terminating with X status, rc N" output, fixes 58, #351
  1909. - borg create backups atime and ctime additionally to mtime, fixes #317
  1910. - extract: support atime additionally to mtime
  1911. - FUSE: support ctime and atime additionally to mtime
  1912. - support borg --version
  1913. - emit a warning if we have a slow msgpack installed
  1914. - borg list --prefix=thishostname- REPO, fixes #205
  1915. - Debug commands (do not use except if you know what you do: debug-get-obj,
  1916. debug-put-obj, debug-delete-obj, debug-dump-archive-items.
  1917. Bug fixes:
  1918. - setup.py: fix bug related to BORG_LZ4_PREFIX processing
  1919. - fix "check" for repos that have incomplete chunks, fixes #364
  1920. - borg mount: fix unlocking of repository at umount time, fixes #331
  1921. - fix reading files without touching their atime, #334
  1922. - non-ascii ACL fixes for Linux, FreeBSD and OS X, #277
  1923. - fix acl_use_local_uid_gid() and add a test for it, attic #359
  1924. - borg upgrade: do not upgrade repositories in place by default, #299
  1925. - fix cascading failure with the index conversion code, #269
  1926. - borg check: implement 'cmdline' archive metadata value decoding, #311
  1927. - fix RobustUnpacker, it missed some metadata keys (new atime and ctime keys
  1928. were missing, but also bsdflags). add check for unknown metadata keys.
  1929. - create from stdin: also save atime, ctime (cosmetic)
  1930. - use default_notty=False for confirmations, fixes #345
  1931. - vagrant: fix msgpack installation on centos, fixes #342
  1932. - deal with unicode errors for symlinks in same way as for regular files and
  1933. have a helpful warning message about how to fix wrong locale setup, fixes #382
  1934. - add ACL keys the RobustUnpacker must know about
  1935. Other changes:
  1936. - improve file size displays, more flexible size formatters
  1937. - explicitly commit to the units standard, #289
  1938. - archiver: add E status (means that an error occurred when processing this
  1939. (single) item
  1940. - do binary releases via "github releases", closes #214
  1941. - create: use -x and --one-file-system (was: --do-not-cross-mountpoints), #296
  1942. - a lot of changes related to using "logging" module and screen output, #233
  1943. - show progress display if on a tty, output more progress information, #303
  1944. - factor out status output so it is consistent, fix surrogates removal,
  1945. maybe fixes #309
  1946. - move away from RawConfigParser to ConfigParser
  1947. - archive checker: better error logging, give chunk_id and sequence numbers
  1948. (can be used together with borg debug-dump-archive-items).
  1949. - do not mention the deprecated passphrase mode
  1950. - emit a deprecation warning for --compression N (giving a just a number)
  1951. - misc .coverragerc fixes (and coverage measurement improvements), fixes #319
  1952. - refactor confirmation code, reduce code duplication, add tests
  1953. - prettier error messages, fixes #307, #57
  1954. - tests:
  1955. - add a test to find disk-full issues, #327
  1956. - travis: also run tests on Python 3.5
  1957. - travis: use tox -r so it rebuilds the tox environments
  1958. - test the generated pyinstaller-based binary by archiver unit tests, #215
  1959. - vagrant: tests: announce whether fakeroot is used or not
  1960. - vagrant: add vagrant user to fuse group for debianoid systems also
  1961. - vagrant: llfuse install on darwin needs pkgconfig installed
  1962. - vagrant: use pyinstaller from develop branch, fixes #336
  1963. - benchmarks: test create, extract, list, delete, info, check, help, fixes #146
  1964. - benchmarks: test with both the binary and the python code
  1965. - archiver tests: test with both the binary and the python code, fixes #215
  1966. - make basic test more robust
  1967. - docs:
  1968. - moved docs to borgbackup.readthedocs.org, #155
  1969. - a lot of fixes and improvements, use mobile-friendly RTD standard theme
  1970. - use zlib,6 compression in some examples, fixes #275
  1971. - add missing rename usage to docs, closes #279
  1972. - include the help offered by borg help <topic> in the usage docs, fixes #293
  1973. - include a list of major changes compared to attic into README, fixes #224
  1974. - add OS X install instructions, #197
  1975. - more details about the release process, #260
  1976. - fix linux glibc requirement (binaries built on debian7 now)
  1977. - build: move usage and API generation to setup.py
  1978. - update docs about return codes, #61
  1979. - remove api docs (too much breakage on rtd)
  1980. - borgbackup install + basics presentation (asciinema)
  1981. - describe the current style guide in documentation
  1982. - add section about debug commands
  1983. - warn about not running out of space
  1984. - add example for rename
  1985. - improve chunker params docs, fixes #362
  1986. - minor development docs update
  1987. Version 0.27.0 (2015-10-07)
  1988. ---------------------------
  1989. New features:
  1990. - "borg upgrade" command - attic -> borg one time converter / migration, #21
  1991. - temporary hack to avoid using lots of disk space for chunks.archive.d, #235:
  1992. To use it: rm -rf chunks.archive.d ; touch chunks.archive.d
  1993. - respect XDG_CACHE_HOME, attic #181
  1994. - add support for arbitrary SSH commands, attic #99
  1995. - borg delete --cache-only REPO (only delete cache, not REPO), attic #123
  1996. Bug fixes:
  1997. - use Debian 7 (wheezy) to build pyinstaller borgbackup binaries, fixes slow
  1998. down observed when running the Centos6-built binary on Ubuntu, #222
  1999. - do not crash on empty lock.roster, fixes #232
  2000. - fix multiple issues with the cache config version check, #234
  2001. - fix segment entry header size check, attic #352
  2002. plus other error handling improvements / code deduplication there.
  2003. - always give segment and offset in repo IntegrityErrors
  2004. Other changes:
  2005. - stop producing binary wheels, remove docs about it, #147
  2006. - docs:
  2007. - add warning about prune
  2008. - generate usage include files only as needed
  2009. - development docs: add Vagrant section
  2010. - update / improve / reformat FAQ
  2011. - hint to single-file pyinstaller binaries from README
  2012. Version 0.26.1 (2015-09-28)
  2013. ---------------------------
  2014. This is a minor update, just docs and new pyinstaller binaries.
  2015. - docs update about python and binary requirements
  2016. - better docs for --read-special, fix #220
  2017. - re-built the binaries, fix #218 and #213 (glibc version issue)
  2018. - update web site about single-file pyinstaller binaries
  2019. Note: if you did a python-based installation, there is no need to upgrade.
  2020. Version 0.26.0 (2015-09-19)
  2021. ---------------------------
  2022. New features:
  2023. - Faster cache sync (do all in one pass, remove tar/compression stuff), #163
  2024. - BORG_REPO env var to specify the default repo, #168
  2025. - read special files as if they were regular files, #79
  2026. - implement borg create --dry-run, attic issue #267
  2027. - Normalize paths before pattern matching on OS X, #143
  2028. - support OpenBSD and NetBSD (except xattrs/ACLs)
  2029. - support / run tests on Python 3.5
  2030. Bug fixes:
  2031. - borg mount repo: use absolute path, attic #200, attic #137
  2032. - chunker: use off_t to get 64bit on 32bit platform, #178
  2033. - initialize chunker fd to -1, so it's not equal to STDIN_FILENO (0)
  2034. - fix reaction to "no" answer at delete repo prompt, #182
  2035. - setup.py: detect lz4.h header file location
  2036. - to support python < 3.2.4, add less buggy argparse lib from 3.2.6 (#194)
  2037. - fix for obtaining ``char *`` from temporary Python value (old code causes
  2038. a compile error on Mint 17.2)
  2039. - llfuse 0.41 install troubles on some platforms, require < 0.41
  2040. (UnicodeDecodeError exception due to non-ascii llfuse setup.py)
  2041. - cython code: add some int types to get rid of unspecific python add /
  2042. subtract operations (avoid ``undefined symbol FPE_``... error on some platforms)
  2043. - fix verbose mode display of stdin backup
  2044. - extract: warn if a include pattern never matched, fixes #209,
  2045. implement counters for Include/ExcludePatterns
  2046. - archive names with slashes are invalid, attic issue #180
  2047. - chunker: add a check whether the POSIX_FADV_DONTNEED constant is defined -
  2048. fixes building on OpenBSD.
  2049. Other changes:
  2050. - detect inconsistency / corruption / hash collision, #170
  2051. - replace versioneer with setuptools_scm, #106
  2052. - docs:
  2053. - pkg-config is needed for llfuse installation
  2054. - be more clear about pruning, attic issue #132
  2055. - unit tests:
  2056. - xattr: ignore security.selinux attribute showing up
  2057. - ext3 seems to need a bit more space for a sparse file
  2058. - do not test lzma level 9 compression (avoid MemoryError)
  2059. - work around strange mtime granularity issue on netbsd, fixes #204
  2060. - ignore st_rdev if file is not a block/char device, fixes #203
  2061. - stay away from the setgid and sticky mode bits
  2062. - use Vagrant to do easy cross-platform testing (#196), currently:
  2063. - Debian 7 "wheezy" 32bit, Debian 8 "jessie" 64bit
  2064. - Ubuntu 12.04 32bit, Ubuntu 14.04 64bit
  2065. - Centos 7 64bit
  2066. - FreeBSD 10.2 64bit
  2067. - OpenBSD 5.7 64bit
  2068. - NetBSD 6.1.5 64bit
  2069. - Darwin (OS X Yosemite)
  2070. Version 0.25.0 (2015-08-29)
  2071. ---------------------------
  2072. Compatibility notes:
  2073. - lz4 compression library (liblz4) is a new requirement (#156)
  2074. - the new compression code is very compatible: as long as you stay with zlib
  2075. compression, older borg releases will still be able to read data from a
  2076. repo/archive made with the new code (note: this is not the case for the
  2077. default "none" compression, use "zlib,0" if you want a "no compression" mode
  2078. that can be read by older borg). Also the new code is able to read repos and
  2079. archives made with older borg versions (for all zlib levels 0..9).
  2080. Deprecations:
  2081. - --compression N (with N being a number, as in 0.24) is deprecated.
  2082. We keep the --compression 0..9 for now to not break scripts, but it is
  2083. deprecated and will be removed later, so better fix your scripts now:
  2084. --compression 0 (as in 0.24) is the same as --compression zlib,0 (now).
  2085. BUT: if you do not want compression, you rather want --compression none
  2086. (which is the default).
  2087. --compression 1 (in 0.24) is the same as --compression zlib,1 (now)
  2088. --compression 9 (in 0.24) is the same as --compression zlib,9 (now)
  2089. New features:
  2090. - create --compression none (default, means: do not compress, just pass through
  2091. data "as is". this is more efficient than zlib level 0 as used in borg 0.24)
  2092. - create --compression lz4 (super-fast, but not very high compression)
  2093. - create --compression zlib,N (slower, higher compression, default for N is 6)
  2094. - create --compression lzma,N (slowest, highest compression, default N is 6)
  2095. - honor the nodump flag (UF_NODUMP) and do not backup such items
  2096. - list --short just outputs a simple list of the files/directories in an archive
  2097. Bug fixes:
  2098. - fixed --chunker-params parameter order confusion / malfunction, fixes #154
  2099. - close fds of segments we delete (during compaction)
  2100. - close files which fell out the lrucache
  2101. - fadvise DONTNEED now is only called for the byte range actually read, not for
  2102. the whole file, fixes #158.
  2103. - fix issue with negative "all archives" size, fixes #165
  2104. - restore_xattrs: ignore if setxattr fails with EACCES, fixes #162
  2105. Other changes:
  2106. - remove fakeroot requirement for tests, tests run faster without fakeroot
  2107. (test setup does not fail any more without fakeroot, so you can run with or
  2108. without fakeroot), fixes #151 and #91.
  2109. - more tests for archiver
  2110. - recover_segment(): don't assume we have an fd for segment
  2111. - lrucache refactoring / cleanup, add dispose function, py.test tests
  2112. - generalize hashindex code for any key length (less hardcoding)
  2113. - lock roster: catch file not found in remove() method and ignore it
  2114. - travis CI: use requirements file
  2115. - improved docs:
  2116. - replace hack for llfuse with proper solution (install libfuse-dev)
  2117. - update docs about compression
  2118. - update development docs about fakeroot
  2119. - internals: add some words about lock files / locking system
  2120. - support: mention BountySource and for what it can be used
  2121. - theme: use a lighter green
  2122. - add pypi, wheel, dist package based install docs
  2123. - split install docs into system-specific preparations and generic instructions
  2124. Version 0.24.0 (2015-08-09)
  2125. ---------------------------
  2126. Incompatible changes (compared to 0.23):
  2127. - borg now always issues --umask NNN option when invoking another borg via ssh
  2128. on the repository server. By that, it's making sure it uses the same umask
  2129. for remote repos as for local ones. Because of this, you must upgrade both
  2130. server and client(s) to 0.24.
  2131. - the default umask is 077 now (if you do not specify via --umask) which might
  2132. be a different one as you used previously. The default umask avoids that
  2133. you accidentally give access permissions for group and/or others to files
  2134. created by borg (e.g. the repository).
  2135. Deprecations:
  2136. - "--encryption passphrase" mode is deprecated, see #85 and #97.
  2137. See the new "--encryption repokey" mode for a replacement.
  2138. New features:
  2139. - borg create --chunker-params ... to configure the chunker, fixes #16
  2140. (attic #302, attic #300, and somehow also #41).
  2141. This can be used to reduce memory usage caused by chunk management overhead,
  2142. so borg does not create a huge chunks index/repo index and eats all your RAM
  2143. if you back up lots of data in huge files (like VM disk images).
  2144. See docs/misc/create_chunker-params.txt for more information.
  2145. - borg info now reports chunk counts in the chunk index.
  2146. - borg create --compression 0..9 to select zlib compression level, fixes #66
  2147. (attic #295).
  2148. - borg init --encryption repokey (to store the encryption key into the repo),
  2149. fixes #85
  2150. - improve at-end error logging, always log exceptions and set exit_code=1
  2151. - LoggedIO: better error checks / exceptions / exception handling
  2152. - implement --remote-path to allow non-default-path borg locations, #125
  2153. - implement --umask M and use 077 as default umask for better security, #117
  2154. - borg check: give a named single archive to it, fixes #139
  2155. - cache sync: show progress indication
  2156. - cache sync: reimplement the chunk index merging in C
  2157. Bug fixes:
  2158. - fix segfault that happened for unreadable files (chunker: n needs to be a
  2159. signed size_t), #116
  2160. - fix the repair mode, #144
  2161. - repo delete: add destroy to allowed rpc methods, fixes issue #114
  2162. - more compatible repository locking code (based on mkdir), maybe fixes #92
  2163. (attic #317, attic #201).
  2164. - better Exception msg if no Borg is installed on the remote repo server, #56
  2165. - create a RepositoryCache implementation that can cope with >2GiB,
  2166. fixes attic #326.
  2167. - fix Traceback when running check --repair, attic #232
  2168. - clarify help text, fixes #73.
  2169. - add help string for --no-files-cache, fixes #140
  2170. Other changes:
  2171. - improved docs:
  2172. - added docs/misc directory for misc. writeups that won't be included
  2173. "as is" into the html docs.
  2174. - document environment variables and return codes (attic #324, attic #52)
  2175. - web site: add related projects, fix web site url, IRC #borgbackup
  2176. - Fedora/Fedora-based install instructions added to docs
  2177. - Cygwin-based install instructions added to docs
  2178. - updated AUTHORS
  2179. - add FAQ entries about redundancy / integrity
  2180. - clarify that borg extract uses the cwd as extraction target
  2181. - update internals doc about chunker params, memory usage and compression
  2182. - added docs about development
  2183. - add some words about resource usage in general
  2184. - document how to backup a raw disk
  2185. - add note about how to run borg from virtual env
  2186. - add solutions for (ll)fuse installation problems
  2187. - document what borg check does, fixes #138
  2188. - reorganize borgbackup.github.io sidebar, prev/next at top
  2189. - deduplicate and refactor the docs / README.rst
  2190. - use borg-tmp as prefix for temporary files / directories
  2191. - short prune options without "keep-" are deprecated, do not suggest them
  2192. - improved tox configuration
  2193. - remove usage of unittest.mock, always use mock from pypi
  2194. - use entrypoints instead of scripts, for better use of the wheel format and
  2195. modern installs
  2196. - add requirements.d/development.txt and modify tox.ini
  2197. - use travis-ci for testing based on Linux and (new) OS X
  2198. - use coverage.py, pytest-cov and codecov.io for test coverage support
  2199. I forgot to list some stuff already implemented in 0.23.0, here they are:
  2200. New features:
  2201. - efficient archive list from manifest, meaning a big speedup for slow
  2202. repo connections and "list <repo>", "delete <repo>", "prune" (attic #242,
  2203. attic #167)
  2204. - big speedup for chunks cache sync (esp. for slow repo connections), fixes #18
  2205. - hashindex: improve error messages
  2206. Other changes:
  2207. - explicitly specify binary mode to open binary files
  2208. - some easy micro optimizations
  2209. Version 0.23.0 (2015-06-11)
  2210. ---------------------------
  2211. Incompatible changes (compared to attic, fork related):
  2212. - changed sw name and cli command to "borg", updated docs
  2213. - package name (and name in urls) uses "borgbackup" to have fewer collisions
  2214. - changed repo / cache internal magic strings from ATTIC* to BORG*,
  2215. changed cache location to .cache/borg/ - this means that it currently won't
  2216. accept attic repos (see issue #21 about improving that)
  2217. Bug fixes:
  2218. - avoid defect python-msgpack releases, fixes attic #171, fixes attic #185
  2219. - fix traceback when trying to do unsupported passphrase change, fixes attic #189
  2220. - datetime does not like the year 10.000, fixes attic #139
  2221. - fix "info" all archives stats, fixes attic #183
  2222. - fix parsing with missing microseconds, fixes attic #282
  2223. - fix misleading hint the fuse ImportError handler gave, fixes attic #237
  2224. - check unpacked data from RPC for tuple type and correct length, fixes attic #127
  2225. - fix Repository._active_txn state when lock upgrade fails
  2226. - give specific path to xattr.is_enabled(), disable symlink setattr call that
  2227. always fails
  2228. - fix test setup for 32bit platforms, partial fix for attic #196
  2229. - upgraded versioneer, PEP440 compliance, fixes attic #257
  2230. New features:
  2231. - less memory usage: add global option --no-cache-files
  2232. - check --last N (only check the last N archives)
  2233. - check: sort archives in reverse time order
  2234. - rename repo::oldname newname (rename repository)
  2235. - create -v output more informative
  2236. - create --progress (backup progress indicator)
  2237. - create --timestamp (utc string or reference file/dir)
  2238. - create: if "-" is given as path, read binary from stdin
  2239. - extract: if --stdout is given, write all extracted binary data to stdout
  2240. - extract --sparse (simple sparse file support)
  2241. - extra debug information for 'fread failed'
  2242. - delete <repo> (deletes whole repo + local cache)
  2243. - FUSE: reflect deduplication in allocated blocks
  2244. - only allow whitelisted RPC calls in server mode
  2245. - normalize source/exclude paths before matching
  2246. - use posix_fadvise to not spoil the OS cache, fixes attic #252
  2247. - toplevel error handler: show tracebacks for better error analysis
  2248. - sigusr1 / sigint handler to print current file infos - attic PR #286
  2249. - RPCError: include the exception args we get from remote
  2250. Other changes:
  2251. - source: misc. cleanups, pep8, style
  2252. - docs and faq improvements, fixes, updates
  2253. - cleanup crypto.pyx, make it easier to adapt to other AES modes
  2254. - do os.fsync like recommended in the python docs
  2255. - source: Let chunker optionally work with os-level file descriptor.
  2256. - source: Linux: remove duplicate os.fsencode calls
  2257. - source: refactor _open_rb code a bit, so it is more consistent / regular
  2258. - source: refactor indicator (status) and item processing
  2259. - source: use py.test for better testing, flake8 for code style checks
  2260. - source: fix tox >=2.0 compatibility (test runner)
  2261. - pypi package: add python version classifiers, add FreeBSD to platforms
  2262. Attic Changelog
  2263. ---------------
  2264. Here you can see the full list of changes between each Attic release until Borg
  2265. forked from Attic:
  2266. Version 0.17
  2267. ~~~~~~~~~~~~
  2268. (bugfix release, released on X)
  2269. - Fix hashindex ARM memory alignment issue (#309)
  2270. - Improve hashindex error messages (#298)
  2271. Version 0.16
  2272. ~~~~~~~~~~~~
  2273. (bugfix release, released on May 16, 2015)
  2274. - Fix typo preventing the security confirmation prompt from working (#303)
  2275. - Improve handling of systems with improperly configured file system encoding (#289)
  2276. - Fix "All archives" output for attic info. (#183)
  2277. - More user friendly error message when repository key file is not found (#236)
  2278. - Fix parsing of iso 8601 timestamps with zero microseconds (#282)
  2279. Version 0.15
  2280. ~~~~~~~~~~~~
  2281. (bugfix release, released on Apr 15, 2015)
  2282. - xattr: Be less strict about unknown/unsupported platforms (#239)
  2283. - Reduce repository listing memory usage (#163).
  2284. - Fix BrokenPipeError for remote repositories (#233)
  2285. - Fix incorrect behavior with two character directory names (#265, #268)
  2286. - Require approval before accessing relocated/moved repository (#271)
  2287. - Require approval before accessing previously unknown unencrypted repositories (#271)
  2288. - Fix issue with hash index files larger than 2GB.
  2289. - Fix Python 3.2 compatibility issue with noatime open() (#164)
  2290. - Include missing pyx files in dist files (#168)
  2291. Version 0.14
  2292. ~~~~~~~~~~~~
  2293. (feature release, released on Dec 17, 2014)
  2294. - Added support for stripping leading path segments (#95)
  2295. "attic extract --strip-segments X"
  2296. - Add workaround for old Linux systems without acl_extended_file_no_follow (#96)
  2297. - Add MacPorts' path to the default openssl search path (#101)
  2298. - HashIndex improvements, eliminates unnecessary IO on low memory systems.
  2299. - Fix "Number of files" output for attic info. (#124)
  2300. - limit create file permissions so files aren't read while restoring
  2301. - Fix issue with empty xattr values (#106)
  2302. Version 0.13
  2303. ~~~~~~~~~~~~
  2304. (feature release, released on Jun 29, 2014)
  2305. - Fix sporadic "Resource temporarily unavailable" when using remote repositories
  2306. - Reduce file cache memory usage (#90)
  2307. - Faster AES encryption (utilizing AES-NI when available)
  2308. - Experimental Linux, OS X and FreeBSD ACL support (#66)
  2309. - Added support for backup and restore of BSDFlags (OSX, FreeBSD) (#56)
  2310. - Fix bug where xattrs on symlinks were not correctly restored
  2311. - Added cachedir support. CACHEDIR.TAG compatible cache directories
  2312. can now be excluded using ``--exclude-caches`` (#74)
  2313. - Fix crash on extreme mtime timestamps (year 2400+) (#81)
  2314. - Fix Python 3.2 specific lockf issue (EDEADLK)
  2315. Version 0.12
  2316. ~~~~~~~~~~~~
  2317. (feature release, released on April 7, 2014)
  2318. - Python 3.4 support (#62)
  2319. - Various documentation improvements a new style
  2320. - ``attic mount`` now supports mounting an entire repository not only
  2321. individual archives (#59)
  2322. - Added option to restrict remote repository access to specific path(s):
  2323. ``attic serve --restrict-to-path X`` (#51)
  2324. - Include "all archives" size information in "--stats" output. (#54)
  2325. - Added ``--stats`` option to ``attic delete`` and ``attic prune``
  2326. - Fixed bug where ``attic prune`` used UTC instead of the local time zone
  2327. when determining which archives to keep.
  2328. - Switch to SI units (Power of 1000 instead 1024) when printing file sizes
  2329. Version 0.11
  2330. ~~~~~~~~~~~~
  2331. (feature release, released on March 7, 2014)
  2332. - New "check" command for repository consistency checking (#24)
  2333. - Documentation improvements
  2334. - Fix exception during "attic create" with repeated files (#39)
  2335. - New "--exclude-from" option for attic create/extract/verify.
  2336. - Improved archive metadata deduplication.
  2337. - "attic verify" has been deprecated. Use "attic extract --dry-run" instead.
  2338. - "attic prune --hourly|daily|..." has been deprecated.
  2339. Use "attic prune --keep-hourly|daily|..." instead.
  2340. - Ignore xattr errors during "extract" if not supported by the filesystem. (#46)
  2341. Version 0.10
  2342. ~~~~~~~~~~~~
  2343. (bugfix release, released on Jan 30, 2014)
  2344. - Fix deadlock when extracting 0 sized files from remote repositories
  2345. - "--exclude" wildcard patterns are now properly applied to the full path
  2346. not just the file name part (#5).
  2347. - Make source code endianness agnostic (#1)
  2348. Version 0.9
  2349. ~~~~~~~~~~~
  2350. (feature release, released on Jan 23, 2014)
  2351. - Remote repository speed and reliability improvements.
  2352. - Fix sorting of segment names to ignore NFS left over files. (#17)
  2353. - Fix incorrect display of time (#13)
  2354. - Improved error handling / reporting. (#12)
  2355. - Use fcntl() instead of flock() when locking repository/cache. (#15)
  2356. - Let ssh figure out port/user if not specified so we don't override .ssh/config (#9)
  2357. - Improved libcrypto path detection (#23).
  2358. Version 0.8.1
  2359. ~~~~~~~~~~~~~
  2360. (bugfix release, released on Oct 4, 2013)
  2361. - Fix segmentation fault issue.
  2362. Version 0.8
  2363. ~~~~~~~~~~~
  2364. (feature release, released on Oct 3, 2013)
  2365. - Fix xattr issue when backing up sshfs filesystems (#4)
  2366. - Fix issue with excessive index file size (#6)
  2367. - Support access of read only repositories.
  2368. - New syntax to enable repository encryption:
  2369. attic init --encryption="none|passphrase|keyfile".
  2370. - Detect and abort if repository is older than the cache.
  2371. Version 0.7
  2372. ~~~~~~~~~~~
  2373. (feature release, released on Aug 5, 2013)
  2374. - Ported to FreeBSD
  2375. - Improved documentation
  2376. - Experimental: Archives mountable as FUSE filesystems.
  2377. - The "user." prefix is no longer stripped from xattrs on Linux
  2378. Version 0.6.1
  2379. ~~~~~~~~~~~~~
  2380. (bugfix release, released on July 19, 2013)
  2381. - Fixed an issue where mtime was not always correctly restored.
  2382. Version 0.6
  2383. ~~~~~~~~~~~
  2384. First public release on July 9, 2013