2
0

changes.rst 225 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649
  1. .. _important_notes:
  2. Important notes
  3. ===============
  4. This section provides information about security and corruption issues.
  5. .. _archives_tam_vuln:
  6. Pre-1.2.5 archives spoofing vulnerability (CVE-2023-36811)
  7. ----------------------------------------------------------
  8. A flaw in the cryptographic authentication scheme in Borg allowed an attacker to
  9. fake archives and potentially indirectly cause backup data loss in the repository.
  10. The attack requires an attacker to be able to
  11. 1. insert files (with no additional headers) into backups
  12. 2. gain write access to the repository
  13. This vulnerability does not disclose plaintext to the attacker, nor does it
  14. affect the authenticity of existing archives.
  15. Creating plausible fake archives may be feasible for empty or small archives,
  16. but is unlikely for large archives.
  17. The fix enforces checking the TAM authentication tag of archives at critical
  18. places. Borg now considers archives without TAM as garbage or an attack.
  19. We are not aware of others having discovered, disclosed or exploited this vulnerability.
  20. Below, if we speak of borg 1.2.6, we mean a borg version >= 1.2.6 **or** a
  21. borg version that has the relevant security patches for this vulnerability applied
  22. (could be also an older version in that case).
  23. Steps you must take to upgrade a repository (this applies to all kinds of repos
  24. no matter what encryption mode they use, including "none"):
  25. 1. Upgrade all clients using this repository to borg 1.2.6.
  26. Note: it is not required to upgrade a server, except if the server-side borg
  27. is also used as a client (and not just for "borg serve").
  28. Do **not** run ``borg check`` with borg 1.2.6 before completing the upgrade steps:
  29. - ``borg check`` would complain about archives without a valid archive TAM.
  30. - ``borg check --repair`` would remove such archives!
  31. 2. Run: ``BORG_WORKAROUNDS=ignore_invalid_archive_tam borg info --debug <repo> 2>&1 | grep TAM | grep -i manifest``
  32. a) If you get "TAM-verified manifest", continue with 3.
  33. b) If you get "Manifest TAM not found and not required", run
  34. ``borg upgrade --tam --force <repository>`` *on every client*.
  35. 3. Run: ``BORG_WORKAROUNDS=ignore_invalid_archive_tam borg list --consider-checkpoints --format='{name} {time} tam:{tam}{NL}' <repo>``
  36. "tam:verified" means that the archive has a valid TAM authentication.
  37. "tam:none" is expected as output for archives created by borg <1.0.9.
  38. "tam:none" is also expected for archives resulting from a borg rename
  39. or borg recreate operation (see #7791).
  40. "tam:none" could also come from archives created by an attacker.
  41. You should verify that "tam:none" archives are authentic and not malicious
  42. (== have good content, have correct timestamp, can be extracted successfully).
  43. In case you find crappy/malicious archives, you must delete them before proceeding.
  44. In low-risk, trusted environments, you may decide on your own risk to skip step 3
  45. and just trust in everything being OK.
  46. 4. If there are no tam:none archives left at this point, you can skip this step.
  47. Run ``BORG_WORKAROUNDS=ignore_invalid_archive_tam borg upgrade --archives-tam <repo>``.
  48. This will unconditionally add a correct archive TAM to all archives not having one.
  49. ``borg check`` would consider TAM-less or invalid-TAM archives as garbage or a potential attack.
  50. To see that all archives now are "tam:verified" run: ``borg list --consider-checkpoints --format='{name} {time} tam:{tam}{NL}' <repo>``
  51. 5. Please note that you should never use BORG_WORKAROUNDS=ignore_invalid_archive_tam
  52. for normal production operations - it is only needed once to get the archives in a
  53. repository into a good state. All archives have a valid TAM now.
  54. Vulnerability time line:
  55. * 2023-06-13: Vulnerability discovered during code review by Thomas Waldmann
  56. * 2023-06-13...: Work on fixing the issue, upgrade procedure, docs.
  57. * 2023-06-30: CVE was assigned via Github CNA
  58. * 2023-06-30 .. 2023-08-29: Fixed issue, code review, docs, testing.
  59. * 2023-08-30: Released fixed version 1.2.5 (broken upgrade procedure for some repos)
  60. * 2023-08-31: Released fixed version 1.2.6 (fixes upgrade procedure)
  61. .. _hashindex_set_bug:
  62. Pre-1.1.11 potential index corruption / data loss issue
  63. -------------------------------------------------------
  64. A bug was discovered in our hashtable code, see issue #4829.
  65. The code is used for the client-side chunks cache and the server-side repo index.
  66. Although borg uses the hashtables very heavily, the index corruption did not
  67. happen too frequently, because it needed specific conditions to happen.
  68. Data loss required even more specific conditions, so it should be rare (and
  69. also detectable via borg check).
  70. You might be affected if borg crashed with / complained about:
  71. - AssertionError: Corrupted segment reference count - corrupted index or hints
  72. - ObjectNotFound: Object with key ... not found in repository ...
  73. - Index mismatch for key b'...'. (..., ...) != (-1, -1)
  74. - ValueError: stats_against: key contained in self but not in master_index.
  75. Advised procedure to fix any related issue in your indexes/caches:
  76. - install fixed borg code (on client AND server)
  77. - for all of your clients and repos remove the cache by:
  78. borg delete --cache-only YOURREPO
  79. (later, the cache will be re-built automatically)
  80. - for all your repos, rebuild the repo index by:
  81. borg check --repair YOURREPO
  82. This will also check all archives and detect if there is any data-loss issue.
  83. Affected branches / releases:
  84. - fd06497 introduced the bug into 1.1-maint branch - it affects all borg 1.1.x since 1.1.0b4.
  85. - fd06497 introduced the bug into master branch - it affects all borg 1.2.0 alpha releases.
  86. - c5cd882 introduced the bug into 1.0-maint branch - it affects all borg 1.0.x since 1.0.11rc1.
  87. The bug was fixed by:
  88. - 701159a fixes the bug in 1.1-maint branch - will be released with borg 1.1.11.
  89. - fa63150 fixes the bug in master branch - will be released with borg 1.2.0a8.
  90. - 7bb90b6 fixes the bug in 1.0-maint branch. Branch is EOL, no new release is planned as of now.
  91. .. _broken_validator:
  92. Pre-1.1.4 potential data corruption issue
  93. -----------------------------------------
  94. A data corruption bug was discovered in borg check --repair, see issue #3444.
  95. This is a 1.1.x regression, releases < 1.1 (e.g. 1.0.x) are not affected.
  96. To avoid data loss, you must not run borg check --repair using an unfixed version
  97. of borg 1.1.x. The first official release that has the fix is 1.1.4.
  98. Package maintainers may have applied the fix to updated packages of 1.1.x (x<4)
  99. though, see the package maintainer's package changelog to make sure.
  100. If you never had missing item metadata chunks, the bug has not affected you
  101. even if you did run borg check --repair with an unfixed version.
  102. When borg check --repair tried to repair corrupt archives that miss item metadata
  103. chunks, the resync to valid metadata in still present item metadata chunks
  104. malfunctioned. This was due to a broken validator that considered all (even valid)
  105. item metadata as invalid. As they were considered invalid, borg discarded them.
  106. Practically, that means the affected files, directories or other fs objects were
  107. discarded from the archive.
  108. Due to the malfunction, the process was extremely slow, but if you let it
  109. complete, borg would have created a "repaired" archive that has lost a lot of items.
  110. If you interrupted borg check --repair because it was so strangely slow (killing
  111. borg somehow, e.g. Ctrl-C) the transaction was rolled back and no corruption occurred.
  112. The log message indicating the precondition for the bug triggering looks like:
  113. item metadata chunk missing [chunk: 001056_bdee87d...a3e50d]
  114. If you never had that in your borg check --repair runs, you're not affected.
  115. But if you're unsure or you actually have seen that, better check your archives.
  116. By just using "borg list repo::archive" you can see if all expected filesystem
  117. items are listed.
  118. .. _tam_vuln:
  119. Pre-1.0.9 manifest spoofing vulnerability (CVE-2016-10099)
  120. ----------------------------------------------------------
  121. A flaw in the cryptographic authentication scheme in Borg allowed an attacker
  122. to spoof the manifest. The attack requires an attacker to be able to
  123. 1. insert files (with no additional headers) into backups
  124. 2. gain write access to the repository
  125. This vulnerability does not disclose plaintext to the attacker, nor does it
  126. affect the authenticity of existing archives.
  127. The vulnerability allows an attacker to create a spoofed manifest (the list of archives).
  128. Creating plausible fake archives may be feasible for small archives, but is unlikely
  129. for large archives.
  130. The fix adds a separate authentication tag to the manifest. For compatibility
  131. with prior versions this authentication tag is *not* required by default
  132. for existing repositories. Repositories created with 1.0.9 and later require it.
  133. Steps you should take:
  134. 1. Upgrade all clients to 1.0.9 or later.
  135. 2. Run ``borg upgrade --tam <repository>`` *on every client* for *each* repository.
  136. 3. This will list all archives, including archive IDs, for easy comparison with your logs.
  137. 4. Done.
  138. Prior versions can access and modify repositories with this measure enabled, however,
  139. to 1.0.9 or later their modifications are indiscernible from an attack and will
  140. raise an error until the below procedure is followed. We are aware that this can
  141. be annoying in some circumstances, but don't see a way to fix the vulnerability
  142. otherwise.
  143. In case a version prior to 1.0.9 is used to modify a repository where above procedure
  144. was completed, and now you get an error message from other clients:
  145. 1. ``borg upgrade --tam --force <repository>`` once with *any* client suffices.
  146. This attack is mitigated by:
  147. - Noting/logging ``borg list``, ``borg info``, or ``borg create --stats``, which
  148. contain the archive IDs.
  149. We are not aware of others having discovered, disclosed or exploited this vulnerability.
  150. Vulnerability time line:
  151. * 2016-11-14: Vulnerability and fix discovered during review of cryptography by Marian Beermann (@enkore)
  152. * 2016-11-20: First patch
  153. * 2016-12-20: Released fixed version 1.0.9
  154. * 2017-01-02: CVE was assigned
  155. * 2017-01-15: Released fixed version 1.1.0b3 (fix was previously only available from source)
  156. .. _attic013_check_corruption:
  157. Pre-1.0.9 potential data loss
  158. -----------------------------
  159. If you have archives in your repository that were made with attic <= 0.13
  160. (and later migrated to borg), running borg check would report errors in these
  161. archives. See issue #1837.
  162. The reason for this is a invalid (and useless) metadata key that was
  163. always added due to a bug in these old attic versions.
  164. If you run borg check --repair, things escalate quickly: all archive items
  165. with invalid metadata will be killed. Due to that attic bug, that means all
  166. items in all archives made with these old attic versions.
  167. Pre-1.0.4 potential repo corruption
  168. -----------------------------------
  169. Some external errors (like network or disk I/O errors) could lead to
  170. corruption of the backup repository due to issue #1138.
  171. A sign that this happened is if "E" status was reported for a file that can
  172. not be explained by problems with the source file. If you still have logs from
  173. "borg create -v --list", you can check for "E" status.
  174. Here is what could cause corruption and what you can do now:
  175. 1) I/O errors (e.g. repo disk errors) while writing data to repo.
  176. This could lead to corrupted segment files.
  177. Fix::
  178. # check for corrupt chunks / segments:
  179. borg check -v --repository-only REPO
  180. # repair the repo:
  181. borg check -v --repository-only --repair REPO
  182. # make sure everything is fixed:
  183. borg check -v --repository-only REPO
  184. 2) Unreliable network / unreliable connection to the repo.
  185. This could lead to archive metadata corruption.
  186. Fix::
  187. # check for corrupt archives:
  188. borg check -v --archives-only REPO
  189. # delete the corrupt archives:
  190. borg delete --force REPO::CORRUPT_ARCHIVE
  191. # make sure everything is fixed:
  192. borg check -v --archives-only REPO
  193. 3) In case you want to do more intensive checking.
  194. The best check that everything is ok is to run a dry-run extraction::
  195. borg extract -v --dry-run REPO::ARCHIVE
  196. .. _upgradenotes:
  197. Upgrade Notes
  198. =============
  199. borg 1.2.x to 1.4.x
  200. -------------------
  201. Coming from borg 1.2 there are no upgrade steps needed - just make sure you
  202. already have done the previous upgrade steps up to 1.2.7.
  203. Compatibility notes:
  204. By default, borg 1.4 will behave quite similar to borg 1.2 (it was forked off
  205. from 1.2-maint branch at 1.2.7).
  206. For better error handling in your scripts, wrappers or GUI frontends, you may
  207. want to use BORG_EXIT_CODES=modern - in that case you of course will need to
  208. make sure these deal with the new error and warning exit codes, see
  209. internals/frontends docs.
  210. borg 1.1.x to 1.2.x
  211. -------------------
  212. Some things can be recommended for the upgrade process from borg 1.1.x
  213. (please also read the important compatibility notes below):
  214. - first upgrade to a recent 1.1.x release - especially if you run some older
  215. 1.1.* or even 1.0.* borg release.
  216. - using that, run at least one `borg create` (your normal backup), `prune`
  217. and especially a `check` to see everything is in a good state.
  218. - check the output of `borg check` - if there is anything special, consider
  219. a `borg check --repair` followed by another `borg check`.
  220. - if everything is fine so far (borg check reports no issues), you can consider
  221. upgrading to 1.2.x. if not, please first fix any already existing issue.
  222. - if you want to play safer, first **create a backup of your borg repository**.
  223. - upgrade to latest borg 1.2.x release (you could use the fat binary from
  224. github releases page)
  225. - borg 1.2.6 has a security fix for the pre-1.2.5 archives spoofing vulnerability
  226. (CVE-2023-36811), see details and necessary upgrade procedure described above.
  227. - run `borg compact --cleanup-commits` to clean up a ton of 17 bytes long files
  228. in your repo caused by a borg 1.1 bug
  229. - run `borg check` again (now with borg 1.2.x) and check if there is anything
  230. special.
  231. - run `borg info` (with borg 1.2.x) to build the local pre12-meta cache (can
  232. take significant time, but after that it will be fast) - for more details
  233. see below.
  234. - check the compatibility notes (see below) and adapt your scripts, if needed.
  235. - if you run into any issues, please check the github issue tracker before
  236. posting new issues there or elsewhere.
  237. If you follow this procedure, you can help avoiding that we get a lot of
  238. "borg 1.2" issue reports that are not really 1.2 issues, but existed before
  239. and maybe just were not noticed.
  240. Compatibility notes:
  241. - matching of path patterns has been aligned with borg storing relative paths.
  242. Borg archives file paths without leading slashes. Previously, include/exclude
  243. patterns could contain leading slashes. You should check your patterns and
  244. remove leading slashes.
  245. - dropped support / testing for older Pythons, minimum requirement is 3.8.
  246. In case your OS does not provide Python >= 3.8, consider using our binary,
  247. which does not need an external Python interpreter. Or continue using
  248. borg 1.1.x, which is still supported.
  249. - freeing repository space only happens when "borg compact" is invoked.
  250. - mount: the default for --numeric-ids is False now (same as borg extract)
  251. - borg create --noatime is deprecated. Not storing atime is the default behaviour
  252. now (use --atime if you want to store the atime).
  253. - --prefix is deprecated, use -a / --glob-archives, see #6806
  254. - list: corrected mix-up of "isomtime" and "mtime" formats.
  255. Previously, "isomtime" was the default but produced a verbose human format,
  256. while "mtime" produced a ISO-8601-like format.
  257. The behaviours have been swapped (so "mtime" is human, "isomtime" is ISO-like),
  258. and the default is now "mtime".
  259. "isomtime" is now a real ISO-8601 format ("T" between date and time, not a space).
  260. - create/recreate --list: file status for all files used to get announced *AFTER*
  261. the file (with borg < 1.2). Now, file status is announced *BEFORE* the file
  262. contents are processed. If the file status changes later (e.g. due to an error
  263. or a content change), the updated/final file status will be printed again.
  264. - removed deprecated-since-long stuff (deprecated since):
  265. - command "borg change-passphrase" (2017-02), use "borg key ..."
  266. - option "--keep-tag-files" (2017-01), use "--keep-exclude-tags"
  267. - option "--list-format" (2017-10), use "--format"
  268. - option "--ignore-inode" (2017-09), use "--files-cache" w/o "inode"
  269. - option "--no-files-cache" (2017-09), use "--files-cache=disabled"
  270. - removed BORG_HOSTNAME_IS_UNIQUE env var.
  271. to use borg you must implement one of these 2 scenarios:
  272. - 1) the combination of FQDN and result of uuid.getnode() must be unique
  273. and stable (this should be the case for almost everybody, except when
  274. having duplicate FQDN *and* MAC address or all-zero MAC address)
  275. - 2) if you are aware that 1) is not the case for you, you must set
  276. BORG_HOST_ID env var to something unique.
  277. - exit with 128 + signal number, #5161.
  278. if you have scripts expecting rc == 2 for a signal exit, you need to update
  279. them to check for >= 128.
  280. .. _changelog:
  281. Change Log
  282. ==========
  283. Version 1.4.0b1 (2024-01-21)
  284. ----------------------------
  285. For upgrade and compatibility hints, please also read the section "Upgrade Notes"
  286. above.
  287. Fixes:
  288. - fix CommandError args, #8029
  289. New features:
  290. - implement "borg version" (shows client and server version), #7829
  291. Other changes:
  292. - better error msg for corrupted key data, #8016
  293. - repository: give clean error msg for invalid nonce file, #7967
  294. - check_can_create_repository: deal with PermissionErrors, #7016
  295. - add ConnectionBrokenWithHint for BrokenPipeErrors and similar, #7016
  296. - with-lock: catch exception, print error msg, #8022
  297. - use cython 3.0.8
  298. - modernize msgpack wrapper
  299. - docs:
  300. - add brew bundle instructions (macOS)
  301. - improve docs for borg with-lock, #8022
  302. Version 1.4.0a1 (2024-01-01)
  303. ----------------------------
  304. New features:
  305. - BORG_EXIT_CODES=modern: optional more specific return codes (for errors and warnings).
  306. The default value of this new environment variable is "legacy", which should result in
  307. a behaviour similar to borg 1.2 and older (only using rc 0, 1 and 2).
  308. "modern" exit codes are much more specific (see the internals/frontends docs).
  309. Fixes:
  310. - PATH: do not accept empty strings, #4221.
  311. This affects the cli interface of misc. commands (create, extract, diff, mount, ...)
  312. and they now will reject "" (empty string) given as a path.
  313. Other changes:
  314. - Python: require Python >= 3.9, drop support for 3.8, #6383
  315. - Cython: require Cython >= 3.0, drop support for Cython 0.29.x,
  316. use 3str language level (default in cython3), #7978
  317. - use pyinstaller 6.3.0 and python 3.11 for binary build, #7987
  318. - msgpack: require >= 1.0.3, <= 1.0.7
  319. - replace flake8 by ruff style/issue checker
  320. - tests: remove python-dateutil dependency
  321. - tests: move conftest.py to src/borg/testsuite, #6386
  322. - move misc. config/metadata to pyproject.toml
  323. - vagrant:
  324. - use a freebsd 14 box, #6871
  325. - use generic/openbsd7 box
  326. - use openssl 3 on macOS, FreeBSD, OpenBSD
  327. - remove ubuntu 20.04 "focal" box
  328. - remove debian 9 "stretch" box (remove stretch-based binary builds)
  329. - require recent setuptools and setuptools_scm
  330. - crypto: get rid of deprecated HMAC_* functions to avoid warnings.
  331. Instead, use hmac.digest from Python stdlib.
  332. Version 1.2.7 (2023-12-02)
  333. --------------------------
  334. Fixes:
  335. - docs: CVE-2023-36811 upgrade steps: consider checkpoint archives, #7802
  336. - check/compact: fix spurious reappearance of orphan chunks since borg 1.2, #6687 -
  337. this consists of 2 fixes:
  338. - for existing chunks: check --repair: recreate shadow index, #7897 #6687
  339. - for newly created chunks: update shadow index when doing a double-put, #7896 #5661
  340. If you have experienced issue #6687, you may want to run borg check --repair
  341. after upgrading to borg 1.2.7 to recreate the shadow index and get rid of the
  342. issue for existing chunks.
  343. - LockRoster.modify: no KeyError if element was already gone, #7937
  344. - create --X-from-command: run subcommands with a clean environment, #7916
  345. - list --sort-by: support "archive" as alias of "name", #7873
  346. - fix rc and msg if arg parsing throws an exception, #7885
  347. Other changes:
  348. - support and test on Python 3.12
  349. - include unistd.h in _chunker.c (fix for Python 3.13)
  350. - allow msgpack 1.0.6 and 1.0.7
  351. - TAM issues: show tracebacks, improve borg check logging, #7797
  352. - replace "datetime.utcfromtimestamp" with custom helper to avoid
  353. deprecation warnings when using Python 3.12
  354. - vagrant:
  355. - use generic/debian9 box, fixes #7579
  356. - add VM with debian bookworm / test on OpenSSL 3.0.x.
  357. - docs:
  358. - not only attack/unsafe, can also be a fs issue, #7853
  359. - point to CVE-2023-36811 upgrade steps from borg 1.1 to 1.2 upgrade steps, #7899
  360. - upgrade steps needed for all kinds of repos (including "none" encryption mode), #7813
  361. - upgrade steps: talk about consequences of borg check, #7816
  362. - upgrade steps: remove period that could be interpreted as part of the command
  363. - automated-local.rst: use GPT UUID for consistent udev rule
  364. - create disk/partition sector backup by disk serial number, #7934
  365. - update macOS hint about full disk access
  366. - clarify borg prune -a option description, #7871
  367. - readthedocs: also build offline docs (HTMLzip), #7835
  368. - frontends: add "check.rebuild_refcounts" message
  369. Version 1.2.6 (2023-08-31)
  370. --------------------------
  371. Fixes:
  372. - The upgrade procedure docs as published with borg 1.2.5 did not work, if the
  373. repository had archives resulting from a borg rename or borg recreate operation.
  374. The updated docs now use BORG_WORKAROUNDS=ignore_invalid_archive_tam at some
  375. places to avoid that issue, #7791.
  376. See: fix pre-1.2.5 archives spoofing vulnerability (CVE-2023-36811),
  377. details and necessary upgrade procedure described above.
  378. Other changes:
  379. - updated 1.2.5 changelog entry: 1.2.5 already has the fix for rename/recreate.
  380. - remove cython restrictions. recommended is to build with cython 0.29.latest,
  381. because borg 1.2.x uses this since years and it is very stable.
  382. you can also try to build with cython 3.0.x, there is a good chance that it works.
  383. as a 3rd option, we also bundle the `*.c` files cython outputs in the release
  384. pypi package, so you can also just use these and not need cython at all.
  385. Version 1.2.5 (2023-08-30)
  386. --------------------------
  387. Fixes:
  388. - Security: fix pre-1.2.5 archives spoofing vulnerability (CVE-2023-36811),
  389. see details and necessary upgrade procedure described above.
  390. - rename/recreate: correctly update resulting archive's TAM, see #7791
  391. - create: do not try to read parent dir of recursion root, #7746
  392. - extract: fix false warning about pattern never matching, #4110
  393. - diff: remove surrogates before output, #7535
  394. - compact: clear empty directories at end of compact process, #6823
  395. - create --files-cache=size: fix crash, #7658
  396. - keyfiles: improve key sanity check, #7561
  397. - only warn about "invalid" chunker params, #7590
  398. - ProgressIndicatorPercent: fix space computation for wide chars, #3027
  399. - improve argparse validator error messages
  400. New features:
  401. - mount: make up volname if not given (macOS), #7690.
  402. macFUSE supports a volname mount option to give what finder displays on the
  403. desktop / in the directory view. if the user did not specify it, we make
  404. something up, because otherwise it would be "macFUSE Volume 0 (Python)" and
  405. hide the mountpoint directory name.
  406. - BORG_WORKAROUNDS=authenticated_no_key to extract from authenticated repos
  407. without key, #7700
  408. Other changes:
  409. - add `utcnow()` helper function to avoid deprecated `datetime.utcnow()`
  410. - stay on latest Cython 0.29 (0.29.36) for borg 1.2.x (do not use Cython 3.0 yet)
  411. - docs:
  412. - move upgrade notes to own section, see #7546
  413. - mount -olocal: how to show mount in finder's sidebar, #5321
  414. - list: fix --pattern examples, #7611
  415. - improve patterns help
  416. - incl./excl. options, path-from-stdin exclusiveness
  417. - obfuscation docs: markup fix, note about MAX_DATA_SIZE
  418. - --one-file-system: add macOS apfs notes, #4876
  419. - improve --one-file-system help string, #5618
  420. - rewrite borg check docs
  421. - improve the docs for --keep-within, #7687
  422. - fix borg init command in environment.rst.inc
  423. - 1.1.x upgrade notes: more precise borg upgrade instructions, #3396
  424. - tests:
  425. - fix repo reopen
  426. - avoid long ids in pytest output
  427. - check buzhash chunksize distribution, see #7586
  428. Version 1.2.4 (2023-03-24)
  429. --------------------------
  430. New features:
  431. - import-tar: add --ignore-zeros to process concatenated tars, #7432.
  432. - debug id-hash: computes file/chunk content id-hash, #7406
  433. - diff: --content-only does not show mode/ctime/mtime changes, #7248
  434. - diff: JSON strings in diff output are now sorted alphabetically
  435. Bug fixes:
  436. - xattrs: fix namespace processing on FreeBSD, #6997
  437. - diff: fix path related bug seen when addressing deferred items.
  438. - debug get-obj/put-obj: always give chunkid as cli param, see #7290
  439. (this is an incompatible change, see also borg debug id-hash)
  440. - extract: fix mtime when ResourceFork xattr is set (macOS specific), #7234
  441. - recreate: without --chunker-params, do not re-chunk, #7337
  442. - recreate: when --target is given, do not detect "nothing to do".
  443. use case: borg recreate -a src --target dst can be used to make a copy
  444. of an archive inside the same repository, #7254.
  445. - set .hardlink_master for ALL hardlinkable items, #7175
  446. - locking: fix host, pid, tid order.
  447. tid (thread id) must be parsed as hex from lock file name.
  448. - update development.lock.txt, including a setuptools security fix, #7227
  449. Other changes:
  450. - requirements: allow msgpack 1.0.5 also
  451. - upgrade Cython to 0.29.33
  452. - hashindex minor fixes, refactor, tweaks, tests
  453. - use os.replace not os.rename
  454. - remove BORG_LIBB2_PREFIX (not used any more)
  455. - docs:
  456. - BORG_KEY_FILE: clarify docs, #7444
  457. - update FAQ about locale/unicode issues, #6999
  458. - improve mount options rendering, #7359
  459. - make timestamps in manual pages reproducible
  460. - installation: update Fedora in distribution list, #7357
  461. - tests:
  462. - fix test_size_on_disk_accurate for large st_blksize, #7250
  463. - add same_ts_ns function and use it for relaxed timestamp comparisons
  464. - "auto" compressor tests: don't assume a specific size,
  465. do not assume zlib is better than lz4, #7363
  466. - add test for extracted directory mtime
  467. - vagrant:
  468. - upgrade local freebsd 12.1 box -> generic/freebsd13 box (13.1)
  469. - use pythons > 3.8 which work on freebsd 13.1
  470. - pyenv: also install python 3.11.1 for testing
  471. - pyenv: use python 3.10.1, 3.10.0 build is broken on freebsd
  472. Version 1.2.3 (2022-12-24)
  473. --------------------------
  474. Fixes:
  475. - create: fix --list --dry-run output for directories, #7209
  476. - diff/recreate: normalize chunker params before comparing them, #7079
  477. - check: fix uninitialised variable if repo is completely empty, #7034
  478. - xattrs: improve error handling, #6988
  479. - fix args.paths related argparsing, #6994
  480. - archive.save(): always use metadata from stats (e.g. nfiles, size, ...), #7072
  481. - tar_filter: recognize .tar.zst as zstd, #7093
  482. - get_chunker: fix missing sparse=False argument, #7056
  483. - file_integrity.py: make sure file_fd is always closed on exit
  484. - repository: cleanup(): close segment before unlinking
  485. - repository: use os.replace instead of os.rename
  486. Other changes:
  487. - remove python < 3.7 compatibility code
  488. - do not use version_tuple placeholder in setuptools_scm template
  489. - CI: fix tox4 passenv issue, #7199
  490. - vagrant: update to python 3.9.16, use the openbsd 7.1 box
  491. - misc. test suite and docs fixes / improvements
  492. - remove deprecated --prefix from docs, #7109
  493. - Windows: use MSYS2 for Github CI, remove Appveyor CI
  494. Version 1.2.2 (2022-08-20)
  495. --------------------------
  496. New features:
  497. - prune/delete --checkpoint-interval=1800 and ctrl-c/SIGINT support, #6284
  498. Fixes:
  499. - SaveFile: use a custom mkstemp with mode support, #6933, #6400, #6786.
  500. This fixes umask/mode/ACL issues (and also "chmod not supported" exceptions
  501. seen in 1.2.1) of files updated using SaveFile, e.g. the repo config.
  502. - hashindex_compact: fix eval order (check idx before use), #5899
  503. - create --paths-from-(stdin|command): normalize paths, #6778
  504. - secure_erase: avoid collateral damage, #6768.
  505. If a hardlink copy of a repo was made and a new repo config shall be saved,
  506. do NOT fill in random garbage before deleting the previous repo config,
  507. because that would damage the hardlink copy.
  508. - list: fix {flags:<WIDTH>} formatting, #6081
  509. - check: try harder to create the key, #5719
  510. - misc commands: ctrl-c must not kill other subprocesses, #6912
  511. - borg create with a remote repo via ssh
  512. - borg create --content-from-command
  513. - borg create --paths-from-command
  514. - (de)compression filter process of import-tar / export-tar
  515. Other changes:
  516. - deprecate --prefix, use -a / --glob-archives, see #6806
  517. - make setuptools happy ("package would be ignored"), #6874
  518. - fix pyproject.toml to create a fixed _version.py file, compatible with both
  519. old and new setuptools_scm version, #6875
  520. - automate asciinema screencasts
  521. - CI: test on macOS 12 without fuse / fuse tests
  522. (too troublesome on github CI due to kernel extensions needed by macFUSE)
  523. - tests: fix test_obfuscate byte accounting
  524. - repository: add debug logging for issue #6687
  525. - _chunker.c: fix warnings on macOS
  526. - requirements.lock.txt: use the latest cython 0.29.32
  527. - docs:
  528. - add info on man page installation, #6894
  529. - update archive_progress json description about "finished", #6570
  530. - json progress_percent: some values are optional, #4074
  531. - FAQ: full quota / full disk, #5960
  532. - correct shell syntax for installation using git
  533. Version 1.2.1 (2022-06-06)
  534. --------------------------
  535. Fixes:
  536. - create: skip with warning if opening the parent dir of recursion root fails, #6374
  537. - create: fix crash. metadata stream can produce all-zero chunks, #6587
  538. - fix crash when computing stats, escape % chars in archive name, #6500
  539. - fix transaction rollback: use files cache filename as found in txn.active/, #6353
  540. - import-tar: kill filter process in case of borg exceptions, #6401 #6681
  541. - import-tar: fix mtime type bug
  542. - ensure_dir: respect umask for created directory modes, #6400
  543. - SaveFile: respect umask for final file mode, #6400
  544. - check archive: improve error handling for corrupt archive metadata block, make
  545. robust_iterator more robust, #4777
  546. - pre12-meta cache: do not use the cache if want_unique is True, #6612
  547. - fix scp-style repo url parsing for ip v6 address, #6526
  548. - mount -o versions: give clear error msg instead of crashing.
  549. it does not make sense to request versions view if you only look at 1 archive,
  550. but the code shall not crash in that case as it did, but give a clear error msg.
  551. - show_progress: add finished=true/false to archive_progress json, #6570
  552. - delete/prune: fix --iec mode output (decimal vs. binary units), #6606
  553. - info: fix authenticated mode repo to show "Encrypted: No", #6462
  554. - diff: support presence change for blkdev, chrdev and fifo items, #6615
  555. New features:
  556. - delete: add repository id and location to prompt, #6453
  557. - borg debug dump-repo-objs --ghost: new --segment=S --offset=O options
  558. Other changes:
  559. - support python 3.11
  560. - allow msgpack 1.0.4, #6716
  561. - load_key: no key is same as empty key, #6441
  562. - give a more helpful error msg for unsupported key formats, #6561
  563. - better error msg for defect or unsupported repo configs, #6566
  564. - docs:
  565. - document borg 1.2 pattern matching behavior change, #6407
  566. Make clear that absolute paths always go into the matcher as if they are
  567. relative (without leading slash). Adapt all examples accordingly.
  568. - authentication primitives: improved security and performance infos
  569. - mention BORG_FILES_CACHE_SUFFIX as alternative to BORG_FILES_CACHE_TTL, #5602
  570. - FAQ: add a hint about --debug-topic=files_cache
  571. - improve borg check --max-duration description
  572. - fix values of TAG bytes, #6515
  573. - borg compact --cleanup-commits also runs a normal compaction, #6324
  574. - virtualization speed tips
  575. - recommend umask for passphrase file perms
  576. - borg 1.2 is security supported
  577. - update link to ubuntu packages, #6485
  578. - use --numeric-ids in pull mode docs
  579. - remove blake2 docs, blake2 code not bundled any more, #6371
  580. - clarify on-disk order and size of segment file log entry fields, #6357
  581. - docs building: do not transform --/--- to unicode dashes
  582. - tests:
  583. - check that borg does not require pytest for normal usage, fixes #6563
  584. - fix OpenBSD symlink mode test failure, #2055
  585. - vagrant:
  586. - darwin64: remove fakeroot, #6314
  587. - update development.lock.txt
  588. - use pyinstaller 4.10 and python 3.9.13 for binary build
  589. - upgrade VMCPUS and xdistn from 4 to 16, maybe this speeds up the tests
  590. - crypto:
  591. - use hmac.compare_digest instead of ==, #6470
  592. - hmac_sha256: replace own cython wrapper code by hmac.digest python stdlib (since py38)
  593. - hmac and blake2b minor optimizations and cleanups
  594. - removed some unused crypto related code, #6472
  595. - avoid losing the key (potential use-after-free). this never could happen in
  596. 1.2 due to the way we use the code. The issue was discovered in master after
  597. other changes, so we also "fixed" it here before it bites us.
  598. - setup / build:
  599. - add pyproject.toml, fix sys.path, #6466
  600. - setuptools_scm: also require it via pyproject.toml
  601. - allow extra compiler flags for every extension build
  602. - fix misc. C / Cython compiler warnings, deprecation warnings
  603. - fix zstd.h include for bundled zstd, #6369
  604. - source using python 3.8 features: ``pyupgrade --py38-plus ./**/*.py``
  605. Version 1.2.0 (2022-02-22 22:02:22 :-)
  606. --------------------------------------
  607. Fixes:
  608. - diff: reduce memory consumption, fix is_hardlink_master, #6295
  609. - compact: fix / improve freeable / freed space log output
  610. - derive really freed space from quota use before/after, #5679
  611. - do not say "freeable", but "maybe freeable" (based on hint, unsure)
  612. - fix race conditions in internal SaveFile function, #6306 #6028
  613. - implement internal safe_unlink (was: truncate_and_unlink) function more safely:
  614. usually it does not truncate any more, only under "disk full" circumstances
  615. and only if there is only one hardlink.
  616. see: https://github.com/borgbackup/borg/discussions/6286
  617. Other changes:
  618. - info: use a pre12-meta cache to accelerate stats for borg < 1.2 archives.
  619. the first time borg info is invoked on a borg 1.1 repo, it can take a
  620. rather long time computing and caching some stats values for 1.1 archives,
  621. which borg 1.2 archives have in their archive metadata structure.
  622. be patient, esp. if you have lots of old archives.
  623. following invocations are much faster due to the cache.
  624. related change: add archive name to calc_stats progress display.
  625. - docs:
  626. - add borg 1.2 upgrade notes, #6217
  627. - link to borg placeholders and borg patterns help
  628. - init: explain the encryption modes better
  629. - clarify usage of patternfile roots
  630. - put import-tar docs into same file as export-tar docs
  631. - explain the difference between a path that ends with or without a slash,
  632. #6297
  633. Version 1.2.0rc1 (2022-02-05)
  634. -----------------------------
  635. Fixes:
  636. - repo::archive location placeholder expansion fixes, #5826, #5998
  637. - repository: fix intermediate commits, shall be at end of current segment
  638. - delete: don't commit if nothing was deleted, avoid cache sync, #6060
  639. - argument parsing: accept some options only once, #6026
  640. - disallow overwriting of existing keyfiles on init, #6036
  641. - if ensure_dir() fails, give more informative error message, #5952
  642. New features:
  643. - delete --force: do not ask when deleting a repo, #5941
  644. Other changes:
  645. - requirements: exclude broken or incompatible-with-pyinstaller setuptools
  646. - add a requirements.d/development.lock.txt and use it for vagrant
  647. - tests:
  648. - added nonce-related tests
  649. - refactor: remove assert_true
  650. - vagrant: macos box tuning, netbsd box fixes, #5370, #5922
  651. - docs:
  652. - update install docs / requirements docs, #6180
  653. - borg mount / FUSE "versions" view is not experimental any more
  654. - --pattern* is not experimental any more, #6134
  655. - impact of deleting path/to/repo/nonce, #5858
  656. - key export: add examples, #6204
  657. - ~/.config/borg/keys is not used for repokey keys, #6107
  658. - excluded parent dir's metadata can't restore
  659. Version 1.2.0b4 (2022-01-23)
  660. ----------------------------
  661. Fixes:
  662. - create: fix passing device nodes and symlinks to --paths-from-stdin, #6009
  663. - create --dry-run: fix display of kept tagfile, #5834
  664. - check --repair: fix missing parameter in "did not consistently fail" msg, #5822
  665. - fix hardlinkable file type check, #6037
  666. - list: remove placeholders for shake_* hashes, #6082
  667. - prune: handle case of calling prune_split when there are no archives, #6015
  668. - benchmark crud: make sure cleanup of borg-test-data files/dir happens, #5630
  669. - do not show archive name in repository-related error msgs, #6014
  670. - prettier error msg (no stacktrace) if exclude file is missing, #5734
  671. - do not require BORG_CONFIG_DIR if BORG_{SECURITY,KEYS}_DIR are set, #5979
  672. - fix pyinstaller detection for dir-mode, #5897
  673. - atomically create the CACHE_TAG file, #6028
  674. - deal with the SaveFile/SyncFile race, docs, see #6056 708a5853
  675. - avoid expanding path into LHS of formatting operation + tests, #6064 #6063
  676. - repository: quota / compactable computation fixes
  677. - info: emit repo info even if repo has 0 archives + test, #6120
  678. New features:
  679. - check --repair: significantly speed up search for next valid object in segment, #6022
  680. - check: add progress indicator for archive check, #5809
  681. - create: add retry_erofs workaround for O_NOATIME issue on volume shadow copies in WSL1, #6024
  682. - create: allow --files-cache=size (this is potentially dangerous, use on your own risk), #5686
  683. - import-tar: implement import-tar to complement export-tar, #2233
  684. - implement BORG_SELFTEST env variable (can be carefully used to speedup borg hosting), #5871
  685. - key export: print key if path is '-' or not given, #6092
  686. - list --format: Add command_line to format keys
  687. Other changes:
  688. - pypi metadata: alpha -> beta
  689. - require python 3.8+, #5975
  690. - use pyinstaller 4.7
  691. - allow msgpack 1.0.3
  692. - upgrade to bundled xxhash to 0.8.1
  693. - import-tar / export-tar: tar file related changes:
  694. - check for short tarfile extensions
  695. - add .lz4 and .zstd
  696. - fix docs about extensions and decompression commands
  697. - add github codeql analysis, #6148
  698. - vagrant:
  699. - box updates / add new boxes / remove outdated and broken boxes
  700. - use Python 3.9.10 (incl. binary builds) and 3.10.0
  701. - fix pyenv initialisation, #5798
  702. - fix vagrant scp on macOS, #5921
  703. - use macfuse instead of osxfuse
  704. - shell completions:
  705. - update shell completions to 1.1.17, #5923
  706. - remove BORG_LIBC completion, since 9914968 borg no longer uses find_library().
  707. - docs:
  708. - fixed readme.rst irc webchat link (we use libera chat now, not freenode)
  709. - fix exceptions thrown by `setup.py build_man`
  710. - check --repair: recommend checking hw before check --repair, #5855
  711. - check --verify-data: clarify and document conflict with --repository-only, #5808
  712. - serve: improve ssh forced commands docs, #6083
  713. - list: improve docs for `borg list` --format, #6061
  714. - list: remove --list-format from borg list
  715. - FAQ: fix manifest-timestamp path (inside security dir)
  716. - fix the broken link to .nix file
  717. - document behavior for filesystems with inconsistent inodes, #5770
  718. - clarify user_id vs uid for fuse, #5723
  719. - clarify pattern usage with commands, #5176
  720. - clarify pp vs. pf pattern type, #5300
  721. - update referenced freebsd/macOS versions used for binary build, #5942
  722. - pull mode: add some warnings, #5827
  723. - clarify "you will need key and passphrase" borg init warning, #4622
  724. - add missing leading slashes in help patterns, #5857
  725. - add info on renaming repositories, #5240
  726. - check: add notice about defective hardware, #5753
  727. - mention tar --compare (compare archive to fs files), #5880
  728. - add note about grandfather-father-son backup retention policy / rotation scheme, #6006
  729. - permissions note rewritten to make it less confusing
  730. - create github security policy
  731. - remove leftovers of BORG_HOSTNAME_IS_UNIQUE
  732. - excluded parent dir's metadata can't restore. (#6062)
  733. - if parent dir is not extracted, we do not have its metadata
  734. - clarify who starts the remote agent
  735. Version 1.2.0b3 (2021-05-12)
  736. ----------------------------
  737. Fixes:
  738. - create: fix --progress --log-json, #4360#issuecomment-774580052
  739. - do not load files cache for commands not using it, #5673
  740. - fix repeated cache tag file writing bug
  741. New features:
  742. - create/recreate: print preliminary file status early, #5417
  743. - create/extract: add --noxattrs and --noacls options, #3955
  744. - create: verbose files cache logging via --debug-topic=files_cache, #5659
  745. - mount: implement --numeric-ids (default: False!), #2377
  746. - diff: add --json-lines option
  747. - info / create --stats: add --iec option to print sizes in powers of 1024.
  748. Other changes:
  749. - create: add --upload-(ratelimit|buffer), deprecate --remote-* options, #5611
  750. - create/extract/mount: add --numeric-ids, deprecate --numeric-owner option, #5724
  751. - config: accept non-int value for max_segment_size / storage_quota
  752. - use PyInstaller v4.3, #5671
  753. - vagrant: use Python 3.9.5 to build binaries
  754. - tox.ini: modernize and enable execution without preinstalling deps
  755. - cleanup code style checks
  756. - get rid of distutils, use setuptools+packaging
  757. - github CI: test on Python 3.10-dev
  758. - check: missing / healed chunks: always tell chunk ID, #5704
  759. - docs:
  760. - remove bad /var/cache exclusion in example commands, #5625
  761. - misc. fixes and improvements, esp. for macOS
  762. - add unsafe workaround to use an old repo copy, #5722
  763. Version 1.2.0b2 (2021-02-06)
  764. ----------------------------
  765. Fixes:
  766. - create: do not recurse into duplicate roots, #5603
  767. - create: only print stats if not ctrl-c'ed, fixes traceback, #5668
  768. - extract:
  769. improve exception handling when setting xattrs, #5092.
  770. emit a warning message giving the path, xattr key and error message.
  771. continue trying to restore other xattrs and bsdflags of the same file
  772. after an exception with xattr-setting happened.
  773. - export-tar:
  774. fix memory leak with ssh: remote repository, #5568.
  775. fix potential memory leak with ssh: remote repository with partial extraction.
  776. - remove empty shadowed_segments lists, #5275
  777. - fix bad default: manifest.archives.list(consider_checkpoints=False),
  778. fixes tracebacks / KeyErros for missing objects in ChunkIndex, #5668
  779. New features:
  780. - create: improve sparse file support
  781. - create --sparse (detect sparse file holes) and file map support,
  782. only for the "fixed" chunker, #14
  783. - detect all-zero chunks in read data in "buzhash" and "fixed" chunkers
  784. - cached_hash: use a small LRU cache to accelerate all-zero chunks hashing
  785. - use cached_hash also to generate all-zero replacement chunks
  786. - create --remote-buffer, add a upload buffer for remote repos, #5574
  787. - prune: keep oldest archive when retention target not met
  788. Other changes:
  789. - use blake2 from python 3.6+ hashlib
  790. (this removes the requirement for libb2 and the bundled blake2 code)
  791. - also accept msgpack up to 1.0.2.
  792. exclude 1.0.1 though, which had some issues (not sure they affect borg).
  793. - create: add repository location to --stats output, #5491
  794. - check: debug log the segment filename
  795. - delete: add a --list switch to borg delete, #5116
  796. - borg debug dump-hints - implemented to e.g. to look at shadow_index
  797. - Tab completion support for additional archives for 'borg delete'
  798. - refactor: have one borg.constants.zero all-zero bytes object
  799. - refactor shadow_index updating repo.put/delete, #5661, #5636.
  800. - docs:
  801. - add another case of attempted hardlink usage
  802. - fix description of borg upgrade hardlink usage, #5518
  803. - use HTTPS everywhere
  804. - add examples for --paths-from-stdin, --paths-from-command, --paths-separator, #5644
  805. - fix typos/grammar
  806. - update docs for dev environment installation instructions
  807. - recommend running tests only on installed versions for setup
  808. - add badge with current status of package
  809. - vagrant:
  810. - use brew install --cask ..., #5557
  811. - use Python 3.9.1 and PyInstaller 4.1 to build the borg binary
  812. Version 1.2.0b1 (2020-12-06)
  813. ----------------------------
  814. Fixes:
  815. - BORG_CACHE_DIR crashing borg if empty, atomic handling of
  816. recursive directory creation, #5216
  817. - fix --dry-run and --stats coexistence, #5415
  818. - allow EIO with warning when trying to hardlink, #4336
  819. - export-tar: set tar format to GNU_FORMAT explicitly, #5274
  820. - use --timestamp for {utcnow} and {now} if given, #5189
  821. - make timestamp helper timezone-aware
  822. New features:
  823. - create: implement --paths-from-stdin and --paths-from-command, see #5492.
  824. These switches read paths to archive from stdin. Delimiter can specified
  825. by --paths-delimiter=DELIM. Paths read will be added honoring every
  826. option but exclusion options and --one-file-system. borg won't recurse
  827. into directories.
  828. - 'obfuscate' pseudo compressor obfuscates compressed chunk size in repo
  829. - add pyfuse3 (successor of llfuse) as an alternative lowlevel fuse
  830. implementation to llfuse (deprecated), #5407.
  831. FUSE implementation can be switched via env var BORG_FUSE_IMPL.
  832. - allow appending to the files cache filename with BORG_FILES_CACHE_SUFFIX
  833. - create: implement --stdin-mode, --stdin-user and --stdin-group, #5333
  834. Other changes:
  835. - split recursive directory walking/processing into directory walking and
  836. item processing.
  837. - fix warning by importing setuptools before distutils.
  838. - debug info: include infos about FUSE implementation, #5546
  839. - testing:
  840. - add a test for the hashindex corruption bug, #5531 #4829
  841. - move away from travis-ci, use github actions, #5528 #5467
  842. - test both on fuse2 and fuse3
  843. - upload coverage reports to codecov
  844. - fix spurious failure in test_cache_files, #5438
  845. - add tests for Location.with_timestamp
  846. - tox: add a non-fuse env to the envlist
  847. - vagrant:
  848. - use python 3.7.latest and pyinstaller 4.0 for binary creation
  849. - pyinstaller: compute basepath from spec file location
  850. - vagrant: updates/fixes for archlinux box, #5543
  851. - docs:
  852. - "filename with spaces" example added to exclude file, #5236
  853. - add a hint about sleeping computer, #5301
  854. - how to adjust macOS >= Catalina security settings, #5303
  855. - process/policy for adding new compression algorithms
  856. - updated docs about hacked backup client, #5480
  857. - improve ansible deployment docs, make it more generic
  858. - how to approach borg speed issues, give speed example, #5371
  859. - fix mathematical inaccuracy about chunk size, #5336
  860. - add example for excluding content using --pattern cli option
  861. - clarify borg create's '--one-file-system' option, #4009
  862. - improve docs/FAQ about append-only remote repos, #5497
  863. - fix reST markup issues, labels
  864. - add infos about contributor retirement status
  865. Version 1.2.0a9 (2020-10-05)
  866. ----------------------------
  867. Fixes:
  868. - fix memory leak related to preloading, #5202
  869. - check --repair: fix potential data loss, #5325
  870. - persist shadow_index in between borg runs, #4830
  871. - fix hardlinked CACHEDIR.TAG processing, #4911
  872. - --read-special: .part files also should be regular files, #5217
  873. - allow server side enforcing of umask, --umask is for the local borg
  874. process only (see docs), #4947
  875. - exit with 128 + signal number, #5161
  876. - borg config --list does not show last_segment_checked, #5159
  877. - locking:
  878. - fix ExclusiveLock race condition bug, #4923
  879. - fix race condition in lock migration, #4953
  880. - fix locking on openindiana, #5271
  881. New features:
  882. - --content-from-command: create archive using stdout of given command, #5174
  883. - allow key-import + BORG_KEY_FILE to create key files
  884. - build directory-based binary for macOS to avoid Gatekeeper delays
  885. Other changes:
  886. - upgrade bundled zstd to 1.4.5
  887. - upgrade bundled xxhash to 0.8.0, #5362
  888. - if self test fails, also point to OS and hardware, #5334
  889. - misc. shell completions fixes/updates, rewrite zsh completion
  890. - prettier error message when archive gets too big, #5307
  891. - stop relying on `false` exiting with status code 1
  892. - rephrase some warnings, #5164
  893. - parseformat: unnecessary calls removed, #5169
  894. - testing:
  895. - enable Python3.9 env for test suite and VMs, #5373
  896. - drop python 3.5, #5344
  897. - misc. vagrant fixes/updates
  898. - misc. testing fixes, #5196
  899. - docs:
  900. - add ssh-agent pull backup method to doc, #5288
  901. - mention double --force in prune docs
  902. - update Homebrew install instructions, #5185
  903. - better description of how cache and rebuilds of it work
  904. and how the workaround applies to that
  905. - point to borg create --list item flags in recreate usage, #5165
  906. - add a note to create from stdin regarding files cache, #5180
  907. - add security faq explaining AES-CTR crypto issues, #5254
  908. - clarify --exclude-if-present in recreate, #5193
  909. - add socat pull mode, #5150, #900
  910. - move content of resources doc page to community project, #2088
  911. - explain hash collision, #4884
  912. - clarify --recompress option, #5154
  913. Version 1.2.0a8 (2020-04-22)
  914. ----------------------------
  915. Fixes:
  916. - fixed potential index corruption / data loss issue due to bug in hashindex_set, #4829.
  917. Please read and follow the more detailed notes close to the top of this document.
  918. - fix crash when upgrading erroneous hints file, #4922
  919. - commit-time free space calc: ignore bad compact map entries, #4796
  920. - info: if the archive doesn't exist, print a pretty message, #4793
  921. - --prefix / -P: fix processing, avoid argparse issue, #4769
  922. - ignore EACCES (errno 13) when hardlinking, #4730
  923. - add a try catch when formatting the info string, #4818
  924. - check: do not stumble over invalid item key, #4845
  925. - update prevalence of env vars to set config and cache paths
  926. - mount: fix FUSE low linear read speed on large files, #5032
  927. - extract: fix confusing output of borg extract --list --strip-components, #4934
  928. - recreate: support --timestamp option, #4745
  929. - fix ProgressIndicator msgids (JSON output), #4935
  930. - fuse: set f_namemax in statfs result, #2684
  931. - accept absolute paths on windows
  932. - pyinstaller: work around issue with setuptools > 44
  933. New features:
  934. - chunker speedup (plus regression test)
  935. - added --consider-checkpoints and related test, #4788
  936. - added --noflags option, deprecate --nobsdflags option, #4489
  937. - compact: add --threshold option, #4674
  938. - mount: add birthtime to FUSE entries
  939. - support platforms with no os.link, #4901 - if we don't have os.link,
  940. we just extract another copy instead of making a hardlink.
  941. - move sync_file_range to its own extension for better platform compatibility.
  942. - new --bypass-lock option to bypass locking, e.g. for read-only repos
  943. - accept absolute paths by removing leading slashes in patterns of all
  944. sorts but re: style, #4029
  945. - delete: new --keep-security-info option
  946. Other changes:
  947. - support msgpack 0.6.2 and 1.0.0, #5065
  948. - upgrade bundled zstd to 1.4.4
  949. - upgrade bundled lz4 to 1.9.2
  950. - upgrade xxhash to 0.7.3
  951. - require recent enough llfuse for birthtime support, #5064
  952. - only store compressed data if the result actually is smaller, #4516
  953. - check: improve error output for matching index size, see #4829
  954. - ignore --stats when given with --dry-run, but continue, #4373
  955. - replaced usage of os.statvfs with shutil.disk_usage (better cross-platform support).
  956. - fuse: remove unneeded version check and compat code, micro opts
  957. - docs:
  958. - improve description of path variables
  959. - document how to completely delete data, #2929
  960. - add FAQ about Borg config dir, #4941
  961. - add docs about errors not printed as JSON, #4073
  962. - update usage_general.rst.inc
  963. - added "Will move with BORG_CONFIG_DIR variable unless specified." to BORG_SECURITY_DIR info.
  964. - put BORG_SECURITY_DIR immediately below BORG_CONFIG_DIR (and moved BORG_CACHE_DIR up before them).
  965. - add paragraph regarding cache security assumptions, #4900
  966. - tell about borg cache security precautions
  967. - add FAQ describing difference between a local repo vs. repo on a server.
  968. - document how to test exclusion patterns without performing an actual backup
  969. - create: tell that "Calculating size" time and space needs are caused by --progress
  970. - fix/improve documentation for @api decorator, #4674
  971. - add a pull backup / push restore how-to, #1552
  972. - fix man pages creation, #4752
  973. - more general FAQ for backup and retain original paths, #4532
  974. - explain difference between --exclude and --pattern, #4118
  975. - add FAQ for preventing SSH timeout in extract, #3866
  976. - improve password FAQ (decrease pw length, add -w 0 option to base64 to prevent line wrap), #4591
  977. - add note about patterns and stored paths, #4160
  978. - add upgrade of tools to pip installation how-to, #5090
  979. - document one cause of orphaned chunks in check command, #2295
  980. - clean up the whole check usage paragraph
  981. - FAQ: linked recommended restrictions to ssh public keys on borg servers, #4946
  982. - fixed "doc downplays severity of Nonce reuse issue", #4883
  983. - borg repo restore instructions needed, #3428
  984. - new FAQ: A repo is corrupt and must be replaced with an older repo.
  985. - clarify borg init's encryption modes
  986. - native windows port:
  987. - update README_WINDOWS.rst
  988. - updated pyinstaller spec file to support windows builds
  989. - testing / CI:
  990. - improved travis config / install script, improved macOS builds
  991. - allow osx builds to fail, #4955
  992. - Windows 10 build on Appveyor CI
  993. - vagrant:
  994. - upgrade pyinstaller to v3.5 + patch
  995. - use py369 for binary build, add py380 for tests
  996. - fix issue in stretch VM hanging at grub installation
  997. - add a debian buster and a ubuntu focal VM
  998. - update darwin box to 10.12
  999. - upgrade FreeBSD box to 12.1
  1000. - fix debianoid virtualenv packages
  1001. - use pyenv in freebsd64 VM
  1002. - remove the flake8 test
  1003. - darwin: avoid error if pkg is already installed
  1004. - debianoid: don't interactively ask questions
  1005. Version 1.2.0a7 (2019-09-07)
  1006. ----------------------------
  1007. Fixes:
  1008. - slave hardlinks extraction issue, see #4350
  1009. - extract: fix KeyError for "partial" extraction, #4607
  1010. - preload chunks for hardlink slaves w/o preloaded master, #4350
  1011. - fix preloading for old remote servers, #4652
  1012. - fix partial extract for hardlinked contentless file types, #4725
  1013. - Repository.open: use stat() to check for repo dir, #4695
  1014. - Repository.check_can_create_repository: use stat() to check, ~ #4695.
  1015. - SecurityManager.known(): check all files, #4614
  1016. - after double-force delete, warn about necessary repair, #4704
  1017. - cope with ANY error when importing pytest into borg.testsuite, #4652
  1018. - fix invalid archive error message
  1019. - setup.py: fix detection of missing Cython
  1020. - filter out selinux xattrs, #4574
  1021. - location arg - should it be optional? #4541
  1022. - enable placeholder usage in --comment, #4559
  1023. - use whitelist approach for borg serve, #4097
  1024. New features:
  1025. - minimal native Windows support, see windows readme (work in progress)
  1026. - create: first ctrl-c (SIGINT) triggers checkpoint and abort, #4606
  1027. - new BORG_WORKAROUNDS mechanism, basesyncfile, #4710
  1028. - remove WSL autodetection. if WSL still has this problem, you need to
  1029. set BORG_WORKAROUNDS=basesyncfile in the borg process environment to
  1030. work around it.
  1031. - support xxh64 checksum in addition to the hashlib hashes in borg list
  1032. - enable placeholder usage in all extra archive arguments
  1033. - enable placeholder usage in --comment, #4559
  1034. - enable placeholder usage in --glob-archives, #4495
  1035. - ability to use a system-provided version of "xxhash"
  1036. - create:
  1037. - changed the default behaviour to not store the atime of fs items. atime is
  1038. often rather not interesting and fragile - it easily changes even if nothing
  1039. else has changed and, if stored into the archive, spoils deduplication of
  1040. the archive metadata stream.
  1041. - if you give the --noatime option, borg will output a deprecation warning
  1042. because it is currently ignored / does nothing.
  1043. Please remove the --noatime option when using borg 1.2.
  1044. - added a --atime option for storing files' atime into an archive
  1045. Other changes:
  1046. - argparser: always use REPOSITORY in metavar
  1047. - do not check python/libc for borg serve, #4483
  1048. - small borg compact improvements, #4522
  1049. - compact: log freed space at INFO level
  1050. - tests:
  1051. - tox / travis: add testing on py38-dev
  1052. - fix broken test that relied on improper zlib assumptions
  1053. - pure-py msgpack warning shall not make a lot of tests fail, #4558
  1054. - rename test_mount_hardlinks to test_fuse_mount_hardlinks (master)
  1055. - vagrant: add up-to-date openindiana box (py35, openssl10)
  1056. - get rid of confusing coverage warning, #2069
  1057. - docs:
  1058. - reiterate that 'file cache names are absolute' in FAQ,
  1059. mention bind mount solution, #4738
  1060. - add restore docs, #4670
  1061. - updated docs to cover use of temp directory on remote, #4545
  1062. - add a push-style example to borg-create(1), #4613
  1063. - timestamps in the files cache are now usually ctime, #4583
  1064. - benchmark crud: clarify that space is used until compact
  1065. - update documentation of borg create,
  1066. corrects a mention of borg 1.1 as a future version.
  1067. - fix osxfuse github link in installation docs
  1068. - how to supply a passphrase, use crypto devices, #4549
  1069. - extract: document limitation "needs empty destination", #4598
  1070. - update macOS Brew link
  1071. - add note about software for automating backup
  1072. - compact: improve docs,
  1073. - README: new URL for funding options
  1074. Version 1.2.0a6 (2019-04-22)
  1075. ----------------------------
  1076. Fixes:
  1077. - delete / prune: consider part files correctly for stats, #4507
  1078. - fix "all archives" stats considering part files, #4329
  1079. - create: only run stat_simple_attrs() once
  1080. - create: --stats does not work with --dry-run, exit with error msg, #4373
  1081. - give "invalid repo" error msg if repo config not found, #4411
  1082. New features:
  1083. - display msgpack version as part of sysinfo (e.g. in tracebacks)
  1084. Other changes:
  1085. - docs:
  1086. - sdd "SSH Configuration" section, #4493, #3988, #636, #4485
  1087. - better document borg check --max-duration, #4473
  1088. - sorted commands help in multiple steps, #4471
  1089. - testing:
  1090. - travis: use py 3.5.3 and 3.6.7 on macOS to get a pyenv-based python
  1091. build with openssl 1.1
  1092. - vagrant: use py 3.5.3 and 3.6.8 on darwin64 VM to build python and
  1093. borg with openssl 1.1
  1094. - pytest: -v and default XDISTN to 1, #4481
  1095. Version 1.2.0a5 (2019-03-21)
  1096. ----------------------------
  1097. Fixes:
  1098. - warn if a file has changed while being backed up, #1750
  1099. - lrucache: regularly remove old FDs, #4427
  1100. - borg command shall terminate with rc 2 for ImportErrors, #4424
  1101. - make freebsd xattr platform code api compatible with linux, #3952
  1102. Other changes:
  1103. - major setup code refactoring (especially how libraries like openssl, liblz4,
  1104. libzstd, libb2 are discovered and how it falls back to code bundled with
  1105. borg), new: uses pkg-config now (and needs python "pkgconfig" package
  1106. installed), #1925
  1107. if you are a borg package maintainer, please try packaging this
  1108. (see comments in setup.py).
  1109. - Vagrantfile: add zstd, reorder, build env vars, #4444
  1110. - travis: install script improvements
  1111. - update shell completions
  1112. - docs:
  1113. - add a sample logging.conf in docs/misc, #4380
  1114. - fix spelling errors
  1115. - update requirements / install docs, #4374
  1116. Version 1.2.0a4 (2019-03-11)
  1117. ----------------------------
  1118. Fixes:
  1119. - do not use O_NONBLOCK for special files, like FIFOs, block and char devices
  1120. when using --read-special. fixes backing up FIFOs. fixes to test. #4394
  1121. - more LibreSSL build fixes: LibreSSL has HMAC_CTX_free and HMAC_CTX_new
  1122. New features:
  1123. - check: incremental repo check (only checks crc32 for segment entries), #1657
  1124. borg check --repository-only --max-duration SECONDS ...
  1125. - delete: timestamp for borg delete --info added, #4359
  1126. Other changes:
  1127. - redo stale lock handling, #3986
  1128. drop BORG_HOSTNAME_IS_UNIQUE (please use BORG_HOST_ID if needed).
  1129. borg now always assumes it has a unique host id - either automatically
  1130. from fqdn plus uuid.getnode() or overridden via BORG_HOST_ID.
  1131. - docs:
  1132. - added Alpine Linux to distribution list
  1133. - elaborate on append-only mode docs
  1134. - vagrant:
  1135. - darwin: new 10.12 box
  1136. - freebsd: new 12.0 box
  1137. - openbsd: new 6.4 box
  1138. - misc. updates / fixes
  1139. Version 1.2.0a3 (2019-02-26)
  1140. ----------------------------
  1141. Fixes:
  1142. - LibreSSL build fixes, #4403
  1143. - dummy ACL/xattr code fixes (used by OpenBSD and others), #4403
  1144. - create: fix openat/statat issues for root directory, #4405
  1145. Version 1.2.0a2 and earlier (2019-02-24)
  1146. ----------------------------------------
  1147. New features:
  1148. - compact: "borg compact" needs to be used to free repository space by
  1149. compacting the segments (reading sparse segments, rewriting still needed
  1150. data to new segments, deleting the sparse segments).
  1151. Borg < 1.2 invoked compaction automatically at the end of each repository
  1152. writing command.
  1153. Borg >= 1.2 does not do that any more to give better speed, more control,
  1154. more segment file stability (== less stuff moving to newer segments) and
  1155. more robustness.
  1156. See the docs about "borg compact" for more details.
  1157. - "borg compact --cleanup-commits" is to cleanup the tons of 17byte long
  1158. commit-only segment files caused by borg 1.1.x issue #2850.
  1159. Invoke this once after upgrading (the server side) borg to 1.2.
  1160. Compaction now automatically removes unneeded commit-only segment files.
  1161. - prune: Show which rule was applied to keep archive, #2886
  1162. - add fixed blocksize chunker (see --chunker-params docs), #1086
  1163. Fixes:
  1164. - avoid stale filehandle issues, #3265
  1165. - use more FDs, avoid race conditions on active fs, #906, #908, #1038
  1166. - add O_NOFOLLOW to base flags, #908
  1167. - compact:
  1168. - require >10% freeable space in a segment, #2985
  1169. - repository compaction now automatically removes unneeded 17byte
  1170. commit-only segments, #2850
  1171. - make swidth available on all posix platforms, #2667
  1172. Other changes:
  1173. - repository: better speed and less stuff moving around by using separate
  1174. segment files for manifest DELETEs and PUTs, #3947
  1175. - use pyinstaller v3.3.1 to build binaries
  1176. - update bundled zstd code to 1.3.8, #4210
  1177. - update bundled lz4 code to 1.8.3, #4209
  1178. - msgpack:
  1179. - switch to recent "msgpack" pypi pkg name, #3890
  1180. - wrap msgpack to avoid future compat complications, #3632, #2738
  1181. - support msgpack 0.6.0 and 0.6.1, #4220, #4308
  1182. - llfuse: modernize / simplify llfuse version requirements
  1183. - code refactorings / internal improvements:
  1184. - include size/csize/nfiles[_parts] stats into archive, #3241
  1185. - calc_stats: use archive stats metadata, if available
  1186. - crypto: refactored crypto to use an AEAD style API
  1187. - crypto: new AES-OCB, CHACHA20-POLY1305
  1188. - create: use less syscalls by not using a python file obj, #906, #3962
  1189. - diff: refactor the diff functionality to new ItemDiff class, #2475
  1190. - archive: create FilesystemObjectProcessors class
  1191. - helpers: make a package, split into smaller modules
  1192. - xattrs: move to platform package, use cython instead ctypes, #2495
  1193. - xattrs/acls/bsdflags: misc. code/api optimizations
  1194. - FUSE: separate creation of filesystem from implementation of llfuse funcs, #3042
  1195. - FUSE: use unpacker.tell() instead of deprecated write_bytes, #3899
  1196. - setup.py: move build_man / build_usage code to setup_docs.py
  1197. - setup.py: update to use a newer Cython/setuptools API for compiling .pyx -> .c, #3788
  1198. - use python 3.5's os.scandir / os.set_blocking
  1199. - multithreading preparations (not used yet):
  1200. - item.to_optr(), Item.from_optr()
  1201. - fix chunker holding the GIL during blocking I/O
  1202. - C code portability / basic MSC compatibility, #4147, #2677
  1203. - testing:
  1204. - vagrant: new VMs for linux/bsd/darwin, most with OpenSSL 1.1 and py36
  1205. Version 1.1.18 (2022-06-05)
  1206. ---------------------------
  1207. Compatibility notes:
  1208. - When upgrading from borg 1.0.x to 1.1.x, please note:
  1209. - read all the compatibility notes for 1.1.0*, starting from 1.1.0b1.
  1210. - borg upgrade: you do not need to and you also should not run it.
  1211. There is one exception though:
  1212. If you upgrade from an unpatched borg < 1.0.9, please read that section
  1213. above: "Pre-1.0.9 manifest spoofing vulnerability (CVE-2016-10099)"
  1214. - borg might ask some security-related questions once after upgrading.
  1215. You can answer them either manually or via environment variable.
  1216. One known case is if you use unencrypted repositories, then it will ask
  1217. about a unknown unencrypted repository one time.
  1218. - your first backup with 1.1.x might be significantly slower (it might
  1219. completely read, chunk, hash a lot files) - this is due to the
  1220. --files-cache mode change (and happens every time you change mode).
  1221. You can avoid the one-time slowdown by using the pre-1.1.0rc4-compatible
  1222. mode (but that is less safe for detecting changed files than the default).
  1223. See the --files-cache docs for details.
  1224. - 1.1.11 removes WSL autodetection (Windows 10 Subsystem for Linux).
  1225. If WSL still has a problem with sync_file_range, you need to set
  1226. BORG_WORKAROUNDS=basesyncfile in the borg process environment to
  1227. work around the WSL issue.
  1228. - 1.1.14 changes return codes due to a bug fix:
  1229. In case you have scripts expecting rc == 2 for a signal exit, you need to
  1230. update them to check for >= 128 (as documented since long).
  1231. - 1.1.15 drops python 3.4 support, minimum requirement is 3.5 now.
  1232. - 1.1.17 install_requires the "packaging" pypi package now.
  1233. New features:
  1234. - check --repair: significantly speed up search for next valid object in segment, #6022
  1235. - create: add retry_erofs workaround for O_NOATIME issue on volume shadow copies in WSL1, #6024
  1236. - key export: display key if path is '-' or not given, #6092
  1237. - list --format: add command_line to format keys, #6108
  1238. Fixes:
  1239. - check: improve error handling for corrupt archive metadata block,
  1240. make robust_iterator more robust, #4777
  1241. - diff: support presence change for blkdev, chrdev and fifo items, #6483
  1242. - diff: reduce memory consumption, fix is_hardlink_master
  1243. - init: disallow overwriting of existing keyfiles
  1244. - info: fix authenticated mode repo to show "Encrypted: No", #6462
  1245. - info: emit repo info even if repo has 0 archives, #6120
  1246. - list: remove placeholders for shake_* hashes, #6082
  1247. - mount -o versions: give clear error msg instead of crashing
  1248. - show_progress: add finished=true/false to archive_progress json, #6570
  1249. - fix hardlinkable file type check, #6037
  1250. - do not show archive name in error msgs referring to the repository, #6023
  1251. - prettier error msg (no stacktrace) if exclude file is missing, #5734
  1252. - do not require BORG_CONFIG_DIR if BORG_{SECURITY,KEYS}_DIR are set, #5979
  1253. - atomically create the CACHE_TAG file, #6028
  1254. - deal with the SaveFile/SyncFile race, docs, see #6176 5c5b59bc9
  1255. - avoid expanding path into LHS of formatting operation + tests, #6064 #6063
  1256. - repository: quota / compactable computation fixes, #6119.
  1257. This is mainly to keep the repo code in sync with borg 1.2. As borg 1.1
  1258. compacts immediately, there was not really an issue with this in 1.1.
  1259. - fix transaction rollback: use files cache filename as found in txn.active, #6353
  1260. - do not load files cache for commands not using it, fixes #5673
  1261. - fix scp repo url parsing for ip v6 addrs, #6526
  1262. - repo::archive location placeholder expansion fixes, #5826, #5998
  1263. - use expanded location for log output
  1264. - support placeholder expansion for BORG_REPO env var
  1265. - respect umask for created directory and file modes, #6400
  1266. - safer truncate_and_unlink implementation
  1267. Other changes:
  1268. - upgrade bundled xxhash code to 0.8.1
  1269. - fix xxh64 related build (setup.py and post-0.8.1 patch for static_assert).
  1270. The patch was required to build the bundled xxhash code on FreeBSD, see
  1271. https://github.com/Cyan4973/xxHash/pull/670
  1272. - msgpack build: remove endianness macro, #6105
  1273. - update and fix shell completions
  1274. - fuse: remove unneeded version check and compat code
  1275. - delete --force: do not ask when deleting a repo, #5941
  1276. - delete: don't commit if nothing was deleted, avoid cache sync, #6060
  1277. - delete: add repository id and location to prompt
  1278. - compact segments: improve freeable / freed space log output, #5679
  1279. - if ensure_dir() fails, give more informative error message, #5952
  1280. - load_key: no key is same as empty key, #6441
  1281. - better error msg for defect or unsupported repo configs, #6566
  1282. - use hmac.compare_digest instead of ==, #6470
  1283. - implement more standard hashindex.setdefault behaviour
  1284. - remove stray punctuation from secure-erase message
  1285. - add development.lock.txt, use a real python 3.5 to generate frozen reqs
  1286. - setuptools 60.7.0 breaks pyinstaller, #6246
  1287. - setup.py clean2 was added to work around some setuptools customizability limitation.
  1288. - allow extra compiler flags for every extension build
  1289. - C code: make switch fallthrough explicit
  1290. - Cython code: fix "useless trailing comma" cython warnings
  1291. - requirements.lock.txt: use the latest cython 0.29.30
  1292. - fix compilation warnings: ‘PyUnicode_AsUnicode’ is deprecated
  1293. - docs:
  1294. - ~/.config/borg/keys is not used for repokey keys, #6107
  1295. - excluded parent dir's metadata can't restore, #6062
  1296. - permissions note rewritten to make it less confusing, #5490
  1297. - add note about grandfather-father-son backup retention policy / rotation scheme
  1298. - clarify who starts the remote agent (borg serve)
  1299. - test/improve pull backup docs, #5903
  1300. - document the socat pull mode described in #900 #515ß
  1301. - borg serve: improve ssh forced commands docs, #6083
  1302. - improve docs for borg list --format, #6080
  1303. - fix the broken link to .nix file
  1304. - clarify pattern usage with commands, #5176
  1305. - clarify user_id vs uid for fuse, #5723
  1306. - fix binary build freebsd/macOS version, #5942
  1307. - FAQ: fix manifest-timestamp path, #6016
  1308. - remove duplicate faq entries, #5926
  1309. - fix sphinx warnings, #5919
  1310. - virtualisation speed tips
  1311. - fix values of TAG bytes, #6515
  1312. - recommend umask for passphrase file perms
  1313. - update link to ubuntu packages, #6485
  1314. - clarify on-disk order and size of log entry fields, #6357
  1315. - do not transform --/--- to unicode dashes
  1316. - improve linking inside docs, link to borg_placeholders, link to borg_patterns
  1317. - use same phrasing in misc. help texts
  1318. - borg init: explain the encryption modes better
  1319. - explain the difference between a path that ends with or without a slash, #6297
  1320. - clarify usage of patternfile roots, #6242
  1321. - borg key export: add examples
  1322. - updates about features not experimental any more: FUSE "versions" view, --pattern*, #6134
  1323. - fix/update cygwin package requirements
  1324. - impact of deleting path/to/repo/nonce, #5858
  1325. - warn about tampered server nonce
  1326. - mention BORG_FILES_CACHE_SUFFIX as alternative to BORG_FILES_CACHE_TTL, #5602
  1327. - add a troubleshooting note about "is not a valid repository" to the FAQ
  1328. - vagrant / CI / testing:
  1329. - misc. fixes and updates, new python versions
  1330. - macOS on github: re-enable fuse2 testing by downgrading to older macOS, #6099
  1331. - fix OpenBSD symlink mode test failure, #2055
  1332. - use the generic/openbsd6 box
  1333. - strengthen the test: we can read data w/o nonces
  1334. - add tests for path/to/repo/nonce deletion
  1335. - darwin64: backport some tunings from master
  1336. - darwin64: remove fakeroot, #6314
  1337. - darwin64: fix vagrant scp, #5921
  1338. - darwin64: use macfuse instead of osxfuse
  1339. - add ubuntu "jammy" 22.04 LTS VM
  1340. - adapt memory for openindiana64 and darwin64
  1341. Version 1.1.17 (2021-07-12)
  1342. ---------------------------
  1343. Compatibility notes:
  1344. - When upgrading from borg 1.0.x to 1.1.x, please note:
  1345. - read all the compatibility notes for 1.1.0*, starting from 1.1.0b1.
  1346. - borg upgrade: you do not need to and you also should not run it.
  1347. There is one exception though:
  1348. If you upgrade from an unpatched borg < 1.0.9, please read that section
  1349. above: "Pre-1.0.9 manifest spoofing vulnerability (CVE-2016-10099)"
  1350. - borg might ask some security-related questions once after upgrading.
  1351. You can answer them either manually or via environment variable.
  1352. One known case is if you use unencrypted repositories, then it will ask
  1353. about a unknown unencrypted repository one time.
  1354. - your first backup with 1.1.x might be significantly slower (it might
  1355. completely read, chunk, hash a lot files) - this is due to the
  1356. --files-cache mode change (and happens every time you change mode).
  1357. You can avoid the one-time slowdown by using the pre-1.1.0rc4-compatible
  1358. mode (but that is less safe for detecting changed files than the default).
  1359. See the --files-cache docs for details.
  1360. - 1.1.11 removes WSL autodetection (Windows 10 Subsystem for Linux).
  1361. If WSL still has a problem with sync_file_range, you need to set
  1362. BORG_WORKAROUNDS=basesyncfile in the borg process environment to
  1363. work around the WSL issue.
  1364. - 1.1.14 changes return codes due to a bug fix:
  1365. In case you have scripts expecting rc == 2 for a signal exit, you need to
  1366. update them to check for >= 128 (as documented since long).
  1367. - 1.1.15 drops python 3.4 support, minimum requirement is 3.5 now.
  1368. - 1.1.17 install_requires the "packaging" pypi package now.
  1369. Fixes:
  1370. - pyinstaller dir-mode: fix pyi detection / LIBPATH treatment, #5897
  1371. - handle crash due to kill stale lock race, #5828
  1372. - fix BORG_CACHE_DIR crashing borg if empty, #5216
  1373. - create --dry-run: fix display of kept tagfile, #5834
  1374. - fix missing parameter in "did not consistently fail" msg, #5822
  1375. - missing / healed chunks: always tell chunk ID, #5704
  1376. - benchmark: make sure cleanup happens even on exceptions, #5630
  1377. New features:
  1378. - implement BORG_SELFTEST env variable, #5871.
  1379. this can be used to accelerate borg startup a bit. not recommended for
  1380. normal usage, but borg mass hosters with a lot of borg invocations can
  1381. save some resources with this. on my laptop, this saved ~100ms cpu time
  1382. (sys+user) per borg command invocation.
  1383. - implement BORG_LIBC env variable to give the libc filename, #5870.
  1384. you can use this if a borg does not find your libc.
  1385. - check: add progress indicator for archive check.
  1386. - allow --files-cache=size (not recommended, make sure you know what you do)
  1387. Other changes:
  1388. - Python 3.10 now officially supported!
  1389. we test on py310-dev on github CI since a while and now also on the vagrant
  1390. machines, so it should work ok.
  1391. - github CI: test on py310 (again)
  1392. - get rid of distutils, use packaging and setuptools.
  1393. distutils is deprecated and gives warnings on py 3.10.
  1394. - setup.py: rename "clean" to "clean2" to avoid shadowing the "clean" command.
  1395. - remove libc filename fallback for the BSDs (there is no "usual" name)
  1396. - cleanup flake8 checks, fix some pep8 violations.
  1397. - docs building: replace deprecated function ".add_stylesheet()" for Sphinx 4 compatibility
  1398. - docs:
  1399. - add a hint on sleeping computer and ssh connections, #5301
  1400. - update the documentation on hacked backup client, #5480
  1401. - improve docs/FAQ about append-only remote repos, #5497
  1402. - complement the documentation for pattern files and exclude files, #5520
  1403. - "filename with spaces" example added to exclude file, #5236
  1404. note: no whitespace escaping needed, processed by borg.
  1405. - add info on renaming repositories, #5240
  1406. - clarify borg check --verify-data, #5808
  1407. - add notice about defective hardware to check documentation, #5753
  1408. - add paragraph added in #5855 to utility documentation source
  1409. - add missing leading slashes in help patterns, #5857
  1410. - clarify "you will need key and passphrase" borg init warning, #4622
  1411. - pull mode: add some warnings, #5827
  1412. - mention tar --compare (compare archive to fs files), #5880
  1413. - fix typos, backport of #5597
  1414. - vagrant:
  1415. - add py3.7.11 for binary build, also add 3.10-dev.
  1416. - use latest Cython 0.29.23 for py310 compat fixes.
  1417. - more RAM for openindiana upgrade plan resolver, it just hangs (swaps?) if
  1418. there is too little RAM.
  1419. - fix install_pyenv to adapt to recent changes in pyenv (same as in master now).
  1420. - use generic/netbsd9 box, copied from master branch.
  1421. Version 1.1.16 (2021-03-23)
  1422. ---------------------------
  1423. Fixes:
  1424. - setup.py: add special openssl prefix for Apple M1 compatibility
  1425. - do not recurse into duplicate roots, #5603
  1426. - remove empty shadowed_segments lists, #5275, #5614
  1427. - fix libpython load error when borg fat binary / dir-based binary is invoked
  1428. via a symlink by upgrading pyinstaller to v4.2, #5688
  1429. - config: accept non-int value (like 500M or 100G) for max_segment_size or
  1430. storage_quota, #5639.
  1431. please note: when setting a non-int value for this in a repo config,
  1432. using the repo will require borg >= 1.1.16.
  1433. New features:
  1434. - bundled msgpack: drop support for old buffer protocol to support Python 3.10
  1435. - verbose files cache logging via --debug-topic=files_cache, #5659.
  1436. Use this if you suspect that borg does not detect unmodified files as expected.
  1437. - create/extract: add --noxattrs and --noacls option, #3955.
  1438. when given with borg create, borg will not get xattrs / ACLs from input files
  1439. (and thus, it will not archive xattrs / ACLs). when given with borg extract,
  1440. borg will not read xattrs / ACLs from archive and will not set xattrs / ACLs
  1441. on extracted files.
  1442. - diff: add --json-lines option, #3765
  1443. - check: debug log segment filename
  1444. - borg debug dump-hints
  1445. Other changes:
  1446. - Tab completion support for additional archives for 'borg delete'
  1447. - repository: deduplicate code of put and delete, no functional change
  1448. - tests: fix result order issue (sporadic test failure on openindiana)
  1449. - vagrant:
  1450. - upgrade pyinstaller to v4.2, #5671
  1451. - avoid grub-install asking interactively for device
  1452. - remove the xenial box
  1453. - update freebsd box to 12.1
  1454. - docs:
  1455. - update macOS install instructions, #5677
  1456. - use macFUSE (not osxfuse) for Apple M1 compatibility
  1457. - update docs for dev environment installation instructions, #5643
  1458. - fix grammar in faq
  1459. - recommend running tests only on installed versions for setup
  1460. - add link back to git-installation
  1461. - remove /var/cache exclusion in example commands, #5625.
  1462. This is generally a poor idea and shouldn't be promoted through examples.
  1463. - add repology.org badge with current packaging status
  1464. - explain hash collision
  1465. - add unsafe workaround to use an old repo copy, #5722
  1466. Version 1.1.15 (2020-12-25)
  1467. ---------------------------
  1468. Fixes:
  1469. - extract:
  1470. - improve exception handling when setting xattrs, #5092.
  1471. - emit a warning message giving the path, xattr key and error message.
  1472. - continue trying to restore other xattrs and bsdflags of the same file
  1473. after an exception with xattr-setting happened.
  1474. - export-tar:
  1475. - set tar format to GNU_FORMAT explicitly, #5274
  1476. - fix memory leak with ssh: remote repository, #5568
  1477. - fix potential memory leak with ssh: remote repository with partial extraction
  1478. - create: fix --dry-run and --stats coexistence, #5415
  1479. - use --timestamp for {utcnow} and {now} if given, #5189
  1480. New features:
  1481. - create: implement --stdin-mode, --stdin-user and --stdin-group, #5333
  1482. - allow appending the files cache filename with BORG_FILES_CACHE_SUFFIX env var
  1483. Other changes:
  1484. - drop python 3.4 support, minimum requirement is 3.5 now.
  1485. - enable using libxxhash instead of bundled xxh64 code
  1486. - update llfuse requirements (1.3.8)
  1487. - set cython language_level in some files to fix warnings
  1488. - allow EIO with warning when trying to hardlink
  1489. - PropDict: fail early if internal_dict is not a dict
  1490. - update shell completions
  1491. - tests / CI
  1492. - add a test for the hashindex corruption bug, #5531 #4829
  1493. - fix spurious failure in test_cache_files, #5438
  1494. - added a github ci workflow
  1495. - reduce testing on travis, no macOS, no py3x-dev, #5467
  1496. - travis: use newer dists, native py on dist
  1497. - vagrant:
  1498. - remove jessie and trusty boxes, #5348 #5383
  1499. - pyinstaller 4.0, build on py379
  1500. - binary build on stretch64, #5348
  1501. - remove easy_install based pip installation
  1502. - docs:
  1503. - clarify '--one-file-system' for btrfs, #5391
  1504. - add example for excluding content using the --pattern cmd line arg
  1505. - complement the documentation for pattern files and exclude files, #5524
  1506. - made ansible playbook more generic, use package instead of pacman. also
  1507. change state from "latest" to "present".
  1508. - complete documentation on append-only remote repos, #5497
  1509. - internals: rather talk about target size than statistics, #5336
  1510. - new compression algorithm policy, #1633 #5505
  1511. - faq: add a hint on sleeping computer, #5301
  1512. - note requirements for full disk access on macOS Catalina, #5303
  1513. - fix/improve description of borg upgrade hardlink usage, #5518
  1514. - modernize 1.1 code:
  1515. - drop code/workarounds only needed to support Python 3.4
  1516. - remove workaround for pre-release py37 argparse bug
  1517. - removed some outdated comments/docstrings
  1518. - requirements: remove some restrictions, lock on current versions
  1519. Version 1.1.14 (2020-10-07)
  1520. ---------------------------
  1521. Fixes:
  1522. - check --repair: fix potential data loss when interrupting it, #5325
  1523. - exit with 128 + signal number (as documented) when borg is killed by a signal, #5161
  1524. - fix hardlinked CACHEDIR.TAG processing, #4911
  1525. - create --read-special: .part files also should be regular files, #5217
  1526. - llfuse dependency: choose least broken 1.3.6/1.3.7.
  1527. 1.3.6 is broken on python 3.9, 1.3.7 is broken on FreeBSD.
  1528. Other changes:
  1529. - upgrade bundled xxhash to 0.7.4
  1530. - self test: if it fails, also point to OS and hardware, #5334
  1531. - pyinstaller: compute basepath from spec file location
  1532. - prettier error message when archive gets too big, #5307
  1533. - check/recreate are not "experimental" any more (but still potentially dangerous):
  1534. - recreate: remove extra confirmation
  1535. - rephrase some warnings, update docs, #5164
  1536. - shell completions:
  1537. - misc. updates / fixes
  1538. - support repositories in fish tab completion, #5256
  1539. - complete $BORG_RECREATE_I_KNOW_WHAT_I_AM_DOING
  1540. - rewrite zsh completion:
  1541. - completion for almost all optional and positional arguments
  1542. - completion for Borg environment variables (parameters)
  1543. - use "allow/deny list" instead of "white/black list" wording
  1544. - declare "allow_cache_wipe" marker in setup.cfg to avoid pytest warning
  1545. - vagrant / tests:
  1546. - misc. fixes / updates
  1547. - use python 3.5.10 for binary build
  1548. - build directory-based binaries additionally to the single file binaries
  1549. - add libffi-dev, required to build python
  1550. - use cryptography<3.0, more recent versions break the jessie box
  1551. - test on python 3.9
  1552. - do brew update with /dev/null redirect to avoid "too much log output" on travis-ci
  1553. - docs:
  1554. - add ssh-agent pull backup method docs, #5288
  1555. - how to approach borg speed issues, #5371
  1556. - mention double --force in prune docs
  1557. - update Homebrew install instructions, #5185
  1558. - better description of how cache and rebuilds of it work
  1559. - point to borg create --list item flags in recreate usage, #5165
  1560. - add security faq explaining AES-CTR crypto issues, #5254
  1561. - add a note to create from stdin regarding files cache, #5180
  1562. - fix borg.1 manpage generation regression, #5211
  1563. - clarify how exclude options work in recreate, #5193
  1564. - add section for retired contributors
  1565. - hint about not misusing private email addresses of contributors for borg support
  1566. Version 1.1.13 (2020-06-06)
  1567. ---------------------------
  1568. Compatibility notes:
  1569. - When upgrading from borg 1.0.x to 1.1.x, please note:
  1570. - read all the compatibility notes for 1.1.0*, starting from 1.1.0b1.
  1571. - borg upgrade: you do not need to and you also should not run it.
  1572. There is one exception though:
  1573. If you upgrade from an unpatched borg < 1.0.9, please read that section
  1574. above: "Pre-1.0.9 manifest spoofing vulnerability (CVE-2016-10099)"
  1575. - borg might ask some security-related questions once after upgrading.
  1576. You can answer them either manually or via environment variable.
  1577. One known case is if you use unencrypted repositories, then it will ask
  1578. about a unknown unencrypted repository one time.
  1579. - your first backup with 1.1.x might be significantly slower (it might
  1580. completely read, chunk, hash a lot files) - this is due to the
  1581. --files-cache mode change (and happens every time you change mode).
  1582. You can avoid the one-time slowdown by using the pre-1.1.0rc4-compatible
  1583. mode (but that is less safe for detecting changed files than the default).
  1584. See the --files-cache docs for details.
  1585. - 1.1.11 removes WSL autodetection (Windows 10 Subsystem for Linux).
  1586. If WSL still has a problem with sync_file_range, you need to set
  1587. BORG_WORKAROUNDS=basesyncfile in the borg process environment to
  1588. work around the WSL issue.
  1589. Fixes:
  1590. - rebuilt using a current Cython version, compatible with python 3.8, #5214
  1591. Version 1.1.12 (2020-06-06)
  1592. ---------------------------
  1593. Fixes:
  1594. - fix preload-related memory leak, #5202.
  1595. - mount / borgfs (FUSE filesystem):
  1596. - fix FUSE low linear read speed on large files, #5067
  1597. - fix crash on old llfuse without birthtime attrs, #5064 - accidentally
  1598. we required llfuse >= 1.3. Now also old llfuse works again.
  1599. - set f_namemax in statfs result, #2684
  1600. - update precedence of env vars to set config and cache paths, #4894
  1601. - correctly calculate compression ratio, taking header size into account, too
  1602. New features:
  1603. - --bypass-lock option to bypass locking with read-only repositories
  1604. Other changes:
  1605. - upgrade bundled zstd to 1.4.5
  1606. - travis: adding comments and explanations to Travis config / install script,
  1607. improve macOS builds.
  1608. - tests: test_delete_force: avoid sporadic test setup issues, #5196
  1609. - misc. vagrant fixes
  1610. - the binary for macOS is now built on macOS 10.12
  1611. - the binaries for Linux are now built on Debian 8 "Jessie", #3761
  1612. - docs:
  1613. - PlaceholderError not printed as JSON, #4073
  1614. - "How important is Borg config?", #4941
  1615. - make Sphinx warnings break docs build, #4587
  1616. - some markup / warning fixes
  1617. - add "updating borgbackup.org/releases" to release checklist, #4999
  1618. - add "rendering docs" to release checklist, #5000
  1619. - clarify borg init's encryption modes
  1620. - add note about patterns and stored paths, #4160
  1621. - add upgrade of tools to pip installation how-to
  1622. - document one cause of orphaned chunks in check command, #2295
  1623. - linked recommended restrictions to ssh public keys on borg servers in faq, #4946
  1624. Version 1.1.11 (2020-03-08)
  1625. ---------------------------
  1626. Compatibility notes:
  1627. - When upgrading from borg 1.0.x to 1.1.x, please note:
  1628. - read all the compatibility notes for 1.1.0*, starting from 1.1.0b1.
  1629. - borg upgrade: you do not need to and you also should not run it.
  1630. There is one exception though:
  1631. If you upgrade from an unpatched borg < 1.0.9, please read that section
  1632. above: "Pre-1.0.9 manifest spoofing vulnerability (CVE-2016-10099)"
  1633. - borg might ask some security-related questions once after upgrading.
  1634. You can answer them either manually or via environment variable.
  1635. One known case is if you use unencrypted repositories, then it will ask
  1636. about a unknown unencrypted repository one time.
  1637. - your first backup with 1.1.x might be significantly slower (it might
  1638. completely read, chunk, hash a lot files) - this is due to the
  1639. --files-cache mode change (and happens every time you change mode).
  1640. You can avoid the one-time slowdown by using the pre-1.1.0rc4-compatible
  1641. mode (but that is less safe for detecting changed files than the default).
  1642. See the --files-cache docs for details.
  1643. - 1.1.11 removes WSL autodetection (Windows 10 Subsystem for Linux).
  1644. If WSL still has a problem with sync_file_range, you need to set
  1645. BORG_WORKAROUNDS=basesyncfile in the borg process environment to
  1646. work around the WSL issue.
  1647. Fixes:
  1648. - fixed potential index corruption / data loss issue due to bug in hashindex_set, #4829.
  1649. Please read and follow the more detailed notes close to the top of this document.
  1650. - upgrade bundled xxhash to 0.7.3, #4891.
  1651. 0.7.2 is the minimum requirement for correct operations on ARMv6 in non-fixup
  1652. mode, where unaligned memory accesses cause bus errors.
  1653. 0.7.3 adds some speedups and libxxhash 0.7.3 even has a pkg-config file now.
  1654. - upgrade bundled lz4 to 1.9.2
  1655. - upgrade bundled zstd to 1.4.4
  1656. - fix crash when upgrading erroneous hints file, #4922
  1657. - extract:
  1658. - fix KeyError for "partial" extraction, #4607
  1659. - fix "partial" extract for hardlinked contentless file types, #4725
  1660. - fix preloading for old (0.xx) remote servers, #4652
  1661. - fix confusing output of borg extract --list --strip-components, #4934
  1662. - delete: after double-force delete, warn about necessary repair, #4704
  1663. - create: give invalid repo error msg if repo config not found, #4411
  1664. - mount: fix FUSE mount missing st_birthtime, #4763 #4767
  1665. - check: do not stumble over invalid item key, #4845
  1666. - info: if the archive doesn't exist, print a pretty message, #4793
  1667. - SecurityManager.known(): check all files, #4614
  1668. - Repository.open: use stat() to check for repo dir, #4695
  1669. - Repository.check_can_create_repository: use stat() to check, #4695
  1670. - fix invalid archive error message
  1671. - fix optional/non-optional location arg, #4541
  1672. - commit-time free space calc: ignore bad compact map entries, #4796
  1673. - ignore EACCES (errno 13) when hardlinking the old config, #4730
  1674. - --prefix / -P: fix processing, avoid argparse issue, #4769
  1675. New features:
  1676. - enable placeholder usage in all extra archive arguments
  1677. - new BORG_WORKAROUNDS mechanism, basesyncfile, #4710
  1678. - recreate: support --timestamp option, #4745
  1679. - support platforms without os.link (e.g. Android with Termux), #4901.
  1680. if we don't have os.link, we just extract another copy instead of making a hardlink.
  1681. - support linux platforms without sync_file_range (e.g. Android 7 with Termux), #4905
  1682. Other:
  1683. - ignore --stats when given with --dry-run, but continue, #4373
  1684. - add some ProgressIndicator msgids to code / fix docs, #4935
  1685. - elaborate on "Calculating size" message
  1686. - argparser: always use REPOSITORY in metavar, also use more consistent help phrasing.
  1687. - check: improve error output for matching index size, see #4829
  1688. - docs:
  1689. - changelog: add advisory about hashindex_set bug #4829
  1690. - better describe BORG_SECURITY_DIR, BORG_CACHE_DIR, #4919
  1691. - infos about cache security assumptions, #4900
  1692. - add FAQ describing difference between a local repo vs. repo on a server.
  1693. - document how to test exclusion patterns without performing an actual backup
  1694. - timestamps in the files cache are now usually ctime, #4583
  1695. - fix bad reference to borg compact (does not exist in 1.1), #4660
  1696. - create: borg 1.1 is not future any more
  1697. - extract: document limitation "needs empty destination", #4598
  1698. - how to supply a passphrase, use crypto devices, #4549
  1699. - fix osxfuse github link in installation docs
  1700. - add example of exclude-norecurse rule in help patterns
  1701. - update macOS Brew link
  1702. - add note about software for automating backups, #4581
  1703. - AUTHORS: mention copyright+license for bundled msgpack
  1704. - fix various code blocks in the docs, #4708
  1705. - updated docs to cover use of temp directory on remote, #4545
  1706. - add restore docs, #4670
  1707. - add a pull backup / push restore how-to, #1552
  1708. - add FAQ how to retain original paths, #4532
  1709. - explain difference between --exclude and --pattern, #4118
  1710. - add FAQs for SSH connection issues, #3866
  1711. - improve password FAQ, #4591
  1712. - reiterate that 'file cache names are absolute' in FAQ
  1713. - tests:
  1714. - cope with ANY error when importing pytest into borg.testsuite, #4652
  1715. - fix broken test that relied on improper zlib assumptions
  1716. - test_fuse: filter out selinux xattrs, #4574
  1717. - travis / vagrant:
  1718. - misc python versions removed / changed (due to openssl 1.1 compatibility)
  1719. or added (3.7 and 3.8, for better borg compatibility testing)
  1720. - binary building is on python 3.5.9 now
  1721. - vagrant:
  1722. - add new boxes: ubuntu 18.04 and 20.04, debian 10
  1723. - update boxes: openindiana, darwin, netbsd
  1724. - remove old boxes: centos 6
  1725. - darwin: updated osxfuse to 3.10.4
  1726. - use debian/ubuntu pip/virtualenv packages
  1727. - rather use python 3.6.2 than 3.6.0, fixes coverage/sqlite3 issue
  1728. - use requirements.d/development.lock.txt to avoid compat issues
  1729. - travis:
  1730. - darwin: backport some install code / order from master
  1731. - remove deprecated keyword "sudo" from travis config
  1732. - allow osx builds to fail, #4955
  1733. this is due to travis-ci frequently being so slow that the OS X builds
  1734. just fail because they exceed 50 minutes and get killed by travis.
  1735. Version 1.1.10 (2019-05-16)
  1736. ---------------------------
  1737. Fixes:
  1738. - extract: hang on partial extraction with ssh: repo, when hardlink master
  1739. is not matched/extracted and borg hangs on related slave hardlink, #4350
  1740. - lrucache: regularly remove old FDs, #4427
  1741. - avoid stale filehandle issues, #3265
  1742. - freebsd: make xattr platform code api compatible with linux, #3952
  1743. - use whitelist approach for borg serve, #4097
  1744. - borg command shall terminate with rc 2 for ImportErrors, #4424
  1745. - create: only run stat_simple_attrs() once, this increases
  1746. backup with lots of unchanged files performance by ~ 5%.
  1747. - prune: fix incorrect borg prune --stats output with --dry-run, #4373
  1748. - key export: emit user-friendly error if repo key is exported to a directory,
  1749. #4348
  1750. New features:
  1751. - bundle latest supported msgpack-python release (0.5.6), remove msgpack-python
  1752. from setup.py install_requires - by default we use the bundled code now.
  1753. optionally, we still support using an external msgpack (see hints in
  1754. setup.py), but this requires solid requirements management within
  1755. distributions and is not recommended.
  1756. borgbackup will break if you upgrade msgpack to an unsupported version.
  1757. - display msgpack version as part of sysinfo (e.g. in tracebacks)
  1758. - timestamp for borg delete --info added, #4359
  1759. - enable placeholder usage in --comment and --glob-archives, #4559, #4495
  1760. Other:
  1761. - serve: do not check python/libc for borg serve, #4483
  1762. - shell completions: borg diff second archive
  1763. - release scripts: signing binaries with Qubes OS support
  1764. - testing:
  1765. - vagrant: upgrade openbsd box to 6.4
  1766. - travis-ci: lock test env to py 3.4 compatible versions, #4343
  1767. - get rid of confusing coverage warning, #2069
  1768. - rename test_mount_hardlinks to test_fuse_mount_hardlinks,
  1769. so both can be excluded by "not test_fuse".
  1770. - pure-py msgpack warning shall not make a lot of tests fail, #4558
  1771. - docs:
  1772. - add "SSH Configuration" section to "borg serve", #3988, #636, #4485
  1773. - README: new URL for funding options
  1774. - add a sample logging.conf in docs/misc, #4380
  1775. - elaborate on append-only mode docs, #3504
  1776. - installation: added Alpine Linux to distribution list, #4415
  1777. - usage.html: only modify window.location when redirecting, #4133
  1778. - add msgpack license to docs/3rd_party/msgpack
  1779. - vagrant / binary builds:
  1780. - use python 3.5.7 for builds
  1781. - use osxfuse 3.8.3
  1782. Version 1.1.9 (2019-02-10)
  1783. --------------------------
  1784. Compatibility notes:
  1785. - When upgrading from borg 1.0.x to 1.1.x, please note:
  1786. - read all the compatibility notes for 1.1.0*, starting from 1.1.0b1.
  1787. - borg upgrade: you do not need to and you also should not run it.
  1788. There is one exception though:
  1789. If you upgrade from an unpatched borg < 1.0.9, please read that section
  1790. above: "Pre-1.0.9 manifest spoofing vulnerability (CVE-2016-10099)"
  1791. - borg might ask some security-related questions once after upgrading.
  1792. You can answer them either manually or via environment variable.
  1793. One known case is if you use unencrypted repositories, then it will ask
  1794. about a unknown unencrypted repository one time.
  1795. - your first backup with 1.1.x might be significantly slower (it might
  1796. completely read, chunk, hash a lot files) - this is due to the
  1797. --files-cache mode change (and happens every time you change mode).
  1798. You can avoid the one-time slowdown by using the pre-1.1.0rc4-compatible
  1799. mode (but that is less safe for detecting changed files than the default).
  1800. See the --files-cache docs for details.
  1801. Fixes:
  1802. - security fix: configure FUSE with "default_permissions", #3903
  1803. "default_permissions" is now enforced by borg by default to let the
  1804. kernel check uid/gid/mode based permissions.
  1805. "ignore_permissions" can be given to not enforce "default_permissions".
  1806. - make "hostname" short, even on misconfigured systems, #4262
  1807. - fix free space calculation on macOS (and others?), #4289
  1808. - config: quit with error message when no key is provided, #4223
  1809. - recover_segment: handle too small segment files correctly, #4272
  1810. - correctly release memoryview, #4243
  1811. - avoid diaper pattern in configparser by opening files, #4263
  1812. - add "# cython: language_level=3" directive to .pyx files, #4214
  1813. - info: consider part files for "This archive" stats, #3522
  1814. - work around Microsoft WSL issue #645 (sync_file_range), #1961
  1815. New features:
  1816. - add --rsh command line option to complement BORG_RSH env var, #1701
  1817. - init: --make-parent-dirs parent1/parent2/repo_dir, #4235
  1818. Other:
  1819. - add archive name to check --repair output, #3447
  1820. - check for unsupported msgpack versions
  1821. - shell completions:
  1822. - new shell completions for borg 1.1.9
  1823. - more complete shell completions for borg mount -o
  1824. - added shell completions for borg help
  1825. - option arguments for zsh tab completion
  1826. - docs:
  1827. - add FAQ regarding free disk space check, #3905
  1828. - update BORG_PASSCOMMAND example and clarify variable expansion, #4249
  1829. - FAQ regarding change of compression settings, #4222
  1830. - add note about BSD flags to changelog, #4246
  1831. - improve logging in example automation script
  1832. - add note about files changing during backup, #4081
  1833. - work around the backslash issue, #4280
  1834. - update release workflow using twine (docs, scripts), #4213
  1835. - add warnings on repository copies to avoid future problems, #4272
  1836. - tests:
  1837. - fix the homebrew 1.9 issues on travis-ci, #4254
  1838. - fix duplicate test method name, #4311
  1839. Version 1.1.8 (2018-12-09)
  1840. --------------------------
  1841. Fixes:
  1842. - enforce storage quota if set by serve-command, #4093
  1843. - invalid locations: give err msg containing parsed location, #4179
  1844. - list repo: add placeholders for hostname and username, #4130
  1845. - on linux, symlinks can't have ACLs, so don't try to set any, #4044
  1846. New features:
  1847. - create: added PATH::archive output on INFO log level
  1848. - read a passphrase from a file descriptor specified in the
  1849. BORG_PASSPHRASE_FD environment variable.
  1850. Other:
  1851. - docs:
  1852. - option --format is required for some expensive-to-compute values for json
  1853. borg list by default does not compute expensive values except when
  1854. they are needed. whether they are needed is determined by the format,
  1855. in standard mode as well as in --json mode.
  1856. - tell that our binaries are x86/x64 amd/intel, bauerj has ARM
  1857. - fixed wrong archive name pattern in CRUD benchmark help
  1858. - fixed link to cachedir spec in docs, #4140
  1859. - tests:
  1860. - stop using fakeroot on travis, avoids sporadic EISDIR errors, #2482
  1861. - xattr key names must start with "user." on linux
  1862. - fix code so flake8 3.6 does not complain
  1863. - explicitly convert environment variable to str, #4136
  1864. - fix DeprecationWarning: Flags not at the start of the expression, #4137
  1865. - support pytest4, #4172
  1866. - vagrant:
  1867. - use python 3.5.6 for builds
  1868. Version 1.1.7 (2018-08-11)
  1869. --------------------------
  1870. Compatibility notes:
  1871. - added support for Python 3.7
  1872. Fixes:
  1873. - cache lock: use lock_wait everywhere to fix infinite wait, see #3968
  1874. - don't archive tagged dir when recursing an excluded dir, #3991
  1875. - py37 argparse: work around bad default in py 3.7.0a/b/rc, #3996
  1876. - py37 remove loggerDict.clear() from tearDown method, #3805
  1877. - some fixes for bugs which likely did not result in problems in practice:
  1878. - fixed logic bug in platform module API version check
  1879. - fixed xattr/acl function prototypes, added missing ones
  1880. New features:
  1881. - init: add warning to store both key and passphrase at safe place(s)
  1882. - BORG_HOST_ID env var to work around all-zero MAC address issue, #3985
  1883. - borg debug dump-repo-objs --ghost (dump everything from segment files,
  1884. including deleted or superseded objects or commit tags)
  1885. - borg debug search-repo-objs (search in repo objects for hex bytes or strings)
  1886. Other changes:
  1887. - add Python 3.7 support
  1888. - updated shell completions
  1889. - call socket.gethostname only once
  1890. - locking: better logging, add some asserts
  1891. - borg debug dump-repo-objs:
  1892. - filename layout improvements
  1893. - use repository.scan() to get on-disk order
  1894. - docs:
  1895. - update installation instructions for macOS
  1896. - added instructions to install fuse via homebrew
  1897. - improve diff docs
  1898. - added note that checkpoints inside files requires 1.1+
  1899. - add link to tempfile module
  1900. - remove row/column-spanning from docs source, #4000 #3990
  1901. - tests:
  1902. - fetch less data via os.urandom
  1903. - add py37 env for tox
  1904. - travis: add 3.7, remove 3.6-dev (we test with -dev in master)
  1905. - vagrant / binary builds:
  1906. - use osxfuse 3.8.2
  1907. - use own (uptodate) openindiana box
  1908. Version 1.1.6 (2018-06-11)
  1909. --------------------------
  1910. Compatibility notes:
  1911. - 1.1.6 changes:
  1912. - also allow msgpack-python 0.5.6.
  1913. Fixes:
  1914. - fix borg exception handling on ENOSPC error with xattrs, #3808
  1915. - prune: fix/improve overall progress display
  1916. - borg config repo ... does not need cache/manifest/key, #3802
  1917. - debug dump-repo-objs should not depend on a manifest obj
  1918. - pypi package:
  1919. - include .coveragerc, needed by tox.ini
  1920. - fix package long description, #3854
  1921. New features:
  1922. - mount: add uid, gid, umask mount options
  1923. - delete:
  1924. - only commit once, #3823
  1925. - implement --dry-run, #3822
  1926. - check:
  1927. - show progress while rebuilding missing manifest, #3787
  1928. - more --repair output
  1929. - borg config --list <repo>, #3612
  1930. Other changes:
  1931. - update msgpack requirement, #3753
  1932. - update bundled zstd to 1.3.4, #3745
  1933. - update bundled lz4 code to 1.8.2, #3870
  1934. - docs:
  1935. - describe what BORG_LIBZSTD_PREFIX does
  1936. - fix and deduplicate encryption quickstart docs, #3776
  1937. - vagrant:
  1938. - FUSE for macOS: upgrade 3.7.1 to 3.8.0
  1939. - exclude macOS High Sierra upgrade on the darwin64 machine
  1940. - remove borgbackup.egg-info dir in fs_init (after rsync)
  1941. - use pyenv-based build/test on jessie32/62
  1942. - use local 32 and 64bit debian jessie boxes
  1943. - use "vagrant" as username for new xenial box
  1944. - travis OS X: use xcode 8.3 (not broken)
  1945. Version 1.1.5 (2018-04-01)
  1946. --------------------------
  1947. Compatibility notes:
  1948. - 1.1.5 changes:
  1949. - require msgpack-python >= 0.4.6 and < 0.5.0.
  1950. 0.5.0+ dropped python 3.4 testing and also caused some other issues because
  1951. the python package was renamed to msgpack and emitted some FutureWarning.
  1952. Fixes:
  1953. - create --list: fix that it was never showing M status, #3492
  1954. - create: fix timing for first checkpoint (read files cache early, init
  1955. checkpoint timer after that), see #3394
  1956. - extract: set rc=1 when extracting damaged files with all-zero replacement
  1957. chunks or with size inconsistencies, #3448
  1958. - diff: consider an empty file as different to a non-existing file, #3688
  1959. - files cache: improve exception handling, #3553
  1960. - ignore exceptions in scandir_inorder() caused by an implicit stat(),
  1961. also remove unneeded sort, #3545
  1962. - fixed tab completion problem where a space is always added after path even
  1963. when it shouldn't
  1964. - build: do .h file content checks in binary mode, fixes build issue for
  1965. non-ascii header files on pure-ascii locale platforms, #3544 #3639
  1966. - borgfs: fix patterns/paths processing, #3551
  1967. - config: add some validation, #3566
  1968. - repository config: add validation for max_segment_size, #3592
  1969. - set cache previous_location on load instead of save
  1970. - remove platform.uname() call which caused library mismatch issues, #3732
  1971. - add exception handler around deprecated platform.linux_distribution() call
  1972. - use same datetime object for {now} and {utcnow}, #3548
  1973. New features:
  1974. - create: implement --stdin-name, #3533
  1975. - add chunker_params to borg archive info (--json)
  1976. - BORG_SHOW_SYSINFO=no to hide system information from exceptions
  1977. Other changes:
  1978. - updated zsh completions for borg 1.1.4
  1979. - files cache related code cleanups
  1980. - be more helpful when parsing invalid --pattern values, #3575
  1981. - be more clear in secure-erase warning message, #3591
  1982. - improve getpass user experience, #3689
  1983. - docs build: unicode problem fixed when using a py27-based sphinx
  1984. - docs:
  1985. - security: explicitly note what happens OUTSIDE the attack model
  1986. - security: add note about combining compression and encryption
  1987. - security: describe chunk size / proximity issue, #3687
  1988. - quickstart: add note about permissions, borg@localhost, #3452
  1989. - quickstart: add introduction to repositories & archives, #3620
  1990. - recreate --recompress: add missing metavar, clarify description, #3617
  1991. - improve logging docs, #3549
  1992. - add an example for --pattern usage, #3661
  1993. - clarify path semantics when matching, #3598
  1994. - link to offline documentation from README, #3502
  1995. - add docs on how to verify a signed release with GPG, #3634
  1996. - chunk seed is generated per repository (not: archive)
  1997. - better formatting of CPU usage documentation, #3554
  1998. - extend append-only repo rollback docs, #3579
  1999. - tests:
  2000. - fix erroneously skipped zstd compressor tests, #3606
  2001. - skip a test if argparse is broken, #3705
  2002. - vagrant:
  2003. - xenial64 box now uses username 'vagrant', #3707
  2004. - move cleanup steps to fs_init, #3706
  2005. - the boxcutter wheezy boxes are 404, use local ones
  2006. - update to Python 3.5.5 (for binary builds)
  2007. Version 1.1.4 (2017-12-31)
  2008. --------------------------
  2009. Compatibility notes:
  2010. - When upgrading from borg 1.0.x to 1.1.x, please note:
  2011. - read all the compatibility notes for 1.1.0*, starting from 1.1.0b1.
  2012. - borg upgrade: you do not need to and you also should not run it.
  2013. There is one exception though:
  2014. If you upgrade from an unpatched borg < 1.0.9, please read that section
  2015. above: "Pre-1.0.9 manifest spoofing vulnerability (CVE-2016-10099)"
  2016. - borg might ask some security-related questions once after upgrading.
  2017. You can answer them either manually or via environment variable.
  2018. One known case is if you use unencrypted repositories, then it will ask
  2019. about a unknown unencrypted repository one time.
  2020. - your first backup with 1.1.x might be significantly slower (it might
  2021. completely read, chunk, hash a lot files) - this is due to the
  2022. --files-cache mode change (and happens every time you change mode).
  2023. You can avoid the one-time slowdown by using the pre-1.1.0rc4-compatible
  2024. mode (but that is less safe for detecting changed files than the default).
  2025. See the --files-cache docs for details.
  2026. - borg 1.1.4 changes:
  2027. - zstd compression is new in borg 1.1.4, older borg can't handle it.
  2028. - new minimum requirements for the compression libraries - if the required
  2029. versions (header and lib) can't be found at build time, bundled code will
  2030. be used:
  2031. - added requirement: libzstd >= 1.3.0 (bundled: 1.3.2)
  2032. - updated requirement: liblz4 >= 1.7.0 / r129 (bundled: 1.8.0)
  2033. Fixes:
  2034. - check: data corruption fix: fix for borg check --repair malfunction, #3444.
  2035. See the more detailed notes close to the top of this document.
  2036. - delete: also delete security dir when deleting a repo, #3427
  2037. - prune: fix building the "borg prune" man page, #3398
  2038. - init: use given --storage-quota for local repo, #3470
  2039. - init: properly quote repo path in output
  2040. - fix startup delay with dns-only own fqdn resolving, #3471
  2041. New features:
  2042. - added zstd compression. try it!
  2043. - added placeholder {reverse-fqdn} for fqdn in reverse notation
  2044. - added BORG_BASE_DIR environment variable, #3338
  2045. Other changes:
  2046. - list help topics when invalid topic is requested
  2047. - fix lz4 deprecation warning, requires lz4 >= 1.7.0 (r129)
  2048. - add parens for C preprocessor macro argument usages (did not cause malfunction)
  2049. - exclude broken pytest 3.3.0 release
  2050. - updated fish/bash completions
  2051. - init: more clear exception messages for borg create, #3465
  2052. - docs:
  2053. - add auto-generated docs for borg config
  2054. - don't generate HTML docs page for borgfs, #3404
  2055. - docs update for lz4 b2 zstd changes
  2056. - add zstd to compression help, readme, docs
  2057. - update requirements and install docs about bundled lz4 and zstd
  2058. - refactored build of the compress and crypto.low_level extensions, #3415:
  2059. - move some lib/build related code to setup_{zstd,lz4,b2}.py
  2060. - bundle lz4 1.8.0 (requirement: >= 1.7.0 / r129)
  2061. - bundle zstd 1.3.2 (requirement: >= 1.3.0)
  2062. - blake2 was already bundled
  2063. - rename BORG_LZ4_PREFIX env var to BORG_LIBLZ4_PREFIX for better consistency:
  2064. we also have BORG_LIBB2_PREFIX and BORG_LIBZSTD_PREFIX now.
  2065. - add prefer_system_lib* = True settings to setup.py - by default the build
  2066. will prefer a shared library over the bundled code, if library and headers
  2067. can be found and meet the minimum requirements.
  2068. Version 1.1.3 (2017-11-27)
  2069. --------------------------
  2070. Fixes:
  2071. - Security Fix for CVE-2017-15914: Incorrect implementation of access controls
  2072. allows remote users to override repository restrictions in Borg servers.
  2073. A user able to access a remote Borg SSH server is able to circumvent access
  2074. controls post-authentication.
  2075. Affected releases: 1.1.0, 1.1.1, 1.1.2. Releases 1.0.x are NOT affected.
  2076. - crc32: deal with unaligned buffer, add tests - this broke borg on older ARM
  2077. CPUs that can not deal with unaligned 32bit memory accesses and raise a bus
  2078. error in such cases. the fix might also improve performance on some CPUs as
  2079. all 32bit memory accesses by the crc32 code are properly aligned now. #3317
  2080. - mount: fixed support of --consider-part-files and do not show .borg_part_N
  2081. files by default in the mounted FUSE filesystem. #3347
  2082. - fixed cache/repo timestamp inconsistency message, highlight that information
  2083. is obtained from security dir (deleting the cache will not bypass this error
  2084. in case the user knows this is a legitimate repo).
  2085. - borgfs: don't show sub-command in borgfs help, #3287
  2086. - create: show an error when --dry-run and --stats are used together, #3298
  2087. New features:
  2088. - mount: added exclusion group options and paths, #2138
  2089. Reused some code to support similar options/paths as borg extract offers -
  2090. making good use of these to only mount a smaller subset of dirs/files can
  2091. speed up mounting a lot and also will consume way less memory.
  2092. borg mount [options] repo_or_archive mountpoint path [paths...]
  2093. paths: you can just give some "root paths" (like for borg extract) to
  2094. only partially populate the FUSE filesystem.
  2095. new options: --exclude[-from], --pattern[s-from], --strip-components
  2096. - create/extract: support st_birthtime on platforms supporting it, #3272
  2097. - add "borg config" command for querying/setting/deleting config values, #3304
  2098. Other changes:
  2099. - clean up and simplify packaging (only package committed files, do not install
  2100. .c/.h/.pyx files)
  2101. - docs:
  2102. - point out tuning options for borg create, #3239
  2103. - add instructions for using ntfsclone, zerofree, #81
  2104. - move image backup-related FAQ entries to a new page
  2105. - clarify key aliases for borg list --format, #3111
  2106. - mention break-lock in checkpointing FAQ entry, #3328
  2107. - document sshfs rename workaround, #3315
  2108. - add FAQ about removing files from existing archives
  2109. - add FAQ about different prune policies
  2110. - usage and man page for borgfs, #3216
  2111. - clarify create --stats duration vs. wall time, #3301
  2112. - clarify encrypted key format for borg key export, #3296
  2113. - update release checklist about security fixes
  2114. - document good and problematic option placements, fix examples, #3356
  2115. - add note about using --nobsdflags to avoid speed penalty related to
  2116. bsdflags, #3239
  2117. - move most of support section to www.borgbackup.org
  2118. Version 1.1.2 (2017-11-05)
  2119. --------------------------
  2120. Fixes:
  2121. - fix KeyError crash when talking to borg server < 1.0.7, #3244
  2122. - extract: set bsdflags last (include immutable flag), #3263
  2123. - create: don't do stat() call on excluded-norecurse directory, fix exception
  2124. handling for stat() call, #3209
  2125. - create --stats: do not count data volume twice when checkpointing, #3224
  2126. - recreate: move chunks_healthy when excluding hardlink master, #3228
  2127. - recreate: get rid of chunks_healthy when rechunking (does not match), #3218
  2128. - check: get rid of already existing not matching chunks_healthy metadata, #3218
  2129. - list: fix stdout broken pipe handling, #3245
  2130. - list/diff: remove tag-file options (not used), #3226
  2131. New features:
  2132. - bash, zsh and fish shell auto-completions, see scripts/shell_completions/
  2133. - added BORG_CONFIG_DIR env var, #3083
  2134. Other changes:
  2135. - docs:
  2136. - clarify using a blank passphrase in keyfile mode
  2137. - mention "!" (exclude-norecurse) type in "patterns" help
  2138. - document to first heal before running borg recreate to re-chunk stuff,
  2139. because that will have to get rid of chunks_healthy metadata.
  2140. - more than 23 is not supported for CHUNK_MAX_EXP, #3115
  2141. - borg does not respect nodump flag by default any more
  2142. - clarify same-filesystem requirement for borg upgrade, #2083
  2143. - update / rephrase cygwin / WSL status, #3174
  2144. - improve docs about --stats, #3260
  2145. - vagrant: openindiana new clang package
  2146. Already contained in 1.1.1 (last minute fix):
  2147. - arg parsing: fix fallback function, refactor, #3205. This is a fixup
  2148. for #3155, which was broken on at least python <= 3.4.2.
  2149. Version 1.1.1 (2017-10-22)
  2150. --------------------------
  2151. Compatibility notes:
  2152. - The deprecated --no-files-cache is not a global/common option any more,
  2153. but only available for borg create (it is not needed for anything else).
  2154. Use --files-cache=disabled instead of --no-files-cache.
  2155. - The nodump flag ("do not backup this file") is not honoured any more by
  2156. default because this functionality (esp. if it happened by error or
  2157. unexpected) was rather confusing and unexplainable at first to users.
  2158. If you want that "do not backup NODUMP-flagged files" behaviour, use:
  2159. borg create --exclude-nodump ...
  2160. - If you are on Linux and do not need bsdflags archived, consider using
  2161. ``--nobsdflags`` with ``borg create`` to avoid additional syscalls and
  2162. speed up backup creation.
  2163. Fixes:
  2164. - borg recreate: correctly compute part file sizes. fixes cosmetic, but
  2165. annoying issue as borg check complains about size inconsistencies of part
  2166. files in affected archives. you can solve that by running borg recreate on
  2167. these archives, see also #3157.
  2168. - bsdflags support: do not open BLK/CHR/LNK files, avoid crashes and
  2169. slowness, #3130
  2170. - recreate: don't crash on attic archives w/o time_end, #3109
  2171. - don't crash on repository filesystems w/o hardlink support, #3107
  2172. - don't crash in first part of truncate_and_unlink, #3117
  2173. - fix server-side IndexError crash with clients < 1.0.7, #3192
  2174. - don't show traceback if only a global option is given, show help, #3142
  2175. - cache: use SaveFile for more safety, #3158
  2176. - init: fix wrong encryption choices in command line parser, fix missing
  2177. "authenticated-blake2", #3103
  2178. - move --no-files-cache from common to borg create options, #3146
  2179. - fix detection of non-local path (failed on ..filename), #3108
  2180. - logging with fileConfig: set json attr on "borg" logger, #3114
  2181. - fix crash with relative BORG_KEY_FILE, #3197
  2182. - show excluded dir with "x" for tagged dirs / caches, #3189
  2183. New features:
  2184. - create: --nobsdflags and --exclude-nodump options, #3160
  2185. - extract: --nobsdflags option, #3160
  2186. Other changes:
  2187. - remove annoying hardlinked symlinks warning, #3175
  2188. - vagrant: use self-made FreeBSD 10.3 box, #3022
  2189. - travis: don't brew update, hopefully fixes #2532
  2190. - docs:
  2191. - readme: -e option is required in borg 1.1
  2192. - add example showing --show-version --show-rc
  2193. - use --format rather than --list-format (deprecated) in example
  2194. - update docs about hardlinked symlinks limitation
  2195. Version 1.1.0 (2017-10-07)
  2196. --------------------------
  2197. Compatibility notes:
  2198. - borg command line: do not put options in between positional arguments
  2199. This sometimes works (e.g. it worked in borg 1.0.x), but can easily stop
  2200. working if we make positional arguments optional (like it happened for
  2201. borg create's "paths" argument in 1.1). There are also places in borg 1.0
  2202. where we do that, so it doesn't work there in general either. #3356
  2203. Good: borg create -v --stats repo::archive path
  2204. Good: borg create repo::archive path -v --stats
  2205. Bad: borg create repo::archive -v --stats path
  2206. Fixes:
  2207. - fix LD_LIBRARY_PATH restoration for subprocesses, #3077
  2208. - "auto" compression: make sure expensive compression is actually better,
  2209. otherwise store lz4 compressed data we already computed.
  2210. Other changes:
  2211. - docs:
  2212. - FAQ: we do not implement futile attempts of ETA / progress displays
  2213. - manpage: fix typos, update homepage
  2214. - implement simple "issue" role for manpage generation, #3075
  2215. Version 1.1.0rc4 (2017-10-01)
  2216. -----------------------------
  2217. Compatibility notes:
  2218. - A borg server >= 1.1.0rc4 does not support borg clients 1.1.0b3-b5. #3033
  2219. - The files cache is now controlled differently and has a new default mode:
  2220. - the files cache now uses ctime by default for improved file change
  2221. detection safety. You can still use mtime for more speed and less safety.
  2222. - --ignore-inode is deprecated (use --files-cache=... without "inode")
  2223. - --no-files-cache is deprecated (use --files-cache=disabled)
  2224. New features:
  2225. - --files-cache - implement files cache mode control, #911
  2226. You can now control the files cache mode using this option:
  2227. --files-cache={ctime,mtime,size,inode,rechunk,disabled}
  2228. (only some combinations are supported). See the docs for details.
  2229. Fixes:
  2230. - remote progress/logging: deal with partial lines, #2637
  2231. - remote progress: flush json mode output
  2232. - fix subprocess environments, #3050 (and more)
  2233. Other changes:
  2234. - remove client_supports_log_v3 flag, #3033
  2235. - exclude broken Cython 0.27(.0) in requirements, #3066
  2236. - vagrant:
  2237. - upgrade to FUSE for macOS 3.7.1
  2238. - use Python 3.5.4 to build the binaries
  2239. - docs:
  2240. - security: change-passphrase only changes the passphrase, #2990
  2241. - fixed/improved borg create --compression examples, #3034
  2242. - add note about metadata dedup and --no[ac]time, #2518
  2243. - twitter account @borgbackup now, better visible, #2948
  2244. - simplified rate limiting wrapper in FAQ
  2245. Version 1.1.0rc3 (2017-09-10)
  2246. -----------------------------
  2247. New features:
  2248. - delete: support naming multiple archives, #2958
  2249. Fixes:
  2250. - repo cleanup/write: invalidate cached FDs, #2982
  2251. - fix datetime.isoformat() microseconds issues, #2994
  2252. - recover_segment: use mmap(), lower memory needs, #2987
  2253. Other changes:
  2254. - with-lock: close segment file before invoking subprocess
  2255. - keymanager: don't depend on optional readline module, #2976
  2256. - docs:
  2257. - fix macOS keychain integration command
  2258. - show/link new screencasts in README, #2936
  2259. - document utf-8 locale requirement for json mode, #2273
  2260. - vagrant: clean up shell profile init, user name, #2977
  2261. - test_detect_attic_repo: don't test mount, #2975
  2262. - add debug logging for repository cleanup
  2263. Version 1.1.0rc2 (2017-08-28)
  2264. -----------------------------
  2265. Compatibility notes:
  2266. - list: corrected mix-up of "isomtime" and "mtime" formats. Previously,
  2267. "isomtime" was the default but produced a verbose human format,
  2268. while "mtime" produced a ISO-8601-like format.
  2269. The behaviours have been swapped (so "mtime" is human, "isomtime" is ISO-like),
  2270. and the default is now "mtime".
  2271. "isomtime" is now a real ISO-8601 format ("T" between date and time, not a space).
  2272. New features:
  2273. - None.
  2274. Fixes:
  2275. - list: fix weird mixup of mtime/isomtime
  2276. - create --timestamp: set start time, #2957
  2277. - ignore corrupt files cache, #2939
  2278. - migrate locks to child PID when daemonize is used
  2279. - fix exitcode of borg serve, #2910
  2280. - only compare contents when chunker params match, #2899
  2281. - umount: try fusermount, then try umount, #2863
  2282. Other changes:
  2283. - JSON: use a more standard ISO 8601 datetime format, #2376
  2284. - cache: write_archive_index: truncate_and_unlink on error, #2628
  2285. - detect non-upgraded Attic repositories, #1933
  2286. - delete various nogil and threading related lines
  2287. - coala / pylint related improvements
  2288. - docs:
  2289. - renew asciinema/screencasts, #669
  2290. - create: document exclusion through nodump, #2949
  2291. - minor formatting fixes
  2292. - tar: tarpipe example
  2293. - improve "with-lock" and "info" docs, #2869
  2294. - detail how to use macOS/GNOME/KDE keyrings for repo passwords, #392
  2295. - travis: only short-circuit docs-only changes for pull requests
  2296. - vagrant:
  2297. - netbsd: bash is already installed
  2298. - fix netbsd version in PKG_PATH
  2299. - add exe location to PATH when we build an exe
  2300. Version 1.1.0rc1 (2017-07-24)
  2301. -----------------------------
  2302. Compatibility notes:
  2303. - delete: removed short option for --cache-only
  2304. New features:
  2305. - support borg list repo --format {comment} {bcomment} {end}, #2081
  2306. - key import: allow reading from stdin, #2760
  2307. Fixes:
  2308. - with-lock: avoid creating segment files that might be overwritten later, #1867
  2309. - prune: fix checkpoints processing with --glob-archives
  2310. - FUSE: versions view: keep original file extension at end, #2769
  2311. - fix --last, --first: do not accept values <= 0,
  2312. fix reversed archive ordering with --last
  2313. - include testsuite data (attic.tar.gz) when installing the package
  2314. - use limited unpacker for outer key, for manifest (both security precautions),
  2315. #2174 #2175
  2316. - fix bashism in shell scripts, #2820, #2816
  2317. - cleanup endianness detection, create _endian.h,
  2318. fixes build on alpine linux, #2809
  2319. - fix crash with --no-cache-sync (give known chunk size to chunk_incref), #2853
  2320. Other changes:
  2321. - FUSE: versions view: linear numbering by archive time
  2322. - split up interval parsing from filtering for --keep-within, #2610
  2323. - add a basic .editorconfig, #2734
  2324. - use archive creation time as mtime for FUSE mount, #2834
  2325. - upgrade FUSE for macOS (osxfuse) from 3.5.8 to 3.6.3, #2706
  2326. - hashindex: speed up by replacing modulo with "if" to check for wraparound
  2327. - coala checker / pylint: fixed requirements and .coafile, more ignores
  2328. - borg upgrade: name backup directories as 'before-upgrade', #2811
  2329. - add .mailmap
  2330. - some minor changes suggested by lgtm.com
  2331. - docs:
  2332. - better explanation of the --ignore-inode option relevance, #2800
  2333. - fix openSUSE command and add openSUSE section
  2334. - simplify ssh authorized_keys file using "restrict", add legacy note, #2121
  2335. - mount: show usage of archive filters
  2336. - mount: add repository example, #2462
  2337. - info: update and add examples, #2765
  2338. - prune: include example
  2339. - improved style / formatting
  2340. - improved/fixed segments_per_dir docs
  2341. - recreate: fix wrong "remove unwanted files" example
  2342. - reference list of status chars in borg recreate --filter description
  2343. - update source-install docs about doc build dependencies, #2795
  2344. - cleanup installation docs
  2345. - file system requirements, update segs per dir
  2346. - fix checkpoints/parts reference in FAQ, #2859
  2347. - code:
  2348. - hashindex: don't pass side effect into macro
  2349. - crypto low_level: don't mutate local bytes()
  2350. - use dash_open function to open file or "-" for stdin/stdout
  2351. - archiver: argparse cleanup / refactoring
  2352. - shellpattern: add match_end arg
  2353. - tests: added some additional unit tests, some fixes, #2700 #2710
  2354. - vagrant: fix setup of cygwin, add Debian 9 "stretch"
  2355. - travis: don't perform full travis build on docs-only changes, #2531
  2356. Version 1.1.0b6 (2017-06-18)
  2357. ----------------------------
  2358. Compatibility notes:
  2359. - Running "borg init" via a "borg serve --append-only" server will *not* create
  2360. an append-only repository anymore. Use "borg init --append-only" to initialize
  2361. an append-only repository.
  2362. - Repositories in the "repokey" and "repokey-blake2" modes with an empty passphrase
  2363. are now treated as unencrypted repositories for security checks (e.g.
  2364. BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK).
  2365. Previously there would be no prompts nor messages if an unknown repository
  2366. in one of these modes with an empty passphrase was encountered. This would
  2367. allow an attacker to swap a repository, if one assumed that the lack of
  2368. password prompts was due to a set BORG_PASSPHRASE.
  2369. Since the "trick" does not work if BORG_PASSPHRASE is set, this does generally
  2370. not affect scripts.
  2371. - Repositories in the "authenticated" mode are now treated as the unencrypted
  2372. repositories they are.
  2373. - The client-side temporary repository cache now holds unencrypted data for better speed.
  2374. - borg init: removed the short form of --append-only (-a).
  2375. - borg upgrade: removed the short form of --inplace (-i).
  2376. New features:
  2377. - reimplemented the RepositoryCache, size-limited caching of decrypted repo
  2378. contents, integrity checked via xxh64. #2515
  2379. - reduced space usage of chunks.archive.d. Existing caches are migrated during
  2380. a cache sync. #235 #2638
  2381. - integrity checking using xxh64 for important files used by borg, #1101:
  2382. - repository: index and hints files
  2383. - cache: chunks and files caches, chunks.archive.d
  2384. - improve cache sync speed, #1729
  2385. - create: new --no-cache-sync option
  2386. - add repository mandatory feature flags infrastructure, #1806
  2387. - Verify most operations against SecurityManager. Location, manifest timestamp
  2388. and key types are now checked for almost all non-debug commands. #2487
  2389. - implement storage quotas, #2517
  2390. - serve: add --restrict-to-repository, #2589
  2391. - BORG_PASSCOMMAND: use external tool providing the key passphrase, #2573
  2392. - borg export-tar, #2519
  2393. - list: --json-lines instead of --json for archive contents, #2439
  2394. - add --debug-profile option (and also "borg debug convert-profile"), #2473
  2395. - implement --glob-archives/-a, #2448
  2396. - normalize authenticated key modes for better naming consistency:
  2397. - rename "authenticated" to "authenticated-blake2" (uses blake2b)
  2398. - implement "authenticated" mode (uses hmac-sha256)
  2399. Fixes:
  2400. - hashindex: read/write indices >2 GiB on 32bit systems, better error
  2401. reporting, #2496
  2402. - repository URLs: implement IPv6 address support and also more informative
  2403. error message when parsing fails.
  2404. - mount: check whether llfuse is installed before asking for passphrase, #2540
  2405. - mount: do pre-mount checks before opening repository, #2541
  2406. - FUSE:
  2407. - fix crash if empty (None) xattr is read, #2534
  2408. - fix read(2) caching data in metadata cache
  2409. - fix negative uid/gid crash (fix crash when mounting archives
  2410. of external drives made on cygwin), #2674
  2411. - redo ItemCache, on top of object cache
  2412. - use decrypted cache
  2413. - remove unnecessary normpaths
  2414. - serve: ignore --append-only when initializing a repository (borg init), #2501
  2415. - serve: fix incorrect type of exception_short for Errors, #2513
  2416. - fix --exclude and --exclude-from recursing into directories, #2469
  2417. - init: don't allow creating nested repositories, #2563
  2418. - --json: fix encryption[mode] not being the cmdline name
  2419. - remote: propagate Error.traceback correctly
  2420. - fix remote logging and progress, #2241
  2421. - implement --debug-topic for remote servers
  2422. - remote: restore "Remote:" prefix (as used in 1.0.x)
  2423. - rpc negotiate: enable v3 log protocol only for supported clients
  2424. - fix --progress and logging in general for remote
  2425. - fix parse_version, add tests, #2556
  2426. - repository: truncate segments (and also some other files) before unlinking, #2557
  2427. - recreate: keep timestamps as in original archive, #2384
  2428. - recreate: if single archive is not processed, exit 2
  2429. - patterns: don't recurse with ! / --exclude for pf:, #2509
  2430. - cache sync: fix n^2 behaviour in lookup_name
  2431. - extract: don't write to disk with --stdout (affected non-regular-file items), #2645
  2432. - hashindex: implement KeyError, more tests
  2433. Other changes:
  2434. - remote: show path in PathNotAllowed
  2435. - consider repokey w/o passphrase == unencrypted, #2169
  2436. - consider authenticated mode == unencrypted, #2503
  2437. - restrict key file names, #2560
  2438. - document follow_symlinks requirements, check libc, use stat and chown
  2439. with follow_symlinks=False, #2507
  2440. - support common options on the main command, #2508
  2441. - support common options on mid-level commands (e.g. borg *key* export)
  2442. - make --progress a common option
  2443. - increase DEFAULT_SEGMENTS_PER_DIR to 1000
  2444. - chunker: fix invalid use of types (function only used by tests)
  2445. - chunker: don't do uint32_t >> 32
  2446. - FUSE:
  2447. - add instrumentation (--debug and SIGUSR1/SIGINFO)
  2448. - reduced memory usage for repository mounts by lazily instantiating archives
  2449. - improved archive load times
  2450. - info: use CacheSynchronizer & HashIndex.stats_against (better performance)
  2451. - docs:
  2452. - init: document --encryption as required
  2453. - security: OpenSSL usage
  2454. - security: used implementations; note python libraries
  2455. - security: security track record of OpenSSL and msgpack
  2456. - patterns: document denial of service (regex, wildcards)
  2457. - init: note possible denial of service with "none" mode
  2458. - init: document SHA extension is supported in OpenSSL and thus SHA is
  2459. faster on AMD Ryzen than blake2b.
  2460. - book: use A4 format, new builder option format.
  2461. - book: create appendices
  2462. - data structures: explain repository compaction
  2463. - data structures: add chunk layout diagram
  2464. - data structures: integrity checking
  2465. - data structures: demingle cache and repo index
  2466. - Attic FAQ: separate section for attic stuff
  2467. - FAQ: I get an IntegrityError or similar - what now?
  2468. - FAQ: Can I use Borg on SMR hard drives?, #2252
  2469. - FAQ: specify "using inline shell scripts"
  2470. - add systemd warning regarding placeholders, #2543
  2471. - xattr: document API
  2472. - add docs/misc/borg-data-flow data flow chart
  2473. - debugging facilities
  2474. - README: how to help the project, #2550
  2475. - README: add bountysource badge, #2558
  2476. - fresh new theme + tweaking
  2477. - logo: vectorized (PDF and SVG) versions
  2478. - frontends: use headlines - you can link to them
  2479. - mark --pattern, --patterns-from as experimental
  2480. - highlight experimental features in online docs
  2481. - remove regex based pattern examples, #2458
  2482. - nanorst for "borg help TOPIC" and --help
  2483. - split deployment
  2484. - deployment: hosting repositories
  2485. - deployment: automated backups to a local hard drive
  2486. - development: vagrant, windows10 requirements
  2487. - development: update docs remarks
  2488. - split usage docs, #2627
  2489. - usage: avoid bash highlight, [options] instead of <options>
  2490. - usage: add benchmark page
  2491. - helpers: truncate_and_unlink doc
  2492. - don't suggest to leak BORG_PASSPHRASE
  2493. - internals: columnize rather long ToC [webkit fixup]
  2494. internals: manifest & feature flags
  2495. - internals: more HashIndex details
  2496. - internals: fix ASCII art equations
  2497. - internals: edited obj graph related sections a bit
  2498. - internals: layers image + description
  2499. - fix way too small figures in pdf
  2500. - index: disable syntax highlight (bash)
  2501. - improve options formatting, fix accidental block quotes
  2502. - testing / checking:
  2503. - add support for using coala, #1366
  2504. - testsuite: add ArchiverCorruptionTestCase
  2505. - do not test logger name, #2504
  2506. - call setup_logging after destroying logging config
  2507. - testsuite.archiver: normalise pytest.raises vs. assert_raises
  2508. - add test for preserved intermediate folder permissions, #2477
  2509. - key: add round-trip test
  2510. - remove attic dependency of the tests, #2505
  2511. - enable remote tests on cygwin
  2512. - tests: suppress tar's future timestamp warning
  2513. - cache sync: add more refcount tests
  2514. - repository: add tests, including corruption tests
  2515. - vagrant:
  2516. - control VM cpus and pytest workers via env vars VMCPUS and XDISTN
  2517. - update cleaning workdir
  2518. - fix openbsd shell
  2519. - add OpenIndiana
  2520. - packaging:
  2521. - binaries: don't bundle libssl
  2522. - setup.py clean to remove compiled files
  2523. - fail in borg package if version metadata is very broken (setuptools_scm)
  2524. - repo / code structure:
  2525. - create borg.algorithms and borg.crypto packages
  2526. - algorithms: rename crc32 to checksums
  2527. - move patterns to module, #2469
  2528. - gitignore: complete paths for src/ excludes
  2529. - cache: extract CacheConfig class
  2530. - implement IntegrityCheckedFile + Detached variant, #2502 #1688
  2531. - introduce popen_with_error_handling to handle common user errors
  2532. Version 1.1.0b5 (2017-04-30)
  2533. ----------------------------
  2534. Compatibility notes:
  2535. - BORG_HOSTNAME_IS_UNIQUE is now on by default.
  2536. - removed --compression-from feature
  2537. - recreate: add --recompress flag, unify --always-recompress and
  2538. --recompress
  2539. Fixes:
  2540. - catch exception for os.link when hardlinks are not supported, #2405
  2541. - borg rename / recreate: expand placeholders, #2386
  2542. - generic support for hardlinks (files, devices, FIFOs), #2324
  2543. - extract: also create parent dir for device files, if needed, #2358
  2544. - extract: if a hardlink master is not in the to-be-extracted subset,
  2545. the "x" status was not displayed for it, #2351
  2546. - embrace y2038 issue to support 32bit platforms: clamp timestamps to int32,
  2547. #2347
  2548. - verify_data: fix IntegrityError handling for defect chunks, #2442
  2549. - allow excluding parent and including child, #2314
  2550. Other changes:
  2551. - refactor compression decision stuff
  2552. - change global compression default to lz4 as well, to be consistent
  2553. with --compression defaults.
  2554. - placeholders: deny access to internals and other unspecified stuff
  2555. - clearer error message for unrecognized placeholder
  2556. - more clear exception if borg check does not help, #2427
  2557. - vagrant: upgrade FUSE for macOS to 3.5.8, #2346
  2558. - linux binary builds: get rid of glibc 2.13 dependency, #2430
  2559. - docs:
  2560. - placeholders: document escaping
  2561. - serve: env vars in original commands are ignored
  2562. - tell what kind of hardlinks we support
  2563. - more docs about compression
  2564. - LICENSE: use canonical formulation
  2565. ("copyright holders and contributors" instead of "author")
  2566. - document borg init behaviour via append-only borg serve, #2440
  2567. - be clear about what buzhash is used for, #2390
  2568. - add hint about chunker params, #2421
  2569. - clarify borg upgrade docs, #2436
  2570. - FAQ to explain warning when running borg check --repair, #2341
  2571. - repository file system requirements, #2080
  2572. - pre-install considerations
  2573. - misc. formatting / crossref fixes
  2574. - tests:
  2575. - enhance travis setuptools_scm situation
  2576. - add extra test for the hashindex
  2577. - fix invalid param issue in benchmarks
  2578. These belong to 1.1.0b4 release, but did not make it into changelog by then:
  2579. - vagrant: increase memory for parallel testing
  2580. - lz4 compress: lower max. buffer size, exception handling
  2581. - add docstring to do_benchmark_crud
  2582. - patterns help: mention path full-match in intro
  2583. Version 1.1.0b4 (2017-03-27)
  2584. ----------------------------
  2585. Compatibility notes:
  2586. - init: the --encryption argument is mandatory now (there are several choices)
  2587. - moved "borg migrate-to-repokey" to "borg key migrate-to-repokey".
  2588. - "borg change-passphrase" is deprecated, use "borg key change-passphrase"
  2589. instead.
  2590. - the --exclude-if-present option now supports tagging a folder with any
  2591. filesystem object type (file, folder, etc), instead of expecting only files
  2592. as tags, #1999
  2593. - the --keep-tag-files option has been deprecated in favor of the new
  2594. --keep-exclude-tags, to account for the change mentioned above.
  2595. - use lz4 compression by default, #2179
  2596. New features:
  2597. - JSON API to make developing frontends and automation easier
  2598. (see :ref:`json_output`)
  2599. - add JSON output to commands: `borg create/list/info --json ...`.
  2600. - add --log-json option for structured logging output.
  2601. - add JSON progress information, JSON support for confirmations (yes()).
  2602. - add two new options --pattern and --patterns-from as discussed in #1406
  2603. - new path full match pattern style (pf:) for very fast matching, #2334
  2604. - add 'debug dump-manifest' and 'debug dump-archive' commands
  2605. - add 'borg benchmark crud' command, #1788
  2606. - new 'borg delete --force --force' to delete severely corrupted archives, #1975
  2607. - info: show utilization of maximum archive size, #1452
  2608. - list: add dsize and dcsize keys, #2164
  2609. - paperkey.html: Add interactive html template for printing key backups.
  2610. - key export: add qr html export mode
  2611. - securely erase config file (which might have old encryption key), #2257
  2612. - archived file items: add size to metadata, 'borg extract' and 'borg check' do
  2613. check the file size for consistency, FUSE uses precomputed size from Item.
  2614. Fixes:
  2615. - fix remote speed regression introduced in 1.1.0b3, #2185
  2616. - fix regression handling timestamps beyond 2262 (revert bigint removal),
  2617. introduced in 1.1.0b3, #2321
  2618. - clamp (nano)second values to unproblematic range, #2304
  2619. - hashindex: rebuild hashtable if we have too little empty buckets
  2620. (performance fix), #2246
  2621. - Location regex: fix bad parsing of wrong syntax
  2622. - ignore posix_fadvise errors in repository.py, #2095
  2623. - borg rpc: use limited msgpack.Unpacker (security precaution), #2139
  2624. - Manifest: Make sure manifest timestamp is strictly monotonically increasing.
  2625. - create: handle BackupOSError on a per-path level in one spot
  2626. - create: clarify -x option / meaning of "same filesystem"
  2627. - create: don't create hard link refs to failed files
  2628. - archive check: detect and fix missing all-zero replacement chunks, #2180
  2629. - files cache: update inode number when --ignore-inode is used, #2226
  2630. - fix decompression exceptions crashing ``check --verify-data`` and others
  2631. instead of reporting integrity error, #2224 #2221
  2632. - extract: warning for unextracted big extended attributes, #2258, #2161
  2633. - mount: umount on SIGINT/^C when in foreground
  2634. - mount: handle invalid hard link refs
  2635. - mount: fix huge RAM consumption when mounting a repository (saves number of
  2636. archives * 8 MiB), #2308
  2637. - hashindex: detect mingw byte order #2073
  2638. - hashindex: fix wrong skip_hint on hashindex_set when encountering tombstones,
  2639. the regression was introduced in #1748
  2640. - fix ChunkIndex.__contains__ assertion for big-endian archs
  2641. - fix borg key/debug/benchmark crashing without subcommand, #2240
  2642. - Location: accept //servername/share/path
  2643. - correct/refactor calculation of unique/non-unique chunks
  2644. - extract: fix missing call to ProgressIndicator.finish
  2645. - prune: fix error msg, it is --keep-within, not --within
  2646. - fix "auto" compression mode bug (not compressing), #2331
  2647. - fix symlink item fs size computation, #2344
  2648. Other changes:
  2649. - remote repository: improved async exception processing, #2255 #2225
  2650. - with --compression auto,C, only use C if lz4 achieves at least 3% compression
  2651. - PatternMatcher: only normalize path once, #2338
  2652. - hashindex: separate endian-dependent defs from endian detection
  2653. - migrate-to-repokey: ask using canonical_path() as we do everywhere else.
  2654. - SyncFile: fix use of fd object after close
  2655. - make LoggedIO.close_segment reentrant
  2656. - creating a new segment: use "xb" mode, #2099
  2657. - redo key_creator, key_factory, centralise key knowledge, #2272
  2658. - add return code functions, #2199
  2659. - list: only load cache if needed
  2660. - list: files->items, clarifications
  2661. - list: add "name" key for consistency with info cmd
  2662. - ArchiveFormatter: add "start" key for compatibility with "info"
  2663. - RemoteRepository: account rx/tx bytes
  2664. - setup.py build_usage/build_man/build_api fixes
  2665. - Manifest.in: simplify, exclude .so, .dll and .orig, #2066
  2666. - FUSE: get rid of chunk accounting, st_blocks = ceil(size / blocksize).
  2667. - tests:
  2668. - help python development by testing 3.6-dev
  2669. - test for borg delete --force
  2670. - vagrant:
  2671. - freebsd: some fixes, #2067
  2672. - darwin64: use osxfuse 3.5.4 for tests / to build binaries
  2673. - darwin64: improve VM settings
  2674. - use python 3.5.3 to build binaries, #2078
  2675. - upgrade pyinstaller from 3.1.1+ to 3.2.1
  2676. - pyinstaller: use fixed AND freshly compiled bootloader, #2002
  2677. - pyinstaller: automatically builds bootloader if missing
  2678. - docs:
  2679. - create really nice man pages
  2680. - faq: mention --remote-ratelimit in bandwidth limit question
  2681. - fix caskroom link, #2299
  2682. - docs/security: reiterate that RPC in Borg does no networking
  2683. - docs/security: counter tracking, #2266
  2684. - docs/development: update merge remarks
  2685. - address SSH batch mode in docs, #2202 #2270
  2686. - add warning about running build_usage on Python >3.4, #2123
  2687. - one link per distro in the installation page
  2688. - improve --exclude-if-present and --keep-exclude-tags, #2268
  2689. - improve automated backup script in doc, #2214
  2690. - improve remote-path description
  2691. - update docs for create -C default change (lz4)
  2692. - document relative path usage, #1868
  2693. - document snapshot usage, #2178
  2694. - corrected some stuff in internals+security
  2695. - internals: move toctree to after the introduction text
  2696. - clarify metadata kind, manifest ops
  2697. - key enc: correct / clarify some stuff, link to internals/security
  2698. - datas: enc: 1.1.x mas different MACs
  2699. - datas: enc: correct factual error -- no nonce involved there.
  2700. - make internals.rst an index page and edit it a bit
  2701. - add "Cryptography in Borg" and "Remote RPC protocol security" sections
  2702. - document BORG_HOSTNAME_IS_UNIQUE, #2087
  2703. - FAQ by categories as proposed by @anarcat in #1802
  2704. - FAQ: update Which file types, attributes, etc. are *not* preserved?
  2705. - development: new branching model for git repository
  2706. - development: define "ours" merge strategy for auto-generated files
  2707. - create: move --exclude note to main doc
  2708. - create: move item flags to main doc
  2709. - fix examples using borg init without -e/--encryption
  2710. - list: don't print key listings in fat (html + man)
  2711. - remove Python API docs (were very incomplete, build problems on RTFD)
  2712. - added FAQ section about backing up root partition
  2713. Version 1.1.0b3 (2017-01-15)
  2714. ----------------------------
  2715. Compatibility notes:
  2716. - borg init: removed the default of "--encryption/-e", #1979
  2717. This was done so users do a informed decision about -e mode.
  2718. Bug fixes:
  2719. - borg recreate: don't rechunkify unless explicitly told so
  2720. - borg info: fixed bug when called without arguments, #1914
  2721. - borg init: fix free space check crashing if disk is full, #1821
  2722. - borg debug delete/get obj: fix wrong reference to exception
  2723. - fix processing of remote ~/ and ~user/ paths (regressed since 1.1.0b1), #1759
  2724. - posix platform module: only build / import on non-win32 platforms, #2041
  2725. New features:
  2726. - new CRC32 implementations that are much faster than the zlib one used previously, #1970
  2727. - add blake2b key modes (use blake2b as MAC). This links against system libb2,
  2728. if possible, otherwise uses bundled code
  2729. - automatically remove stale locks - set BORG_HOSTNAME_IS_UNIQUE env var
  2730. to enable stale lock killing. If set, stale locks in both cache and
  2731. repository are deleted. #562 #1253
  2732. - borg info <repo>: print general repo information, #1680
  2733. - borg check --first / --last / --sort / --prefix, #1663
  2734. - borg mount --first / --last / --sort / --prefix, #1542
  2735. - implement "health" item formatter key, #1749
  2736. - BORG_SECURITY_DIR to remember security related infos outside the cache.
  2737. Key type, location and manifest timestamp checks now survive cache
  2738. deletion. This also means that you can now delete your cache and avoid
  2739. previous warnings, since Borg can still tell it's safe.
  2740. - implement BORG_NEW_PASSPHRASE, #1768
  2741. Other changes:
  2742. - borg recreate:
  2743. - remove special-cased --dry-run
  2744. - update --help
  2745. - remove bloat: interruption blah, autocommit blah, resuming blah
  2746. - re-use existing checkpoint functionality
  2747. - archiver tests: add check_cache tool - lints refcounts
  2748. - fixed cache sync performance regression from 1.1.0b1 onwards, #1940
  2749. - syncing the cache without chunks.archive.d (see :ref:`disable_archive_chunks`)
  2750. now avoids any merges and is thus faster, #1940
  2751. - borg check --verify-data: faster due to linear on-disk-order scan
  2752. - borg debug-xxx commands removed, we use "debug xxx" subcommands now, #1627
  2753. - improve metadata handling speed
  2754. - shortcut hashindex_set by having hashindex_lookup hint about address
  2755. - improve / add progress displays, #1721
  2756. - check for index vs. segment files object count mismatch
  2757. - make RPC protocol more extensible: use named parameters.
  2758. - RemoteRepository: misc. code cleanups / refactors
  2759. - clarify cache/repository README file
  2760. - docs:
  2761. - quickstart: add a comment about other (remote) filesystems
  2762. - quickstart: only give one possible ssh url syntax, all others are
  2763. documented in usage chapter.
  2764. - mention file://
  2765. - document repo URLs / archive location
  2766. - clarify borg diff help, #980
  2767. - deployment: synthesize alternative --restrict-to-path example
  2768. - improve cache / index docs, esp. files cache docs, #1825
  2769. - document using "git merge 1.0-maint -s recursive -X rename-threshold=20%"
  2770. for avoiding troubles when merging the 1.0-maint branch into master.
  2771. - tests:
  2772. - FUSE tests: catch ENOTSUP on freebsd
  2773. - FUSE tests: test troublesome xattrs last
  2774. - fix byte range error in test, #1740
  2775. - use monkeypatch to set env vars, but only on pytest based tests.
  2776. - point XDG_*_HOME to temp dirs for tests, #1714
  2777. - remove all BORG_* env vars from the outer environment
  2778. Version 1.1.0b2 (2016-10-01)
  2779. ----------------------------
  2780. Bug fixes:
  2781. - fix incorrect preservation of delete tags, leading to "object count mismatch"
  2782. on borg check, #1598. This only occurred with 1.1.0b1 (not with 1.0.x) and is
  2783. normally fixed by running another borg create/delete/prune.
  2784. - fix broken --progress for double-cell paths (e.g. CJK), #1624
  2785. - borg recreate: also catch SIGHUP
  2786. - FUSE:
  2787. - fix hardlinks in versions view, #1599
  2788. - add parameter check to ItemCache.get to make potential failures more clear
  2789. New features:
  2790. - Archiver, RemoteRepository: add --remote-ratelimit (send data)
  2791. - borg help compression, #1582
  2792. - borg check: delete chunks with integrity errors, #1575, so they can be
  2793. "repaired" immediately and maybe healed later.
  2794. - archives filters concept (refactoring/unifying older code)
  2795. - covers --first/--last/--prefix/--sort-by options
  2796. - currently used for borg list/info/delete
  2797. Other changes:
  2798. - borg check --verify-data slightly tuned (use get_many())
  2799. - change {utcnow} and {now} to ISO-8601 format ("T" date/time separator)
  2800. - repo check: log transaction IDs, improve object count mismatch diagnostic
  2801. - Vagrantfile: use TW's fresh-bootloader pyinstaller branch
  2802. - fix module names in api.rst
  2803. - hashindex: bump api_version
  2804. Version 1.1.0b1 (2016-08-28)
  2805. ----------------------------
  2806. New features:
  2807. - new commands:
  2808. - borg recreate: re-create existing archives, #787 #686 #630 #70, also see
  2809. #757, #770.
  2810. - selectively remove files/dirs from old archives
  2811. - re-compress data
  2812. - re-chunkify data, e.g. to have upgraded Attic / Borg 0.xx archives
  2813. deduplicate with Borg 1.x archives or to experiment with chunker-params.
  2814. - borg diff: show differences between archives
  2815. - borg with-lock: execute a command with the repository locked, #990
  2816. - borg create:
  2817. - Flexible compression with pattern matching on path/filename,
  2818. and LZ4 heuristic for deciding compressibility, #810, #1007
  2819. - visit files in inode order (better speed, esp. for large directories and rotating disks)
  2820. - in-file checkpoints, #1217
  2821. - increased default checkpoint interval to 30 minutes (was 5 minutes), #896
  2822. - added uuid archive format tag, #1151
  2823. - save mountpoint directories with --one-file-system, makes system restore easier, #1033
  2824. - Linux: added support for some BSD flags, #1050
  2825. - add 'x' status for excluded paths, #814
  2826. - also means files excluded via UF_NODUMP, #1080
  2827. - borg check:
  2828. - will not produce the "Checking segments" output unless new --progress option is passed, #824.
  2829. - --verify-data to verify data cryptographically on the client, #975
  2830. - borg list, #751, #1179
  2831. - removed {formatkeys}, see "borg list --help"
  2832. - --list-format is deprecated, use --format instead
  2833. - --format now also applies to listing archives, not only archive contents, #1179
  2834. - now supports the usual [PATH [PATHS…]] syntax and excludes
  2835. - new keys: csize, num_chunks, unique_chunks, NUL
  2836. - supports guaranteed_available hashlib hashes
  2837. (to avoid varying functionality depending on environment),
  2838. which includes the SHA1 and SHA2 family as well as MD5
  2839. - borg prune:
  2840. - to better visualize the "thinning out", we now list all archives in
  2841. reverse time order. rephrase and reorder help text.
  2842. - implement --keep-last N via --keep-secondly N, also --keep-minutely.
  2843. assuming that there is not more than 1 backup archive made in 1s,
  2844. --keep-last N and --keep-secondly N are equivalent, #537
  2845. - cleanup checkpoints except the latest, #1008
  2846. - borg extract:
  2847. - added --progress, #1449
  2848. - Linux: limited support for BSD flags, #1050
  2849. - borg info:
  2850. - output is now more similar to borg create --stats, #977
  2851. - borg mount:
  2852. - provide "borgfs" wrapper for borg mount, enables usage via fstab, #743
  2853. - "versions" mount option - when used with a repository mount, this gives
  2854. a merged, versioned view of the files in all archives, #729
  2855. - repository:
  2856. - added progress information to commit/compaction phase (often takes some time when deleting/pruning), #1519
  2857. - automatic recovery for some forms of repository inconsistency, #858
  2858. - check free space before going forward with a commit, #1336
  2859. - improved write performance (esp. for rotating media), #985
  2860. - new IO code for Linux
  2861. - raised default segment size to approx 512 MiB
  2862. - improved compaction performance, #1041
  2863. - reduced client CPU load and improved performance for remote repositories, #940
  2864. - options that imply output (--show-rc, --show-version, --list, --stats,
  2865. --progress) don't need -v/--info to have that output displayed, #865
  2866. - add archive comments (via borg (re)create --comment), #842
  2867. - borg list/prune/delete: also output archive id, #731
  2868. - --show-version: shows/logs the borg version, #725
  2869. - added --debug-topic for granular debug logging, #1447
  2870. - use atomic file writing/updating for configuration and key files, #1377
  2871. - BORG_KEY_FILE environment variable, #1001
  2872. - self-testing module, #970
  2873. Bug fixes:
  2874. - list: fixed default output being produced if --format is given with empty parameter, #1489
  2875. - create: fixed overflowing progress line with CJK and similar characters, #1051
  2876. - prune: fixed crash if --prefix resulted in no matches, #1029
  2877. - init: clean up partial repo if passphrase input is aborted, #850
  2878. - info: quote cmdline arguments that have spaces in them
  2879. - fix hardlinks failing in some cases for extracting subtrees, #761
  2880. Other changes:
  2881. - replace stdlib hmac with OpenSSL, zero-copy decrypt (10-15% increase in
  2882. performance of hash-lists and extract).
  2883. - improved chunker performance, #1021
  2884. - open repository segment files in exclusive mode (fail-safe), #1134
  2885. - improved error logging, #1440
  2886. - Source:
  2887. - pass meta-data around, #765
  2888. - move some constants to new constants module
  2889. - better readability and fewer errors with namedtuples, #823
  2890. - moved source tree into src/ subdirectory, #1016
  2891. - made borg.platform a package, #1113
  2892. - removed dead crypto code, #1032
  2893. - improved and ported parts of the test suite to py.test, #912
  2894. - created data classes instead of passing dictionaries around, #981, #1158, #1161
  2895. - cleaned up imports, #1112
  2896. - Docs:
  2897. - better help texts and sphinx reproduction of usage help:
  2898. - Group options
  2899. - Nicer list of options in Sphinx
  2900. - Deduplicate 'Common options' (including --help)
  2901. - chunker: added some insights by "Voltara", #903
  2902. - clarify what "deduplicated size" means
  2903. - fix / update / add package list entries
  2904. - added a SaltStack usage example, #956
  2905. - expanded FAQ
  2906. - new contributors in AUTHORS!
  2907. - Tests:
  2908. - vagrant: add ubuntu/xenial 64bit - this box has still some issues
  2909. - ChunkBuffer: add test for leaving partial chunk in buffer, fixes #945
  2910. Version 1.0.13 (2019-02-15)
  2911. ---------------------------
  2912. Please note: this is very likely the last 1.0.x release, please upgrade to 1.1.x.
  2913. Bug fixes:
  2914. - security fix: configure FUSE with "default_permissions", #3903.
  2915. "default_permissions" is now enforced by borg by default to let the
  2916. kernel check uid/gid/mode based permissions.
  2917. "ignore_permissions" can be given to not enforce "default_permissions".
  2918. - xattrs: fix borg exception handling on ENOSPC error, #3808.
  2919. New features:
  2920. - Read a passphrase from a file descriptor specified in the
  2921. BORG_PASSPHRASE_FD environment variable.
  2922. Other changes:
  2923. - acl platform code: fix acl set return type
  2924. - xattr:
  2925. - add linux {list,get,set}xattr ctypes prototypes
  2926. - fix darwin flistxattr ctypes prototype
  2927. - testing / travis-ci:
  2928. - fix the homebrew 1.9 issues on travis-ci, #4254
  2929. - travis OS X: use xcode 8.3 (not broken)
  2930. - tox.ini: lock requirements
  2931. - unbreak 1.0-maint on travis, fixes #4123
  2932. - vagrant:
  2933. - misc. fixes
  2934. - FUSE for macOS: upgrade 3.7.1 to 3.8.3
  2935. - Python: upgrade 3.5.5 to 3.5.6
  2936. - docs:
  2937. - Update installation instructions for macOS
  2938. - update release workflow using twine (docs, scripts), #4213
  2939. Version 1.0.12 (2018-04-08)
  2940. ---------------------------
  2941. Bug fixes:
  2942. - repository: cleanup/write: invalidate cached FDs, tests
  2943. - serve: fix exitcode, #2910
  2944. - extract: set bsdflags last (include immutable flag), #3263
  2945. - create --timestamp: set start time, #2957
  2946. - create: show excluded dir with "x" for tagged dirs / caches, #3189
  2947. - migrate locks to child PID when daemonize is used
  2948. - Buffer: fix wrong thread-local storage use, #2951
  2949. - fix detection of non-local path, #3108
  2950. - fix LDLP restoration for subprocesses, #3077
  2951. - fix subprocess environments (xattr module's fakeroot version check,
  2952. borg umount, BORG_PASSCOMMAND), #3050
  2953. - remote: deal with partial lines, #2637
  2954. - get rid of datetime.isoformat, use safe parse_timestamp to parse
  2955. timestamps, #2994
  2956. - build: do .h file content checks in binary mode, fixes build issue for
  2957. non-ascii header files on pure-ascii locale platforms, #3544 #3639
  2958. - remove platform.uname() call which caused library mismatch issues, #3732
  2959. - add exception handler around deprecated platform.linux_distribution() call
  2960. Other changes:
  2961. - require msgpack-python >= 0.4.6 and < 0.5.0, see #3753
  2962. - add parens for C preprocessor macro argument usages (did not cause
  2963. malfunction)
  2964. - ignore corrupt files cache, #2939
  2965. - replace "modulo" with "if" to check for wraparound in hashmap
  2966. - keymanager: don't depend on optional readline module, #2980
  2967. - exclude broken pytest 3.3.0 release
  2968. - exclude broken Cython 0.27(.0) release, #3066
  2969. - flake8: add some ignores
  2970. - docs:
  2971. - create: document exclusion through nodump
  2972. - document good and problematic option placements, fix examples, #3356
  2973. - update docs about hardlinked symlinks limitation
  2974. - faq: we do not implement futile attempts of ETA / progress displays
  2975. - simplified rate limiting wrapper in FAQ
  2976. - twitter account @borgbackup, #2948
  2977. - add note about metadata dedup and --no[ac]time, #2518
  2978. - change-passphrase only changes the passphrase, #2990
  2979. - clarify encrypted key format for borg key export, #3296
  2980. - document sshfs rename workaround, #3315
  2981. - update release checklist about security fixes
  2982. - docs about how to verify a signed release, #3634
  2983. - chunk seed is generated per /repository/
  2984. - vagrant:
  2985. - use FUSE for macOS 3.7.1 to build the macOS binary
  2986. - use python 3.5.5 to build the binaries
  2987. - add exe location to PATH when we build an exe
  2988. - use https pypi url for wheezy
  2989. - netbsd: bash is already installed
  2990. - netbsd: fix netbsd version in PKG_PATH
  2991. - use self-made FreeBSD 10.3 box, #3022
  2992. - backport fs_init (including related updates) from 1.1
  2993. - the boxcutter wheezy boxes are 404, use local ones
  2994. - travis:
  2995. - don't perform full Travis build on docs-only changes, #2531
  2996. - only short-circuit docs-only changes for pull requests
  2997. Version 1.0.11 (2017-07-21)
  2998. ---------------------------
  2999. Bug fixes:
  3000. - use limited unpacker for outer key (security precaution), #2174
  3001. - fix paperkey import bug
  3002. Other changes:
  3003. - change --checkpoint-interval default from 600s to 1800s, #2841.
  3004. this improves efficiency for big repositories a lot.
  3005. - docs: fix OpenSUSE command and add OpenSUSE section
  3006. - tests: add tests for split_lstring and paperkey
  3007. - vagrant:
  3008. - fix openbsd shell
  3009. - backport cpu/ram setup from master
  3010. - add stretch64 VM
  3011. Version 1.0.11rc1 (2017-06-27)
  3012. ------------------------------
  3013. Bug fixes:
  3014. - performance: rebuild hashtable if we have too few empty buckets, #2246.
  3015. this fixes some sporadic, but severe performance breakdowns.
  3016. - Archive: allocate zeros when needed, #2308
  3017. fixes huge memory usage of mount (8 MiB × number of archives)
  3018. - IPv6 address support
  3019. also: Location: more informative exception when parsing fails
  3020. - borg single-file binary: use pyinstaller v3.2.1, #2396
  3021. this fixes that the prelink cronjob on some distros kills the
  3022. borg binary by stripping away parts of it.
  3023. - extract:
  3024. - warning for unextracted big extended attributes, #2258
  3025. - also create parent dir for device files, if needed.
  3026. - don't write to disk with --stdout, #2645
  3027. - archive check: detect and fix missing all-zero replacement chunks, #2180
  3028. - fix (de)compression exceptions, #2224 #2221
  3029. - files cache: update inode number, #2226
  3030. - borg rpc: use limited msgpack.Unpacker (security precaution), #2139
  3031. - Manifest: use limited msgpack.Unpacker (security precaution), #2175
  3032. - Location: accept //servername/share/path
  3033. - fix ChunkIndex.__contains__ assertion for big-endian archs (harmless)
  3034. - create: handle BackupOSError on a per-path level in one spot
  3035. - fix error msg, there is no --keep-last in borg 1.0.x, #2282
  3036. - clamp (nano)second values to unproblematic range, #2304
  3037. - fuse / borg mount:
  3038. - fix st_blocks to be an integer (not float) value
  3039. - fix negative uid/gid crash (they could come into archives e.g. when
  3040. backing up external drives under cygwin), #2674
  3041. - fix crash if empty (None) xattr is read
  3042. - do pre-mount checks before opening repository
  3043. - check llfuse is installed before asking for passphrase
  3044. - borg rename: expand placeholders, #2386
  3045. - borg serve: fix forced command lines containing BORG_* env vars
  3046. - fix error msg, it is --keep-within, not --within
  3047. - fix borg key/debug/benchmark crashing without subcommand, #2240
  3048. - chunker: fix invalid use of types, don't do uint32_t >> 32
  3049. - document follow_symlinks requirements, check libc, #2507
  3050. New features:
  3051. - added BORG_PASSCOMMAND environment variable, #2573
  3052. - add minimal version of in repository mandatory feature flags, #2134
  3053. This should allow us to make sure older borg versions can be cleanly
  3054. prevented from doing operations that are no longer safe because of
  3055. repository format evolution. This allows more fine grained control than
  3056. just incrementing the manifest version. So for example a change that
  3057. still allows new archives to be created but would corrupt the repository
  3058. when an old version tries to delete an archive or check the repository
  3059. would add the new feature to the check and delete set but leave it out
  3060. of the write set.
  3061. - borg delete --force --force to delete severely corrupted archives, #1975
  3062. Other changes:
  3063. - embrace y2038 issue to support 32bit platforms
  3064. - be more clear that this is a "beyond repair" case, #2427
  3065. - key file names: limit to 100 characters and remove colons from host name
  3066. - upgrade FUSE for macOS to 3.5.8, #2346
  3067. - split up parsing and filtering for --keep-within, better error message, #2610
  3068. - docs:
  3069. - fix caskroom link, #2299
  3070. - address SSH batch mode, #2202 #2270
  3071. - improve remote-path description
  3072. - document snapshot usage, #2178
  3073. - document relative path usage, #1868
  3074. - one link per distro in the installation page
  3075. - development: new branching model in git repository
  3076. - kill api page
  3077. - added FAQ section about backing up root partition
  3078. - add bountysource badge, #2558
  3079. - create empty docs.txt reequirements, #2694
  3080. - README: how to help the project
  3081. - note -v/--verbose requirement on affected options, #2542
  3082. - document borg init behaviour via append-only borg serve, #2440
  3083. - be clear about what buzhash is used for (chunking) and want it is not
  3084. used for (deduplication)- also say already in the readme that we use a
  3085. cryptohash for dedupe, so people don't worry, #2390
  3086. - add hint about chunker params to borg upgrade docs, #2421
  3087. - clarify borg upgrade docs, #2436
  3088. - quickstart: delete problematic BORG_PASSPHRASE use, #2623
  3089. - faq: specify "using inline shell scripts"
  3090. - document pattern denial of service, #2624
  3091. - tests:
  3092. - remove attic dependency of the tests, #2505
  3093. - travis:
  3094. - enhance travis setuptools_scm situation
  3095. - install fakeroot for Linux
  3096. - add test for borg delete --force
  3097. - enable remote tests on cygwin (the cygwin issue that caused these tests
  3098. to break was fixed in cygwin at least since cygwin 2.8, maybe even since
  3099. 2.7.0).
  3100. - remove skipping the noatime tests on GNU/Hurd, #2710
  3101. - fix borg import issue, add comment, #2718
  3102. - include attic.tar.gz when installing the package
  3103. also: add include_package_data=True
  3104. Version 1.0.10 (2017-02-13)
  3105. ---------------------------
  3106. Bug fixes:
  3107. - Manifest timestamps are now monotonically increasing,
  3108. this fixes issues when the system clock jumps backwards
  3109. or is set inconsistently across computers accessing the same repository, #2115
  3110. - Fixed testing regression in 1.0.10rc1 that lead to a hard dependency on
  3111. py.test >= 3.0, #2112
  3112. New features:
  3113. - "key export" can now generate a printable HTML page with both a QR code and
  3114. a human-readable "paperkey" representation (and custom text) through the
  3115. ``--qr-html`` option.
  3116. The same functionality is also available through `paperkey.html <paperkey.html>`_,
  3117. which is the same HTML page generated by ``--qr-html``. It works with existing
  3118. "key export" files and key files.
  3119. Other changes:
  3120. - docs:
  3121. - language clarification - "borg create --one-file-system" option does not respect
  3122. mount points, but considers different file systems instead, #2141
  3123. - setup.py: build_api: sort file list for determinism
  3124. Version 1.0.10rc1 (2017-01-29)
  3125. ------------------------------
  3126. Bug fixes:
  3127. - borg serve: fix transmission data loss of pipe writes, #1268
  3128. This affects only the cygwin platform (not Linux, BSD, OS X).
  3129. - Avoid triggering an ObjectiveFS bug in xattr retrieval, #1992
  3130. - When running out of buffer memory when reading xattrs, only skip the
  3131. current file, #1993
  3132. - Fixed "borg upgrade --tam" crashing with unencrypted repositories. Since
  3133. :ref:`the issue <tam_vuln>` is not relevant for unencrypted repositories,
  3134. it now does nothing and prints an error, #1981.
  3135. - Fixed change-passphrase crashing with unencrypted repositories, #1978
  3136. - Fixed "borg check repo::archive" indicating success if "archive" does not exist, #1997
  3137. - borg check: print non-exit-code warning if --last or --prefix aren't fulfilled
  3138. - fix bad parsing of wrong repo location syntax
  3139. - create: don't create hard link refs to failed files,
  3140. mount: handle invalid hard link refs, #2092
  3141. - detect mingw byte order, #2073
  3142. - creating a new segment: use "xb" mode, #2099
  3143. - mount: umount on SIGINT/^C when in foreground, #2082
  3144. Other changes:
  3145. - binary: use fixed AND freshly compiled pyinstaller bootloader, #2002
  3146. - xattr: ignore empty names returned by llistxattr(2) et al
  3147. - Enable the fault handler: install handlers for the SIGSEGV, SIGFPE, SIGABRT,
  3148. SIGBUS and SIGILL signals to dump the Python traceback.
  3149. - Also print a traceback on SIGUSR2.
  3150. - borg change-passphrase: print key location (simplify making a backup of it)
  3151. - officially support Python 3.6 (setup.py: add Python 3.6 qualifier)
  3152. - tests:
  3153. - vagrant / travis / tox: add Python 3.6 based testing
  3154. - vagrant: fix openbsd repo, #2042
  3155. - vagrant: fix the freebsd64 machine, #2037 #2067
  3156. - vagrant: use python 3.5.3 to build binaries, #2078
  3157. - vagrant: use osxfuse 3.5.4 for tests / to build binaries
  3158. vagrant: improve darwin64 VM settings
  3159. - travis: fix osxfuse install (fixes OS X testing on Travis CI)
  3160. - travis: require succeeding OS X tests, #2028
  3161. - travis: use latest pythons for OS X based testing
  3162. - use pytest-xdist to parallelize testing
  3163. - fix xattr test race condition, #2047
  3164. - setup.cfg: fix pytest deprecation warning, #2050
  3165. - docs:
  3166. - language clarification - VM backup FAQ
  3167. - borg create: document how to backup stdin, #2013
  3168. - borg upgrade: fix incorrect title levels
  3169. - add CVE numbers for issues fixed in 1.0.9, #2106
  3170. - fix typos (taken from Debian package patch)
  3171. - remote: include data hexdump in "unexpected RPC data" error message
  3172. - remote: log SSH command line at debug level
  3173. - API_VERSION: use numberspaces, #2023
  3174. - remove .github from pypi package, #2051
  3175. - add pip and setuptools to requirements file, #2030
  3176. - SyncFile: fix use of fd object after close (cosmetic)
  3177. - Manifest.in: simplify, exclude \*.{so,dll,orig}, #2066
  3178. - ignore posix_fadvise errors in repository.py, #2095
  3179. (works around issues with docker on ARM)
  3180. - make LoggedIO.close_segment reentrant, avoid reentrance
  3181. Version 1.0.9 (2016-12-20)
  3182. --------------------------
  3183. Security fixes:
  3184. - A flaw in the cryptographic authentication scheme in Borg allowed an attacker
  3185. to spoof the manifest. See :ref:`tam_vuln` above for the steps you should
  3186. take.
  3187. CVE-2016-10099 was assigned to this vulnerability.
  3188. - borg check: When rebuilding the manifest (which should only be needed very rarely)
  3189. duplicate archive names would be handled on a "first come first serve" basis, allowing
  3190. an attacker to apparently replace archives.
  3191. CVE-2016-10100 was assigned to this vulnerability.
  3192. Bug fixes:
  3193. - borg check:
  3194. - rebuild manifest if it's corrupted
  3195. - skip corrupted chunks during manifest rebuild
  3196. - fix TypeError in integrity error handler, #1903, #1894
  3197. - fix location parser for archives with @ char (regression introduced in 1.0.8), #1930
  3198. - fix wrong duration/timestamps if system clock jumped during a create
  3199. - fix progress display not updating if system clock jumps backwards
  3200. - fix checkpoint interval being incorrect if system clock jumps
  3201. Other changes:
  3202. - docs:
  3203. - add python3-devel as a dependency for cygwin-based installation
  3204. - clarify extract is relative to current directory
  3205. - FAQ: fix link to changelog
  3206. - markup fixes
  3207. - tests:
  3208. - test_get\_(cache|keys)_dir: clean env state, #1897
  3209. - get back pytest's pretty assertion failures, #1938
  3210. - setup.py build_usage:
  3211. - fixed build_usage not processing all commands
  3212. - fixed build_usage not generating includes for debug commands
  3213. Version 1.0.9rc1 (2016-11-27)
  3214. -----------------------------
  3215. Bug fixes:
  3216. - files cache: fix determination of newest mtime in backup set (which is
  3217. used in cache cleanup and led to wrong "A" [added] status for unchanged
  3218. files in next backup), #1860.
  3219. - borg check:
  3220. - fix incorrectly reporting attic 0.13 and earlier archives as corrupt
  3221. - handle repo w/o objects gracefully and also bail out early if repo is
  3222. *completely* empty, #1815.
  3223. - fix tox/pybuild in 1.0-maint
  3224. - at xattr module import time, loggers are not initialized yet
  3225. New features:
  3226. - borg umount <mountpoint>
  3227. exposed already existing umount code via the CLI api, so users can use it,
  3228. which is more consistent than using borg to mount and fusermount -u (or
  3229. umount) to un-mount, #1855.
  3230. - implement borg create --noatime --noctime, fixes #1853
  3231. Other changes:
  3232. - docs:
  3233. - display README correctly on PyPI
  3234. - improve cache / index docs, esp. files cache docs, fixes #1825
  3235. - different pattern matching for --exclude, #1779
  3236. - datetime formatting examples for {now} placeholder, #1822
  3237. - clarify passphrase mode attic repo upgrade, #1854
  3238. - clarify --umask usage, #1859
  3239. - clarify how to choose PR target branch
  3240. - clarify prune behavior for different archive contents, #1824
  3241. - fix PDF issues, add logo, fix authors, headings, TOC
  3242. - move security verification to support section
  3243. - fix links in standalone README (:ref: tags)
  3244. - add link to security contact in README
  3245. - add FAQ about security
  3246. - move fork differences to FAQ
  3247. - add more details about resource usage
  3248. - tests: skip remote tests on cygwin, #1268
  3249. - travis:
  3250. - allow OS X failures until the brew cask osxfuse issue is fixed
  3251. - caskroom osxfuse-beta gone, it's osxfuse now (3.5.3)
  3252. - vagrant:
  3253. - upgrade OSXfuse / FUSE for macOS to 3.5.3
  3254. - remove llfuse from tox.ini at a central place
  3255. - do not try to install llfuse on centos6
  3256. - fix FUSE test for darwin, #1546
  3257. - add windows virtual machine with cygwin
  3258. - Vagrantfile cleanup / code deduplication
  3259. Version 1.0.8 (2016-10-29)
  3260. --------------------------
  3261. Bug fixes:
  3262. - RemoteRepository: Fix busy wait in call_many, #940
  3263. New features:
  3264. - implement borgmajor/borgminor/borgpatch placeholders, #1694
  3265. {borgversion} was already there (full version string). With the new
  3266. placeholders you can now also get e.g. 1 or 1.0 or 1.0.8.
  3267. Other changes:
  3268. - avoid previous_location mismatch, #1741
  3269. due to the changed canonicalization for relative paths in PR #1711 / #1655
  3270. (implement /./ relpath hack), there would be a changed repo location warning
  3271. and the user would be asked if this is ok. this would break automation and
  3272. require manual intervention, which is unwanted.
  3273. thus, we automatically fix the previous_location config entry, if it only
  3274. changed in the expected way, but still means the same location.
  3275. - docs:
  3276. - deployment.rst: do not use bare variables in ansible snippet
  3277. - add clarification about append-only mode, #1689
  3278. - setup.py: add comment about requiring llfuse, #1726
  3279. - update usage.rst / api.rst
  3280. - repo url / archive location docs + typo fix
  3281. - quickstart: add a comment about other (remote) filesystems
  3282. - vagrant / tests:
  3283. - no chown when rsyncing (fixes boxes w/o vagrant group)
  3284. - fix FUSE permission issues on linux/freebsd, #1544
  3285. - skip FUSE test for borg binary + fakeroot
  3286. - ignore security.selinux xattrs, fixes tests on centos, #1735
  3287. Version 1.0.8rc1 (2016-10-17)
  3288. -----------------------------
  3289. Bug fixes:
  3290. - fix signal handling (SIGINT, SIGTERM, SIGHUP), #1620 #1593
  3291. Fixes e.g. leftover lock files for quickly repeated signals (e.g. Ctrl-C
  3292. Ctrl-C) or lost connections or systemd sending SIGHUP.
  3293. - progress display: adapt formatting to narrow screens, do not crash, #1628
  3294. - borg create --read-special - fix crash on broken symlink, #1584.
  3295. also correctly processes broken symlinks. before this regressed to a crash
  3296. (5b45385) a broken symlink would've been skipped.
  3297. - process_symlink: fix missing backup_io()
  3298. Fixes a chmod/chown/chgrp/unlink/rename/... crash race between getting
  3299. dirents and dispatching to process_symlink.
  3300. - yes(): abort on wrong answers, saying so, #1622
  3301. - fixed exception borg serve raised when connection was closed before repository
  3302. was opened. Add an error message for this.
  3303. - fix read-from-closed-FD issue, #1551
  3304. (this seems not to get triggered in 1.0.x, but was discovered in master)
  3305. - hashindex: fix iterators (always raise StopIteration when exhausted)
  3306. (this seems not to get triggered in 1.0.x, but was discovered in master)
  3307. - enable relative paths in ssh:// repo URLs, via /./relpath hack, #1655
  3308. - allow repo paths with colons, #1705
  3309. - update changed repo location immediately after acceptance, #1524
  3310. - fix debug get-obj / delete-obj crash if object not found and remote repo,
  3311. #1684
  3312. - pyinstaller: use a spec file to build borg.exe binary, exclude osxfuse dylib
  3313. on Mac OS X (avoids mismatch lib <-> driver), #1619
  3314. New features:
  3315. - add "borg key export" / "borg key import" commands, #1555, so users are able
  3316. to backup / restore their encryption keys more easily.
  3317. Supported formats are the keyfile format used by borg internally and a
  3318. special "paper" format with by line checksums for printed backups. For the
  3319. paper format, the import is an interactive process which checks each line as
  3320. soon as it is input.
  3321. - add "borg debug-refcount-obj" to determine a repo objects' referrer counts,
  3322. #1352
  3323. Other changes:
  3324. - add "borg debug ..." subcommands
  3325. (borg debug-* still works, but will be removed in borg 1.1)
  3326. - setup.py: Add subcommand support to build_usage.
  3327. - remote: change exception message for unexpected RPC data format to indicate
  3328. dataflow direction.
  3329. - improved messages / error reporting:
  3330. - IntegrityError: add placeholder for message, so that the message we give
  3331. appears not only in the traceback, but also in the (short) error message,
  3332. #1572
  3333. - borg.key: include chunk id in exception msgs, #1571
  3334. - better messages for cache newer than repo, #1700
  3335. - vagrant (testing/build VMs):
  3336. - upgrade OSXfuse / FUSE for macOS to 3.5.2
  3337. - update Debian Wheezy boxes, #1686
  3338. - openbsd / netbsd: use own boxes, fixes misc rsync installation and
  3339. FUSE/llfuse related testing issues, #1695 #1696 #1670 #1671 #1728
  3340. - docs:
  3341. - add docs for "key export" and "key import" commands, #1641
  3342. - fix inconsistency in FAQ (pv-wrapper).
  3343. - fix second block in "Easy to use" section not showing on GitHub, #1576
  3344. - add bestpractices badge
  3345. - link reference docs and faq about BORG_FILES_CACHE_TTL, #1561
  3346. - improve borg info --help, explain size infos, #1532
  3347. - add release signing key / security contact to README, #1560
  3348. - add contribution guidelines for developers
  3349. - development.rst: add sphinx_rtd_theme to the sphinx install command
  3350. - adjust border color in borg.css
  3351. - add debug-info usage help file
  3352. - internals.rst: fix typos
  3353. - setup.py: fix build_usage to always process all commands
  3354. - added docs explaining multiple --restrict-to-path flags, #1602
  3355. - add more specific warning about write-access debug commands, #1587
  3356. - clarify FAQ regarding backup of virtual machines, #1672
  3357. - tests:
  3358. - work around FUSE xattr test issue with recent fakeroot
  3359. - simplify repo/hashindex tests
  3360. - travis: test FUSE-enabled borg, use trusty to have a recent FUSE
  3361. - re-enable FUSE tests for RemoteArchiver (no deadlocks any more)
  3362. - clean env for pytest based tests, #1714
  3363. - fuse_mount contextmanager: accept any options
  3364. Version 1.0.7 (2016-08-19)
  3365. --------------------------
  3366. Security fixes:
  3367. - borg serve: fix security issue with remote repository access, #1428
  3368. If you used e.g. --restrict-to-path /path/client1/ (with or without trailing
  3369. slash does not make a difference), it acted like a path prefix match using
  3370. /path/client1 (note the missing trailing slash) - the code then also allowed
  3371. working in e.g. /path/client13 or /path/client1000.
  3372. As this could accidentally lead to major security/privacy issues depending on
  3373. the paths you use, the behaviour was changed to be a strict directory match.
  3374. That means --restrict-to-path /path/client1 (with or without trailing slash
  3375. does not make a difference) now uses /path/client1/ internally (note the
  3376. trailing slash here!) for matching and allows precisely that path AND any
  3377. path below it. So, /path/client1 is allowed, /path/client1/repo1 is allowed,
  3378. but not /path/client13 or /path/client1000.
  3379. If you willingly used the undocumented (dangerous) previous behaviour, you
  3380. may need to rearrange your --restrict-to-path paths now. We are sorry if
  3381. that causes work for you, but we did not want a potentially dangerous
  3382. behaviour in the software (not even using a for-backwards-compat option).
  3383. Bug fixes:
  3384. - fixed repeated LockTimeout exceptions when borg serve tried to write into
  3385. a already write-locked repo (e.g. by a borg mount), #502 part b)
  3386. This was solved by the fix for #1220 in 1.0.7rc1 already.
  3387. - fix cosmetics + file leftover for "not a valid borg repository", #1490
  3388. - Cache: release lock if cache is invalid, #1501
  3389. - borg extract --strip-components: fix leak of preloaded chunk contents
  3390. - Repository, when a InvalidRepository exception happens:
  3391. - fix spurious, empty lock.roster
  3392. - fix repo not closed cleanly
  3393. New features:
  3394. - implement borg debug-info, fixes #1122
  3395. (just calls already existing code via cli, same output as below tracebacks)
  3396. Other changes:
  3397. - skip the O_NOATIME test on GNU Hurd, fixes #1315
  3398. (this is a very minor issue and the GNU Hurd project knows the bug)
  3399. - document using a clean repo to test / build the release
  3400. Version 1.0.7rc2 (2016-08-13)
  3401. -----------------------------
  3402. Bug fixes:
  3403. - do not write objects to repository that are bigger than the allowed size,
  3404. borg will reject reading them, #1451.
  3405. Important: if you created archives with many millions of files or
  3406. directories, please verify if you can open them successfully,
  3407. e.g. try a "borg list REPO::ARCHIVE".
  3408. - lz4 compression: dynamically enlarge the (de)compression buffer, the static
  3409. buffer was not big enough for archives with extremely many items, #1453
  3410. - larger item metadata stream chunks, raise archive item limit by 8x, #1452
  3411. - fix untracked segments made by moved DELETEs, #1442
  3412. Impact: Previously (metadata) segments could become untracked when deleting data,
  3413. these would never be cleaned up.
  3414. - extended attributes (xattrs) related fixes:
  3415. - fixed a race condition in xattrs querying that led to the entire file not
  3416. being backed up (while logging the error, exit code = 1), #1469
  3417. - fixed a race condition in xattrs querying that led to a crash, #1462
  3418. - raise OSError including the error message derived from errno, deal with
  3419. path being a integer FD
  3420. Other changes:
  3421. - print active env var override by default, #1467
  3422. - xattr module: refactor code, deduplicate, clean up
  3423. - repository: split object size check into too small and too big
  3424. - add a transaction_id assertion, so borg init on a broken (inconsistent)
  3425. filesystem does not look like a coding error in borg, but points to the
  3426. real problem.
  3427. - explain confusing TypeError caused by compat support for old servers, #1456
  3428. - add forgotten usage help file from build_usage
  3429. - refactor/unify buffer code into helpers.Buffer class, add tests
  3430. - docs:
  3431. - document archive limitation, #1452
  3432. - improve prune examples
  3433. Version 1.0.7rc1 (2016-08-05)
  3434. -----------------------------
  3435. Bug fixes:
  3436. - fix repo lock deadlocks (related to lock upgrade), #1220
  3437. - catch unpacker exceptions, resync, #1351
  3438. - fix borg break-lock ignoring BORG_REPO env var, #1324
  3439. - files cache performance fixes (fixes unnecessary re-reading/chunking/
  3440. hashing of unmodified files for some use cases):
  3441. - fix unintended file cache eviction, #1430
  3442. - implement BORG_FILES_CACHE_TTL, update FAQ, raise default TTL from 10
  3443. to 20, #1338
  3444. - FUSE:
  3445. - cache partially read data chunks (performance), #965, #966
  3446. - always create a root dir, #1125
  3447. - use an OrderedDict for helptext, making the build reproducible, #1346
  3448. - RemoteRepository init: always call close on exceptions, #1370 (cosmetic)
  3449. - ignore stdout/stderr broken pipe errors (cosmetic), #1116
  3450. New features:
  3451. - better borg versions management support (useful esp. for borg servers
  3452. wanting to offer multiple borg versions and for clients wanting to choose
  3453. a specific server borg version), #1392:
  3454. - add BORG_VERSION environment variable before executing "borg serve" via ssh
  3455. - add new placeholder {borgversion}
  3456. - substitute placeholders in --remote-path
  3457. - borg init --append-only option (makes using the more secure append-only mode
  3458. more convenient. when used remotely, this requires 1.0.7+ also on the borg
  3459. server), #1291.
  3460. Other changes:
  3461. - Vagrantfile:
  3462. - darwin64: upgrade to FUSE for macOS 3.4.1 (aka osxfuse), #1378
  3463. - xenial64: use user "ubuntu", not "vagrant" (as usual), #1331
  3464. - tests:
  3465. - fix FUSE tests on OS X, #1433
  3466. - docs:
  3467. - FAQ: add backup using stable filesystem names recommendation
  3468. - FAQ about glibc compatibility added, #491, glibc-check improved
  3469. - FAQ: 'A' unchanged file; remove ambiguous entry age sentence.
  3470. - OS X: install pkg-config to build with FUSE support, fixes #1400
  3471. - add notes about shell/sudo pitfalls with env. vars, #1380
  3472. - added platform feature matrix
  3473. - implement borg debug-dump-repo-objs
  3474. Version 1.0.6 (2016-07-12)
  3475. --------------------------
  3476. Bug fixes:
  3477. - Linux: handle multiple LD_PRELOAD entries correctly, #1314, #1111
  3478. - Fix crash with unclear message if the libc is not found, #1314, #1111
  3479. Other changes:
  3480. - tests:
  3481. - Fixed O_NOATIME tests for Solaris and GNU Hurd, #1315
  3482. - Fixed sparse file tests for (file) systems not supporting it, #1310
  3483. - docs:
  3484. - Fixed syntax highlighting, #1313
  3485. - misc docs: added data processing overview picture
  3486. Version 1.0.6rc1 (2016-07-10)
  3487. -----------------------------
  3488. New features:
  3489. - borg check --repair: heal damaged files if missing chunks re-appear (e.g. if
  3490. the previously missing chunk was added again in a later backup archive),
  3491. #148. (*) Also improved logging.
  3492. Bug fixes:
  3493. - sync_dir: silence fsync() failing with EINVAL, #1287
  3494. Some network filesystems (like smbfs) don't support this and we use this in
  3495. repository code.
  3496. - borg mount (FUSE):
  3497. - fix directories being shadowed when contained paths were also specified,
  3498. #1295
  3499. - raise I/O Error (EIO) on damaged files (unless -o allow_damaged_files is
  3500. used), #1302. (*)
  3501. - borg extract: warn if a damaged file is extracted, #1299. (*)
  3502. - Added some missing return code checks (ChunkIndex._add, hashindex_resize).
  3503. - borg check: fix/optimize initial hash table size, avoids resize of the table.
  3504. Other changes:
  3505. - tests:
  3506. - add more FUSE tests, #1284
  3507. - deduplicate FUSE (u)mount code
  3508. - fix borg binary test issues, #862
  3509. - docs:
  3510. - changelog: added release dates to older borg releases
  3511. - fix some sphinx (docs generator) warnings, #881
  3512. Notes:
  3513. (*) Some features depend on information (chunks_healthy list) added to item
  3514. metadata when a file with missing chunks was "repaired" using all-zero
  3515. replacement chunks. The chunks_healthy list is generated since borg 1.0.4,
  3516. thus borg can't recognize such "repaired" (but content-damaged) files if the
  3517. repair was done with an older borg version.
  3518. Version 1.0.5 (2016-07-07)
  3519. --------------------------
  3520. Bug fixes:
  3521. - borg mount: fix FUSE crash in xattr code on Linux introduced in 1.0.4, #1282
  3522. Other changes:
  3523. - backport some FAQ entries from master branch
  3524. - add release helper scripts
  3525. - Vagrantfile:
  3526. - centos6: no FUSE, don't build binary
  3527. - add xz for redhat-like dists
  3528. Version 1.0.4 (2016-07-07)
  3529. --------------------------
  3530. New features:
  3531. - borg serve --append-only, #1168
  3532. This was included because it was a simple change (append-only functionality
  3533. was already present via repository config file) and makes better security now
  3534. practically usable.
  3535. - BORG_REMOTE_PATH environment variable, #1258
  3536. This was included because it was a simple change (--remote-path cli option
  3537. was already present) and makes borg much easier to use if you need it.
  3538. - Repository: cleanup incomplete transaction on "no space left" condition.
  3539. In many cases, this can avoid a 100% full repo filesystem (which is very
  3540. problematic as borg always needs free space - even to delete archives).
  3541. Bug fixes:
  3542. - Fix wrong handling and reporting of OSErrors in borg create, #1138.
  3543. This was a serious issue: in the context of "borg create", errors like
  3544. repository I/O errors (e.g. disk I/O errors, ssh repo connection errors)
  3545. were handled badly and did not lead to a crash (which would be good for this
  3546. case, because the repo transaction would be incomplete and trigger a
  3547. transaction rollback to clean up).
  3548. Now, error handling for source files is cleanly separated from every other
  3549. error handling, so only problematic input files are logged and skipped.
  3550. - Implement fail-safe error handling for borg extract.
  3551. Note that this isn't nearly as critical as the borg create error handling
  3552. bug, since nothing is written to the repo. So this was "merely" misleading
  3553. error reporting.
  3554. - Add missing error handler in directory attr restore loop.
  3555. - repo: make sure write data hits disk before the commit tag (#1236) and also
  3556. sync the containing directory.
  3557. - FUSE: getxattr fail must use errno.ENOATTR, #1126
  3558. (fixes Mac OS X Finder malfunction: "zero bytes" file length, access denied)
  3559. - borg check --repair: do not lose information about the good/original chunks.
  3560. If we do not lose the original chunk IDs list when "repairing" a file
  3561. (replacing missing chunks with all-zero chunks), we have a chance to "heal"
  3562. the file back into its original state later, in case the chunks re-appear
  3563. (e.g. in a fresh backup). Healing is not implemented yet, see #148.
  3564. - fixes for --read-special mode:
  3565. - ignore known files cache, #1241
  3566. - fake regular file mode, #1214
  3567. - improve symlinks handling, #1215
  3568. - remove passphrase from subprocess environment, #1105
  3569. - Ignore empty index file (will trigger index rebuild), #1195
  3570. - add missing placeholder support for --prefix, #1027
  3571. - improve exception handling for placeholder replacement
  3572. - catch and format exceptions in arg parsing
  3573. - helpers: fix "undefined name 'e'" in exception handler
  3574. - better error handling for missing repo manifest, #1043
  3575. - borg delete:
  3576. - make it possible to delete a repo without manifest
  3577. - borg delete --forced allows one to delete corrupted archives, #1139
  3578. - borg check:
  3579. - make borg check work for empty repo
  3580. - fix resync and msgpacked item qualifier, #1135
  3581. - rebuild_manifest: fix crash if 'name' or 'time' key were missing.
  3582. - better validation of item metadata dicts, #1130
  3583. - better validation of archive metadata dicts
  3584. - close the repo on exit - even if rollback did not work, #1197.
  3585. This is rather cosmetic, it avoids repo closing in the destructor.
  3586. - tests:
  3587. - fix sparse file test, #1170
  3588. - flake8: ignore new F405, #1185
  3589. - catch "invalid argument" on cygwin, #257
  3590. - fix sparseness assertion in test prep, #1264
  3591. Other changes:
  3592. - make borg build/work on OpenSSL 1.0 and 1.1, #1187
  3593. - docs / help:
  3594. - fix / clarify prune help, #1143
  3595. - fix "patterns" help formatting
  3596. - add missing docs / help about placeholders
  3597. - resources: rename atticmatic to borgmatic
  3598. - document sshd settings, #545
  3599. - more details about checkpoints, add split trick, #1171
  3600. - support docs: add freenode web chat link, #1175
  3601. - add prune visualization / example, #723
  3602. - add note that Fnmatch is default, #1247
  3603. - make clear that lzma levels > 6 are a waste of cpu cycles
  3604. - add a "do not edit" note to auto-generated files, #1250
  3605. - update cygwin installation docs
  3606. - repository interoperability with borg master (1.1dev) branch:
  3607. - borg check: read item metadata keys from manifest, #1147
  3608. - read v2 hints files, #1235
  3609. - fix hints file "unknown version" error handling bug
  3610. - tests: add tests for format_line
  3611. - llfuse: update version requirement for freebsd
  3612. - Vagrantfile:
  3613. - use openbsd 5.9, #716
  3614. - do not install llfuse on netbsd (broken)
  3615. - update OSXfuse to version 3.3.3
  3616. - use Python 3.5.2 to build the binaries
  3617. - glibc compatibility checker: scripts/glibc_check.py
  3618. - add .eggs to .gitignore
  3619. Version 1.0.3 (2016-05-20)
  3620. --------------------------
  3621. Bug fixes:
  3622. - prune: avoid that checkpoints are kept and completed archives are deleted in
  3623. a prune run), #997
  3624. - prune: fix commandline argument validation - some valid command lines were
  3625. considered invalid (annoying, but harmless), #942
  3626. - fix capabilities extraction on Linux (set xattrs last, after chown()), #1069
  3627. - repository: fix commit tags being seen in data
  3628. - when probing key files, do binary reads. avoids crash when non-borg binary
  3629. files are located in borg's key files directory.
  3630. - handle SIGTERM and make a clean exit - avoids orphan lock files.
  3631. - repository cache: don't cache large objects (avoid using lots of temp. disk
  3632. space), #1063
  3633. Other changes:
  3634. - Vagrantfile: OS X: update osxfuse / install lzma package, #933
  3635. - setup.py: add check for platform_darwin.c
  3636. - setup.py: on freebsd, use a llfuse release that builds ok
  3637. - docs / help:
  3638. - update readthedocs URLs, #991
  3639. - add missing docs for "borg break-lock", #992
  3640. - borg create help: add some words to about the archive name
  3641. - borg create help: document format tags, #894
  3642. Version 1.0.2 (2016-04-16)
  3643. --------------------------
  3644. Bug fixes:
  3645. - fix malfunction and potential corruption on (nowadays rather rare) big-endian
  3646. architectures or bi-endian archs in (rare) BE mode. #886, #889
  3647. cache resync / index merge was malfunctioning due to this, potentially
  3648. leading to data loss. borg info had cosmetic issues (displayed wrong values).
  3649. note: all (widespread) little-endian archs (like x86/x64) or bi-endian archs
  3650. in (widespread) LE mode (like ARMEL, MIPSEL, ...) were NOT affected.
  3651. - add overflow and range checks for 1st (special) uint32 of the hashindex
  3652. values, switch from int32 to uint32.
  3653. - fix so that refcount will never overflow, but just stick to max. value after
  3654. a overflow would have occurred.
  3655. - borg delete: fix --cache-only for broken caches, #874
  3656. Makes --cache-only idempotent: it won't fail if the cache is already deleted.
  3657. - fixed borg create --one-file-system erroneously traversing into other
  3658. filesystems (if starting fs device number was 0), #873
  3659. - workaround a bug in Linux fadvise FADV_DONTNEED, #907
  3660. Other changes:
  3661. - better test coverage for hashindex, incl. overflow testing, checking correct
  3662. computations so endianness issues would be discovered.
  3663. - reproducible doc for ProgressIndicator*, make the build reproducible.
  3664. - use latest llfuse for vagrant machines
  3665. - docs:
  3666. - use /path/to/repo in examples, fixes #901
  3667. - fix confusing usage of "repo" as archive name (use "arch")
  3668. Version 1.0.1 (2016-04-08)
  3669. --------------------------
  3670. New features:
  3671. Usually there are no new features in a bugfix release, but these were added
  3672. due to their high impact on security/safety/speed or because they are fixes
  3673. also:
  3674. - append-only mode for repositories, #809, #36 (see docs)
  3675. - borg create: add --ignore-inode option to make borg detect unmodified files
  3676. even if your filesystem does not have stable inode numbers (like sshfs and
  3677. possibly CIFS).
  3678. - add options --warning, --error, --critical for missing log levels, #826.
  3679. it's not recommended to suppress warnings or errors, but the user may decide
  3680. this on his own.
  3681. note: --warning is not given to borg serve so a <= 1.0.0 borg will still
  3682. work as server (it is not needed as it is the default).
  3683. do not use --error or --critical when using a <= 1.0.0 borg server.
  3684. Bug fixes:
  3685. - fix silently skipping EIO, #748
  3686. - add context manager for Repository (avoid orphan repository locks), #285
  3687. - do not sleep for >60s while waiting for lock, #773
  3688. - unpack file stats before passing to FUSE
  3689. - fix build on illumos
  3690. - don't try to backup doors or event ports (Solaris and derivatives)
  3691. - remove useless/misleading libc version display, #738
  3692. - test suite: reset exit code of persistent archiver, #844
  3693. - RemoteRepository: clean up pipe if remote open() fails
  3694. - Remote: don't print tracebacks for Error exceptions handled downstream, #792
  3695. - if BORG_PASSPHRASE is present but wrong, don't prompt for password, but fail
  3696. instead, #791
  3697. - ArchiveChecker: move "orphaned objects check skipped" to INFO log level, #826
  3698. - fix capitalization, add ellipses, change log level to debug for 2 messages,
  3699. #798
  3700. Other changes:
  3701. - update llfuse requirement, llfuse 1.0 works
  3702. - update OS / dist packages on build machines, #717
  3703. - prefer showing --info over -v in usage help, #859
  3704. - docs:
  3705. - fix cygwin requirements (gcc-g++)
  3706. - document how to debug / file filesystem issues, #664
  3707. - fix reproducible build of api docs
  3708. - RTD theme: CSS !important overwrite, #727
  3709. - Document logo font. Recreate logo png. Remove GIMP logo file.
  3710. Version 1.0.0 (2016-03-05)
  3711. --------------------------
  3712. The major release number change (0.x -> 1.x) indicates bigger incompatible
  3713. changes, please read the compatibility notes, adapt / test your scripts and
  3714. check your backup logs.
  3715. Compatibility notes:
  3716. - drop support for python 3.2 and 3.3, require 3.4 or 3.5, #221 #65 #490
  3717. note: we provide binaries that include python 3.5.1 and everything else
  3718. needed. they are an option in case you are stuck with < 3.4 otherwise.
  3719. - change encryption to be on by default (using "repokey" mode)
  3720. - moved keyfile keys from ~/.borg/keys to ~/.config/borg/keys,
  3721. you can either move them manually or run "borg upgrade <REPO>"
  3722. - remove support for --encryption=passphrase,
  3723. use borg migrate-to-repokey to switch to repokey mode, #97
  3724. - remove deprecated --compression <number>,
  3725. use --compression zlib,<number> instead
  3726. in case of 0, you could also use --compression none
  3727. - remove deprecated --hourly/daily/weekly/monthly/yearly
  3728. use --keep-hourly/daily/weekly/monthly/yearly instead
  3729. - remove deprecated --do-not-cross-mountpoints,
  3730. use --one-file-system instead
  3731. - disambiguate -p option, #563:
  3732. - -p now is same as --progress
  3733. - -P now is same as --prefix
  3734. - remove deprecated "borg verify",
  3735. use "borg extract --dry-run" instead
  3736. - cleanup environment variable semantics, #355
  3737. the environment variables used to be "yes sayers" when set, this was
  3738. conceptually generalized to "automatic answerers" and they just give their
  3739. value as answer (as if you typed in that value when being asked).
  3740. See the "usage" / "Environment Variables" section of the docs for details.
  3741. - change the builtin default for --chunker-params, create 2MiB chunks, #343
  3742. --chunker-params new default: 19,23,21,4095 - old default: 10,23,16,4095
  3743. one of the biggest issues with borg < 1.0 (and also attic) was that it had a
  3744. default target chunk size of 64kiB, thus it created a lot of chunks and thus
  3745. also a huge chunk management overhead (high RAM and disk usage).
  3746. please note that the new default won't change the chunks that you already
  3747. have in your repository. the new big chunks do not deduplicate with the old
  3748. small chunks, so expect your repo to grow at least by the size of every
  3749. changed file and in the worst case (e.g. if your files cache was lost / is
  3750. not used) by the size of every file (minus any compression you might use).
  3751. in case you want to immediately see a much lower resource usage (RAM / disk)
  3752. for chunks management, it might be better to start with a new repo than
  3753. continuing in the existing repo (with an existing repo, you'ld have to wait
  3754. until all archives with small chunks got pruned to see a lower resource
  3755. usage).
  3756. if you used the old --chunker-params default value (or if you did not use
  3757. --chunker-params option at all) and you'ld like to continue using small
  3758. chunks (and you accept the huge resource usage that comes with that), just
  3759. explicitly use borg create --chunker-params=10,23,16,4095.
  3760. - archive timestamps: the 'time' timestamp now refers to archive creation
  3761. start time (was: end time), the new 'time_end' timestamp refers to archive
  3762. creation end time. This might affect prune if your backups take rather long.
  3763. if you give a timestamp via cli this is stored into 'time', therefore it now
  3764. needs to mean archive creation start time.
  3765. New features:
  3766. - implement password roundtrip, #695
  3767. Bug fixes:
  3768. - remote end does not need cache nor keys directories, do not create them, #701
  3769. - added retry counter for passwords, #703
  3770. Other changes:
  3771. - fix compiler warnings, #697
  3772. - docs:
  3773. - update README.rst to new changelog location in docs/changes.rst
  3774. - add Teemu to AUTHORS
  3775. - changes.rst: fix old chunker params, #698
  3776. - FAQ: how to limit bandwidth
  3777. Version 1.0.0rc2 (2016-02-28)
  3778. -----------------------------
  3779. New features:
  3780. - format options for location: user, pid, fqdn, hostname, now, utcnow, user
  3781. - borg list --list-format
  3782. - borg prune -v --list enables the keep/prune list output, #658
  3783. Bug fixes:
  3784. - fix _open_rb noatime handling, #657
  3785. - add a simple archivename validator, #680
  3786. - borg create --stats: show timestamps in localtime, use same labels/formatting
  3787. as borg info, #651
  3788. - llfuse compatibility fixes (now compatible with: 0.40, 0.41, 0.42)
  3789. Other changes:
  3790. - it is now possible to use "pip install borgbackup[fuse]" to automatically
  3791. install the llfuse dependency using the correct version requirement
  3792. for it. you still need to care about having installed the FUSE / build
  3793. related OS package first, though, so that building llfuse can succeed.
  3794. - Vagrant: drop Ubuntu Precise (12.04) - does not have Python >= 3.4
  3795. - Vagrant: use pyinstaller v3.1.1 to build binaries
  3796. - docs:
  3797. - borg upgrade: add to docs that only LOCAL repos are supported
  3798. - borg upgrade also handles borg 0.xx -> 1.0
  3799. - use pip extras or requirements file to install llfuse
  3800. - fix order in release process
  3801. - updated usage docs and other minor / cosmetic fixes
  3802. - verified borg examples in docs, #644
  3803. - freebsd dependency installation and FUSE configuration, #649
  3804. - add example how to restore a raw device, #671
  3805. - add a hint about the dev headers needed when installing from source
  3806. - add examples for delete (and handle delete after list, before prune), #656
  3807. - update example for borg create -v --stats (use iso datetime format), #663
  3808. - added example to BORG_RSH docs
  3809. - "connection closed by remote": add FAQ entry and point to issue #636
  3810. Version 1.0.0rc1 (2016-02-07)
  3811. -----------------------------
  3812. New features:
  3813. - borg migrate-to-repokey ("passphrase" -> "repokey" encryption key mode)
  3814. - implement --short for borg list REPO, #611
  3815. - implement --list for borg extract (consistency with borg create)
  3816. - borg serve: overwrite client's --restrict-to-path with ssh forced command's
  3817. option value (but keep everything else from the client commandline), #544
  3818. - use $XDG_CONFIG_HOME/keys for keyfile keys (~/.config/borg/keys), #515
  3819. - "borg upgrade" moves the keyfile keys to the new location
  3820. - display both archive creation start and end time in "borg info", #627
  3821. Bug fixes:
  3822. - normalize trailing slashes for the repository path, #606
  3823. - Cache: fix exception handling in __init__, release lock, #610
  3824. Other changes:
  3825. - suppress unneeded exception context (PEP 409), simpler tracebacks
  3826. - removed special code needed to deal with imperfections / incompatibilities /
  3827. missing stuff in py 3.2/3.3, simplify code that can be done simpler in 3.4
  3828. - removed some version requirements that were kept on old versions because
  3829. newer did not support py 3.2 any more
  3830. - use some py 3.4+ stdlib code instead of own/openssl/pypi code:
  3831. - use os.urandom instead of own cython openssl RAND_bytes wrapper, #493
  3832. - use hashlib.pbkdf2_hmac from py stdlib instead of own openssl wrapper
  3833. - use hmac.compare_digest instead of == operator (constant time comparison)
  3834. - use stat.filemode instead of homegrown code
  3835. - use "mock" library from stdlib, #145
  3836. - remove borg.support (with non-broken argparse copy), it is ok in 3.4+, #358
  3837. - Vagrant: copy CHANGES.rst as symlink, #592
  3838. - cosmetic code cleanups, add flake8 to tox/travis, #4
  3839. - docs / help:
  3840. - make "borg -h" output prettier, #591
  3841. - slightly rephrase prune help
  3842. - add missing example for --list option of borg create
  3843. - quote exclude line that includes an asterisk to prevent shell expansion
  3844. - fix dead link to license
  3845. - delete Ubuntu Vivid, it is not supported anymore (EOL)
  3846. - OS X binary does not work for older OS X releases, #629
  3847. - borg serve's special support for forced/original ssh commands, #544
  3848. - misc. updates and fixes
  3849. Version 0.30.0 (2016-01-23)
  3850. ---------------------------
  3851. Compatibility notes:
  3852. - you may need to use -v (or --info) more often to actually see output emitted
  3853. at INFO log level (because it is suppressed at the default WARNING log level).
  3854. See the "general" section in the usage docs.
  3855. - for borg create, you need --list (additionally to -v) to see the long file
  3856. list (was needed so you can have e.g. --stats alone without the long list)
  3857. - see below about BORG_DELETE_I_KNOW_WHAT_I_AM_DOING (was:
  3858. BORG_CHECK_I_KNOW_WHAT_I_AM_DOING)
  3859. Bug fixes:
  3860. - fix crash when using borg create --dry-run --keep-tag-files, #570
  3861. - make sure teardown with cleanup happens for Cache and RepositoryCache,
  3862. avoiding leftover locks and TEMP dir contents, #285 (partially), #548
  3863. - fix locking KeyError, partial fix for #502
  3864. - log stats consistently, #526
  3865. - add abbreviated weekday to timestamp format, fixes #496
  3866. - strip whitespace when loading exclusions from file
  3867. - unset LD_LIBRARY_PATH before invoking ssh, fixes strange OpenSSL library
  3868. version warning when using the borg binary, #514
  3869. - add some error handling/fallback for C library loading, #494
  3870. - added BORG_DELETE_I_KNOW_WHAT_I_AM_DOING for check in "borg delete", #503
  3871. - remove unused "repair" rpc method name
  3872. New features:
  3873. - borg create: implement exclusions using regular expression patterns.
  3874. - borg create: implement inclusions using patterns.
  3875. - borg extract: support patterns, #361
  3876. - support different styles for patterns:
  3877. - fnmatch (`fm:` prefix, default when omitted), like borg <= 0.29.
  3878. - shell (`sh:` prefix) with `*` not matching directory separators and
  3879. `**/` matching 0..n directories
  3880. - path prefix (`pp:` prefix, for unifying borg create pp1 pp2 into the
  3881. patterns system), semantics like in borg <= 0.29
  3882. - regular expression (`re:`), new!
  3883. - --progress option for borg upgrade (#291) and borg delete <archive>
  3884. - update progress indication more often (e.g. for borg create within big
  3885. files or for borg check repo), #500
  3886. - finer chunker granularity for items metadata stream, #547, #487
  3887. - borg create --list now used (additionally to -v) to enable the verbose
  3888. file list output
  3889. - display borg version below tracebacks, #532
  3890. Other changes:
  3891. - hashtable size (and thus: RAM and disk consumption) follows a growth policy:
  3892. grows fast while small, grows slower when getting bigger, #527
  3893. - Vagrantfile: use pyinstaller 3.1 to build binaries, freebsd sqlite3 fix,
  3894. fixes #569
  3895. - no separate binaries for centos6 any more because the generic linux binaries
  3896. also work on centos6 (or in general: on systems with a slightly older glibc
  3897. than debian7
  3898. - dev environment: require virtualenv<14.0 so we get a py32 compatible pip
  3899. - docs:
  3900. - add space-saving chunks.archive.d trick to FAQ
  3901. - important: clarify -v and log levels in usage -> general, please read!
  3902. - sphinx configuration: create a simple man page from usage docs
  3903. - add a repo server setup example
  3904. - disable unneeded SSH features in authorized_keys examples for security.
  3905. - borg prune only knows "--keep-within" and not "--within"
  3906. - add gource video to resources docs, #507
  3907. - add netbsd install instructions
  3908. - authors: make it more clear what refers to borg and what to attic
  3909. - document standalone binary requirements, #499
  3910. - rephrase the mailing list section
  3911. - development docs: run build_api and build_usage before tagging release
  3912. - internals docs: hash table max. load factor is 0.75 now
  3913. - markup, typo, grammar, phrasing, clarifications and other fixes.
  3914. - add gcc gcc-c++ to redhat/fedora/corora install docs, fixes #583
  3915. Version 0.29.0 (2015-12-13)
  3916. ---------------------------
  3917. Compatibility notes:
  3918. - when upgrading to 0.29.0 you need to upgrade client as well as server
  3919. installations due to the locking and commandline interface changes otherwise
  3920. you'll get an error msg about a RPC protocol mismatch or a wrong commandline
  3921. option.
  3922. if you run a server that needs to support both old and new clients, it is
  3923. suggested that you have a "borg-0.28.2" and a "borg-0.29.0" command.
  3924. clients then can choose via e.g. "borg --remote-path=borg-0.29.0 ...".
  3925. - the default waiting time for a lock changed from infinity to 1 second for a
  3926. better interactive user experience. if the repo you want to access is
  3927. currently locked, borg will now terminate after 1s with an error message.
  3928. if you have scripts that shall wait for the lock for a longer time, use
  3929. --lock-wait N (with N being the maximum wait time in seconds).
  3930. Bug fixes:
  3931. - hash table tuning (better chosen hashtable load factor 0.75 and prime initial
  3932. size of 1031 gave ~1000x speedup in some scenarios)
  3933. - avoid creation of an orphan lock for one case, #285
  3934. - --keep-tag-files: fix file mode and multiple tag files in one directory, #432
  3935. - fixes for "borg upgrade" (attic repo converter), #466
  3936. - remove --progress isatty magic (and also --no-progress option) again, #476
  3937. - borg init: display proper repo URL
  3938. - fix format of umask in help pages, #463
  3939. New features:
  3940. - implement --lock-wait, support timeout for UpgradableLock, #210
  3941. - implement borg break-lock command, #157
  3942. - include system info below traceback, #324
  3943. - sane remote logging, remote stderr, #461:
  3944. - remote log output: intercept it and log it via local logging system,
  3945. with "Remote: " prefixed to message. log remote tracebacks.
  3946. - remote stderr: output it to local stderr with "Remote: " prefixed.
  3947. - add --debug and --info (same as --verbose) to set the log level of the
  3948. builtin logging configuration (which otherwise defaults to warning), #426
  3949. note: there are few messages emitted at DEBUG level currently.
  3950. - optionally configure logging via env var BORG_LOGGING_CONF
  3951. - add --filter option for status characters: e.g. to show only the added
  3952. or modified files (and also errors), use "borg create -v --filter=AME ...".
  3953. - more progress indicators, #394
  3954. - use ISO-8601 date and time format, #375
  3955. - "borg check --prefix" to restrict archive checking to that name prefix, #206
  3956. Other changes:
  3957. - hashindex_add C implementation (speed up cache re-sync for new archives)
  3958. - increase FUSE read_size to 1024 (speed up metadata operations)
  3959. - check/delete/prune --save-space: free unused segments quickly, #239
  3960. - increase rpc protocol version to 2 (see also Compatibility notes), #458
  3961. - silence borg by default (via default log level WARNING)
  3962. - get rid of C compiler warnings, #391
  3963. - upgrade OS X FUSE to 3.0.9 on the OS X binary build system
  3964. - use python 3.5.1 to build binaries
  3965. - docs:
  3966. - new mailing list borgbackup@python.org, #468
  3967. - readthedocs: color and logo improvements
  3968. - load coverage icons over SSL (avoids mixed content)
  3969. - more precise binary installation steps
  3970. - update release procedure docs about OS X FUSE
  3971. - FAQ entry about unexpected 'A' status for unchanged file(s), #403
  3972. - add docs about 'E' file status
  3973. - add "borg upgrade" docs, #464
  3974. - add developer docs about output and logging
  3975. - clarify encryption, add note about client-side encryption
  3976. - add resources section, with videos, talks, presentations, #149
  3977. - Borg moved to Arch Linux [community]
  3978. - fix wrong installation instructions for archlinux
  3979. Version 0.28.2 (2015-11-15)
  3980. ---------------------------
  3981. New features:
  3982. - borg create --exclude-if-present TAGFILE - exclude directories that have the
  3983. given file from the backup. You can additionally give --keep-tag-files to
  3984. preserve just the directory roots and the tag-files (but not backup other
  3985. directory contents), #395, attic #128, attic #142
  3986. Other changes:
  3987. - do not create docs sources at build time (just have them in the repo),
  3988. completely remove have_cython() hack, do not use the "mock" library at build
  3989. time, #384
  3990. - avoid hidden import, make it easier for PyInstaller, easier fix for #218
  3991. - docs:
  3992. - add description of item flags / status output, fixes #402
  3993. - explain how to regenerate usage and API files (build_api or
  3994. build_usage) and when to commit usage files directly into git, #384
  3995. - minor install docs improvements
  3996. Version 0.28.1 (2015-11-08)
  3997. ---------------------------
  3998. Bug fixes:
  3999. - do not try to build api / usage docs for production install,
  4000. fixes unexpected "mock" build dependency, #384
  4001. Other changes:
  4002. - avoid using msgpack.packb at import time
  4003. - fix formatting issue in changes.rst
  4004. - fix build on readthedocs
  4005. Version 0.28.0 (2015-11-08)
  4006. ---------------------------
  4007. Compatibility notes:
  4008. - changed return codes (exit codes), see docs. in short:
  4009. old: 0 = ok, 1 = error. now: 0 = ok, 1 = warning, 2 = error
  4010. New features:
  4011. - refactor return codes (exit codes), fixes #61
  4012. - add --show-rc option enable "terminating with X status, rc N" output, fixes 58, #351
  4013. - borg create backups atime and ctime additionally to mtime, fixes #317
  4014. - extract: support atime additionally to mtime
  4015. - FUSE: support ctime and atime additionally to mtime
  4016. - support borg --version
  4017. - emit a warning if we have a slow msgpack installed
  4018. - borg list --prefix=thishostname- REPO, fixes #205
  4019. - Debug commands (do not use except if you know what you do: debug-get-obj,
  4020. debug-put-obj, debug-delete-obj, debug-dump-archive-items.
  4021. Bug fixes:
  4022. - setup.py: fix bug related to BORG_LZ4_PREFIX processing
  4023. - fix "check" for repos that have incomplete chunks, fixes #364
  4024. - borg mount: fix unlocking of repository at umount time, fixes #331
  4025. - fix reading files without touching their atime, #334
  4026. - non-ascii ACL fixes for Linux, FreeBSD and OS X, #277
  4027. - fix acl_use_local_uid_gid() and add a test for it, attic #359
  4028. - borg upgrade: do not upgrade repositories in place by default, #299
  4029. - fix cascading failure with the index conversion code, #269
  4030. - borg check: implement 'cmdline' archive metadata value decoding, #311
  4031. - fix RobustUnpacker, it missed some metadata keys (new atime and ctime keys
  4032. were missing, but also bsdflags). add check for unknown metadata keys.
  4033. - create from stdin: also save atime, ctime (cosmetic)
  4034. - use default_notty=False for confirmations, fixes #345
  4035. - vagrant: fix msgpack installation on centos, fixes #342
  4036. - deal with unicode errors for symlinks in same way as for regular files and
  4037. have a helpful warning message about how to fix wrong locale setup, fixes #382
  4038. - add ACL keys the RobustUnpacker must know about
  4039. Other changes:
  4040. - improve file size displays, more flexible size formatters
  4041. - explicitly commit to the units standard, #289
  4042. - archiver: add E status (means that an error occurred when processing this
  4043. (single) item
  4044. - do binary releases via "github releases", closes #214
  4045. - create: use -x and --one-file-system (was: --do-not-cross-mountpoints), #296
  4046. - a lot of changes related to using "logging" module and screen output, #233
  4047. - show progress display if on a tty, output more progress information, #303
  4048. - factor out status output so it is consistent, fix surrogates removal,
  4049. maybe fixes #309
  4050. - move away from RawConfigParser to ConfigParser
  4051. - archive checker: better error logging, give chunk_id and sequence numbers
  4052. (can be used together with borg debug-dump-archive-items).
  4053. - do not mention the deprecated passphrase mode
  4054. - emit a deprecation warning for --compression N (giving a just a number)
  4055. - misc .coverragerc fixes (and coverage measurement improvements), fixes #319
  4056. - refactor confirmation code, reduce code duplication, add tests
  4057. - prettier error messages, fixes #307, #57
  4058. - tests:
  4059. - add a test to find disk-full issues, #327
  4060. - travis: also run tests on Python 3.5
  4061. - travis: use tox -r so it rebuilds the tox environments
  4062. - test the generated pyinstaller-based binary by archiver unit tests, #215
  4063. - vagrant: tests: announce whether fakeroot is used or not
  4064. - vagrant: add vagrant user to fuse group for debianoid systems also
  4065. - vagrant: llfuse install on darwin needs pkgconfig installed
  4066. - vagrant: use pyinstaller from develop branch, fixes #336
  4067. - benchmarks: test create, extract, list, delete, info, check, help, fixes #146
  4068. - benchmarks: test with both the binary and the python code
  4069. - archiver tests: test with both the binary and the python code, fixes #215
  4070. - make basic test more robust
  4071. - docs:
  4072. - moved docs to borgbackup.readthedocs.org, #155
  4073. - a lot of fixes and improvements, use mobile-friendly RTD standard theme
  4074. - use zlib,6 compression in some examples, fixes #275
  4075. - add missing rename usage to docs, closes #279
  4076. - include the help offered by borg help <topic> in the usage docs, fixes #293
  4077. - include a list of major changes compared to attic into README, fixes #224
  4078. - add OS X install instructions, #197
  4079. - more details about the release process, #260
  4080. - fix linux glibc requirement (binaries built on debian7 now)
  4081. - build: move usage and API generation to setup.py
  4082. - update docs about return codes, #61
  4083. - remove api docs (too much breakage on rtd)
  4084. - borgbackup install + basics presentation (asciinema)
  4085. - describe the current style guide in documentation
  4086. - add section about debug commands
  4087. - warn about not running out of space
  4088. - add example for rename
  4089. - improve chunker params docs, fixes #362
  4090. - minor development docs update
  4091. Version 0.27.0 (2015-10-07)
  4092. ---------------------------
  4093. New features:
  4094. - "borg upgrade" command - attic -> borg one time converter / migration, #21
  4095. - temporary hack to avoid using lots of disk space for chunks.archive.d, #235:
  4096. To use it: rm -rf chunks.archive.d ; touch chunks.archive.d
  4097. - respect XDG_CACHE_HOME, attic #181
  4098. - add support for arbitrary SSH commands, attic #99
  4099. - borg delete --cache-only REPO (only delete cache, not REPO), attic #123
  4100. Bug fixes:
  4101. - use Debian 7 (wheezy) to build pyinstaller borgbackup binaries, fixes slow
  4102. down observed when running the Centos6-built binary on Ubuntu, #222
  4103. - do not crash on empty lock.roster, fixes #232
  4104. - fix multiple issues with the cache config version check, #234
  4105. - fix segment entry header size check, attic #352
  4106. plus other error handling improvements / code deduplication there.
  4107. - always give segment and offset in repo IntegrityErrors
  4108. Other changes:
  4109. - stop producing binary wheels, remove docs about it, #147
  4110. - docs:
  4111. - add warning about prune
  4112. - generate usage include files only as needed
  4113. - development docs: add Vagrant section
  4114. - update / improve / reformat FAQ
  4115. - hint to single-file pyinstaller binaries from README
  4116. Version 0.26.1 (2015-09-28)
  4117. ---------------------------
  4118. This is a minor update, just docs and new pyinstaller binaries.
  4119. - docs update about python and binary requirements
  4120. - better docs for --read-special, fix #220
  4121. - re-built the binaries, fix #218 and #213 (glibc version issue)
  4122. - update web site about single-file pyinstaller binaries
  4123. Note: if you did a python-based installation, there is no need to upgrade.
  4124. Version 0.26.0 (2015-09-19)
  4125. ---------------------------
  4126. New features:
  4127. - Faster cache sync (do all in one pass, remove tar/compression stuff), #163
  4128. - BORG_REPO env var to specify the default repo, #168
  4129. - read special files as if they were regular files, #79
  4130. - implement borg create --dry-run, attic issue #267
  4131. - Normalize paths before pattern matching on OS X, #143
  4132. - support OpenBSD and NetBSD (except xattrs/ACLs)
  4133. - support / run tests on Python 3.5
  4134. Bug fixes:
  4135. - borg mount repo: use absolute path, attic #200, attic #137
  4136. - chunker: use off_t to get 64bit on 32bit platform, #178
  4137. - initialize chunker fd to -1, so it's not equal to STDIN_FILENO (0)
  4138. - fix reaction to "no" answer at delete repo prompt, #182
  4139. - setup.py: detect lz4.h header file location
  4140. - to support python < 3.2.4, add less buggy argparse lib from 3.2.6 (#194)
  4141. - fix for obtaining ``char *`` from temporary Python value (old code causes
  4142. a compile error on Mint 17.2)
  4143. - llfuse 0.41 install troubles on some platforms, require < 0.41
  4144. (UnicodeDecodeError exception due to non-ascii llfuse setup.py)
  4145. - cython code: add some int types to get rid of unspecific python add /
  4146. subtract operations (avoid ``undefined symbol FPE_``... error on some platforms)
  4147. - fix verbose mode display of stdin backup
  4148. - extract: warn if a include pattern never matched, fixes #209,
  4149. implement counters for Include/ExcludePatterns
  4150. - archive names with slashes are invalid, attic issue #180
  4151. - chunker: add a check whether the POSIX_FADV_DONTNEED constant is defined -
  4152. fixes building on OpenBSD.
  4153. Other changes:
  4154. - detect inconsistency / corruption / hash collision, #170
  4155. - replace versioneer with setuptools_scm, #106
  4156. - docs:
  4157. - pkg-config is needed for llfuse installation
  4158. - be more clear about pruning, attic issue #132
  4159. - unit tests:
  4160. - xattr: ignore security.selinux attribute showing up
  4161. - ext3 seems to need a bit more space for a sparse file
  4162. - do not test lzma level 9 compression (avoid MemoryError)
  4163. - work around strange mtime granularity issue on netbsd, fixes #204
  4164. - ignore st_rdev if file is not a block/char device, fixes #203
  4165. - stay away from the setgid and sticky mode bits
  4166. - use Vagrant to do easy cross-platform testing (#196), currently:
  4167. - Debian 7 "wheezy" 32bit, Debian 8 "jessie" 64bit
  4168. - Ubuntu 12.04 32bit, Ubuntu 14.04 64bit
  4169. - Centos 7 64bit
  4170. - FreeBSD 10.2 64bit
  4171. - OpenBSD 5.7 64bit
  4172. - NetBSD 6.1.5 64bit
  4173. - Darwin (OS X Yosemite)
  4174. Version 0.25.0 (2015-08-29)
  4175. ---------------------------
  4176. Compatibility notes:
  4177. - lz4 compression library (liblz4) is a new requirement (#156)
  4178. - the new compression code is very compatible: as long as you stay with zlib
  4179. compression, older borg releases will still be able to read data from a
  4180. repo/archive made with the new code (note: this is not the case for the
  4181. default "none" compression, use "zlib,0" if you want a "no compression" mode
  4182. that can be read by older borg). Also the new code is able to read repos and
  4183. archives made with older borg versions (for all zlib levels 0..9).
  4184. Deprecations:
  4185. - --compression N (with N being a number, as in 0.24) is deprecated.
  4186. We keep the --compression 0..9 for now to not break scripts, but it is
  4187. deprecated and will be removed later, so better fix your scripts now:
  4188. --compression 0 (as in 0.24) is the same as --compression zlib,0 (now).
  4189. BUT: if you do not want compression, you rather want --compression none
  4190. (which is the default).
  4191. --compression 1 (in 0.24) is the same as --compression zlib,1 (now)
  4192. --compression 9 (in 0.24) is the same as --compression zlib,9 (now)
  4193. New features:
  4194. - create --compression none (default, means: do not compress, just pass through
  4195. data "as is". this is more efficient than zlib level 0 as used in borg 0.24)
  4196. - create --compression lz4 (super-fast, but not very high compression)
  4197. - create --compression zlib,N (slower, higher compression, default for N is 6)
  4198. - create --compression lzma,N (slowest, highest compression, default N is 6)
  4199. - honor the nodump flag (UF_NODUMP) and do not backup such items
  4200. - list --short just outputs a simple list of the files/directories in an archive
  4201. Bug fixes:
  4202. - fixed --chunker-params parameter order confusion / malfunction, fixes #154
  4203. - close fds of segments we delete (during compaction)
  4204. - close files which fell out the lrucache
  4205. - fadvise DONTNEED now is only called for the byte range actually read, not for
  4206. the whole file, fixes #158.
  4207. - fix issue with negative "all archives" size, fixes #165
  4208. - restore_xattrs: ignore if setxattr fails with EACCES, fixes #162
  4209. Other changes:
  4210. - remove fakeroot requirement for tests, tests run faster without fakeroot
  4211. (test setup does not fail any more without fakeroot, so you can run with or
  4212. without fakeroot), fixes #151 and #91.
  4213. - more tests for archiver
  4214. - recover_segment(): don't assume we have an fd for segment
  4215. - lrucache refactoring / cleanup, add dispose function, py.test tests
  4216. - generalize hashindex code for any key length (less hardcoding)
  4217. - lock roster: catch file not found in remove() method and ignore it
  4218. - travis CI: use requirements file
  4219. - improved docs:
  4220. - replace hack for llfuse with proper solution (install libfuse-dev)
  4221. - update docs about compression
  4222. - update development docs about fakeroot
  4223. - internals: add some words about lock files / locking system
  4224. - support: mention BountySource and for what it can be used
  4225. - theme: use a lighter green
  4226. - add pypi, wheel, dist package based install docs
  4227. - split install docs into system-specific preparations and generic instructions
  4228. Version 0.24.0 (2015-08-09)
  4229. ---------------------------
  4230. Incompatible changes (compared to 0.23):
  4231. - borg now always issues --umask NNN option when invoking another borg via ssh
  4232. on the repository server. By that, it's making sure it uses the same umask
  4233. for remote repos as for local ones. Because of this, you must upgrade both
  4234. server and client(s) to 0.24.
  4235. - the default umask is 077 now (if you do not specify via --umask) which might
  4236. be a different one as you used previously. The default umask avoids that
  4237. you accidentally give access permissions for group and/or others to files
  4238. created by borg (e.g. the repository).
  4239. Deprecations:
  4240. - "--encryption passphrase" mode is deprecated, see #85 and #97.
  4241. See the new "--encryption repokey" mode for a replacement.
  4242. New features:
  4243. - borg create --chunker-params ... to configure the chunker, fixes #16
  4244. (attic #302, attic #300, and somehow also #41).
  4245. This can be used to reduce memory usage caused by chunk management overhead,
  4246. so borg does not create a huge chunks index/repo index and eats all your RAM
  4247. if you back up lots of data in huge files (like VM disk images).
  4248. See docs/misc/create_chunker-params.txt for more information.
  4249. - borg info now reports chunk counts in the chunk index.
  4250. - borg create --compression 0..9 to select zlib compression level, fixes #66
  4251. (attic #295).
  4252. - borg init --encryption repokey (to store the encryption key into the repo),
  4253. fixes #85
  4254. - improve at-end error logging, always log exceptions and set exit_code=1
  4255. - LoggedIO: better error checks / exceptions / exception handling
  4256. - implement --remote-path to allow non-default-path borg locations, #125
  4257. - implement --umask M and use 077 as default umask for better security, #117
  4258. - borg check: give a named single archive to it, fixes #139
  4259. - cache sync: show progress indication
  4260. - cache sync: reimplement the chunk index merging in C
  4261. Bug fixes:
  4262. - fix segfault that happened for unreadable files (chunker: n needs to be a
  4263. signed size_t), #116
  4264. - fix the repair mode, #144
  4265. - repo delete: add destroy to allowed rpc methods, fixes issue #114
  4266. - more compatible repository locking code (based on mkdir), maybe fixes #92
  4267. (attic #317, attic #201).
  4268. - better Exception msg if no Borg is installed on the remote repo server, #56
  4269. - create a RepositoryCache implementation that can cope with >2GiB,
  4270. fixes attic #326.
  4271. - fix Traceback when running check --repair, attic #232
  4272. - clarify help text, fixes #73.
  4273. - add help string for --no-files-cache, fixes #140
  4274. Other changes:
  4275. - improved docs:
  4276. - added docs/misc directory for misc. writeups that won't be included
  4277. "as is" into the html docs.
  4278. - document environment variables and return codes (attic #324, attic #52)
  4279. - web site: add related projects, fix web site url, IRC #borgbackup
  4280. - Fedora/Fedora-based install instructions added to docs
  4281. - Cygwin-based install instructions added to docs
  4282. - updated AUTHORS
  4283. - add FAQ entries about redundancy / integrity
  4284. - clarify that borg extract uses the cwd as extraction target
  4285. - update internals doc about chunker params, memory usage and compression
  4286. - added docs about development
  4287. - add some words about resource usage in general
  4288. - document how to backup a raw disk
  4289. - add note about how to run borg from virtual env
  4290. - add solutions for (ll)fuse installation problems
  4291. - document what borg check does, fixes #138
  4292. - reorganize borgbackup.github.io sidebar, prev/next at top
  4293. - deduplicate and refactor the docs / README.rst
  4294. - use borg-tmp as prefix for temporary files / directories
  4295. - short prune options without "keep-" are deprecated, do not suggest them
  4296. - improved tox configuration
  4297. - remove usage of unittest.mock, always use mock from pypi
  4298. - use entrypoints instead of scripts, for better use of the wheel format and
  4299. modern installs
  4300. - add requirements.d/development.txt and modify tox.ini
  4301. - use travis-ci for testing based on Linux and (new) OS X
  4302. - use coverage.py, pytest-cov and codecov.io for test coverage support
  4303. I forgot to list some stuff already implemented in 0.23.0, here they are:
  4304. New features:
  4305. - efficient archive list from manifest, meaning a big speedup for slow
  4306. repo connections and "list <repo>", "delete <repo>", "prune" (attic #242,
  4307. attic #167)
  4308. - big speedup for chunks cache sync (esp. for slow repo connections), fixes #18
  4309. - hashindex: improve error messages
  4310. Other changes:
  4311. - explicitly specify binary mode to open binary files
  4312. - some easy micro optimizations
  4313. Version 0.23.0 (2015-06-11)
  4314. ---------------------------
  4315. Incompatible changes (compared to attic, fork related):
  4316. - changed sw name and cli command to "borg", updated docs
  4317. - package name (and name in urls) uses "borgbackup" to have fewer collisions
  4318. - changed repo / cache internal magic strings from ATTIC* to BORG*,
  4319. changed cache location to .cache/borg/ - this means that it currently won't
  4320. accept attic repos (see issue #21 about improving that)
  4321. Bug fixes:
  4322. - avoid defect python-msgpack releases, fixes attic #171, fixes attic #185
  4323. - fix traceback when trying to do unsupported passphrase change, fixes attic #189
  4324. - datetime does not like the year 10.000, fixes attic #139
  4325. - fix "info" all archives stats, fixes attic #183
  4326. - fix parsing with missing microseconds, fixes attic #282
  4327. - fix misleading hint the fuse ImportError handler gave, fixes attic #237
  4328. - check unpacked data from RPC for tuple type and correct length, fixes attic #127
  4329. - fix Repository._active_txn state when lock upgrade fails
  4330. - give specific path to xattr.is_enabled(), disable symlink setattr call that
  4331. always fails
  4332. - fix test setup for 32bit platforms, partial fix for attic #196
  4333. - upgraded versioneer, PEP440 compliance, fixes attic #257
  4334. New features:
  4335. - less memory usage: add global option --no-cache-files
  4336. - check --last N (only check the last N archives)
  4337. - check: sort archives in reverse time order
  4338. - rename repo::oldname newname (rename repository)
  4339. - create -v output more informative
  4340. - create --progress (backup progress indicator)
  4341. - create --timestamp (utc string or reference file/dir)
  4342. - create: if "-" is given as path, read binary from stdin
  4343. - extract: if --stdout is given, write all extracted binary data to stdout
  4344. - extract --sparse (simple sparse file support)
  4345. - extra debug information for 'fread failed'
  4346. - delete <repo> (deletes whole repo + local cache)
  4347. - FUSE: reflect deduplication in allocated blocks
  4348. - only allow whitelisted RPC calls in server mode
  4349. - normalize source/exclude paths before matching
  4350. - use posix_fadvise to not spoil the OS cache, fixes attic #252
  4351. - toplevel error handler: show tracebacks for better error analysis
  4352. - sigusr1 / sigint handler to print current file infos - attic PR #286
  4353. - RPCError: include the exception args we get from remote
  4354. Other changes:
  4355. - source: misc. cleanups, pep8, style
  4356. - docs and faq improvements, fixes, updates
  4357. - cleanup crypto.pyx, make it easier to adapt to other AES modes
  4358. - do os.fsync like recommended in the python docs
  4359. - source: Let chunker optionally work with os-level file descriptor.
  4360. - source: Linux: remove duplicate os.fsencode calls
  4361. - source: refactor _open_rb code a bit, so it is more consistent / regular
  4362. - source: refactor indicator (status) and item processing
  4363. - source: use py.test for better testing, flake8 for code style checks
  4364. - source: fix tox >=2.0 compatibility (test runner)
  4365. - pypi package: add python version classifiers, add FreeBSD to platforms
  4366. Attic Changelog
  4367. ---------------
  4368. Here you can see the full list of changes between each Attic release until Borg
  4369. forked from Attic:
  4370. Version 0.17
  4371. ~~~~~~~~~~~~
  4372. (bugfix release, released on X)
  4373. - Fix hashindex ARM memory alignment issue (#309)
  4374. - Improve hashindex error messages (#298)
  4375. Version 0.16
  4376. ~~~~~~~~~~~~
  4377. (bugfix release, released on May 16, 2015)
  4378. - Fix typo preventing the security confirmation prompt from working (#303)
  4379. - Improve handling of systems with improperly configured file system encoding (#289)
  4380. - Fix "All archives" output for attic info. (#183)
  4381. - More user friendly error message when repository key file is not found (#236)
  4382. - Fix parsing of iso 8601 timestamps with zero microseconds (#282)
  4383. Version 0.15
  4384. ~~~~~~~~~~~~
  4385. (bugfix release, released on Apr 15, 2015)
  4386. - xattr: Be less strict about unknown/unsupported platforms (#239)
  4387. - Reduce repository listing memory usage (#163).
  4388. - Fix BrokenPipeError for remote repositories (#233)
  4389. - Fix incorrect behavior with two character directory names (#265, #268)
  4390. - Require approval before accessing relocated/moved repository (#271)
  4391. - Require approval before accessing previously unknown unencrypted repositories (#271)
  4392. - Fix issue with hash index files larger than 2GB.
  4393. - Fix Python 3.2 compatibility issue with noatime open() (#164)
  4394. - Include missing pyx files in dist files (#168)
  4395. Version 0.14
  4396. ~~~~~~~~~~~~
  4397. (feature release, released on Dec 17, 2014)
  4398. - Added support for stripping leading path segments (#95)
  4399. "attic extract --strip-segments X"
  4400. - Add workaround for old Linux systems without acl_extended_file_no_follow (#96)
  4401. - Add MacPorts' path to the default openssl search path (#101)
  4402. - HashIndex improvements, eliminates unnecessary IO on low memory systems.
  4403. - Fix "Number of files" output for attic info. (#124)
  4404. - limit create file permissions so files aren't read while restoring
  4405. - Fix issue with empty xattr values (#106)
  4406. Version 0.13
  4407. ~~~~~~~~~~~~
  4408. (feature release, released on Jun 29, 2014)
  4409. - Fix sporadic "Resource temporarily unavailable" when using remote repositories
  4410. - Reduce file cache memory usage (#90)
  4411. - Faster AES encryption (utilizing AES-NI when available)
  4412. - Experimental Linux, OS X and FreeBSD ACL support (#66)
  4413. - Added support for backup and restore of BSDFlags (OSX, FreeBSD) (#56)
  4414. - Fix bug where xattrs on symlinks were not correctly restored
  4415. - Added cachedir support. CACHEDIR.TAG compatible cache directories
  4416. can now be excluded using ``--exclude-caches`` (#74)
  4417. - Fix crash on extreme mtime timestamps (year 2400+) (#81)
  4418. - Fix Python 3.2 specific lockf issue (EDEADLK)
  4419. Version 0.12
  4420. ~~~~~~~~~~~~
  4421. (feature release, released on April 7, 2014)
  4422. - Python 3.4 support (#62)
  4423. - Various documentation improvements a new style
  4424. - ``attic mount`` now supports mounting an entire repository not only
  4425. individual archives (#59)
  4426. - Added option to restrict remote repository access to specific path(s):
  4427. ``attic serve --restrict-to-path X`` (#51)
  4428. - Include "all archives" size information in "--stats" output. (#54)
  4429. - Added ``--stats`` option to ``attic delete`` and ``attic prune``
  4430. - Fixed bug where ``attic prune`` used UTC instead of the local time zone
  4431. when determining which archives to keep.
  4432. - Switch to SI units (Power of 1000 instead 1024) when printing file sizes
  4433. Version 0.11
  4434. ~~~~~~~~~~~~
  4435. (feature release, released on March 7, 2014)
  4436. - New "check" command for repository consistency checking (#24)
  4437. - Documentation improvements
  4438. - Fix exception during "attic create" with repeated files (#39)
  4439. - New "--exclude-from" option for attic create/extract/verify.
  4440. - Improved archive metadata deduplication.
  4441. - "attic verify" has been deprecated. Use "attic extract --dry-run" instead.
  4442. - "attic prune --hourly|daily|..." has been deprecated.
  4443. Use "attic prune --keep-hourly|daily|..." instead.
  4444. - Ignore xattr errors during "extract" if not supported by the filesystem. (#46)
  4445. Version 0.10
  4446. ~~~~~~~~~~~~
  4447. (bugfix release, released on Jan 30, 2014)
  4448. - Fix deadlock when extracting 0 sized files from remote repositories
  4449. - "--exclude" wildcard patterns are now properly applied to the full path
  4450. not just the file name part (#5).
  4451. - Make source code endianness agnostic (#1)
  4452. Version 0.9
  4453. ~~~~~~~~~~~
  4454. (feature release, released on Jan 23, 2014)
  4455. - Remote repository speed and reliability improvements.
  4456. - Fix sorting of segment names to ignore NFS left over files. (#17)
  4457. - Fix incorrect display of time (#13)
  4458. - Improved error handling / reporting. (#12)
  4459. - Use fcntl() instead of flock() when locking repository/cache. (#15)
  4460. - Let ssh figure out port/user if not specified so we don't override .ssh/config (#9)
  4461. - Improved libcrypto path detection (#23).
  4462. Version 0.8.1
  4463. ~~~~~~~~~~~~~
  4464. (bugfix release, released on Oct 4, 2013)
  4465. - Fix segmentation fault issue.
  4466. Version 0.8
  4467. ~~~~~~~~~~~
  4468. (feature release, released on Oct 3, 2013)
  4469. - Fix xattr issue when backing up sshfs filesystems (#4)
  4470. - Fix issue with excessive index file size (#6)
  4471. - Support access of read only repositories.
  4472. - New syntax to enable repository encryption:
  4473. attic init --encryption="none|passphrase|keyfile".
  4474. - Detect and abort if repository is older than the cache.
  4475. Version 0.7
  4476. ~~~~~~~~~~~
  4477. (feature release, released on Aug 5, 2013)
  4478. - Ported to FreeBSD
  4479. - Improved documentation
  4480. - Experimental: Archives mountable as FUSE filesystems.
  4481. - The "user." prefix is no longer stripped from xattrs on Linux
  4482. Version 0.6.1
  4483. ~~~~~~~~~~~~~
  4484. (bugfix release, released on July 19, 2013)
  4485. - Fixed an issue where mtime was not always correctly restored.
  4486. Version 0.6
  4487. ~~~~~~~~~~~
  4488. First public release on July 9, 2013