MANUAL.txt 2.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125
  1. rclone(1) User Manual
  2. Nick Craig-Wood
  3. Mar 10, 2024
  4. Rclone syncs your files to cloud storage
  5. - About rclone
  6. - What can rclone do for you?
  7. - What features does rclone have?
  8. - What providers does rclone support?
  9. - Download
  10. - Install
  11. - Donate.
  12. About rclone
  13. Rclone is a command-line program to manage files on cloud storage. It is
  14. a feature-rich alternative to cloud vendors' web storage interfaces.
  15. Over 70 cloud storage products support rclone including S3 object
  16. stores, business & consumer file storage services, as well as standard
  17. transfer protocols.
  18. Rclone has powerful cloud equivalents to the unix commands rsync, cp,
  19. mv, mount, ls, ncdu, tree, rm, and cat. Rclone's familiar syntax
  20. includes shell pipeline support, and --dry-run protection. It is used at
  21. the command line, in scripts or via its API.
  22. Users call rclone "The Swiss army knife of cloud storage", and
  23. "Technology indistinguishable from magic".
  24. Rclone really looks after your data. It preserves timestamps and
  25. verifies checksums at all times. Transfers over limited bandwidth;
  26. intermittent connections, or subject to quota can be restarted, from the
  27. last good file transferred. You can check the integrity of your files.
  28. Where possible, rclone employs server-side transfers to minimise local
  29. bandwidth use and transfers from one provider to another without using
  30. local disk.
  31. Virtual backends wrap local and cloud file systems to apply encryption,
  32. compression, chunking, hashing and joining.
  33. Rclone mounts any local, cloud or virtual filesystem as a disk on
  34. Windows, macOS, linux and FreeBSD, and also serves these over SFTP,
  35. HTTP, WebDAV, FTP and DLNA.
  36. Rclone is mature, open-source software originally inspired by rsync and
  37. written in Go. The friendly support community is familiar with varied
  38. use cases. Official Ubuntu, Debian, Fedora, Brew and Chocolatey repos.
  39. include rclone. For the latest version downloading from rclone.org is
  40. recommended.
  41. Rclone is widely used on Linux, Windows and Mac. Third-party developers
  42. create innovative backup, restore, GUI and business process solutions
  43. using the rclone command line or API.
  44. Rclone does the heavy lifting of communicating with cloud storage.
  45. What can rclone do for you?
  46. Rclone helps you:
  47. - Backup (and encrypt) files to cloud storage
  48. - Restore (and decrypt) files from cloud storage
  49. - Mirror cloud data to other cloud services or locally
  50. - Migrate data to the cloud, or between cloud storage vendors
  51. - Mount multiple, encrypted, cached or diverse cloud storage as a disk
  52. - Analyse and account for data held on cloud storage using lsf, ljson,
  53. size, ncdu
  54. - Union file systems together to present multiple local and/or cloud
  55. file systems as one
  56. Features
  57. - Transfers
  58. - MD5, SHA1 hashes are checked at all times for file integrity
  59. - Timestamps are preserved on files
  60. - Operations can be restarted at any time
  61. - Can be to and from network, e.g. two different cloud providers
  62. - Can use multi-threaded downloads to local disk
  63. - Copy new or changed files to cloud storage
  64. - Sync (one way) to make a directory identical
  65. - Bisync (two way) to keep two directories in sync bidirectionally
  66. - Move files to cloud storage deleting the local after verification
  67. - Check hashes and for missing/extra files
  68. - Mount your cloud storage as a network disk
  69. - Serve local or remote files over HTTP/WebDav/FTP/SFTP/DLNA
  70. - Experimental Web based GUI
  71. Supported providers
  72. (There are many others, built on standard protocols such as WebDAV or
  73. S3, that work out of the box.)
  74. - 1Fichier
  75. - Akamai Netstorage
  76. - Alibaba Cloud (Aliyun) Object Storage System (OSS)
  77. - Amazon S3
  78. - Backblaze B2
  79. - Box
  80. - Ceph
  81. - China Mobile Ecloud Elastic Object Storage (EOS)
  82. - Arvan Cloud Object Storage (AOS)
  83. - Citrix ShareFile
  84. - Cloudflare R2
  85. - DigitalOcean Spaces
  86. - Digi Storage
  87. - Dreamhost
  88. - Dropbox
  89. - Enterprise File Fabric
  90. - Fastmail Files
  91. - FTP
  92. - Google Cloud Storage
  93. - Google Drive
  94. - Google Photos
  95. - HDFS
  96. - Hetzner Storage Box
  97. - HiDrive
  98. - HTTP
  99. - ImageKit
  100. - Internet Archive
  101. - Jottacloud
  102. - IBM COS S3
  103. - IDrive e2
  104. - IONOS Cloud
  105. - Koofr
  106. - Leviia Object Storage
  107. - Liara Object Storage
  108. - Linkbox
  109. - Linode Object Storage
  110. - Mail.ru Cloud
  111. - Memset Memstore
  112. - Mega
  113. - Memory
  114. - Microsoft Azure Blob Storage
  115. - Microsoft Azure Files Storage
  116. - Microsoft OneDrive
  117. - Minio
  118. - Nextcloud
  119. - OVH
  120. - Blomp Cloud Storage
  121. - OpenDrive
  122. - OpenStack Swift
  123. - Oracle Cloud Storage Swift
  124. - Oracle Object Storage
  125. - ownCloud
  126. - pCloud
  127. - Petabox
  128. - PikPak
  129. - premiumize.me
  130. - put.io
  131. - Proton Drive
  132. - QingStor
  133. - Qiniu Cloud Object Storage (Kodo)
  134. - Quatrix by Maytech
  135. - Rackspace Cloud Files
  136. - rsync.net
  137. - Scaleway
  138. - Seafile
  139. - Seagate Lyve Cloud
  140. - SeaweedFS
  141. - SFTP
  142. - Sia
  143. - SMB / CIFS
  144. - StackPath
  145. - Storj
  146. - Synology
  147. - SugarSync
  148. - Tencent Cloud Object Storage (COS)
  149. - Uptobox
  150. - Wasabi
  151. - WebDAV
  152. - Yandex Disk
  153. - Zoho WorkDrive
  154. - The local filesystem
  155. Virtual providers
  156. These backends adapt or modify other storage providers:
  157. - Alias: Rename existing remotes
  158. - Cache: Cache remotes (DEPRECATED)
  159. - Chunker: Split large files
  160. - Combine: Combine multiple remotes into a directory tree
  161. - Compress: Compress files
  162. - Crypt: Encrypt files
  163. - Hasher: Hash files
  164. - Union: Join multiple remotes to work together
  165. Links
  166. - Home page
  167. - GitHub project page for source and bug tracker
  168. - Rclone Forum
  169. - Downloads
  170. Install
  171. Rclone is a Go program and comes as a single binary file.
  172. Quickstart
  173. - Download the relevant binary.
  174. - Extract the rclone executable, rclone.exe on Windows, from the
  175. archive.
  176. - Run rclone config to setup. See rclone config docs for more details.
  177. - Optionally configure automatic execution.
  178. See below for some expanded Linux / macOS / Windows instructions.
  179. See the usage docs for how to use rclone, or run rclone -h.
  180. Already installed rclone can be easily updated to the latest version
  181. using the rclone selfupdate command.
  182. See the release signing docs for how to verify signatures on the
  183. release.
  184. Script installation
  185. To install rclone on Linux/macOS/BSD systems, run:
  186. sudo -v ; curl https://rclone.org/install.sh | sudo bash
  187. For beta installation, run:
  188. sudo -v ; curl https://rclone.org/install.sh | sudo bash -s beta
  189. Note that this script checks the version of rclone installed first and
  190. won't re-download if not needed.
  191. Linux installation
  192. Precompiled binary
  193. Fetch and unpack
  194. curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip
  195. unzip rclone-current-linux-amd64.zip
  196. cd rclone-*-linux-amd64
  197. Copy binary file
  198. sudo cp rclone /usr/bin/
  199. sudo chown root:root /usr/bin/rclone
  200. sudo chmod 755 /usr/bin/rclone
  201. Install manpage
  202. sudo mkdir -p /usr/local/share/man/man1
  203. sudo cp rclone.1 /usr/local/share/man/man1/
  204. sudo mandb
  205. Run rclone config to setup. See rclone config docs for more details.
  206. rclone config
  207. macOS installation
  208. Installation with brew
  209. brew install rclone
  210. NOTE: This version of rclone will not support mount any more (see
  211. #5373). If mounting is wanted on macOS, either install a precompiled
  212. binary or enable the relevant option when installing from source.
  213. Note that this is a third party installer not controlled by the rclone
  214. developers so it may be out of date. Its current version is as below.
  215. [Homebrew package]
  216. Installation with MacPorts (#macos-macports)
  217. On macOS, rclone can also be installed via MacPorts:
  218. sudo port install rclone
  219. Note that this is a third party installer not controlled by the rclone
  220. developers so it may be out of date. Its current version is as below.
  221. [MacPorts port]
  222. More information here.
  223. Precompiled binary, using curl
  224. To avoid problems with macOS gatekeeper enforcing the binary to be
  225. signed and notarized it is enough to download with curl.
  226. Download the latest version of rclone.
  227. cd && curl -O https://downloads.rclone.org/rclone-current-osx-amd64.zip
  228. Unzip the download and cd to the extracted folder.
  229. unzip -a rclone-current-osx-amd64.zip && cd rclone-*-osx-amd64
  230. Move rclone to your $PATH. You will be prompted for your password.
  231. sudo mkdir -p /usr/local/bin
  232. sudo mv rclone /usr/local/bin/
  233. (the mkdir command is safe to run, even if the directory already
  234. exists).
  235. Remove the leftover files.
  236. cd .. && rm -rf rclone-*-osx-amd64 rclone-current-osx-amd64.zip
  237. Run rclone config to setup. See rclone config docs for more details.
  238. rclone config
  239. Precompiled binary, using a web browser
  240. When downloading a binary with a web browser, the browser will set the
  241. macOS gatekeeper quarantine attribute. Starting from Catalina, when
  242. attempting to run rclone, a pop-up will appear saying:
  243. "rclone" cannot be opened because the developer cannot be verified.
  244. macOS cannot verify that this app is free from malware.
  245. The simplest fix is to run
  246. xattr -d com.apple.quarantine rclone
  247. Windows installation
  248. Precompiled binary
  249. Fetch the correct binary for your processor type by clicking on these
  250. links. If not sure, use the first link.
  251. - Intel/AMD - 64 Bit
  252. - Intel/AMD - 32 Bit
  253. - ARM - 64 Bit
  254. Open this file in the Explorer and extract rclone.exe. Rclone is a
  255. portable executable so you can place it wherever is convenient.
  256. Open a CMD window (or powershell) and run the binary. Note that rclone
  257. does not launch a GUI by default, it runs in the CMD Window.
  258. - Run rclone.exe config to setup. See rclone config docs for more
  259. details.
  260. - Optionally configure automatic execution.
  261. If you are planning to use the rclone mount feature then you will need
  262. to install the third party utility WinFsp also.
  263. Windows package manager (Winget)
  264. Winget comes pre-installed with the latest versions of Windows. If not,
  265. update the App Installer package from the Microsoft store.
  266. To install rclone
  267. winget install Rclone.Rclone
  268. To uninstall rclone
  269. winget uninstall Rclone.Rclone --force
  270. Chocolatey package manager
  271. Make sure you have Choco installed
  272. choco search rclone
  273. choco install rclone
  274. This will install rclone on your Windows machine. If you are planning to
  275. use rclone mount then
  276. choco install winfsp
  277. will install that too.
  278. Note that this is a third party installer not controlled by the rclone
  279. developers so it may be out of date. Its current version is as below.
  280. [Chocolatey package]
  281. Scoop package manager
  282. Make sure you have Scoop installed
  283. scoop install rclone
  284. Note that this is a third party installer not controlled by the rclone
  285. developers so it may be out of date. Its current version is as below.
  286. [Scoop package]
  287. Package manager installation
  288. Many Linux, Windows, macOS and other OS distributions package and
  289. distribute rclone.
  290. The distributed versions of rclone are often quite out of date and for
  291. this reason we recommend one of the other installation methods if
  292. possible.
  293. You can get an idea of how up to date or not your OS distribution's
  294. package is here.
  295. [Packaging status]
  296. Docker installation
  297. The rclone developers maintain a docker image for rclone.
  298. These images are built as part of the release process based on a minimal
  299. Alpine Linux.
  300. The :latest tag will always point to the latest stable release. You can
  301. use the :beta tag to get the latest build from master. You can also use
  302. version tags, e.g. :1.49.1, :1.49 or :1.
  303. $ docker pull rclone/rclone:latest
  304. latest: Pulling from rclone/rclone
  305. Digest: sha256:0e0ced72671989bb837fea8e88578b3fc48371aa45d209663683e24cfdaa0e11
  306. ...
  307. $ docker run --rm rclone/rclone:latest version
  308. rclone v1.49.1
  309. - os/arch: linux/amd64
  310. - go version: go1.12.9
  311. There are a few command line options to consider when starting an rclone
  312. Docker container from the rclone image.
  313. - You need to mount the host rclone config dir at /config/rclone into
  314. the Docker container. Due to the fact that rclone updates tokens
  315. inside its config file, and that the update process involves a file
  316. rename, you need to mount the whole host rclone config dir, not just
  317. the single host rclone config file.
  318. - You need to mount a host data dir at /data into the Docker
  319. container.
  320. - By default, the rclone binary inside a Docker container runs with
  321. UID=0 (root). As a result, all files created in a run will have
  322. UID=0. If your config and data files reside on the host with a
  323. non-root UID:GID, you need to pass these on the container start
  324. command line.
  325. - If you want to access the RC interface (either via the API or the
  326. Web UI), it is required to set the --rc-addr to :5572 in order to
  327. connect to it from outside the container. An explanation about why
  328. this is necessary is present here.
  329. - NOTE: Users running this container with the docker network set
  330. to host should probably set it to listen to localhost only, with
  331. 127.0.0.1:5572 as the value for --rc-addr
  332. - It is possible to use rclone mount inside a userspace Docker
  333. container, and expose the resulting fuse mount to the host. The
  334. exact docker run options to do that might vary slightly between
  335. hosts. See, e.g. the discussion in this thread.
  336. You also need to mount the host /etc/passwd and /etc/group for fuse
  337. to work inside the container.
  338. Here are some commands tested on an Ubuntu 18.04.3 host:
  339. # config on host at ~/.config/rclone/rclone.conf
  340. # data on host at ~/data
  341. # add a remote interactively
  342. docker run --rm -it \
  343. --volume ~/.config/rclone:/config/rclone \
  344. --user $(id -u):$(id -g) \
  345. rclone/rclone \
  346. config
  347. # make sure the config is ok by listing the remotes
  348. docker run --rm \
  349. --volume ~/.config/rclone:/config/rclone \
  350. --user $(id -u):$(id -g) \
  351. rclone/rclone \
  352. listremotes
  353. # perform mount inside Docker container, expose result to host
  354. mkdir -p ~/data/mount
  355. docker run --rm \
  356. --volume ~/.config/rclone:/config/rclone \
  357. --volume ~/data:/data:shared \
  358. --user $(id -u):$(id -g) \
  359. --volume /etc/passwd:/etc/passwd:ro --volume /etc/group:/etc/group:ro \
  360. --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined \
  361. rclone/rclone \
  362. mount dropbox:Photos /data/mount &
  363. ls ~/data/mount
  364. kill %1
  365. Snap installation
  366. [Get it from the Snap Store]
  367. Make sure you have Snapd installed
  368. $ sudo snap install rclone
  369. Due to the strict confinement of Snap, rclone snap cannot access real
  370. /home/$USER/.config/rclone directory, default config path is as below.
  371. - Default config directory:
  372. - /home/$USER/snap/rclone/current/.config/rclone
  373. Note: Due to the strict confinement of Snap, rclone mount feature is not
  374. supported.
  375. If mounting is wanted, either install a precompiled binary or enable the
  376. relevant option when installing from source.
  377. Note that this is controlled by community maintainer not the rclone
  378. developers so it may be out of date. Its current version is as below.
  379. [rclone]
  380. Source installation
  381. Make sure you have git and Go installed. Go version 1.18 or newer is
  382. required, the latest release is recommended. You can get it from your
  383. package manager, or download it from golang.org/dl. Then you can run the
  384. following:
  385. git clone https://github.com/rclone/rclone.git
  386. cd rclone
  387. go build
  388. This will check out the rclone source in subfolder rclone, which you can
  389. later modify and send pull requests with. Then it will build the rclone
  390. executable in the same folder. As an initial check you can now run
  391. ./rclone version (.\rclone version on Windows).
  392. Note that on macOS and Windows the mount command will not be available
  393. unless you specify an additional build tag cmount.
  394. go build -tags cmount
  395. This assumes you have a GCC compatible C compiler (GCC or Clang) in your
  396. PATH, as it uses cgo. But on Windows, the cgofuse library that the
  397. cmount implementation is based on, also supports building without cgo,
  398. i.e. by setting environment variable CGO_ENABLED to value 0 (static
  399. linking). This is how the official Windows release of rclone is being
  400. built, starting with version 1.59. It is still possible to build with
  401. cgo on Windows as well, by using the MinGW port of GCC, e.g. by
  402. installing it in a MSYS2 distribution (make sure you install it in the
  403. classic mingw64 subsystem, the ucrt64 version is not compatible).
  404. Additionally, to build with mount on Windows, you must install the third
  405. party utility WinFsp, with the "Developer" feature selected. If building
  406. with cgo, you must also set environment variable CPATH pointing to the
  407. fuse include directory within the WinFsp installation (normally
  408. C:\Program Files (x86)\WinFsp\inc\fuse).
  409. You may add arguments -ldflags -s to omit symbol table and debug
  410. information, making the executable file smaller, and -trimpath to remove
  411. references to local file system paths. The official rclone releases are
  412. built with both of these.
  413. go build -trimpath -ldflags -s -tags cmount
  414. If you want to customize the version string, as reported by the
  415. rclone version command, you can set one of the variables fs.Version,
  416. fs.VersionTag (to keep default suffix but customize the number), or
  417. fs.VersionSuffix (to keep default number but customize the suffix). This
  418. can be done from the build command, by adding to the -ldflags argument
  419. value as shown below.
  420. go build -trimpath -ldflags "-s -X github.com/rclone/rclone/fs.Version=v9.9.9-test" -tags cmount
  421. On Windows, the official executables also have the version information,
  422. as well as a file icon, embedded as binary resources. To get that with
  423. your own build you need to run the following command before the build
  424. command. It generates a Windows resource system object file, with
  425. extension .syso, e.g. resource_windows_amd64.syso, that will be
  426. automatically picked up by future build commands.
  427. go run bin/resource_windows.go
  428. The above command will generate a resource file containing version
  429. information based on the fs.Version variable in source at the time you
  430. run the command, which means if the value of this variable changes you
  431. need to re-run the command for it to be reflected in the version
  432. information. Also, if you override this version variable in the build
  433. command as described above, you need to do that also when generating the
  434. resource file, or else it will still use the value from the source.
  435. go run bin/resource_windows.go -version v9.9.9-test
  436. Instead of executing the go build command directly, you can run it via
  437. the Makefile. The default target changes the version suffix from "-DEV"
  438. to "-beta" followed by additional commit details, embeds version
  439. information binary resources on Windows, and copies the resulting rclone
  440. executable into your GOPATH bin folder ($(go env GOPATH)/bin, which
  441. corresponds to ~/go/bin/rclone by default).
  442. make
  443. To include mount command on macOS and Windows with Makefile build:
  444. make GOTAGS=cmount
  445. There are other make targets that can be used for more advanced builds,
  446. such as cross-compiling for all supported os/architectures, and
  447. packaging results into release artifacts. See Makefile and
  448. cross-compile.go for details.
  449. Another alternative method for source installation is to download the
  450. source, build and install rclone - all in one operation, as a regular Go
  451. package. The source will be stored it in the Go module cache, and the
  452. resulting executable will be in your GOPATH bin folder
  453. ($(go env GOPATH)/bin, which corresponds to ~/go/bin/rclone by default).
  454. go install github.com/rclone/rclone@latest
  455. Ansible installation
  456. This can be done with Stefan Weichinger's ansible role.
  457. Instructions
  458. 1. git clone https://github.com/stefangweichinger/ansible-rclone.git
  459. into your local roles-directory
  460. 2. add the role to the hosts you want rclone installed to:
  461. - hosts: rclone-hosts
  462. roles:
  463. - rclone
  464. Portable installation
  465. As mentioned above, rclone is single executable (rclone, or rclone.exe
  466. on Windows) that you can download as a zip archive and extract into a
  467. location of your choosing. When executing different commands, it may
  468. create files in different locations, such as a configuration file and
  469. various temporary files. By default the locations for these are
  470. according to your operating system, e.g. configuration file in your user
  471. profile directory and temporary files in the standard temporary
  472. directory, but you can customize all of them, e.g. to make a completely
  473. self-contained, portable installation.
  474. Run the config paths command to see the locations that rclone will use.
  475. To override them set the corresponding options (as command-line
  476. arguments, or as environment variables): - --config - --cache-dir -
  477. --temp-dir
  478. Autostart
  479. After installing and configuring rclone, as described above, you are
  480. ready to use rclone as an interactive command line utility. If your goal
  481. is to perform periodic operations, such as a regular sync, you will
  482. probably want to configure your rclone command in your operating
  483. system's scheduler. If you need to expose service-like features, such as
  484. remote control, GUI, serve or mount, you will often want an rclone
  485. command always running in the background, and configuring it to run in a
  486. service infrastructure may be a better option. Below are some
  487. alternatives on how to achieve this on different operating systems.
  488. NOTE: Before setting up autorun it is highly recommended that you have
  489. tested your command manually from a Command Prompt first.
  490. Autostart on Windows
  491. The most relevant alternatives for autostart on Windows are: - Run at
  492. user log on using the Startup folder - Run at user log on, at system
  493. startup or at schedule using Task Scheduler - Run at system startup
  494. using Windows service
  495. Running in background
  496. Rclone is a console application, so if not starting from an existing
  497. Command Prompt, e.g. when starting rclone.exe from a shortcut, it will
  498. open a Command Prompt window. When configuring rclone to run from task
  499. scheduler and windows service you are able to set it to run hidden in
  500. background. From rclone version 1.54 you can also make it run hidden
  501. from anywhere by adding option --no-console (it may still flash briefly
  502. when the program starts). Since rclone normally writes information and
  503. any error messages to the console, you must redirect this to a file to
  504. be able to see it. Rclone has a built-in option --log-file for that.
  505. Example command to run a sync in background:
  506. c:\rclone\rclone.exe sync c:\files remote:/files --no-console --log-file c:\rclone\logs\sync_files.txt
  507. User account
  508. As mentioned in the mount documentation, mounted drives created as
  509. Administrator are not visible to other accounts, not even the account
  510. that was elevated as Administrator. By running the mount command as the
  511. built-in SYSTEM user account, it will create drives accessible for
  512. everyone on the system. Both scheduled task and Windows service can be
  513. used to achieve this.
  514. NOTE: Remember that when rclone runs as the SYSTEM user, the user
  515. profile that it sees will not be yours. This means that if you normally
  516. run rclone with configuration file in the default location, to be able
  517. to use the same configuration when running as the system user you must
  518. explicitly tell rclone where to find it with the --config option, or
  519. else it will look in the system users profile path
  520. (C:\Windows\System32\config\systemprofile). To test your command
  521. manually from a Command Prompt, you can run it with the PsExec utility
  522. from Microsoft's Sysinternals suite, which takes option -s to execute
  523. commands as the SYSTEM user.
  524. Start from Startup folder
  525. To quickly execute an rclone command you can simply create a standard
  526. Windows Explorer shortcut for the complete rclone command you want to
  527. run. If you store this shortcut in the special "Startup" start-menu
  528. folder, Windows will automatically run it at login. To open this folder
  529. in Windows Explorer, enter path
  530. %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup, or
  531. C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp if you want
  532. the command to start for every user that logs in.
  533. This is the easiest approach to autostarting of rclone, but it offers no
  534. functionality to set it to run as different user, or to set conditions
  535. or actions on certain events. Setting up a scheduled task as described
  536. below will often give you better results.
  537. Start from Task Scheduler
  538. Task Scheduler is an administrative tool built into Windows, and it can
  539. be used to configure rclone to be started automatically in a highly
  540. configurable way, e.g. periodically on a schedule, on user log on, or at
  541. system startup. It can run be configured to run as the current user, or
  542. for a mount command that needs to be available to all users it can run
  543. as the SYSTEM user. For technical information, see
  544. https://docs.microsoft.com/windows/win32/taskschd/task-scheduler-start-page.
  545. Run as service
  546. For running rclone at system startup, you can create a Windows service
  547. that executes your rclone command, as an alternative to scheduled task
  548. configured to run at startup.
  549. Mount command built-in service integration
  550. For mount commands, rclone has a built-in Windows service integration
  551. via the third-party WinFsp library it uses. Registering as a regular
  552. Windows service easy, as you just have to execute the built-in
  553. PowerShell command New-Service (requires administrative privileges).
  554. Example of a PowerShell command that creates a Windows service for
  555. mounting some remote:/files as drive letter X:, for all users (service
  556. will be running as the local system account):
  557. New-Service -Name Rclone -BinaryPathName 'c:\rclone\rclone.exe mount remote:/files X: --config c:\rclone\config\rclone.conf --log-file c:\rclone\logs\mount.txt'
  558. The WinFsp service infrastructure supports incorporating services for
  559. file system implementations, such as rclone, into its own launcher
  560. service, as kind of "child services". This has the additional advantage
  561. that it also implements a network provider that integrates into Windows
  562. standard methods for managing network drives. This is currently not
  563. officially supported by Rclone, but with WinFsp version 2019.3 B2 /
  564. v1.5B2 or later it should be possible through path rewriting as
  565. described here.
  566. Third-party service integration
  567. To Windows service running any rclone command, the excellent third-party
  568. utility NSSM, the "Non-Sucking Service Manager", can be used. It
  569. includes some advanced features such as adjusting process priority,
  570. defining process environment variables, redirect to file anything
  571. written to stdout, and customized response to different exit codes, with
  572. a GUI to configure everything from (although it can also be used from
  573. command line ).
  574. There are also several other alternatives. To mention one more, WinSW,
  575. "Windows Service Wrapper", is worth checking out. It requires .NET
  576. Framework, but it is preinstalled on newer versions of Windows, and it
  577. also provides alternative standalone distributions which includes
  578. necessary runtime (.NET 5). WinSW is a command-line only utility, where
  579. you have to manually create an XML file with service configuration. This
  580. may be a drawback for some, but it can also be an advantage as it is
  581. easy to back up and reuse the configuration settings, without having go
  582. through manual steps in a GUI. One thing to note is that by default it
  583. does not restart the service on error, one have to explicit enable this
  584. in the configuration file (via the "onfailure" parameter).
  585. Autostart on Linux
  586. Start as a service
  587. To always run rclone in background, relevant for mount commands etc, you
  588. can use systemd to set up rclone as a system or user service. Running as
  589. a system service ensures that it is run at startup even if the user it
  590. is running as has no active session. Running rclone as a user service
  591. ensures that it only starts after the configured user has logged into
  592. the system.
  593. Run periodically from cron
  594. To run a periodic command, such as a copy/sync, you can set up a cron
  595. job.
  596. Usage
  597. Rclone is a command line program to manage files on cloud storage. After
  598. download and install, continue here to learn how to use it: Initial
  599. configuration, what the basic syntax looks like, describes the various
  600. subcommands, the various options, and more.
  601. Configure
  602. First, you'll need to configure rclone. As the object storage systems
  603. have quite complicated authentication these are kept in a config file.
  604. (See the --config entry for how to find the config file and choose its
  605. location.)
  606. The easiest way to make the config is to run rclone with the config
  607. option:
  608. rclone config
  609. See the following for detailed instructions for
  610. - 1Fichier
  611. - Akamai Netstorage
  612. - Alias
  613. - Amazon S3
  614. - Backblaze B2
  615. - Box
  616. - Chunker - transparently splits large files for other remotes
  617. - Citrix ShareFile
  618. - Compress
  619. - Combine
  620. - Crypt - to encrypt other remotes
  621. - DigitalOcean Spaces
  622. - Digi Storage
  623. - Dropbox
  624. - Enterprise File Fabric
  625. - FTP
  626. - Google Cloud Storage
  627. - Google Drive
  628. - Google Photos
  629. - Hasher - to handle checksums for other remotes
  630. - HDFS
  631. - HiDrive
  632. - HTTP
  633. - Internet Archive
  634. - Jottacloud
  635. - Koofr
  636. - Linkbox
  637. - Mail.ru Cloud
  638. - Mega
  639. - Memory
  640. - Microsoft Azure Blob Storage
  641. - Microsoft Azure Files Storage
  642. - Microsoft OneDrive
  643. - OpenStack Swift / Rackspace Cloudfiles / Blomp Cloud Storage /
  644. Memset Memstore
  645. - OpenDrive
  646. - Oracle Object Storage
  647. - Pcloud
  648. - PikPak
  649. - premiumize.me
  650. - put.io
  651. - Proton Drive
  652. - QingStor
  653. - Quatrix by Maytech
  654. - Seafile
  655. - SFTP
  656. - Sia
  657. - SMB
  658. - Storj
  659. - SugarSync
  660. - Union
  661. - Uptobox
  662. - WebDAV
  663. - Yandex Disk
  664. - Zoho WorkDrive
  665. - The local filesystem
  666. Basic syntax
  667. Rclone syncs a directory tree from one storage system to another.
  668. Its syntax is like this
  669. Syntax: [options] subcommand <parameters> <parameters...>
  670. Source and destination paths are specified by the name you gave the
  671. storage system in the config file then the sub path, e.g.
  672. "drive:myfolder" to look at "myfolder" in Google drive.
  673. You can define as many storage paths as you like in the config file.
  674. Please use the --interactive/-i flag while learning rclone to avoid
  675. accidental data loss.
  676. Subcommands
  677. rclone uses a system of subcommands. For example
  678. rclone ls remote:path # lists a remote
  679. rclone copy /local/path remote:path # copies /local/path to the remote
  680. rclone sync --interactive /local/path remote:path # syncs /local/path to the remote
  681. rclone config
  682. Enter an interactive configuration session.
  683. Synopsis
  684. Enter an interactive configuration session where you can setup new
  685. remotes and manage existing ones. You may also set or remove a password
  686. to protect your configuration.
  687. rclone config [flags]
  688. Options
  689. -h, --help help for config
  690. See the global flags page for global options not listed here.
  691. SEE ALSO
  692. - rclone - Show help for rclone commands, flags and backends.
  693. - rclone config create - Create a new remote with name, type and
  694. options.
  695. - rclone config delete - Delete an existing remote.
  696. - rclone config disconnect - Disconnects user from remote
  697. - rclone config dump - Dump the config file as JSON.
  698. - rclone config edit - Enter an interactive configuration session.
  699. - rclone config file - Show path of configuration file in use.
  700. - rclone config password - Update password in an existing remote.
  701. - rclone config paths - Show paths used for configuration, cache, temp
  702. etc.
  703. - rclone config providers - List in JSON format all the providers and
  704. options.
  705. - rclone config reconnect - Re-authenticates user with remote.
  706. - rclone config redacted - Print redacted (decrypted) config file, or
  707. the redacted config for a single remote.
  708. - rclone config show - Print (decrypted) config file, or the config
  709. for a single remote.
  710. - rclone config touch - Ensure configuration file exists.
  711. - rclone config update - Update options in an existing remote.
  712. - rclone config userinfo - Prints info about logged in user of remote.
  713. rclone copy
  714. Copy files from source to dest, skipping identical files.
  715. Synopsis
  716. Copy the source to the destination. Does not transfer files that are
  717. identical on source and destination, testing by size and modification
  718. time or MD5SUM. Doesn't delete files from the destination. If you want
  719. to also delete files from destination, to make it match source, use the
  720. sync command instead.
  721. Note that it is always the contents of the directory that is synced, not
  722. the directory itself. So when source:path is a directory, it's the
  723. contents of source:path that are copied, not the directory name and
  724. contents.
  725. To copy single files, use the copyto command instead.
  726. If dest:path doesn't exist, it is created and the source:path contents
  727. go there.
  728. For example
  729. rclone copy source:sourcepath dest:destpath
  730. Let's say there are two files in sourcepath
  731. sourcepath/one.txt
  732. sourcepath/two.txt
  733. This copies them to
  734. destpath/one.txt
  735. destpath/two.txt
  736. Not to
  737. destpath/sourcepath/one.txt
  738. destpath/sourcepath/two.txt
  739. If you are familiar with rsync, rclone always works as if you had
  740. written a trailing / - meaning "copy the contents of this directory".
  741. This applies to all commands and whether you are talking about the
  742. source or destination.
  743. See the --no-traverse option for controlling whether rclone lists the
  744. destination directory or not. Supplying this option when copying a small
  745. number of files into a large destination can speed transfers up greatly.
  746. For example, if you have many files in /path/to/src but only a few of
  747. them change every day, you can copy all the files which have changed
  748. recently very efficiently like this:
  749. rclone copy --max-age 24h --no-traverse /path/to/src remote:
  750. Rclone will sync the modification times of files and directories if the
  751. backend supports it. If metadata syncing is required then use the
  752. --metadata flag.
  753. Note that the modification time and metadata for the root directory will
  754. not be synced. See https://github.com/rclone/rclone/issues/7652 for more
  755. info.
  756. Note: Use the -P/--progress flag to view real-time transfer statistics.
  757. Note: Use the --dry-run or the --interactive/-i flag to test without
  758. copying anything.
  759. rclone copy source:path dest:path [flags]
  760. Options
  761. --create-empty-src-dirs Create empty source dirs on destination after copy
  762. -h, --help help for copy
  763. Copy Options
  764. Flags for anything which can Copy a file.
  765. --check-first Do all the checks before starting transfers
  766. -c, --checksum Check for changes with size & checksum (if available, or fallback to size only).
  767. --compare-dest stringArray Include additional comma separated server-side paths during comparison
  768. --copy-dest stringArray Implies --compare-dest but also copies files from paths into destination
  769. --cutoff-mode HARD|SOFT|CAUTIOUS Mode to stop transfers when reaching the max transfer limit HARD|SOFT|CAUTIOUS (default HARD)
  770. --ignore-case-sync Ignore case when synchronizing
  771. --ignore-checksum Skip post copy check of checksums
  772. --ignore-existing Skip all files that exist on destination
  773. --ignore-size Ignore size when skipping use modtime or checksum
  774. -I, --ignore-times Don't skip items that match size and time - transfer all unconditionally
  775. --immutable Do not modify files, fail if existing files have been modified
  776. --inplace Download directly to destination file instead of atomic download to temp/rename
  777. --max-backlog int Maximum number of objects in sync or check backlog (default 10000)
  778. --max-duration Duration Maximum duration rclone will transfer data for (default 0s)
  779. --max-transfer SizeSuffix Maximum size of data to transfer (default off)
  780. -M, --metadata If set, preserve metadata when copying objects
  781. --modify-window Duration Max time diff to be considered the same (default 1ns)
  782. --multi-thread-chunk-size SizeSuffix Chunk size for multi-thread downloads / uploads, if not set by filesystem (default 64Mi)
  783. --multi-thread-cutoff SizeSuffix Use multi-thread downloads for files above this size (default 256Mi)
  784. --multi-thread-streams int Number of streams to use for multi-thread downloads (default 4)
  785. --multi-thread-write-buffer-size SizeSuffix In memory buffer size for writing when in multi-thread mode (default 128Ki)
  786. --no-check-dest Don't check the destination, copy regardless
  787. --no-traverse Don't traverse destination file system on copy
  788. --no-update-dir-modtime Don't update directory modification times
  789. --no-update-modtime Don't update destination modtime if files identical
  790. --order-by string Instructions on how to order the transfers, e.g. 'size,descending'
  791. --partial-suffix string Add partial-suffix to temporary file name when --inplace is not used (default ".partial")
  792. --refresh-times Refresh the modtime of remote files
  793. --server-side-across-configs Allow server-side operations (e.g. copy) to work across different configs
  794. --size-only Skip based on size only, not modtime or checksum
  795. --streaming-upload-cutoff SizeSuffix Cutoff for switching to chunked upload if file size is unknown, upload starts after reaching cutoff or when file ends (default 100Ki)
  796. -u, --update Skip files that are newer on the destination
  797. Important Options
  798. Important flags useful for most commands.
  799. -n, --dry-run Do a trial run with no permanent changes
  800. -i, --interactive Enable interactive mode
  801. -v, --verbose count Print lots more stuff (repeat for more)
  802. Filter Options
  803. Flags for filtering directory listings.
  804. --delete-excluded Delete files on dest excluded from sync
  805. --exclude stringArray Exclude files matching pattern
  806. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  807. --exclude-if-present stringArray Exclude directories if filename is present
  808. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  809. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  810. -f, --filter stringArray Add a file filtering rule
  811. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  812. --ignore-case Ignore case in filters (case insensitive)
  813. --include stringArray Include files matching pattern
  814. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  815. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  816. --max-depth int If set limits the recursion depth to this (default -1)
  817. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  818. --metadata-exclude stringArray Exclude metadatas matching pattern
  819. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  820. --metadata-filter stringArray Add a metadata filtering rule
  821. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  822. --metadata-include stringArray Include metadatas matching pattern
  823. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  824. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  825. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  826. Listing Options
  827. Flags for listing directories.
  828. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  829. --fast-list Use recursive list if available; uses more memory but fewer transactions
  830. See the global flags page for global options not listed here.
  831. SEE ALSO
  832. - rclone - Show help for rclone commands, flags and backends.
  833. rclone sync
  834. Make source and dest identical, modifying destination only.
  835. Synopsis
  836. Sync the source to the destination, changing the destination only.
  837. Doesn't transfer files that are identical on source and destination,
  838. testing by size and modification time or MD5SUM. Destination is updated
  839. to match source, including deleting files if necessary (except duplicate
  840. objects, see below). If you don't want to delete files from destination,
  841. use the copy command instead.
  842. Important: Since this can cause data loss, test first with the --dry-run
  843. or the --interactive/-i flag.
  844. rclone sync --interactive SOURCE remote:DESTINATION
  845. Note that files in the destination won't be deleted if there were any
  846. errors at any point. Duplicate objects (files with the same name, on
  847. those providers that support it) are also not yet handled.
  848. It is always the contents of the directory that is synced, not the
  849. directory itself. So when source:path is a directory, it's the contents
  850. of source:path that are copied, not the directory name and contents. See
  851. extended explanation in the copy command if unsure.
  852. If dest:path doesn't exist, it is created and the source:path contents
  853. go there.
  854. It is not possible to sync overlapping remotes. However, you may exclude
  855. the destination from the sync with a filter rule or by putting an
  856. exclude-if-present file inside the destination directory and sync to a
  857. destination that is inside the source directory.
  858. Rclone will sync the modification times of files and directories if the
  859. backend supports it. If metadata syncing is required then use the
  860. --metadata flag.
  861. Note that the modification time and metadata for the root directory will
  862. not be synced. See https://github.com/rclone/rclone/issues/7652 for more
  863. info.
  864. Note: Use the -P/--progress flag to view real-time transfer statistics
  865. Note: Use the rclone dedupe command to deal with "Duplicate
  866. object/directory found in source/destination - ignoring" errors. See
  867. this forum post for more info.
  868. Logger Flags
  869. The --differ, --missing-on-dst, --missing-on-src, --match and --error
  870. flags write paths, one per line, to the file name (or stdout if it is -)
  871. supplied. What they write is described in the help below. For example
  872. --differ will write all paths which are present on both the source and
  873. destination but different.
  874. The --combined flag will write a file (or stdout) which contains all
  875. file paths with a symbol and then a space and then the path to tell you
  876. what happened to it. These are reminiscent of diff files.
  877. - = path means path was found in source and destination and was
  878. identical
  879. - `- path` means path was missing on the source, so only in the
  880. destination
  881. - `+ path` means path was missing on the destination, so only in the
  882. source
  883. - `* path` means path was present in source and destination but
  884. different.
  885. - ! path means there was an error reading or hashing the source or
  886. dest.
  887. The --dest-after flag writes a list file using the same format flags as
  888. lsf (including customizable options for hash, modtime, etc.)
  889. Conceptually it is similar to rsync's --itemize-changes, but not
  890. identical -- it should output an accurate list of what will be on the
  891. destination after the sync.
  892. Note that these logger flags have a few limitations, and certain
  893. scenarios are not currently supported:
  894. - --max-duration / CutoffModeHard
  895. - --compare-dest / --copy-dest
  896. - server-side moves of an entire dir at once
  897. - High-level retries, because there would be duplicates (use
  898. --retries 1 to disable)
  899. - Possibly some unusual error scenarios
  900. Note also that each file is logged during the sync, as opposed to after,
  901. so it is most useful as a predictor of what SHOULD happen to each file
  902. (which may or may not match what actually DID.)
  903. rclone sync source:path dest:path [flags]
  904. Options
  905. --absolute Put a leading / in front of path names
  906. --combined string Make a combined report of changes to this file
  907. --create-empty-src-dirs Create empty source dirs on destination after sync
  908. --csv Output in CSV format
  909. --dest-after string Report all files that exist on the dest post-sync
  910. --differ string Report all non-matching files to this file
  911. -d, --dir-slash Append a slash to directory names (default true)
  912. --dirs-only Only list directories
  913. --error string Report all files with errors (hashing or reading) to this file
  914. --files-only Only list files (default true)
  915. -F, --format string Output format - see lsf help for details (default "p")
  916. --hash h Use this hash when h is used in the format MD5|SHA-1|DropboxHash (default "md5")
  917. -h, --help help for sync
  918. --match string Report all matching files to this file
  919. --missing-on-dst string Report all files missing from the destination to this file
  920. --missing-on-src string Report all files missing from the source to this file
  921. -s, --separator string Separator for the items in the format (default ";")
  922. -t, --timeformat string Specify a custom time format, or 'max' for max precision supported by remote (default: 2006-01-02 15:04:05)
  923. Copy Options
  924. Flags for anything which can Copy a file.
  925. --check-first Do all the checks before starting transfers
  926. -c, --checksum Check for changes with size & checksum (if available, or fallback to size only).
  927. --compare-dest stringArray Include additional comma separated server-side paths during comparison
  928. --copy-dest stringArray Implies --compare-dest but also copies files from paths into destination
  929. --cutoff-mode HARD|SOFT|CAUTIOUS Mode to stop transfers when reaching the max transfer limit HARD|SOFT|CAUTIOUS (default HARD)
  930. --ignore-case-sync Ignore case when synchronizing
  931. --ignore-checksum Skip post copy check of checksums
  932. --ignore-existing Skip all files that exist on destination
  933. --ignore-size Ignore size when skipping use modtime or checksum
  934. -I, --ignore-times Don't skip items that match size and time - transfer all unconditionally
  935. --immutable Do not modify files, fail if existing files have been modified
  936. --inplace Download directly to destination file instead of atomic download to temp/rename
  937. --max-backlog int Maximum number of objects in sync or check backlog (default 10000)
  938. --max-duration Duration Maximum duration rclone will transfer data for (default 0s)
  939. --max-transfer SizeSuffix Maximum size of data to transfer (default off)
  940. -M, --metadata If set, preserve metadata when copying objects
  941. --modify-window Duration Max time diff to be considered the same (default 1ns)
  942. --multi-thread-chunk-size SizeSuffix Chunk size for multi-thread downloads / uploads, if not set by filesystem (default 64Mi)
  943. --multi-thread-cutoff SizeSuffix Use multi-thread downloads for files above this size (default 256Mi)
  944. --multi-thread-streams int Number of streams to use for multi-thread downloads (default 4)
  945. --multi-thread-write-buffer-size SizeSuffix In memory buffer size for writing when in multi-thread mode (default 128Ki)
  946. --no-check-dest Don't check the destination, copy regardless
  947. --no-traverse Don't traverse destination file system on copy
  948. --no-update-dir-modtime Don't update directory modification times
  949. --no-update-modtime Don't update destination modtime if files identical
  950. --order-by string Instructions on how to order the transfers, e.g. 'size,descending'
  951. --partial-suffix string Add partial-suffix to temporary file name when --inplace is not used (default ".partial")
  952. --refresh-times Refresh the modtime of remote files
  953. --server-side-across-configs Allow server-side operations (e.g. copy) to work across different configs
  954. --size-only Skip based on size only, not modtime or checksum
  955. --streaming-upload-cutoff SizeSuffix Cutoff for switching to chunked upload if file size is unknown, upload starts after reaching cutoff or when file ends (default 100Ki)
  956. -u, --update Skip files that are newer on the destination
  957. Sync Options
  958. Flags just used for rclone sync.
  959. --backup-dir string Make backups into hierarchy based in DIR
  960. --delete-after When synchronizing, delete files on destination after transferring (default)
  961. --delete-before When synchronizing, delete files on destination before transferring
  962. --delete-during When synchronizing, delete files during transfer
  963. --fix-case Force rename of case insensitive dest to match source
  964. --ignore-errors Delete even if there are I/O errors
  965. --max-delete int When synchronizing, limit the number of deletes (default -1)
  966. --max-delete-size SizeSuffix When synchronizing, limit the total size of deletes (default off)
  967. --suffix string Suffix to add to changed files
  968. --suffix-keep-extension Preserve the extension when using --suffix
  969. --track-renames When synchronizing, track file renames and do a server-side move if possible
  970. --track-renames-strategy string Strategies to use when synchronizing using track-renames hash|modtime|leaf (default "hash")
  971. Important Options
  972. Important flags useful for most commands.
  973. -n, --dry-run Do a trial run with no permanent changes
  974. -i, --interactive Enable interactive mode
  975. -v, --verbose count Print lots more stuff (repeat for more)
  976. Filter Options
  977. Flags for filtering directory listings.
  978. --delete-excluded Delete files on dest excluded from sync
  979. --exclude stringArray Exclude files matching pattern
  980. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  981. --exclude-if-present stringArray Exclude directories if filename is present
  982. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  983. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  984. -f, --filter stringArray Add a file filtering rule
  985. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  986. --ignore-case Ignore case in filters (case insensitive)
  987. --include stringArray Include files matching pattern
  988. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  989. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  990. --max-depth int If set limits the recursion depth to this (default -1)
  991. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  992. --metadata-exclude stringArray Exclude metadatas matching pattern
  993. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  994. --metadata-filter stringArray Add a metadata filtering rule
  995. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  996. --metadata-include stringArray Include metadatas matching pattern
  997. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  998. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  999. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  1000. Listing Options
  1001. Flags for listing directories.
  1002. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  1003. --fast-list Use recursive list if available; uses more memory but fewer transactions
  1004. See the global flags page for global options not listed here.
  1005. SEE ALSO
  1006. - rclone - Show help for rclone commands, flags and backends.
  1007. rclone move
  1008. Move files from source to dest.
  1009. Synopsis
  1010. Moves the contents of the source directory to the destination directory.
  1011. Rclone will error if the source and destination overlap and the remote
  1012. does not support a server-side directory move operation.
  1013. To move single files, use the moveto command instead.
  1014. If no filters are in use and if possible this will server-side move
  1015. source:path into dest:path. After this source:path will no longer exist.
  1016. Otherwise for each file in source:path selected by the filters (if any)
  1017. this will move it into dest:path. If possible a server-side move will be
  1018. used, otherwise it will copy it (server-side if possible) into dest:path
  1019. then delete the original (if no errors on copy) in source:path.
  1020. If you want to delete empty source directories after move, use the
  1021. --delete-empty-src-dirs flag.
  1022. See the --no-traverse option for controlling whether rclone lists the
  1023. destination directory or not. Supplying this option when moving a small
  1024. number of files into a large destination can speed transfers up greatly.
  1025. Rclone will sync the modification times of files and directories if the
  1026. backend supports it. If metadata syncing is required then use the
  1027. --metadata flag.
  1028. Note that the modification time and metadata for the root directory will
  1029. not be synced. See https://github.com/rclone/rclone/issues/7652 for more
  1030. info.
  1031. Important: Since this can cause data loss, test first with the --dry-run
  1032. or the --interactive/-i flag.
  1033. Note: Use the -P/--progress flag to view real-time transfer statistics.
  1034. rclone move source:path dest:path [flags]
  1035. Options
  1036. --create-empty-src-dirs Create empty source dirs on destination after move
  1037. --delete-empty-src-dirs Delete empty source dirs after move
  1038. -h, --help help for move
  1039. Copy Options
  1040. Flags for anything which can Copy a file.
  1041. --check-first Do all the checks before starting transfers
  1042. -c, --checksum Check for changes with size & checksum (if available, or fallback to size only).
  1043. --compare-dest stringArray Include additional comma separated server-side paths during comparison
  1044. --copy-dest stringArray Implies --compare-dest but also copies files from paths into destination
  1045. --cutoff-mode HARD|SOFT|CAUTIOUS Mode to stop transfers when reaching the max transfer limit HARD|SOFT|CAUTIOUS (default HARD)
  1046. --ignore-case-sync Ignore case when synchronizing
  1047. --ignore-checksum Skip post copy check of checksums
  1048. --ignore-existing Skip all files that exist on destination
  1049. --ignore-size Ignore size when skipping use modtime or checksum
  1050. -I, --ignore-times Don't skip items that match size and time - transfer all unconditionally
  1051. --immutable Do not modify files, fail if existing files have been modified
  1052. --inplace Download directly to destination file instead of atomic download to temp/rename
  1053. --max-backlog int Maximum number of objects in sync or check backlog (default 10000)
  1054. --max-duration Duration Maximum duration rclone will transfer data for (default 0s)
  1055. --max-transfer SizeSuffix Maximum size of data to transfer (default off)
  1056. -M, --metadata If set, preserve metadata when copying objects
  1057. --modify-window Duration Max time diff to be considered the same (default 1ns)
  1058. --multi-thread-chunk-size SizeSuffix Chunk size for multi-thread downloads / uploads, if not set by filesystem (default 64Mi)
  1059. --multi-thread-cutoff SizeSuffix Use multi-thread downloads for files above this size (default 256Mi)
  1060. --multi-thread-streams int Number of streams to use for multi-thread downloads (default 4)
  1061. --multi-thread-write-buffer-size SizeSuffix In memory buffer size for writing when in multi-thread mode (default 128Ki)
  1062. --no-check-dest Don't check the destination, copy regardless
  1063. --no-traverse Don't traverse destination file system on copy
  1064. --no-update-dir-modtime Don't update directory modification times
  1065. --no-update-modtime Don't update destination modtime if files identical
  1066. --order-by string Instructions on how to order the transfers, e.g. 'size,descending'
  1067. --partial-suffix string Add partial-suffix to temporary file name when --inplace is not used (default ".partial")
  1068. --refresh-times Refresh the modtime of remote files
  1069. --server-side-across-configs Allow server-side operations (e.g. copy) to work across different configs
  1070. --size-only Skip based on size only, not modtime or checksum
  1071. --streaming-upload-cutoff SizeSuffix Cutoff for switching to chunked upload if file size is unknown, upload starts after reaching cutoff or when file ends (default 100Ki)
  1072. -u, --update Skip files that are newer on the destination
  1073. Important Options
  1074. Important flags useful for most commands.
  1075. -n, --dry-run Do a trial run with no permanent changes
  1076. -i, --interactive Enable interactive mode
  1077. -v, --verbose count Print lots more stuff (repeat for more)
  1078. Filter Options
  1079. Flags for filtering directory listings.
  1080. --delete-excluded Delete files on dest excluded from sync
  1081. --exclude stringArray Exclude files matching pattern
  1082. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  1083. --exclude-if-present stringArray Exclude directories if filename is present
  1084. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  1085. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  1086. -f, --filter stringArray Add a file filtering rule
  1087. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  1088. --ignore-case Ignore case in filters (case insensitive)
  1089. --include stringArray Include files matching pattern
  1090. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  1091. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  1092. --max-depth int If set limits the recursion depth to this (default -1)
  1093. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  1094. --metadata-exclude stringArray Exclude metadatas matching pattern
  1095. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  1096. --metadata-filter stringArray Add a metadata filtering rule
  1097. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  1098. --metadata-include stringArray Include metadatas matching pattern
  1099. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  1100. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  1101. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  1102. Listing Options
  1103. Flags for listing directories.
  1104. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  1105. --fast-list Use recursive list if available; uses more memory but fewer transactions
  1106. See the global flags page for global options not listed here.
  1107. SEE ALSO
  1108. - rclone - Show help for rclone commands, flags and backends.
  1109. rclone delete
  1110. Remove the files in path.
  1111. Synopsis
  1112. Remove the files in path. Unlike purge it obeys include/exclude filters
  1113. so can be used to selectively delete files.
  1114. rclone delete only deletes files but leaves the directory structure
  1115. alone. If you want to delete a directory and all of its contents use the
  1116. purge command.
  1117. If you supply the --rmdirs flag, it will remove all empty directories
  1118. along with it. You can also use the separate command rmdir or rmdirs to
  1119. delete empty directories only.
  1120. For example, to delete all files bigger than 100 MiB, you may first want
  1121. to check what would be deleted (use either):
  1122. rclone --min-size 100M lsl remote:path
  1123. rclone --dry-run --min-size 100M delete remote:path
  1124. Then proceed with the actual delete:
  1125. rclone --min-size 100M delete remote:path
  1126. That reads "delete everything with a minimum size of 100 MiB", hence
  1127. delete all files bigger than 100 MiB.
  1128. Important: Since this can cause data loss, test first with the --dry-run
  1129. or the --interactive/-i flag.
  1130. rclone delete remote:path [flags]
  1131. Options
  1132. -h, --help help for delete
  1133. --rmdirs rmdirs removes empty directories but leaves root intact
  1134. Important Options
  1135. Important flags useful for most commands.
  1136. -n, --dry-run Do a trial run with no permanent changes
  1137. -i, --interactive Enable interactive mode
  1138. -v, --verbose count Print lots more stuff (repeat for more)
  1139. Filter Options
  1140. Flags for filtering directory listings.
  1141. --delete-excluded Delete files on dest excluded from sync
  1142. --exclude stringArray Exclude files matching pattern
  1143. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  1144. --exclude-if-present stringArray Exclude directories if filename is present
  1145. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  1146. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  1147. -f, --filter stringArray Add a file filtering rule
  1148. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  1149. --ignore-case Ignore case in filters (case insensitive)
  1150. --include stringArray Include files matching pattern
  1151. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  1152. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  1153. --max-depth int If set limits the recursion depth to this (default -1)
  1154. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  1155. --metadata-exclude stringArray Exclude metadatas matching pattern
  1156. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  1157. --metadata-filter stringArray Add a metadata filtering rule
  1158. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  1159. --metadata-include stringArray Include metadatas matching pattern
  1160. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  1161. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  1162. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  1163. Listing Options
  1164. Flags for listing directories.
  1165. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  1166. --fast-list Use recursive list if available; uses more memory but fewer transactions
  1167. See the global flags page for global options not listed here.
  1168. SEE ALSO
  1169. - rclone - Show help for rclone commands, flags and backends.
  1170. rclone purge
  1171. Remove the path and all of its contents.
  1172. Synopsis
  1173. Remove the path and all of its contents. Note that this does not obey
  1174. include/exclude filters - everything will be removed. Use the delete
  1175. command if you want to selectively delete files. To delete empty
  1176. directories only, use command rmdir or rmdirs.
  1177. Important: Since this can cause data loss, test first with the --dry-run
  1178. or the --interactive/-i flag.
  1179. rclone purge remote:path [flags]
  1180. Options
  1181. -h, --help help for purge
  1182. Important Options
  1183. Important flags useful for most commands.
  1184. -n, --dry-run Do a trial run with no permanent changes
  1185. -i, --interactive Enable interactive mode
  1186. -v, --verbose count Print lots more stuff (repeat for more)
  1187. See the global flags page for global options not listed here.
  1188. SEE ALSO
  1189. - rclone - Show help for rclone commands, flags and backends.
  1190. rclone mkdir
  1191. Make the path if it doesn't already exist.
  1192. rclone mkdir remote:path [flags]
  1193. Options
  1194. -h, --help help for mkdir
  1195. Important Options
  1196. Important flags useful for most commands.
  1197. -n, --dry-run Do a trial run with no permanent changes
  1198. -i, --interactive Enable interactive mode
  1199. -v, --verbose count Print lots more stuff (repeat for more)
  1200. See the global flags page for global options not listed here.
  1201. SEE ALSO
  1202. - rclone - Show help for rclone commands, flags and backends.
  1203. rclone rmdir
  1204. Remove the empty directory at path.
  1205. Synopsis
  1206. This removes empty directory given by path. Will not remove the path if
  1207. it has any objects in it, not even empty subdirectories. Use command
  1208. rmdirs (or delete with option --rmdirs) to do that.
  1209. To delete a path and any objects in it, use purge command.
  1210. rclone rmdir remote:path [flags]
  1211. Options
  1212. -h, --help help for rmdir
  1213. Important Options
  1214. Important flags useful for most commands.
  1215. -n, --dry-run Do a trial run with no permanent changes
  1216. -i, --interactive Enable interactive mode
  1217. -v, --verbose count Print lots more stuff (repeat for more)
  1218. See the global flags page for global options not listed here.
  1219. SEE ALSO
  1220. - rclone - Show help for rclone commands, flags and backends.
  1221. rclone check
  1222. Checks the files in the source and destination match.
  1223. Synopsis
  1224. Checks the files in the source and destination match. It compares sizes
  1225. and hashes (MD5 or SHA1) and logs a report of files that don't match. It
  1226. doesn't alter the source or destination.
  1227. For the crypt remote there is a dedicated command, cryptcheck, that are
  1228. able to check the checksums of the encrypted files.
  1229. If you supply the --size-only flag, it will only compare the sizes not
  1230. the hashes as well. Use this for a quick check.
  1231. If you supply the --download flag, it will download the data from both
  1232. remotes and check them against each other on the fly. This can be useful
  1233. for remotes that don't support hashes or if you really want to check all
  1234. the data.
  1235. If you supply the --checkfile HASH flag with a valid hash name, the
  1236. source:path must point to a text file in the SUM format.
  1237. If you supply the --one-way flag, it will only check that files in the
  1238. source match the files in the destination, not the other way around.
  1239. This means that extra files in the destination that are not in the
  1240. source will not be detected.
  1241. The --differ, --missing-on-dst, --missing-on-src, --match and --error
  1242. flags write paths, one per line, to the file name (or stdout if it is -)
  1243. supplied. What they write is described in the help below. For example
  1244. --differ will write all paths which are present on both the source and
  1245. destination but different.
  1246. The --combined flag will write a file (or stdout) which contains all
  1247. file paths with a symbol and then a space and then the path to tell you
  1248. what happened to it. These are reminiscent of diff files.
  1249. - = path means path was found in source and destination and was
  1250. identical
  1251. - `- path` means path was missing on the source, so only in the
  1252. destination
  1253. - `+ path` means path was missing on the destination, so only in the
  1254. source
  1255. - `* path` means path was present in source and destination but
  1256. different.
  1257. - ! path means there was an error reading or hashing the source or
  1258. dest.
  1259. The default number of parallel checks is 8. See the --checkers=N option
  1260. for more information.
  1261. rclone check source:path dest:path [flags]
  1262. Options
  1263. -C, --checkfile string Treat source:path as a SUM file with hashes of given type
  1264. --combined string Make a combined report of changes to this file
  1265. --differ string Report all non-matching files to this file
  1266. --download Check by downloading rather than with hash
  1267. --error string Report all files with errors (hashing or reading) to this file
  1268. -h, --help help for check
  1269. --match string Report all matching files to this file
  1270. --missing-on-dst string Report all files missing from the destination to this file
  1271. --missing-on-src string Report all files missing from the source to this file
  1272. --one-way Check one way only, source files must exist on remote
  1273. Check Options
  1274. Flags used for rclone check.
  1275. --max-backlog int Maximum number of objects in sync or check backlog (default 10000)
  1276. Filter Options
  1277. Flags for filtering directory listings.
  1278. --delete-excluded Delete files on dest excluded from sync
  1279. --exclude stringArray Exclude files matching pattern
  1280. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  1281. --exclude-if-present stringArray Exclude directories if filename is present
  1282. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  1283. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  1284. -f, --filter stringArray Add a file filtering rule
  1285. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  1286. --ignore-case Ignore case in filters (case insensitive)
  1287. --include stringArray Include files matching pattern
  1288. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  1289. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  1290. --max-depth int If set limits the recursion depth to this (default -1)
  1291. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  1292. --metadata-exclude stringArray Exclude metadatas matching pattern
  1293. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  1294. --metadata-filter stringArray Add a metadata filtering rule
  1295. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  1296. --metadata-include stringArray Include metadatas matching pattern
  1297. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  1298. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  1299. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  1300. Listing Options
  1301. Flags for listing directories.
  1302. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  1303. --fast-list Use recursive list if available; uses more memory but fewer transactions
  1304. See the global flags page for global options not listed here.
  1305. SEE ALSO
  1306. - rclone - Show help for rclone commands, flags and backends.
  1307. rclone ls
  1308. List the objects in the path with size and path.
  1309. Synopsis
  1310. Lists the objects in the source path to standard output in a human
  1311. readable format with size and path. Recurses by default.
  1312. Eg
  1313. $ rclone ls swift:bucket
  1314. 60295 bevajer5jef
  1315. 90613 canole
  1316. 94467 diwogej7
  1317. 37600 fubuwic
  1318. Any of the filtering options can be applied to this command.
  1319. There are several related list commands
  1320. - ls to list size and path of objects only
  1321. - lsl to list modification time, size and path of objects only
  1322. - lsd to list directories only
  1323. - lsf to list objects and directories in easy to parse format
  1324. - lsjson to list objects and directories in JSON format
  1325. ls,lsl,lsd are designed to be human-readable. lsf is designed to be
  1326. human and machine-readable. lsjson is designed to be machine-readable.
  1327. Note that ls and lsl recurse by default - use --max-depth 1 to stop the
  1328. recursion.
  1329. The other list commands lsd,lsf,lsjson do not recurse by default - use
  1330. -R to make them recurse.
  1331. Listing a nonexistent directory will produce an error except for remotes
  1332. which can't have empty directories (e.g. s3, swift, or gcs - the
  1333. bucket-based remotes).
  1334. rclone ls remote:path [flags]
  1335. Options
  1336. -h, --help help for ls
  1337. Filter Options
  1338. Flags for filtering directory listings.
  1339. --delete-excluded Delete files on dest excluded from sync
  1340. --exclude stringArray Exclude files matching pattern
  1341. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  1342. --exclude-if-present stringArray Exclude directories if filename is present
  1343. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  1344. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  1345. -f, --filter stringArray Add a file filtering rule
  1346. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  1347. --ignore-case Ignore case in filters (case insensitive)
  1348. --include stringArray Include files matching pattern
  1349. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  1350. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  1351. --max-depth int If set limits the recursion depth to this (default -1)
  1352. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  1353. --metadata-exclude stringArray Exclude metadatas matching pattern
  1354. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  1355. --metadata-filter stringArray Add a metadata filtering rule
  1356. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  1357. --metadata-include stringArray Include metadatas matching pattern
  1358. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  1359. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  1360. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  1361. Listing Options
  1362. Flags for listing directories.
  1363. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  1364. --fast-list Use recursive list if available; uses more memory but fewer transactions
  1365. See the global flags page for global options not listed here.
  1366. SEE ALSO
  1367. - rclone - Show help for rclone commands, flags and backends.
  1368. rclone lsd
  1369. List all directories/containers/buckets in the path.
  1370. Synopsis
  1371. Lists the directories in the source path to standard output. Does not
  1372. recurse by default. Use the -R flag to recurse.
  1373. This command lists the total size of the directory (if known, -1 if
  1374. not), the modification time (if known, the current time if not), the
  1375. number of objects in the directory (if known, -1 if not) and the name of
  1376. the directory, Eg
  1377. $ rclone lsd swift:
  1378. 494000 2018-04-26 08:43:20 10000 10000files
  1379. 65 2018-04-26 08:43:20 1 1File
  1380. Or
  1381. $ rclone lsd drive:test
  1382. -1 2016-10-17 17:41:53 -1 1000files
  1383. -1 2017-01-03 14:40:54 -1 2500files
  1384. -1 2017-07-08 14:39:28 -1 4000files
  1385. If you just want the directory names use rclone lsf --dirs-only.
  1386. Any of the filtering options can be applied to this command.
  1387. There are several related list commands
  1388. - ls to list size and path of objects only
  1389. - lsl to list modification time, size and path of objects only
  1390. - lsd to list directories only
  1391. - lsf to list objects and directories in easy to parse format
  1392. - lsjson to list objects and directories in JSON format
  1393. ls,lsl,lsd are designed to be human-readable. lsf is designed to be
  1394. human and machine-readable. lsjson is designed to be machine-readable.
  1395. Note that ls and lsl recurse by default - use --max-depth 1 to stop the
  1396. recursion.
  1397. The other list commands lsd,lsf,lsjson do not recurse by default - use
  1398. -R to make them recurse.
  1399. Listing a nonexistent directory will produce an error except for remotes
  1400. which can't have empty directories (e.g. s3, swift, or gcs - the
  1401. bucket-based remotes).
  1402. rclone lsd remote:path [flags]
  1403. Options
  1404. -h, --help help for lsd
  1405. -R, --recursive Recurse into the listing
  1406. Filter Options
  1407. Flags for filtering directory listings.
  1408. --delete-excluded Delete files on dest excluded from sync
  1409. --exclude stringArray Exclude files matching pattern
  1410. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  1411. --exclude-if-present stringArray Exclude directories if filename is present
  1412. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  1413. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  1414. -f, --filter stringArray Add a file filtering rule
  1415. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  1416. --ignore-case Ignore case in filters (case insensitive)
  1417. --include stringArray Include files matching pattern
  1418. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  1419. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  1420. --max-depth int If set limits the recursion depth to this (default -1)
  1421. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  1422. --metadata-exclude stringArray Exclude metadatas matching pattern
  1423. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  1424. --metadata-filter stringArray Add a metadata filtering rule
  1425. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  1426. --metadata-include stringArray Include metadatas matching pattern
  1427. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  1428. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  1429. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  1430. Listing Options
  1431. Flags for listing directories.
  1432. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  1433. --fast-list Use recursive list if available; uses more memory but fewer transactions
  1434. See the global flags page for global options not listed here.
  1435. SEE ALSO
  1436. - rclone - Show help for rclone commands, flags and backends.
  1437. rclone lsl
  1438. List the objects in path with modification time, size and path.
  1439. Synopsis
  1440. Lists the objects in the source path to standard output in a human
  1441. readable format with modification time, size and path. Recurses by
  1442. default.
  1443. Eg
  1444. $ rclone lsl swift:bucket
  1445. 60295 2016-06-25 18:55:41.062626927 bevajer5jef
  1446. 90613 2016-06-25 18:55:43.302607074 canole
  1447. 94467 2016-06-25 18:55:43.046609333 diwogej7
  1448. 37600 2016-06-25 18:55:40.814629136 fubuwic
  1449. Any of the filtering options can be applied to this command.
  1450. There are several related list commands
  1451. - ls to list size and path of objects only
  1452. - lsl to list modification time, size and path of objects only
  1453. - lsd to list directories only
  1454. - lsf to list objects and directories in easy to parse format
  1455. - lsjson to list objects and directories in JSON format
  1456. ls,lsl,lsd are designed to be human-readable. lsf is designed to be
  1457. human and machine-readable. lsjson is designed to be machine-readable.
  1458. Note that ls and lsl recurse by default - use --max-depth 1 to stop the
  1459. recursion.
  1460. The other list commands lsd,lsf,lsjson do not recurse by default - use
  1461. -R to make them recurse.
  1462. Listing a nonexistent directory will produce an error except for remotes
  1463. which can't have empty directories (e.g. s3, swift, or gcs - the
  1464. bucket-based remotes).
  1465. rclone lsl remote:path [flags]
  1466. Options
  1467. -h, --help help for lsl
  1468. Filter Options
  1469. Flags for filtering directory listings.
  1470. --delete-excluded Delete files on dest excluded from sync
  1471. --exclude stringArray Exclude files matching pattern
  1472. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  1473. --exclude-if-present stringArray Exclude directories if filename is present
  1474. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  1475. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  1476. -f, --filter stringArray Add a file filtering rule
  1477. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  1478. --ignore-case Ignore case in filters (case insensitive)
  1479. --include stringArray Include files matching pattern
  1480. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  1481. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  1482. --max-depth int If set limits the recursion depth to this (default -1)
  1483. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  1484. --metadata-exclude stringArray Exclude metadatas matching pattern
  1485. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  1486. --metadata-filter stringArray Add a metadata filtering rule
  1487. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  1488. --metadata-include stringArray Include metadatas matching pattern
  1489. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  1490. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  1491. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  1492. Listing Options
  1493. Flags for listing directories.
  1494. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  1495. --fast-list Use recursive list if available; uses more memory but fewer transactions
  1496. See the global flags page for global options not listed here.
  1497. SEE ALSO
  1498. - rclone - Show help for rclone commands, flags and backends.
  1499. rclone md5sum
  1500. Produces an md5sum file for all the objects in the path.
  1501. Synopsis
  1502. Produces an md5sum file for all the objects in the path. This is in the
  1503. same format as the standard md5sum tool produces.
  1504. By default, the hash is requested from the remote. If MD5 is not
  1505. supported by the remote, no hash will be returned. With the download
  1506. flag, the file will be downloaded from the remote and hashed locally
  1507. enabling MD5 for any remote.
  1508. For other algorithms, see the hashsum command. Running
  1509. rclone md5sum remote:path is equivalent to running
  1510. rclone hashsum MD5 remote:path.
  1511. This command can also hash data received on standard input (stdin), by
  1512. not passing a remote:path, or by passing a hyphen as remote:path when
  1513. there is data to read (if not, the hyphen will be treated literally, as
  1514. a relative path).
  1515. rclone md5sum remote:path [flags]
  1516. Options
  1517. --base64 Output base64 encoded hashsum
  1518. -C, --checkfile string Validate hashes against a given SUM file instead of printing them
  1519. --download Download the file and hash it locally; if this flag is not specified, the hash is requested from the remote
  1520. -h, --help help for md5sum
  1521. --output-file string Output hashsums to a file rather than the terminal
  1522. Filter Options
  1523. Flags for filtering directory listings.
  1524. --delete-excluded Delete files on dest excluded from sync
  1525. --exclude stringArray Exclude files matching pattern
  1526. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  1527. --exclude-if-present stringArray Exclude directories if filename is present
  1528. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  1529. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  1530. -f, --filter stringArray Add a file filtering rule
  1531. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  1532. --ignore-case Ignore case in filters (case insensitive)
  1533. --include stringArray Include files matching pattern
  1534. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  1535. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  1536. --max-depth int If set limits the recursion depth to this (default -1)
  1537. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  1538. --metadata-exclude stringArray Exclude metadatas matching pattern
  1539. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  1540. --metadata-filter stringArray Add a metadata filtering rule
  1541. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  1542. --metadata-include stringArray Include metadatas matching pattern
  1543. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  1544. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  1545. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  1546. Listing Options
  1547. Flags for listing directories.
  1548. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  1549. --fast-list Use recursive list if available; uses more memory but fewer transactions
  1550. See the global flags page for global options not listed here.
  1551. SEE ALSO
  1552. - rclone - Show help for rclone commands, flags and backends.
  1553. rclone sha1sum
  1554. Produces an sha1sum file for all the objects in the path.
  1555. Synopsis
  1556. Produces an sha1sum file for all the objects in the path. This is in the
  1557. same format as the standard sha1sum tool produces.
  1558. By default, the hash is requested from the remote. If SHA-1 is not
  1559. supported by the remote, no hash will be returned. With the download
  1560. flag, the file will be downloaded from the remote and hashed locally
  1561. enabling SHA-1 for any remote.
  1562. For other algorithms, see the hashsum command. Running
  1563. rclone sha1sum remote:path is equivalent to running
  1564. rclone hashsum SHA1 remote:path.
  1565. This command can also hash data received on standard input (stdin), by
  1566. not passing a remote:path, or by passing a hyphen as remote:path when
  1567. there is data to read (if not, the hyphen will be treated literally, as
  1568. a relative path).
  1569. This command can also hash data received on STDIN, if not passing a
  1570. remote:path.
  1571. rclone sha1sum remote:path [flags]
  1572. Options
  1573. --base64 Output base64 encoded hashsum
  1574. -C, --checkfile string Validate hashes against a given SUM file instead of printing them
  1575. --download Download the file and hash it locally; if this flag is not specified, the hash is requested from the remote
  1576. -h, --help help for sha1sum
  1577. --output-file string Output hashsums to a file rather than the terminal
  1578. Filter Options
  1579. Flags for filtering directory listings.
  1580. --delete-excluded Delete files on dest excluded from sync
  1581. --exclude stringArray Exclude files matching pattern
  1582. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  1583. --exclude-if-present stringArray Exclude directories if filename is present
  1584. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  1585. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  1586. -f, --filter stringArray Add a file filtering rule
  1587. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  1588. --ignore-case Ignore case in filters (case insensitive)
  1589. --include stringArray Include files matching pattern
  1590. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  1591. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  1592. --max-depth int If set limits the recursion depth to this (default -1)
  1593. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  1594. --metadata-exclude stringArray Exclude metadatas matching pattern
  1595. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  1596. --metadata-filter stringArray Add a metadata filtering rule
  1597. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  1598. --metadata-include stringArray Include metadatas matching pattern
  1599. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  1600. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  1601. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  1602. Listing Options
  1603. Flags for listing directories.
  1604. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  1605. --fast-list Use recursive list if available; uses more memory but fewer transactions
  1606. See the global flags page for global options not listed here.
  1607. SEE ALSO
  1608. - rclone - Show help for rclone commands, flags and backends.
  1609. rclone size
  1610. Prints the total size and number of objects in remote:path.
  1611. Synopsis
  1612. Counts objects in the path and calculates the total size. Prints the
  1613. result to standard output.
  1614. By default the output is in human-readable format, but shows values in
  1615. both human-readable format as well as the raw numbers (global option
  1616. --human-readable is not considered). Use option --json to format output
  1617. as JSON instead.
  1618. Recurses by default, use --max-depth 1 to stop the recursion.
  1619. Some backends do not always provide file sizes, see for example Google
  1620. Photos and Google Docs. Rclone will then show a notice in the log
  1621. indicating how many such files were encountered, and count them in as
  1622. empty files in the output of the size command.
  1623. rclone size remote:path [flags]
  1624. Options
  1625. -h, --help help for size
  1626. --json Format output as JSON
  1627. Filter Options
  1628. Flags for filtering directory listings.
  1629. --delete-excluded Delete files on dest excluded from sync
  1630. --exclude stringArray Exclude files matching pattern
  1631. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  1632. --exclude-if-present stringArray Exclude directories if filename is present
  1633. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  1634. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  1635. -f, --filter stringArray Add a file filtering rule
  1636. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  1637. --ignore-case Ignore case in filters (case insensitive)
  1638. --include stringArray Include files matching pattern
  1639. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  1640. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  1641. --max-depth int If set limits the recursion depth to this (default -1)
  1642. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  1643. --metadata-exclude stringArray Exclude metadatas matching pattern
  1644. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  1645. --metadata-filter stringArray Add a metadata filtering rule
  1646. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  1647. --metadata-include stringArray Include metadatas matching pattern
  1648. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  1649. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  1650. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  1651. Listing Options
  1652. Flags for listing directories.
  1653. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  1654. --fast-list Use recursive list if available; uses more memory but fewer transactions
  1655. See the global flags page for global options not listed here.
  1656. SEE ALSO
  1657. - rclone - Show help for rclone commands, flags and backends.
  1658. rclone version
  1659. Show the version number.
  1660. Synopsis
  1661. Show the rclone version number, the go version, the build target OS and
  1662. architecture, the runtime OS and kernel version and bitness, build tags
  1663. and the type of executable (static or dynamic).
  1664. For example:
  1665. $ rclone version
  1666. rclone v1.55.0
  1667. - os/version: ubuntu 18.04 (64 bit)
  1668. - os/kernel: 4.15.0-136-generic (x86_64)
  1669. - os/type: linux
  1670. - os/arch: amd64
  1671. - go/version: go1.16
  1672. - go/linking: static
  1673. - go/tags: none
  1674. Note: before rclone version 1.55 the os/type and os/arch lines were
  1675. merged, and the "go/version" line was tagged as "go version".
  1676. If you supply the --check flag, then it will do an online check to
  1677. compare your version with the latest release and the latest beta.
  1678. $ rclone version --check
  1679. yours: 1.42.0.6
  1680. latest: 1.42 (released 2018-06-16)
  1681. beta: 1.42.0.5 (released 2018-06-17)
  1682. Or
  1683. $ rclone version --check
  1684. yours: 1.41
  1685. latest: 1.42 (released 2018-06-16)
  1686. upgrade: https://downloads.rclone.org/v1.42
  1687. beta: 1.42.0.5 (released 2018-06-17)
  1688. upgrade: https://beta.rclone.org/v1.42-005-g56e1e820
  1689. rclone version [flags]
  1690. Options
  1691. --check Check for new version
  1692. -h, --help help for version
  1693. See the global flags page for global options not listed here.
  1694. SEE ALSO
  1695. - rclone - Show help for rclone commands, flags and backends.
  1696. rclone cleanup
  1697. Clean up the remote if possible.
  1698. Synopsis
  1699. Clean up the remote if possible. Empty the trash or delete old file
  1700. versions. Not supported by all remotes.
  1701. rclone cleanup remote:path [flags]
  1702. Options
  1703. -h, --help help for cleanup
  1704. Important Options
  1705. Important flags useful for most commands.
  1706. -n, --dry-run Do a trial run with no permanent changes
  1707. -i, --interactive Enable interactive mode
  1708. -v, --verbose count Print lots more stuff (repeat for more)
  1709. See the global flags page for global options not listed here.
  1710. SEE ALSO
  1711. - rclone - Show help for rclone commands, flags and backends.
  1712. rclone dedupe
  1713. Interactively find duplicate filenames and delete/rename them.
  1714. Synopsis
  1715. By default dedupe interactively finds files with duplicate names and
  1716. offers to delete all but one or rename them to be different. This is
  1717. known as deduping by name.
  1718. Deduping by name is only useful with a small group of backends (e.g.
  1719. Google Drive, Opendrive) that can have duplicate file names. It can be
  1720. run on wrapping backends (e.g. crypt) if they wrap a backend which
  1721. supports duplicate file names.
  1722. However if --by-hash is passed in then dedupe will find files with
  1723. duplicate hashes instead which will work on any backend which supports
  1724. at least one hash. This can be used to find files with duplicate
  1725. content. This is known as deduping by hash.
  1726. If deduping by name, first rclone will merge directories with the same
  1727. name. It will do this iteratively until all the identically named
  1728. directories have been merged.
  1729. Next, if deduping by name, for every group of duplicate file names /
  1730. hashes, it will delete all but one identical file it finds without
  1731. confirmation. This means that for most duplicated files the dedupe
  1732. command will not be interactive.
  1733. dedupe considers files to be identical if they have the same file path
  1734. and the same hash. If the backend does not support hashes (e.g. crypt
  1735. wrapping Google Drive) then they will never be found to be identical. If
  1736. you use the --size-only flag then files will be considered identical if
  1737. they have the same size (any hash will be ignored). This can be useful
  1738. on crypt backends which do not support hashes.
  1739. Next rclone will resolve the remaining duplicates. Exactly which action
  1740. is taken depends on the dedupe mode. By default, rclone will
  1741. interactively query the user for each one.
  1742. Important: Since this can cause data loss, test first with the --dry-run
  1743. or the --interactive/-i flag.
  1744. Here is an example run.
  1745. Before - with duplicates
  1746. $ rclone lsl drive:dupes
  1747. 6048320 2016-03-05 16:23:16.798000000 one.txt
  1748. 6048320 2016-03-05 16:23:11.775000000 one.txt
  1749. 564374 2016-03-05 16:23:06.731000000 one.txt
  1750. 6048320 2016-03-05 16:18:26.092000000 one.txt
  1751. 6048320 2016-03-05 16:22:46.185000000 two.txt
  1752. 1744073 2016-03-05 16:22:38.104000000 two.txt
  1753. 564374 2016-03-05 16:22:52.118000000 two.txt
  1754. Now the dedupe session
  1755. $ rclone dedupe drive:dupes
  1756. 2016/03/05 16:24:37 Google drive root 'dupes': Looking for duplicates using interactive mode.
  1757. one.txt: Found 4 files with duplicate names
  1758. one.txt: Deleting 2/3 identical duplicates (MD5 "1eedaa9fe86fd4b8632e2ac549403b36")
  1759. one.txt: 2 duplicates remain
  1760. 1: 6048320 bytes, 2016-03-05 16:23:16.798000000, MD5 1eedaa9fe86fd4b8632e2ac549403b36
  1761. 2: 564374 bytes, 2016-03-05 16:23:06.731000000, MD5 7594e7dc9fc28f727c42ee3e0749de81
  1762. s) Skip and do nothing
  1763. k) Keep just one (choose which in next step)
  1764. r) Rename all to be different (by changing file.jpg to file-1.jpg)
  1765. s/k/r> k
  1766. Enter the number of the file to keep> 1
  1767. one.txt: Deleted 1 extra copies
  1768. two.txt: Found 3 files with duplicate names
  1769. two.txt: 3 duplicates remain
  1770. 1: 564374 bytes, 2016-03-05 16:22:52.118000000, MD5 7594e7dc9fc28f727c42ee3e0749de81
  1771. 2: 6048320 bytes, 2016-03-05 16:22:46.185000000, MD5 1eedaa9fe86fd4b8632e2ac549403b36
  1772. 3: 1744073 bytes, 2016-03-05 16:22:38.104000000, MD5 851957f7fb6f0bc4ce76be966d336802
  1773. s) Skip and do nothing
  1774. k) Keep just one (choose which in next step)
  1775. r) Rename all to be different (by changing file.jpg to file-1.jpg)
  1776. s/k/r> r
  1777. two-1.txt: renamed from: two.txt
  1778. two-2.txt: renamed from: two.txt
  1779. two-3.txt: renamed from: two.txt
  1780. The result being
  1781. $ rclone lsl drive:dupes
  1782. 6048320 2016-03-05 16:23:16.798000000 one.txt
  1783. 564374 2016-03-05 16:22:52.118000000 two-1.txt
  1784. 6048320 2016-03-05 16:22:46.185000000 two-2.txt
  1785. 1744073 2016-03-05 16:22:38.104000000 two-3.txt
  1786. Dedupe can be run non interactively using the --dedupe-mode flag or by
  1787. using an extra parameter with the same value
  1788. - --dedupe-mode interactive - interactive as above.
  1789. - --dedupe-mode skip - removes identical files then skips anything
  1790. left.
  1791. - --dedupe-mode first - removes identical files then keeps the first
  1792. one.
  1793. - --dedupe-mode newest - removes identical files then keeps the newest
  1794. one.
  1795. - --dedupe-mode oldest - removes identical files then keeps the oldest
  1796. one.
  1797. - --dedupe-mode largest - removes identical files then keeps the
  1798. largest one.
  1799. - --dedupe-mode smallest - removes identical files then keeps the
  1800. smallest one.
  1801. - --dedupe-mode rename - removes identical files then renames the rest
  1802. to be different.
  1803. - --dedupe-mode list - lists duplicate dirs and files only and changes
  1804. nothing.
  1805. For example, to rename all the identically named photos in your Google
  1806. Photos directory, do
  1807. rclone dedupe --dedupe-mode rename "drive:Google Photos"
  1808. Or
  1809. rclone dedupe rename "drive:Google Photos"
  1810. rclone dedupe [mode] remote:path [flags]
  1811. Options
  1812. --by-hash Find identical hashes rather than names
  1813. --dedupe-mode string Dedupe mode interactive|skip|first|newest|oldest|largest|smallest|rename (default "interactive")
  1814. -h, --help help for dedupe
  1815. Important Options
  1816. Important flags useful for most commands.
  1817. -n, --dry-run Do a trial run with no permanent changes
  1818. -i, --interactive Enable interactive mode
  1819. -v, --verbose count Print lots more stuff (repeat for more)
  1820. See the global flags page for global options not listed here.
  1821. SEE ALSO
  1822. - rclone - Show help for rclone commands, flags and backends.
  1823. rclone about
  1824. Get quota information from the remote.
  1825. Synopsis
  1826. rclone about prints quota information about a remote to standard output.
  1827. The output is typically used, free, quota and trash contents.
  1828. E.g. Typical output from rclone about remote: is:
  1829. Total: 17 GiB
  1830. Used: 7.444 GiB
  1831. Free: 1.315 GiB
  1832. Trashed: 100.000 MiB
  1833. Other: 8.241 GiB
  1834. Where the fields are:
  1835. - Total: Total size available.
  1836. - Used: Total size used.
  1837. - Free: Total space available to this user.
  1838. - Trashed: Total space used by trash.
  1839. - Other: Total amount in other storage (e.g. Gmail, Google Photos).
  1840. - Objects: Total number of objects in the storage.
  1841. All sizes are in number of bytes.
  1842. Applying a --full flag to the command prints the bytes in full, e.g.
  1843. Total: 18253611008
  1844. Used: 7993453766
  1845. Free: 1411001220
  1846. Trashed: 104857602
  1847. Other: 8849156022
  1848. A --json flag generates conveniently machine-readable output, e.g.
  1849. {
  1850. "total": 18253611008,
  1851. "used": 7993453766,
  1852. "trashed": 104857602,
  1853. "other": 8849156022,
  1854. "free": 1411001220
  1855. }
  1856. Not all backends print all fields. Information is not included if it is
  1857. not provided by a backend. Where the value is unlimited it is omitted.
  1858. Some backends does not support the rclone about command at all, see
  1859. complete list in documentation.
  1860. rclone about remote: [flags]
  1861. Options
  1862. --full Full numbers instead of human-readable
  1863. -h, --help help for about
  1864. --json Format output as JSON
  1865. See the global flags page for global options not listed here.
  1866. SEE ALSO
  1867. - rclone - Show help for rclone commands, flags and backends.
  1868. rclone authorize
  1869. Remote authorization.
  1870. Synopsis
  1871. Remote authorization. Used to authorize a remote or headless rclone from
  1872. a machine with a browser - use as instructed by rclone config.
  1873. Use --auth-no-open-browser to prevent rclone to open auth link in
  1874. default browser automatically.
  1875. Use --template to generate HTML output via a custom Go template. If a
  1876. blank string is provided as an argument to this flag, the default
  1877. template is used.
  1878. rclone authorize [flags]
  1879. Options
  1880. --auth-no-open-browser Do not automatically open auth link in default browser
  1881. -h, --help help for authorize
  1882. --template string The path to a custom Go template for generating HTML responses
  1883. See the global flags page for global options not listed here.
  1884. SEE ALSO
  1885. - rclone - Show help for rclone commands, flags and backends.
  1886. rclone backend
  1887. Run a backend-specific command.
  1888. Synopsis
  1889. This runs a backend-specific command. The commands themselves (except
  1890. for "help" and "features") are defined by the backends and you should
  1891. see the backend docs for definitions.
  1892. You can discover what commands a backend implements by using
  1893. rclone backend help remote:
  1894. rclone backend help <backendname>
  1895. You can also discover information about the backend using (see
  1896. operations/fsinfo in the remote control docs for more info).
  1897. rclone backend features remote:
  1898. Pass options to the backend command with -o. This should be key=value or
  1899. key, e.g.:
  1900. rclone backend stats remote:path stats -o format=json -o long
  1901. Pass arguments to the backend by placing them on the end of the line
  1902. rclone backend cleanup remote:path file1 file2 file3
  1903. Note to run these commands on a running backend then see backend/command
  1904. in the rc docs.
  1905. rclone backend <command> remote:path [opts] <args> [flags]
  1906. Options
  1907. -h, --help help for backend
  1908. --json Always output in JSON format
  1909. -o, --option stringArray Option in the form name=value or name
  1910. Important Options
  1911. Important flags useful for most commands.
  1912. -n, --dry-run Do a trial run with no permanent changes
  1913. -i, --interactive Enable interactive mode
  1914. -v, --verbose count Print lots more stuff (repeat for more)
  1915. See the global flags page for global options not listed here.
  1916. SEE ALSO
  1917. - rclone - Show help for rclone commands, flags and backends.
  1918. rclone bisync
  1919. Perform bidirectional synchronization between two paths.
  1920. Synopsis
  1921. Perform bidirectional synchronization between two paths.
  1922. Bisync provides a bidirectional cloud sync solution in rclone. It
  1923. retains the Path1 and Path2 filesystem listings from the prior run. On
  1924. each successive run it will: - list files on Path1 and Path2, and check
  1925. for changes on each side. Changes include New, Newer, Older, and Deleted
  1926. files. - Propagate changes on Path1 to Path2, and vice-versa.
  1927. Bisync is in beta and is considered an advanced command, so use with
  1928. care. Make sure you have read and understood the entire manual
  1929. (especially the Limitations section) before using, or data loss can
  1930. result. Questions can be asked in the Rclone Forum.
  1931. See full bisync description for details.
  1932. rclone bisync remote1:path1 remote2:path2 [flags]
  1933. Options
  1934. --backup-dir1 string --backup-dir for Path1. Must be a non-overlapping path on the same remote.
  1935. --backup-dir2 string --backup-dir for Path2. Must be a non-overlapping path on the same remote.
  1936. --check-access Ensure expected RCLONE_TEST files are found on both Path1 and Path2 filesystems, else abort.
  1937. --check-filename string Filename for --check-access (default: RCLONE_TEST)
  1938. --check-sync string Controls comparison of final listings: true|false|only (default: true) (default "true")
  1939. --compare string Comma-separated list of bisync-specific compare options ex. 'size,modtime,checksum' (default: 'size,modtime')
  1940. --conflict-loser ConflictLoserAction Action to take on the loser of a sync conflict (when there is a winner) or on both files (when there is no winner): , num, pathname, delete (default: num)
  1941. --conflict-resolve string Automatically resolve conflicts by preferring the version that is: none, path1, path2, newer, older, larger, smaller (default: none) (default "none")
  1942. --conflict-suffix string Suffix to use when renaming a --conflict-loser. Can be either one string or two comma-separated strings to assign different suffixes to Path1/Path2. (default: 'conflict')
  1943. --create-empty-src-dirs Sync creation and deletion of empty directories. (Not compatible with --remove-empty-dirs)
  1944. --download-hash Compute hash by downloading when otherwise unavailable. (warning: may be slow and use lots of data!)
  1945. --filters-file string Read filtering patterns from a file
  1946. --force Bypass --max-delete safety check and run the sync. Consider using with --verbose
  1947. -h, --help help for bisync
  1948. --ignore-listing-checksum Do not use checksums for listings (add --ignore-checksum to additionally skip post-copy checksum checks)
  1949. --max-lock Duration Consider lock files older than this to be expired (default: 0 (never expire)) (minimum: 2m) (default 0s)
  1950. --no-cleanup Retain working files (useful for troubleshooting and testing).
  1951. --no-slow-hash Ignore listing checksums only on backends where they are slow
  1952. --recover Automatically recover from interruptions without requiring --resync.
  1953. --remove-empty-dirs Remove ALL empty directories at the final cleanup step.
  1954. --resilient Allow future runs to retry after certain less-serious errors, instead of requiring --resync. Use at your own risk!
  1955. -1, --resync Performs the resync run. Equivalent to --resync-mode path1. Consider using --verbose or --dry-run first.
  1956. --resync-mode string During resync, prefer the version that is: path1, path2, newer, older, larger, smaller (default: path1 if --resync, otherwise none for no resync.) (default "none")
  1957. --slow-hash-sync-only Ignore slow checksums for listings and deltas, but still consider them during sync calls.
  1958. --workdir string Use custom working dir - useful for testing. (default: {WORKDIR})
  1959. Copy Options
  1960. Flags for anything which can Copy a file.
  1961. --check-first Do all the checks before starting transfers
  1962. -c, --checksum Check for changes with size & checksum (if available, or fallback to size only).
  1963. --compare-dest stringArray Include additional comma separated server-side paths during comparison
  1964. --copy-dest stringArray Implies --compare-dest but also copies files from paths into destination
  1965. --cutoff-mode HARD|SOFT|CAUTIOUS Mode to stop transfers when reaching the max transfer limit HARD|SOFT|CAUTIOUS (default HARD)
  1966. --ignore-case-sync Ignore case when synchronizing
  1967. --ignore-checksum Skip post copy check of checksums
  1968. --ignore-existing Skip all files that exist on destination
  1969. --ignore-size Ignore size when skipping use modtime or checksum
  1970. -I, --ignore-times Don't skip items that match size and time - transfer all unconditionally
  1971. --immutable Do not modify files, fail if existing files have been modified
  1972. --inplace Download directly to destination file instead of atomic download to temp/rename
  1973. --max-backlog int Maximum number of objects in sync or check backlog (default 10000)
  1974. --max-duration Duration Maximum duration rclone will transfer data for (default 0s)
  1975. --max-transfer SizeSuffix Maximum size of data to transfer (default off)
  1976. -M, --metadata If set, preserve metadata when copying objects
  1977. --modify-window Duration Max time diff to be considered the same (default 1ns)
  1978. --multi-thread-chunk-size SizeSuffix Chunk size for multi-thread downloads / uploads, if not set by filesystem (default 64Mi)
  1979. --multi-thread-cutoff SizeSuffix Use multi-thread downloads for files above this size (default 256Mi)
  1980. --multi-thread-streams int Number of streams to use for multi-thread downloads (default 4)
  1981. --multi-thread-write-buffer-size SizeSuffix In memory buffer size for writing when in multi-thread mode (default 128Ki)
  1982. --no-check-dest Don't check the destination, copy regardless
  1983. --no-traverse Don't traverse destination file system on copy
  1984. --no-update-dir-modtime Don't update directory modification times
  1985. --no-update-modtime Don't update destination modtime if files identical
  1986. --order-by string Instructions on how to order the transfers, e.g. 'size,descending'
  1987. --partial-suffix string Add partial-suffix to temporary file name when --inplace is not used (default ".partial")
  1988. --refresh-times Refresh the modtime of remote files
  1989. --server-side-across-configs Allow server-side operations (e.g. copy) to work across different configs
  1990. --size-only Skip based on size only, not modtime or checksum
  1991. --streaming-upload-cutoff SizeSuffix Cutoff for switching to chunked upload if file size is unknown, upload starts after reaching cutoff or when file ends (default 100Ki)
  1992. -u, --update Skip files that are newer on the destination
  1993. Important Options
  1994. Important flags useful for most commands.
  1995. -n, --dry-run Do a trial run with no permanent changes
  1996. -i, --interactive Enable interactive mode
  1997. -v, --verbose count Print lots more stuff (repeat for more)
  1998. Filter Options
  1999. Flags for filtering directory listings.
  2000. --delete-excluded Delete files on dest excluded from sync
  2001. --exclude stringArray Exclude files matching pattern
  2002. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  2003. --exclude-if-present stringArray Exclude directories if filename is present
  2004. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  2005. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  2006. -f, --filter stringArray Add a file filtering rule
  2007. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  2008. --ignore-case Ignore case in filters (case insensitive)
  2009. --include stringArray Include files matching pattern
  2010. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  2011. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  2012. --max-depth int If set limits the recursion depth to this (default -1)
  2013. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  2014. --metadata-exclude stringArray Exclude metadatas matching pattern
  2015. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  2016. --metadata-filter stringArray Add a metadata filtering rule
  2017. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  2018. --metadata-include stringArray Include metadatas matching pattern
  2019. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  2020. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  2021. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  2022. See the global flags page for global options not listed here.
  2023. SEE ALSO
  2024. - rclone - Show help for rclone commands, flags and backends.
  2025. rclone cat
  2026. Concatenates any files and sends them to stdout.
  2027. Synopsis
  2028. rclone cat sends any files to standard output.
  2029. You can use it like this to output a single file
  2030. rclone cat remote:path/to/file
  2031. Or like this to output any file in dir or its subdirectories.
  2032. rclone cat remote:path/to/dir
  2033. Or like this to output any .txt files in dir or its subdirectories.
  2034. rclone --include "*.txt" cat remote:path/to/dir
  2035. Use the --head flag to print characters only at the start, --tail for
  2036. the end and --offset and --count to print a section in the middle. Note
  2037. that if offset is negative it will count from the end, so
  2038. --offset -1 --count 1 is equivalent to --tail 1.
  2039. Use the --separator flag to print a separator value between files. Be
  2040. sure to shell-escape special characters. For example, to print a newline
  2041. between files, use:
  2042. - bash:
  2043. rclone --include "*.txt" --separator $'\n' cat remote:path/to/dir
  2044. - powershell:
  2045. rclone --include "*.txt" --separator "`n" cat remote:path/to/dir
  2046. rclone cat remote:path [flags]
  2047. Options
  2048. --count int Only print N characters (default -1)
  2049. --discard Discard the output instead of printing
  2050. --head int Only print the first N characters
  2051. -h, --help help for cat
  2052. --offset int Start printing at offset N (or from end if -ve)
  2053. --separator string Separator to use between objects when printing multiple files
  2054. --tail int Only print the last N characters
  2055. Filter Options
  2056. Flags for filtering directory listings.
  2057. --delete-excluded Delete files on dest excluded from sync
  2058. --exclude stringArray Exclude files matching pattern
  2059. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  2060. --exclude-if-present stringArray Exclude directories if filename is present
  2061. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  2062. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  2063. -f, --filter stringArray Add a file filtering rule
  2064. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  2065. --ignore-case Ignore case in filters (case insensitive)
  2066. --include stringArray Include files matching pattern
  2067. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  2068. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  2069. --max-depth int If set limits the recursion depth to this (default -1)
  2070. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  2071. --metadata-exclude stringArray Exclude metadatas matching pattern
  2072. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  2073. --metadata-filter stringArray Add a metadata filtering rule
  2074. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  2075. --metadata-include stringArray Include metadatas matching pattern
  2076. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  2077. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  2078. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  2079. Listing Options
  2080. Flags for listing directories.
  2081. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  2082. --fast-list Use recursive list if available; uses more memory but fewer transactions
  2083. See the global flags page for global options not listed here.
  2084. SEE ALSO
  2085. - rclone - Show help for rclone commands, flags and backends.
  2086. rclone checksum
  2087. Checks the files in the destination against a SUM file.
  2088. Synopsis
  2089. Checks that hashsums of destination files match the SUM file. It
  2090. compares hashes (MD5, SHA1, etc) and logs a report of files which don't
  2091. match. It doesn't alter the file system.
  2092. The sumfile is treated as the source and the dst:path is treated as the
  2093. destination for the purposes of the output.
  2094. If you supply the --download flag, it will download the data from the
  2095. remote and calculate the content hash on the fly. This can be useful for
  2096. remotes that don't support hashes or if you really want to check all the
  2097. data.
  2098. Note that hash values in the SUM file are treated as case insensitive.
  2099. If you supply the --one-way flag, it will only check that files in the
  2100. source match the files in the destination, not the other way around.
  2101. This means that extra files in the destination that are not in the
  2102. source will not be detected.
  2103. The --differ, --missing-on-dst, --missing-on-src, --match and --error
  2104. flags write paths, one per line, to the file name (or stdout if it is -)
  2105. supplied. What they write is described in the help below. For example
  2106. --differ will write all paths which are present on both the source and
  2107. destination but different.
  2108. The --combined flag will write a file (or stdout) which contains all
  2109. file paths with a symbol and then a space and then the path to tell you
  2110. what happened to it. These are reminiscent of diff files.
  2111. - = path means path was found in source and destination and was
  2112. identical
  2113. - `- path` means path was missing on the source, so only in the
  2114. destination
  2115. - `+ path` means path was missing on the destination, so only in the
  2116. source
  2117. - `* path` means path was present in source and destination but
  2118. different.
  2119. - ! path means there was an error reading or hashing the source or
  2120. dest.
  2121. The default number of parallel checks is 8. See the --checkers=N option
  2122. for more information.
  2123. rclone checksum <hash> sumfile dst:path [flags]
  2124. Options
  2125. --combined string Make a combined report of changes to this file
  2126. --differ string Report all non-matching files to this file
  2127. --download Check by hashing the contents
  2128. --error string Report all files with errors (hashing or reading) to this file
  2129. -h, --help help for checksum
  2130. --match string Report all matching files to this file
  2131. --missing-on-dst string Report all files missing from the destination to this file
  2132. --missing-on-src string Report all files missing from the source to this file
  2133. --one-way Check one way only, source files must exist on remote
  2134. Filter Options
  2135. Flags for filtering directory listings.
  2136. --delete-excluded Delete files on dest excluded from sync
  2137. --exclude stringArray Exclude files matching pattern
  2138. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  2139. --exclude-if-present stringArray Exclude directories if filename is present
  2140. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  2141. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  2142. -f, --filter stringArray Add a file filtering rule
  2143. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  2144. --ignore-case Ignore case in filters (case insensitive)
  2145. --include stringArray Include files matching pattern
  2146. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  2147. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  2148. --max-depth int If set limits the recursion depth to this (default -1)
  2149. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  2150. --metadata-exclude stringArray Exclude metadatas matching pattern
  2151. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  2152. --metadata-filter stringArray Add a metadata filtering rule
  2153. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  2154. --metadata-include stringArray Include metadatas matching pattern
  2155. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  2156. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  2157. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  2158. Listing Options
  2159. Flags for listing directories.
  2160. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  2161. --fast-list Use recursive list if available; uses more memory but fewer transactions
  2162. See the global flags page for global options not listed here.
  2163. SEE ALSO
  2164. - rclone - Show help for rclone commands, flags and backends.
  2165. rclone completion
  2166. Output completion script for a given shell.
  2167. Synopsis
  2168. Generates a shell completion script for rclone. Run with --help to list
  2169. the supported shells.
  2170. Options
  2171. -h, --help help for completion
  2172. See the global flags page for global options not listed here.
  2173. SEE ALSO
  2174. - rclone - Show help for rclone commands, flags and backends.
  2175. - rclone completion bash - Output bash completion script for rclone.
  2176. - rclone completion fish - Output fish completion script for rclone.
  2177. - rclone completion powershell - Output powershell completion script
  2178. for rclone.
  2179. - rclone completion zsh - Output zsh completion script for rclone.
  2180. rclone completion bash
  2181. Output bash completion script for rclone.
  2182. Synopsis
  2183. Generates a bash shell autocompletion script for rclone.
  2184. This writes to /etc/bash_completion.d/rclone by default so will probably
  2185. need to be run with sudo or as root, e.g.
  2186. sudo rclone genautocomplete bash
  2187. Logout and login again to use the autocompletion scripts, or source them
  2188. directly
  2189. . /etc/bash_completion
  2190. If you supply a command line argument the script will be written there.
  2191. If output_file is "-", then the output will be written to stdout.
  2192. rclone completion bash [output_file] [flags]
  2193. Options
  2194. -h, --help help for bash
  2195. See the global flags page for global options not listed here.
  2196. SEE ALSO
  2197. - rclone completion - Output completion script for a given shell.
  2198. rclone completion fish
  2199. Output fish completion script for rclone.
  2200. Synopsis
  2201. Generates a fish autocompletion script for rclone.
  2202. This writes to /etc/fish/completions/rclone.fish by default so will
  2203. probably need to be run with sudo or as root, e.g.
  2204. sudo rclone genautocomplete fish
  2205. Logout and login again to use the autocompletion scripts, or source them
  2206. directly
  2207. . /etc/fish/completions/rclone.fish
  2208. If you supply a command line argument the script will be written there.
  2209. If output_file is "-", then the output will be written to stdout.
  2210. rclone completion fish [output_file] [flags]
  2211. Options
  2212. -h, --help help for fish
  2213. See the global flags page for global options not listed here.
  2214. SEE ALSO
  2215. - rclone completion - Output completion script for a given shell.
  2216. rclone completion powershell
  2217. Output powershell completion script for rclone.
  2218. Synopsis
  2219. Generate the autocompletion script for powershell.
  2220. To load completions in your current shell session:
  2221. rclone completion powershell | Out-String | Invoke-Expression
  2222. To load completions for every new session, add the output of the above
  2223. command to your powershell profile.
  2224. If output_file is "-" or missing, then the output will be written to
  2225. stdout.
  2226. rclone completion powershell [output_file] [flags]
  2227. Options
  2228. -h, --help help for powershell
  2229. See the global flags page for global options not listed here.
  2230. SEE ALSO
  2231. - rclone completion - Output completion script for a given shell.
  2232. rclone completion zsh
  2233. Output zsh completion script for rclone.
  2234. Synopsis
  2235. Generates a zsh autocompletion script for rclone.
  2236. This writes to /usr/share/zsh/vendor-completions/_rclone by default so
  2237. will probably need to be run with sudo or as root, e.g.
  2238. sudo rclone genautocomplete zsh
  2239. Logout and login again to use the autocompletion scripts, or source them
  2240. directly
  2241. autoload -U compinit && compinit
  2242. If you supply a command line argument the script will be written there.
  2243. If output_file is "-", then the output will be written to stdout.
  2244. rclone completion zsh [output_file] [flags]
  2245. Options
  2246. -h, --help help for zsh
  2247. See the global flags page for global options not listed here.
  2248. SEE ALSO
  2249. - rclone completion - Output completion script for a given shell.
  2250. rclone config create
  2251. Create a new remote with name, type and options.
  2252. Synopsis
  2253. Create a new remote of name with type and options. The options should be
  2254. passed in pairs of key value or as key=value.
  2255. For example, to make a swift remote of name myremote using auto config
  2256. you would do:
  2257. rclone config create myremote swift env_auth true
  2258. rclone config create myremote swift env_auth=true
  2259. So for example if you wanted to configure a Google Drive remote but
  2260. using remote authorization you would do this:
  2261. rclone config create mydrive drive config_is_local=false
  2262. Note that if the config process would normally ask a question the
  2263. default is taken (unless --non-interactive is used). Each time that
  2264. happens rclone will print or DEBUG a message saying how to affect the
  2265. value taken.
  2266. If any of the parameters passed is a password field, then rclone will
  2267. automatically obscure them if they aren't already obscured before
  2268. putting them in the config file.
  2269. NB If the password parameter is 22 characters or longer and consists
  2270. only of base64 characters then rclone can get confused about whether the
  2271. password is already obscured or not and put unobscured passwords into
  2272. the config file. If you want to be 100% certain that the passwords get
  2273. obscured then use the --obscure flag, or if you are 100% certain you are
  2274. already passing obscured passwords then use --no-obscure. You can also
  2275. set obscured passwords using the rclone config password command.
  2276. The flag --non-interactive is for use by applications that wish to
  2277. configure rclone themselves, rather than using rclone's text based
  2278. configuration questions. If this flag is set, and rclone needs to ask
  2279. the user a question, a JSON blob will be returned with the question in
  2280. it.
  2281. This will look something like (some irrelevant detail removed):
  2282. {
  2283. "State": "*oauth-islocal,teamdrive,,",
  2284. "Option": {
  2285. "Name": "config_is_local",
  2286. "Help": "Use web browser to automatically authenticate rclone with remote?\n * Say Y if the machine running rclone has a web browser you can use\n * Say N if running rclone on a (remote) machine without web browser access\nIf not sure try Y. If Y failed, try N.\n",
  2287. "Default": true,
  2288. "Examples": [
  2289. {
  2290. "Value": "true",
  2291. "Help": "Yes"
  2292. },
  2293. {
  2294. "Value": "false",
  2295. "Help": "No"
  2296. }
  2297. ],
  2298. "Required": false,
  2299. "IsPassword": false,
  2300. "Type": "bool",
  2301. "Exclusive": true,
  2302. },
  2303. "Error": "",
  2304. }
  2305. The format of Option is the same as returned by rclone config providers.
  2306. The question should be asked to the user and returned to rclone as the
  2307. --result option along with the --state parameter.
  2308. The keys of Option are used as follows:
  2309. - Name - name of variable - show to user
  2310. - Help - help text. Hard wrapped at 80 chars. Any URLs should be
  2311. clicky.
  2312. - Default - default value - return this if the user just wants the
  2313. default.
  2314. - Examples - the user should be able to choose one of these
  2315. - Required - the value should be non-empty
  2316. - IsPassword - the value is a password and should be edited as such
  2317. - Type - type of value, eg bool, string, int and others
  2318. - Exclusive - if set no free-form entry allowed only the Examples
  2319. - Irrelevant keys Provider, ShortOpt, Hide, NoPrefix, Advanced
  2320. If Error is set then it should be shown to the user at the same time as
  2321. the question.
  2322. rclone config update name --continue --state "*oauth-islocal,teamdrive,," --result "true"
  2323. Note that when using --continue all passwords should be passed in the
  2324. clear (not obscured). Any default config values should be passed in with
  2325. each invocation of --continue.
  2326. At the end of the non interactive process, rclone will return a result
  2327. with State as empty string.
  2328. If --all is passed then rclone will ask all the config questions, not
  2329. just the post config questions. Any parameters are used as defaults for
  2330. questions as usual.
  2331. Note that bin/config.py in the rclone source implements this protocol as
  2332. a readable demonstration.
  2333. rclone config create name type [key value]* [flags]
  2334. Options
  2335. --all Ask the full set of config questions
  2336. --continue Continue the configuration process with an answer
  2337. -h, --help help for create
  2338. --no-obscure Force any passwords not to be obscured
  2339. --non-interactive Don't interact with user and return questions
  2340. --obscure Force any passwords to be obscured
  2341. --result string Result - use with --continue
  2342. --state string State - use with --continue
  2343. See the global flags page for global options not listed here.
  2344. SEE ALSO
  2345. - rclone config - Enter an interactive configuration session.
  2346. rclone config delete
  2347. Delete an existing remote.
  2348. rclone config delete name [flags]
  2349. Options
  2350. -h, --help help for delete
  2351. See the global flags page for global options not listed here.
  2352. SEE ALSO
  2353. - rclone config - Enter an interactive configuration session.
  2354. rclone config disconnect
  2355. Disconnects user from remote
  2356. Synopsis
  2357. This disconnects the remote: passed in to the cloud storage system.
  2358. This normally means revoking the oauth token.
  2359. To reconnect use "rclone config reconnect".
  2360. rclone config disconnect remote: [flags]
  2361. Options
  2362. -h, --help help for disconnect
  2363. See the global flags page for global options not listed here.
  2364. SEE ALSO
  2365. - rclone config - Enter an interactive configuration session.
  2366. rclone config dump
  2367. Dump the config file as JSON.
  2368. rclone config dump [flags]
  2369. Options
  2370. -h, --help help for dump
  2371. See the global flags page for global options not listed here.
  2372. SEE ALSO
  2373. - rclone config - Enter an interactive configuration session.
  2374. rclone config edit
  2375. Enter an interactive configuration session.
  2376. Synopsis
  2377. Enter an interactive configuration session where you can setup new
  2378. remotes and manage existing ones. You may also set or remove a password
  2379. to protect your configuration.
  2380. rclone config edit [flags]
  2381. Options
  2382. -h, --help help for edit
  2383. See the global flags page for global options not listed here.
  2384. SEE ALSO
  2385. - rclone config - Enter an interactive configuration session.
  2386. rclone config file
  2387. Show path of configuration file in use.
  2388. rclone config file [flags]
  2389. Options
  2390. -h, --help help for file
  2391. See the global flags page for global options not listed here.
  2392. SEE ALSO
  2393. - rclone config - Enter an interactive configuration session.
  2394. rclone config password
  2395. Update password in an existing remote.
  2396. Synopsis
  2397. Update an existing remote's password. The password should be passed in
  2398. pairs of key password or as key=password. The password should be passed
  2399. in in clear (unobscured).
  2400. For example, to set password of a remote of name myremote you would do:
  2401. rclone config password myremote fieldname mypassword
  2402. rclone config password myremote fieldname=mypassword
  2403. This command is obsolete now that "config update" and "config create"
  2404. both support obscuring passwords directly.
  2405. rclone config password name [key value]+ [flags]
  2406. Options
  2407. -h, --help help for password
  2408. See the global flags page for global options not listed here.
  2409. SEE ALSO
  2410. - rclone config - Enter an interactive configuration session.
  2411. rclone config paths
  2412. Show paths used for configuration, cache, temp etc.
  2413. rclone config paths [flags]
  2414. Options
  2415. -h, --help help for paths
  2416. See the global flags page for global options not listed here.
  2417. SEE ALSO
  2418. - rclone config - Enter an interactive configuration session.
  2419. rclone config providers
  2420. List in JSON format all the providers and options.
  2421. rclone config providers [flags]
  2422. Options
  2423. -h, --help help for providers
  2424. See the global flags page for global options not listed here.
  2425. SEE ALSO
  2426. - rclone config - Enter an interactive configuration session.
  2427. rclone config reconnect
  2428. Re-authenticates user with remote.
  2429. Synopsis
  2430. This reconnects remote: passed in to the cloud storage system.
  2431. To disconnect the remote use "rclone config disconnect".
  2432. This normally means going through the interactive oauth flow again.
  2433. rclone config reconnect remote: [flags]
  2434. Options
  2435. -h, --help help for reconnect
  2436. See the global flags page for global options not listed here.
  2437. SEE ALSO
  2438. - rclone config - Enter an interactive configuration session.
  2439. rclone config redacted
  2440. Print redacted (decrypted) config file, or the redacted config for a
  2441. single remote.
  2442. Synopsis
  2443. This prints a redacted copy of the config file, either the whole config
  2444. file or for a given remote.
  2445. The config file will be redacted by replacing all passwords and other
  2446. sensitive info with XXX.
  2447. This makes the config file suitable for posting online for support.
  2448. It should be double checked before posting as the redaction may not be
  2449. perfect.
  2450. rclone config redacted [<remote>] [flags]
  2451. Options
  2452. -h, --help help for redacted
  2453. See the global flags page for global options not listed here.
  2454. SEE ALSO
  2455. - rclone config - Enter an interactive configuration session.
  2456. rclone config show
  2457. Print (decrypted) config file, or the config for a single remote.
  2458. rclone config show [<remote>] [flags]
  2459. Options
  2460. -h, --help help for show
  2461. See the global flags page for global options not listed here.
  2462. SEE ALSO
  2463. - rclone config - Enter an interactive configuration session.
  2464. rclone config touch
  2465. Ensure configuration file exists.
  2466. rclone config touch [flags]
  2467. Options
  2468. -h, --help help for touch
  2469. See the global flags page for global options not listed here.
  2470. SEE ALSO
  2471. - rclone config - Enter an interactive configuration session.
  2472. rclone config update
  2473. Update options in an existing remote.
  2474. Synopsis
  2475. Update an existing remote's options. The options should be passed in
  2476. pairs of key value or as key=value.
  2477. For example, to update the env_auth field of a remote of name myremote
  2478. you would do:
  2479. rclone config update myremote env_auth true
  2480. rclone config update myremote env_auth=true
  2481. If the remote uses OAuth the token will be updated, if you don't require
  2482. this add an extra parameter thus:
  2483. rclone config update myremote env_auth=true config_refresh_token=false
  2484. Note that if the config process would normally ask a question the
  2485. default is taken (unless --non-interactive is used). Each time that
  2486. happens rclone will print or DEBUG a message saying how to affect the
  2487. value taken.
  2488. If any of the parameters passed is a password field, then rclone will
  2489. automatically obscure them if they aren't already obscured before
  2490. putting them in the config file.
  2491. NB If the password parameter is 22 characters or longer and consists
  2492. only of base64 characters then rclone can get confused about whether the
  2493. password is already obscured or not and put unobscured passwords into
  2494. the config file. If you want to be 100% certain that the passwords get
  2495. obscured then use the --obscure flag, or if you are 100% certain you are
  2496. already passing obscured passwords then use --no-obscure. You can also
  2497. set obscured passwords using the rclone config password command.
  2498. The flag --non-interactive is for use by applications that wish to
  2499. configure rclone themselves, rather than using rclone's text based
  2500. configuration questions. If this flag is set, and rclone needs to ask
  2501. the user a question, a JSON blob will be returned with the question in
  2502. it.
  2503. This will look something like (some irrelevant detail removed):
  2504. {
  2505. "State": "*oauth-islocal,teamdrive,,",
  2506. "Option": {
  2507. "Name": "config_is_local",
  2508. "Help": "Use web browser to automatically authenticate rclone with remote?\n * Say Y if the machine running rclone has a web browser you can use\n * Say N if running rclone on a (remote) machine without web browser access\nIf not sure try Y. If Y failed, try N.\n",
  2509. "Default": true,
  2510. "Examples": [
  2511. {
  2512. "Value": "true",
  2513. "Help": "Yes"
  2514. },
  2515. {
  2516. "Value": "false",
  2517. "Help": "No"
  2518. }
  2519. ],
  2520. "Required": false,
  2521. "IsPassword": false,
  2522. "Type": "bool",
  2523. "Exclusive": true,
  2524. },
  2525. "Error": "",
  2526. }
  2527. The format of Option is the same as returned by rclone config providers.
  2528. The question should be asked to the user and returned to rclone as the
  2529. --result option along with the --state parameter.
  2530. The keys of Option are used as follows:
  2531. - Name - name of variable - show to user
  2532. - Help - help text. Hard wrapped at 80 chars. Any URLs should be
  2533. clicky.
  2534. - Default - default value - return this if the user just wants the
  2535. default.
  2536. - Examples - the user should be able to choose one of these
  2537. - Required - the value should be non-empty
  2538. - IsPassword - the value is a password and should be edited as such
  2539. - Type - type of value, eg bool, string, int and others
  2540. - Exclusive - if set no free-form entry allowed only the Examples
  2541. - Irrelevant keys Provider, ShortOpt, Hide, NoPrefix, Advanced
  2542. If Error is set then it should be shown to the user at the same time as
  2543. the question.
  2544. rclone config update name --continue --state "*oauth-islocal,teamdrive,," --result "true"
  2545. Note that when using --continue all passwords should be passed in the
  2546. clear (not obscured). Any default config values should be passed in with
  2547. each invocation of --continue.
  2548. At the end of the non interactive process, rclone will return a result
  2549. with State as empty string.
  2550. If --all is passed then rclone will ask all the config questions, not
  2551. just the post config questions. Any parameters are used as defaults for
  2552. questions as usual.
  2553. Note that bin/config.py in the rclone source implements this protocol as
  2554. a readable demonstration.
  2555. rclone config update name [key value]+ [flags]
  2556. Options
  2557. --all Ask the full set of config questions
  2558. --continue Continue the configuration process with an answer
  2559. -h, --help help for update
  2560. --no-obscure Force any passwords not to be obscured
  2561. --non-interactive Don't interact with user and return questions
  2562. --obscure Force any passwords to be obscured
  2563. --result string Result - use with --continue
  2564. --state string State - use with --continue
  2565. See the global flags page for global options not listed here.
  2566. SEE ALSO
  2567. - rclone config - Enter an interactive configuration session.
  2568. rclone config userinfo
  2569. Prints info about logged in user of remote.
  2570. Synopsis
  2571. This prints the details of the person logged in to the cloud storage
  2572. system.
  2573. rclone config userinfo remote: [flags]
  2574. Options
  2575. -h, --help help for userinfo
  2576. --json Format output as JSON
  2577. See the global flags page for global options not listed here.
  2578. SEE ALSO
  2579. - rclone config - Enter an interactive configuration session.
  2580. rclone copyto
  2581. Copy files from source to dest, skipping identical files.
  2582. Synopsis
  2583. If source:path is a file or directory then it copies it to a file or
  2584. directory named dest:path.
  2585. This can be used to upload single files to other than their current
  2586. name. If the source is a directory then it acts exactly like the copy
  2587. command.
  2588. So
  2589. rclone copyto src dst
  2590. where src and dst are rclone paths, either remote:path or /path/to/local
  2591. or C:.
  2592. This will:
  2593. if src is file
  2594. copy it to dst, overwriting an existing file if it exists
  2595. if src is directory
  2596. copy it to dst, overwriting existing files if they exist
  2597. see copy command for full details
  2598. This doesn't transfer files that are identical on src and dst, testing
  2599. by size and modification time or MD5SUM. It doesn't delete files from
  2600. the destination.
  2601. Note: Use the -P/--progress flag to view real-time transfer statistics
  2602. rclone copyto source:path dest:path [flags]
  2603. Options
  2604. -h, --help help for copyto
  2605. Copy Options
  2606. Flags for anything which can Copy a file.
  2607. --check-first Do all the checks before starting transfers
  2608. -c, --checksum Check for changes with size & checksum (if available, or fallback to size only).
  2609. --compare-dest stringArray Include additional comma separated server-side paths during comparison
  2610. --copy-dest stringArray Implies --compare-dest but also copies files from paths into destination
  2611. --cutoff-mode HARD|SOFT|CAUTIOUS Mode to stop transfers when reaching the max transfer limit HARD|SOFT|CAUTIOUS (default HARD)
  2612. --ignore-case-sync Ignore case when synchronizing
  2613. --ignore-checksum Skip post copy check of checksums
  2614. --ignore-existing Skip all files that exist on destination
  2615. --ignore-size Ignore size when skipping use modtime or checksum
  2616. -I, --ignore-times Don't skip items that match size and time - transfer all unconditionally
  2617. --immutable Do not modify files, fail if existing files have been modified
  2618. --inplace Download directly to destination file instead of atomic download to temp/rename
  2619. --max-backlog int Maximum number of objects in sync or check backlog (default 10000)
  2620. --max-duration Duration Maximum duration rclone will transfer data for (default 0s)
  2621. --max-transfer SizeSuffix Maximum size of data to transfer (default off)
  2622. -M, --metadata If set, preserve metadata when copying objects
  2623. --modify-window Duration Max time diff to be considered the same (default 1ns)
  2624. --multi-thread-chunk-size SizeSuffix Chunk size for multi-thread downloads / uploads, if not set by filesystem (default 64Mi)
  2625. --multi-thread-cutoff SizeSuffix Use multi-thread downloads for files above this size (default 256Mi)
  2626. --multi-thread-streams int Number of streams to use for multi-thread downloads (default 4)
  2627. --multi-thread-write-buffer-size SizeSuffix In memory buffer size for writing when in multi-thread mode (default 128Ki)
  2628. --no-check-dest Don't check the destination, copy regardless
  2629. --no-traverse Don't traverse destination file system on copy
  2630. --no-update-dir-modtime Don't update directory modification times
  2631. --no-update-modtime Don't update destination modtime if files identical
  2632. --order-by string Instructions on how to order the transfers, e.g. 'size,descending'
  2633. --partial-suffix string Add partial-suffix to temporary file name when --inplace is not used (default ".partial")
  2634. --refresh-times Refresh the modtime of remote files
  2635. --server-side-across-configs Allow server-side operations (e.g. copy) to work across different configs
  2636. --size-only Skip based on size only, not modtime or checksum
  2637. --streaming-upload-cutoff SizeSuffix Cutoff for switching to chunked upload if file size is unknown, upload starts after reaching cutoff or when file ends (default 100Ki)
  2638. -u, --update Skip files that are newer on the destination
  2639. Important Options
  2640. Important flags useful for most commands.
  2641. -n, --dry-run Do a trial run with no permanent changes
  2642. -i, --interactive Enable interactive mode
  2643. -v, --verbose count Print lots more stuff (repeat for more)
  2644. Filter Options
  2645. Flags for filtering directory listings.
  2646. --delete-excluded Delete files on dest excluded from sync
  2647. --exclude stringArray Exclude files matching pattern
  2648. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  2649. --exclude-if-present stringArray Exclude directories if filename is present
  2650. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  2651. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  2652. -f, --filter stringArray Add a file filtering rule
  2653. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  2654. --ignore-case Ignore case in filters (case insensitive)
  2655. --include stringArray Include files matching pattern
  2656. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  2657. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  2658. --max-depth int If set limits the recursion depth to this (default -1)
  2659. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  2660. --metadata-exclude stringArray Exclude metadatas matching pattern
  2661. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  2662. --metadata-filter stringArray Add a metadata filtering rule
  2663. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  2664. --metadata-include stringArray Include metadatas matching pattern
  2665. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  2666. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  2667. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  2668. Listing Options
  2669. Flags for listing directories.
  2670. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  2671. --fast-list Use recursive list if available; uses more memory but fewer transactions
  2672. See the global flags page for global options not listed here.
  2673. SEE ALSO
  2674. - rclone - Show help for rclone commands, flags and backends.
  2675. rclone copyurl
  2676. Copy the contents of the URL supplied content to dest:path.
  2677. Synopsis
  2678. Download a URL's content and copy it to the destination without saving
  2679. it in temporary storage.
  2680. Setting --auto-filename will attempt to automatically determine the
  2681. filename from the URL (after any redirections) and used in the
  2682. destination path.
  2683. With --auto-filename-header in addition, if a specific filename is set
  2684. in HTTP headers, it will be used instead of the name from the URL. With
  2685. --print-filename in addition, the resulting file name will be printed.
  2686. Setting --no-clobber will prevent overwriting file on the destination if
  2687. there is one with the same name.
  2688. Setting --stdout or making the output file name - will cause the output
  2689. to be written to standard output.
  2690. Troublshooting
  2691. If you can't get rclone copyurl to work then here are some things you
  2692. can try:
  2693. - --disable-http2 rclone will use HTTP2 if available - try disabling
  2694. it
  2695. - --bind 0.0.0.0 rclone will use IPv6 if available - try disabling it
  2696. - --bind ::0 to disable IPv4
  2697. - --user agent curl - some sites have whitelists for curl's
  2698. user-agent - try that
  2699. - Make sure the site works with curl directly
  2700. rclone copyurl https://example.com dest:path [flags]
  2701. Options
  2702. -a, --auto-filename Get the file name from the URL and use it for destination file path
  2703. --header-filename Get the file name from the Content-Disposition header
  2704. -h, --help help for copyurl
  2705. --no-clobber Prevent overwriting file with same name
  2706. -p, --print-filename Print the resulting name from --auto-filename
  2707. --stdout Write the output to stdout rather than a file
  2708. Important Options
  2709. Important flags useful for most commands.
  2710. -n, --dry-run Do a trial run with no permanent changes
  2711. -i, --interactive Enable interactive mode
  2712. -v, --verbose count Print lots more stuff (repeat for more)
  2713. See the global flags page for global options not listed here.
  2714. SEE ALSO
  2715. - rclone - Show help for rclone commands, flags and backends.
  2716. rclone cryptcheck
  2717. Cryptcheck checks the integrity of an encrypted remote.
  2718. Synopsis
  2719. rclone cryptcheck checks a remote against a crypted remote. This is the
  2720. equivalent of running rclone check, but able to check the checksums of
  2721. the encrypted remote.
  2722. For it to work the underlying remote of the cryptedremote must support
  2723. some kind of checksum.
  2724. It works by reading the nonce from each file on the cryptedremote: and
  2725. using that to encrypt each file on the remote:. It then checks the
  2726. checksum of the underlying file on the cryptedremote: against the
  2727. checksum of the file it has just encrypted.
  2728. Use it like this
  2729. rclone cryptcheck /path/to/files encryptedremote:path
  2730. You can use it like this also, but that will involve downloading all the
  2731. files in remote:path.
  2732. rclone cryptcheck remote:path encryptedremote:path
  2733. After it has run it will log the status of the encryptedremote:.
  2734. If you supply the --one-way flag, it will only check that files in the
  2735. source match the files in the destination, not the other way around.
  2736. This means that extra files in the destination that are not in the
  2737. source will not be detected.
  2738. The --differ, --missing-on-dst, --missing-on-src, --match and --error
  2739. flags write paths, one per line, to the file name (or stdout if it is -)
  2740. supplied. What they write is described in the help below. For example
  2741. --differ will write all paths which are present on both the source and
  2742. destination but different.
  2743. The --combined flag will write a file (or stdout) which contains all
  2744. file paths with a symbol and then a space and then the path to tell you
  2745. what happened to it. These are reminiscent of diff files.
  2746. - = path means path was found in source and destination and was
  2747. identical
  2748. - `- path` means path was missing on the source, so only in the
  2749. destination
  2750. - `+ path` means path was missing on the destination, so only in the
  2751. source
  2752. - `* path` means path was present in source and destination but
  2753. different.
  2754. - ! path means there was an error reading or hashing the source or
  2755. dest.
  2756. The default number of parallel checks is 8. See the --checkers=N option
  2757. for more information.
  2758. rclone cryptcheck remote:path cryptedremote:path [flags]
  2759. Options
  2760. --combined string Make a combined report of changes to this file
  2761. --differ string Report all non-matching files to this file
  2762. --error string Report all files with errors (hashing or reading) to this file
  2763. -h, --help help for cryptcheck
  2764. --match string Report all matching files to this file
  2765. --missing-on-dst string Report all files missing from the destination to this file
  2766. --missing-on-src string Report all files missing from the source to this file
  2767. --one-way Check one way only, source files must exist on remote
  2768. Check Options
  2769. Flags used for rclone check.
  2770. --max-backlog int Maximum number of objects in sync or check backlog (default 10000)
  2771. Filter Options
  2772. Flags for filtering directory listings.
  2773. --delete-excluded Delete files on dest excluded from sync
  2774. --exclude stringArray Exclude files matching pattern
  2775. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  2776. --exclude-if-present stringArray Exclude directories if filename is present
  2777. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  2778. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  2779. -f, --filter stringArray Add a file filtering rule
  2780. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  2781. --ignore-case Ignore case in filters (case insensitive)
  2782. --include stringArray Include files matching pattern
  2783. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  2784. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  2785. --max-depth int If set limits the recursion depth to this (default -1)
  2786. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  2787. --metadata-exclude stringArray Exclude metadatas matching pattern
  2788. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  2789. --metadata-filter stringArray Add a metadata filtering rule
  2790. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  2791. --metadata-include stringArray Include metadatas matching pattern
  2792. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  2793. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  2794. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  2795. Listing Options
  2796. Flags for listing directories.
  2797. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  2798. --fast-list Use recursive list if available; uses more memory but fewer transactions
  2799. See the global flags page for global options not listed here.
  2800. SEE ALSO
  2801. - rclone - Show help for rclone commands, flags and backends.
  2802. rclone cryptdecode
  2803. Cryptdecode returns unencrypted file names.
  2804. Synopsis
  2805. rclone cryptdecode returns unencrypted file names when provided with a
  2806. list of encrypted file names. List limit is 10 items.
  2807. If you supply the --reverse flag, it will return encrypted file names.
  2808. use it like this
  2809. rclone cryptdecode encryptedremote: encryptedfilename1 encryptedfilename2
  2810. rclone cryptdecode --reverse encryptedremote: filename1 filename2
  2811. Another way to accomplish this is by using the rclone backend encode (or
  2812. decode) command. See the documentation on the crypt overlay for more
  2813. info.
  2814. rclone cryptdecode encryptedremote: encryptedfilename [flags]
  2815. Options
  2816. -h, --help help for cryptdecode
  2817. --reverse Reverse cryptdecode, encrypts filenames
  2818. See the global flags page for global options not listed here.
  2819. SEE ALSO
  2820. - rclone - Show help for rclone commands, flags and backends.
  2821. rclone deletefile
  2822. Remove a single file from remote.
  2823. Synopsis
  2824. Remove a single file from remote. Unlike delete it cannot be used to
  2825. remove a directory and it doesn't obey include/exclude filters - if the
  2826. specified file exists, it will always be removed.
  2827. rclone deletefile remote:path [flags]
  2828. Options
  2829. -h, --help help for deletefile
  2830. Important Options
  2831. Important flags useful for most commands.
  2832. -n, --dry-run Do a trial run with no permanent changes
  2833. -i, --interactive Enable interactive mode
  2834. -v, --verbose count Print lots more stuff (repeat for more)
  2835. See the global flags page for global options not listed here.
  2836. SEE ALSO
  2837. - rclone - Show help for rclone commands, flags and backends.
  2838. rclone genautocomplete
  2839. Output completion script for a given shell.
  2840. Synopsis
  2841. Generates a shell completion script for rclone. Run with --help to list
  2842. the supported shells.
  2843. Options
  2844. -h, --help help for genautocomplete
  2845. See the global flags page for global options not listed here.
  2846. SEE ALSO
  2847. - rclone - Show help for rclone commands, flags and backends.
  2848. - rclone genautocomplete bash - Output bash completion script for
  2849. rclone.
  2850. - rclone genautocomplete fish - Output fish completion script for
  2851. rclone.
  2852. - rclone genautocomplete zsh - Output zsh completion script for
  2853. rclone.
  2854. rclone genautocomplete bash
  2855. Output bash completion script for rclone.
  2856. Synopsis
  2857. Generates a bash shell autocompletion script for rclone.
  2858. This writes to /etc/bash_completion.d/rclone by default so will probably
  2859. need to be run with sudo or as root, e.g.
  2860. sudo rclone genautocomplete bash
  2861. Logout and login again to use the autocompletion scripts, or source them
  2862. directly
  2863. . /etc/bash_completion
  2864. If you supply a command line argument the script will be written there.
  2865. If output_file is "-", then the output will be written to stdout.
  2866. rclone genautocomplete bash [output_file] [flags]
  2867. Options
  2868. -h, --help help for bash
  2869. See the global flags page for global options not listed here.
  2870. SEE ALSO
  2871. - rclone genautocomplete - Output completion script for a given shell.
  2872. rclone genautocomplete fish
  2873. Output fish completion script for rclone.
  2874. Synopsis
  2875. Generates a fish autocompletion script for rclone.
  2876. This writes to /etc/fish/completions/rclone.fish by default so will
  2877. probably need to be run with sudo or as root, e.g.
  2878. sudo rclone genautocomplete fish
  2879. Logout and login again to use the autocompletion scripts, or source them
  2880. directly
  2881. . /etc/fish/completions/rclone.fish
  2882. If you supply a command line argument the script will be written there.
  2883. If output_file is "-", then the output will be written to stdout.
  2884. rclone genautocomplete fish [output_file] [flags]
  2885. Options
  2886. -h, --help help for fish
  2887. See the global flags page for global options not listed here.
  2888. SEE ALSO
  2889. - rclone genautocomplete - Output completion script for a given shell.
  2890. rclone genautocomplete zsh
  2891. Output zsh completion script for rclone.
  2892. Synopsis
  2893. Generates a zsh autocompletion script for rclone.
  2894. This writes to /usr/share/zsh/vendor-completions/_rclone by default so
  2895. will probably need to be run with sudo or as root, e.g.
  2896. sudo rclone genautocomplete zsh
  2897. Logout and login again to use the autocompletion scripts, or source them
  2898. directly
  2899. autoload -U compinit && compinit
  2900. If you supply a command line argument the script will be written there.
  2901. If output_file is "-", then the output will be written to stdout.
  2902. rclone genautocomplete zsh [output_file] [flags]
  2903. Options
  2904. -h, --help help for zsh
  2905. See the global flags page for global options not listed here.
  2906. SEE ALSO
  2907. - rclone genautocomplete - Output completion script for a given shell.
  2908. rclone gendocs
  2909. Output markdown docs for rclone to the directory supplied.
  2910. Synopsis
  2911. This produces markdown docs for the rclone commands to the directory
  2912. supplied. These are in a format suitable for hugo to render into the
  2913. rclone.org website.
  2914. rclone gendocs output_directory [flags]
  2915. Options
  2916. -h, --help help for gendocs
  2917. See the global flags page for global options not listed here.
  2918. SEE ALSO
  2919. - rclone - Show help for rclone commands, flags and backends.
  2920. rclone hashsum
  2921. Produces a hashsum file for all the objects in the path.
  2922. Synopsis
  2923. Produces a hash file for all the objects in the path using the hash
  2924. named. The output is in the same format as the standard md5sum/sha1sum
  2925. tool.
  2926. By default, the hash is requested from the remote. If the hash is not
  2927. supported by the remote, no hash will be returned. With the download
  2928. flag, the file will be downloaded from the remote and hashed locally
  2929. enabling any hash for any remote.
  2930. For the MD5 and SHA1 algorithms there are also dedicated commands,
  2931. md5sum and sha1sum.
  2932. This command can also hash data received on standard input (stdin), by
  2933. not passing a remote:path, or by passing a hyphen as remote:path when
  2934. there is data to read (if not, the hyphen will be treated literally, as
  2935. a relative path).
  2936. Run without a hash to see the list of all supported hashes, e.g.
  2937. $ rclone hashsum
  2938. Supported hashes are:
  2939. * md5
  2940. * sha1
  2941. * whirlpool
  2942. * crc32
  2943. * sha256
  2944. Then
  2945. $ rclone hashsum MD5 remote:path
  2946. Note that hash names are case insensitive and values are output in lower
  2947. case.
  2948. rclone hashsum [<hash> remote:path] [flags]
  2949. Options
  2950. --base64 Output base64 encoded hashsum
  2951. -C, --checkfile string Validate hashes against a given SUM file instead of printing them
  2952. --download Download the file and hash it locally; if this flag is not specified, the hash is requested from the remote
  2953. -h, --help help for hashsum
  2954. --output-file string Output hashsums to a file rather than the terminal
  2955. Filter Options
  2956. Flags for filtering directory listings.
  2957. --delete-excluded Delete files on dest excluded from sync
  2958. --exclude stringArray Exclude files matching pattern
  2959. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  2960. --exclude-if-present stringArray Exclude directories if filename is present
  2961. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  2962. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  2963. -f, --filter stringArray Add a file filtering rule
  2964. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  2965. --ignore-case Ignore case in filters (case insensitive)
  2966. --include stringArray Include files matching pattern
  2967. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  2968. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  2969. --max-depth int If set limits the recursion depth to this (default -1)
  2970. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  2971. --metadata-exclude stringArray Exclude metadatas matching pattern
  2972. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  2973. --metadata-filter stringArray Add a metadata filtering rule
  2974. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  2975. --metadata-include stringArray Include metadatas matching pattern
  2976. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  2977. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  2978. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  2979. Listing Options
  2980. Flags for listing directories.
  2981. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  2982. --fast-list Use recursive list if available; uses more memory but fewer transactions
  2983. See the global flags page for global options not listed here.
  2984. SEE ALSO
  2985. - rclone - Show help for rclone commands, flags and backends.
  2986. rclone link
  2987. Generate public link to file/folder.
  2988. Synopsis
  2989. rclone link will create, retrieve or remove a public link to the given
  2990. file or folder.
  2991. rclone link remote:path/to/file
  2992. rclone link remote:path/to/folder/
  2993. rclone link --unlink remote:path/to/folder/
  2994. rclone link --expire 1d remote:path/to/file
  2995. If you supply the --expire flag, it will set the expiration time
  2996. otherwise it will use the default (100 years). Note not all backends
  2997. support the --expire flag - if the backend doesn't support it then the
  2998. link returned won't expire.
  2999. Use the --unlink flag to remove existing public links to the file or
  3000. folder. Note not all backends support "--unlink" flag - those that don't
  3001. will just ignore it.
  3002. If successful, the last line of the output will contain the link. Exact
  3003. capabilities depend on the remote, but the link will always by default
  3004. be created with the least constraints – e.g. no expiry, no password
  3005. protection, accessible without account.
  3006. rclone link remote:path [flags]
  3007. Options
  3008. --expire Duration The amount of time that the link will be valid (default off)
  3009. -h, --help help for link
  3010. --unlink Remove existing public link to file/folder
  3011. See the global flags page for global options not listed here.
  3012. SEE ALSO
  3013. - rclone - Show help for rclone commands, flags and backends.
  3014. rclone listremotes
  3015. List all the remotes in the config file and defined in environment
  3016. variables.
  3017. Synopsis
  3018. rclone listremotes lists all the available remotes from the config file.
  3019. When used with the --long flag it lists the types and the descriptions
  3020. too.
  3021. rclone listremotes [flags]
  3022. Options
  3023. -h, --help help for listremotes
  3024. --long Show the type and the description as well as names
  3025. See the global flags page for global options not listed here.
  3026. SEE ALSO
  3027. - rclone - Show help for rclone commands, flags and backends.
  3028. rclone lsf
  3029. List directories and objects in remote:path formatted for parsing.
  3030. Synopsis
  3031. List the contents of the source path (directories and objects) to
  3032. standard output in a form which is easy to parse by scripts. By default
  3033. this will just be the names of the objects and directories, one per
  3034. line. The directories will have a / suffix.
  3035. Eg
  3036. $ rclone lsf swift:bucket
  3037. bevajer5jef
  3038. canole
  3039. diwogej7
  3040. ferejej3gux/
  3041. fubuwic
  3042. Use the --format option to control what gets listed. By default this is
  3043. just the path, but you can use these parameters to control the output:
  3044. p - path
  3045. s - size
  3046. t - modification time
  3047. h - hash
  3048. i - ID of object
  3049. o - Original ID of underlying object
  3050. m - MimeType of object if known
  3051. e - encrypted name
  3052. T - tier of storage if known, e.g. "Hot" or "Cool"
  3053. M - Metadata of object in JSON blob format, eg {"key":"value"}
  3054. So if you wanted the path, size and modification time, you would use
  3055. --format "pst", or maybe --format "tsp" to put the path last.
  3056. Eg
  3057. $ rclone lsf --format "tsp" swift:bucket
  3058. 2016-06-25 18:55:41;60295;bevajer5jef
  3059. 2016-06-25 18:55:43;90613;canole
  3060. 2016-06-25 18:55:43;94467;diwogej7
  3061. 2018-04-26 08:50:45;0;ferejej3gux/
  3062. 2016-06-25 18:55:40;37600;fubuwic
  3063. If you specify "h" in the format you will get the MD5 hash by default,
  3064. use the --hash flag to change which hash you want. Note that this can be
  3065. returned as an empty string if it isn't available on the object (and for
  3066. directories), "ERROR" if there was an error reading it from the object
  3067. and "UNSUPPORTED" if that object does not support that hash type.
  3068. For example, to emulate the md5sum command you can use
  3069. rclone lsf -R --hash MD5 --format hp --separator " " --files-only .
  3070. Eg
  3071. $ rclone lsf -R --hash MD5 --format hp --separator " " --files-only swift:bucket
  3072. 7908e352297f0f530b84a756f188baa3 bevajer5jef
  3073. cd65ac234e6fea5925974a51cdd865cc canole
  3074. 03b5341b4f234b9d984d03ad076bae91 diwogej7
  3075. 8fd37c3810dd660778137ac3a66cc06d fubuwic
  3076. 99713e14a4c4ff553acaf1930fad985b gixacuh7ku
  3077. (Though "rclone md5sum ." is an easier way of typing this.)
  3078. By default the separator is ";" this can be changed with the --separator
  3079. flag. Note that separators aren't escaped in the path so putting it last
  3080. is a good strategy.
  3081. Eg
  3082. $ rclone lsf --separator "," --format "tshp" swift:bucket
  3083. 2016-06-25 18:55:41,60295,7908e352297f0f530b84a756f188baa3,bevajer5jef
  3084. 2016-06-25 18:55:43,90613,cd65ac234e6fea5925974a51cdd865cc,canole
  3085. 2016-06-25 18:55:43,94467,03b5341b4f234b9d984d03ad076bae91,diwogej7
  3086. 2018-04-26 08:52:53,0,,ferejej3gux/
  3087. 2016-06-25 18:55:40,37600,8fd37c3810dd660778137ac3a66cc06d,fubuwic
  3088. You can output in CSV standard format. This will escape things in " if
  3089. they contain ,
  3090. Eg
  3091. $ rclone lsf --csv --files-only --format ps remote:path
  3092. test.log,22355
  3093. test.sh,449
  3094. "this file contains a comma, in the file name.txt",6
  3095. Note that the --absolute parameter is useful for making lists of files
  3096. to pass to an rclone copy with the --files-from-raw flag.
  3097. For example, to find all the files modified within one day and copy
  3098. those only (without traversing the whole directory structure):
  3099. rclone lsf --absolute --files-only --max-age 1d /path/to/local > new_files
  3100. rclone copy --files-from-raw new_files /path/to/local remote:path
  3101. The default time format is '2006-01-02 15:04:05'. Other formats can be
  3102. specified with the --time-format flag. Examples:
  3103. rclone lsf remote:path --format pt --time-format 'Jan 2, 2006 at 3:04pm (MST)'
  3104. rclone lsf remote:path --format pt --time-format '2006-01-02 15:04:05.000000000'
  3105. rclone lsf remote:path --format pt --time-format '2006-01-02T15:04:05.999999999Z07:00'
  3106. rclone lsf remote:path --format pt --time-format RFC3339
  3107. rclone lsf remote:path --format pt --time-format DateOnly
  3108. rclone lsf remote:path --format pt --time-format max
  3109. --time-format max will automatically truncate
  3110. '2006-01-02 15:04:05.000000000' to the maximum precision supported by
  3111. the remote.
  3112. Any of the filtering options can be applied to this command.
  3113. There are several related list commands
  3114. - ls to list size and path of objects only
  3115. - lsl to list modification time, size and path of objects only
  3116. - lsd to list directories only
  3117. - lsf to list objects and directories in easy to parse format
  3118. - lsjson to list objects and directories in JSON format
  3119. ls,lsl,lsd are designed to be human-readable. lsf is designed to be
  3120. human and machine-readable. lsjson is designed to be machine-readable.
  3121. Note that ls and lsl recurse by default - use --max-depth 1 to stop the
  3122. recursion.
  3123. The other list commands lsd,lsf,lsjson do not recurse by default - use
  3124. -R to make them recurse.
  3125. Listing a nonexistent directory will produce an error except for remotes
  3126. which can't have empty directories (e.g. s3, swift, or gcs - the
  3127. bucket-based remotes).
  3128. rclone lsf remote:path [flags]
  3129. Options
  3130. --absolute Put a leading / in front of path names
  3131. --csv Output in CSV format
  3132. -d, --dir-slash Append a slash to directory names (default true)
  3133. --dirs-only Only list directories
  3134. --files-only Only list files
  3135. -F, --format string Output format - see help for details (default "p")
  3136. --hash h Use this hash when h is used in the format MD5|SHA-1|DropboxHash (default "md5")
  3137. -h, --help help for lsf
  3138. -R, --recursive Recurse into the listing
  3139. -s, --separator string Separator for the items in the format (default ";")
  3140. -t, --time-format string Specify a custom time format, or 'max' for max precision supported by remote (default: 2006-01-02 15:04:05)
  3141. Filter Options
  3142. Flags for filtering directory listings.
  3143. --delete-excluded Delete files on dest excluded from sync
  3144. --exclude stringArray Exclude files matching pattern
  3145. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  3146. --exclude-if-present stringArray Exclude directories if filename is present
  3147. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  3148. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  3149. -f, --filter stringArray Add a file filtering rule
  3150. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  3151. --ignore-case Ignore case in filters (case insensitive)
  3152. --include stringArray Include files matching pattern
  3153. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  3154. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  3155. --max-depth int If set limits the recursion depth to this (default -1)
  3156. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  3157. --metadata-exclude stringArray Exclude metadatas matching pattern
  3158. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  3159. --metadata-filter stringArray Add a metadata filtering rule
  3160. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  3161. --metadata-include stringArray Include metadatas matching pattern
  3162. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  3163. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  3164. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  3165. Listing Options
  3166. Flags for listing directories.
  3167. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  3168. --fast-list Use recursive list if available; uses more memory but fewer transactions
  3169. See the global flags page for global options not listed here.
  3170. SEE ALSO
  3171. - rclone - Show help for rclone commands, flags and backends.
  3172. rclone lsjson
  3173. List directories and objects in the path in JSON format.
  3174. Synopsis
  3175. List directories and objects in the path in JSON format.
  3176. The output is an array of Items, where each Item looks like this
  3177. {
  3178. "Hashes" : {
  3179. "SHA-1" : "f572d396fae9206628714fb2ce00f72e94f2258f",
  3180. "MD5" : "b1946ac92492d2347c6235b4d2611184",
  3181. "DropboxHash" : "ecb65bb98f9d905b70458986c39fcbad7715e5f2fcc3b1f07767d7c83e2438cc"
  3182. },
  3183. "ID": "y2djkhiujf83u33",
  3184. "OrigID": "UYOJVTUW00Q1RzTDA",
  3185. "IsBucket" : false,
  3186. "IsDir" : false,
  3187. "MimeType" : "application/octet-stream",
  3188. "ModTime" : "2017-05-31T16:15:57.034468261+01:00",
  3189. "Name" : "file.txt",
  3190. "Encrypted" : "v0qpsdq8anpci8n929v3uu9338",
  3191. "EncryptedPath" : "kja9098349023498/v0qpsdq8anpci8n929v3uu9338",
  3192. "Path" : "full/path/goes/here/file.txt",
  3193. "Size" : 6,
  3194. "Tier" : "hot",
  3195. }
  3196. If --hash is not specified the Hashes property won't be emitted. The
  3197. types of hash can be specified with the --hash-type parameter (which may
  3198. be repeated). If --hash-type is set then it implies --hash.
  3199. If --no-modtime is specified then ModTime will be blank. This can speed
  3200. things up on remotes where reading the ModTime takes an extra request
  3201. (e.g. s3, swift).
  3202. If --no-mimetype is specified then MimeType will be blank. This can
  3203. speed things up on remotes where reading the MimeType takes an extra
  3204. request (e.g. s3, swift).
  3205. If --encrypted is not specified the Encrypted won't be emitted.
  3206. If --dirs-only is not specified files in addition to directories are
  3207. returned
  3208. If --files-only is not specified directories in addition to the files
  3209. will be returned.
  3210. If --metadata is set then an additional Metadata key will be returned.
  3211. This will have metadata in rclone standard format as a JSON object.
  3212. if --stat is set then a single JSON blob will be returned about the item
  3213. pointed to. This will return an error if the item isn't found. However
  3214. on bucket based backends (like s3, gcs, b2, azureblob etc) if the item
  3215. isn't found it will return an empty directory as it isn't possible to
  3216. tell empty directories from missing directories there.
  3217. The Path field will only show folders below the remote path being
  3218. listed. If "remote:path" contains the file "subfolder/file.txt", the
  3219. Path for "file.txt" will be "subfolder/file.txt", not
  3220. "remote:path/subfolder/file.txt". When used without --recursive the Path
  3221. will always be the same as Name.
  3222. If the directory is a bucket in a bucket-based backend, then "IsBucket"
  3223. will be set to true. This key won't be present unless it is "true".
  3224. The time is in RFC3339 format with up to nanosecond precision. The
  3225. number of decimal digits in the seconds will depend on the precision
  3226. that the remote can hold the times, so if times are accurate to the
  3227. nearest millisecond (e.g. Google Drive) then 3 digits will always be
  3228. shown ("2017-05-31T16:15:57.034+01:00") whereas if the times are
  3229. accurate to the nearest second (Dropbox, Box, WebDav, etc.) no digits
  3230. will be shown ("2017-05-31T16:15:57+01:00").
  3231. The whole output can be processed as a JSON blob, or alternatively it
  3232. can be processed line by line as each item is written one to a line.
  3233. Any of the filtering options can be applied to this command.
  3234. There are several related list commands
  3235. - ls to list size and path of objects only
  3236. - lsl to list modification time, size and path of objects only
  3237. - lsd to list directories only
  3238. - lsf to list objects and directories in easy to parse format
  3239. - lsjson to list objects and directories in JSON format
  3240. ls,lsl,lsd are designed to be human-readable. lsf is designed to be
  3241. human and machine-readable. lsjson is designed to be machine-readable.
  3242. Note that ls and lsl recurse by default - use --max-depth 1 to stop the
  3243. recursion.
  3244. The other list commands lsd,lsf,lsjson do not recurse by default - use
  3245. -R to make them recurse.
  3246. Listing a nonexistent directory will produce an error except for remotes
  3247. which can't have empty directories (e.g. s3, swift, or gcs - the
  3248. bucket-based remotes).
  3249. rclone lsjson remote:path [flags]
  3250. Options
  3251. --dirs-only Show only directories in the listing
  3252. --encrypted Show the encrypted names
  3253. --files-only Show only files in the listing
  3254. --hash Include hashes in the output (may take longer)
  3255. --hash-type stringArray Show only this hash type (may be repeated)
  3256. -h, --help help for lsjson
  3257. -M, --metadata Add metadata to the listing
  3258. --no-mimetype Don't read the mime type (can speed things up)
  3259. --no-modtime Don't read the modification time (can speed things up)
  3260. --original Show the ID of the underlying Object
  3261. -R, --recursive Recurse into the listing
  3262. --stat Just return the info for the pointed to file
  3263. Filter Options
  3264. Flags for filtering directory listings.
  3265. --delete-excluded Delete files on dest excluded from sync
  3266. --exclude stringArray Exclude files matching pattern
  3267. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  3268. --exclude-if-present stringArray Exclude directories if filename is present
  3269. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  3270. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  3271. -f, --filter stringArray Add a file filtering rule
  3272. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  3273. --ignore-case Ignore case in filters (case insensitive)
  3274. --include stringArray Include files matching pattern
  3275. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  3276. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  3277. --max-depth int If set limits the recursion depth to this (default -1)
  3278. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  3279. --metadata-exclude stringArray Exclude metadatas matching pattern
  3280. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  3281. --metadata-filter stringArray Add a metadata filtering rule
  3282. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  3283. --metadata-include stringArray Include metadatas matching pattern
  3284. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  3285. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  3286. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  3287. Listing Options
  3288. Flags for listing directories.
  3289. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  3290. --fast-list Use recursive list if available; uses more memory but fewer transactions
  3291. See the global flags page for global options not listed here.
  3292. SEE ALSO
  3293. - rclone - Show help for rclone commands, flags and backends.
  3294. rclone mount
  3295. Mount the remote as file system on a mountpoint.
  3296. Synopsis
  3297. rclone mount allows Linux, FreeBSD, macOS and Windows to mount any of
  3298. Rclone's cloud storage systems as a file system with FUSE.
  3299. First set up your remote using rclone config. Check it works with
  3300. rclone ls etc.
  3301. On Linux and macOS, you can run mount in either foreground or background
  3302. (aka daemon) mode. Mount runs in foreground mode by default. Use the
  3303. --daemon flag to force background mode. On Windows you can run mount in
  3304. foreground only, the flag is ignored.
  3305. In background mode rclone acts as a generic Unix mount program: the main
  3306. program starts, spawns background rclone process to setup and maintain
  3307. the mount, waits until success or timeout and exits with appropriate
  3308. code (killing the child process if it fails).
  3309. On Linux/macOS/FreeBSD start the mount like this, where
  3310. /path/to/local/mount is an empty existing directory:
  3311. rclone mount remote:path/to/files /path/to/local/mount
  3312. On Windows you can start a mount in different ways. See below for
  3313. details. If foreground mount is used interactively from a console
  3314. window, rclone will serve the mount and occupy the console so another
  3315. window should be used to work with the mount until rclone is interrupted
  3316. e.g. by pressing Ctrl-C.
  3317. The following examples will mount to an automatically assigned drive, to
  3318. specific drive letter X:, to path C:\path\parent\mount (where parent
  3319. directory or drive must exist, and mount must not exist, and is not
  3320. supported when mounting as a network drive), and the last example will
  3321. mount as network share \\cloud\remote and map it to an automatically
  3322. assigned drive:
  3323. rclone mount remote:path/to/files *
  3324. rclone mount remote:path/to/files X:
  3325. rclone mount remote:path/to/files C:\path\parent\mount
  3326. rclone mount remote:path/to/files \\cloud\remote
  3327. When the program ends while in foreground mode, either via Ctrl+C or
  3328. receiving a SIGINT or SIGTERM signal, the mount should be automatically
  3329. stopped.
  3330. When running in background mode the user will have to stop the mount
  3331. manually:
  3332. # Linux
  3333. fusermount -u /path/to/local/mount
  3334. # OS X
  3335. umount /path/to/local/mount
  3336. The umount operation can fail, for example when the mountpoint is busy.
  3337. When that happens, it is the user's responsibility to stop the mount
  3338. manually.
  3339. The size of the mounted file system will be set according to information
  3340. retrieved from the remote, the same as returned by the rclone about
  3341. command. Remotes with unlimited storage may report the used size only,
  3342. then an additional 1 PiB of free space is assumed. If the remote does
  3343. not support the about feature at all, then 1 PiB is set as both the
  3344. total and the free size.
  3345. Installing on Windows
  3346. To run rclone mount on Windows, you will need to download and install
  3347. WinFsp.
  3348. WinFsp is an open-source Windows File System Proxy which makes it easy
  3349. to write user space file systems for Windows. It provides a FUSE
  3350. emulation layer which rclone uses combination with cgofuse. Both of
  3351. these packages are by Bill Zissimopoulos who was very helpful during the
  3352. implementation of rclone mount for Windows.
  3353. Mounting modes on windows
  3354. Unlike other operating systems, Microsoft Windows provides a different
  3355. filesystem type for network and fixed drives. It optimises access on the
  3356. assumption fixed disk drives are fast and reliable, while network drives
  3357. have relatively high latency and less reliability. Some settings can
  3358. also be differentiated between the two types, for example that Windows
  3359. Explorer should just display icons and not create preview thumbnails for
  3360. image and video files on network drives.
  3361. In most cases, rclone will mount the remote as a normal, fixed disk
  3362. drive by default. However, you can also choose to mount it as a remote
  3363. network drive, often described as a network share. If you mount an
  3364. rclone remote using the default, fixed drive mode and experience
  3365. unexpected program errors, freezes or other issues, consider mounting as
  3366. a network drive instead.
  3367. When mounting as a fixed disk drive you can either mount to an unused
  3368. drive letter, or to a path representing a nonexistent subdirectory of an
  3369. existing parent directory or drive. Using the special value * will tell
  3370. rclone to automatically assign the next available drive letter, starting
  3371. with Z: and moving backward. Examples:
  3372. rclone mount remote:path/to/files *
  3373. rclone mount remote:path/to/files X:
  3374. rclone mount remote:path/to/files C:\path\parent\mount
  3375. rclone mount remote:path/to/files X:
  3376. Option --volname can be used to set a custom volume name for the mounted
  3377. file system. The default is to use the remote name and path.
  3378. To mount as network drive, you can add option --network-mode to your
  3379. mount command. Mounting to a directory path is not supported in this
  3380. mode, it is a limitation Windows imposes on junctions, so the remote
  3381. must always be mounted to a drive letter.
  3382. rclone mount remote:path/to/files X: --network-mode
  3383. A volume name specified with --volname will be used to create the
  3384. network share path. A complete UNC path, such as \\cloud\remote,
  3385. optionally with path \\cloud\remote\madeup\path, will be used as is. Any
  3386. other string will be used as the share part, after a default prefix
  3387. \\server\. If no volume name is specified then \\server\share will be
  3388. used. You must make sure the volume name is unique when you are mounting
  3389. more than one drive, or else the mount command will fail. The share name
  3390. will treated as the volume label for the mapped drive, shown in Windows
  3391. Explorer etc, while the complete \\server\share will be reported as the
  3392. remote UNC path by net use etc, just like a normal network drive
  3393. mapping.
  3394. If you specify a full network share UNC path with --volname, this will
  3395. implicitly set the --network-mode option, so the following two examples
  3396. have same result:
  3397. rclone mount remote:path/to/files X: --network-mode
  3398. rclone mount remote:path/to/files X: --volname \\server\share
  3399. You may also specify the network share UNC path as the mountpoint
  3400. itself. Then rclone will automatically assign a drive letter, same as
  3401. with * and use that as mountpoint, and instead use the UNC path
  3402. specified as the volume name, as if it were specified with the --volname
  3403. option. This will also implicitly set the --network-mode option. This
  3404. means the following two examples have same result:
  3405. rclone mount remote:path/to/files \\cloud\remote
  3406. rclone mount remote:path/to/files * --volname \\cloud\remote
  3407. There is yet another way to enable network mode, and to set the share
  3408. path, and that is to pass the "native" libfuse/WinFsp option directly:
  3409. --fuse-flag --VolumePrefix=\server\share. Note that the path must be
  3410. with just a single backslash prefix in this case.
  3411. Note: In previous versions of rclone this was the only supported method.
  3412. Read more about drive mapping
  3413. See also Limitations section below.
  3414. Windows filesystem permissions
  3415. The FUSE emulation layer on Windows must convert between the POSIX-based
  3416. permission model used in FUSE, and the permission model used in Windows,
  3417. based on access-control lists (ACL).
  3418. The mounted filesystem will normally get three entries in its
  3419. access-control list (ACL), representing permissions for the POSIX
  3420. permission scopes: Owner, group and others. By default, the owner and
  3421. group will be taken from the current user, and the built-in group
  3422. "Everyone" will be used to represent others. The user/group can be
  3423. customized with FUSE options "UserName" and "GroupName", e.g.
  3424. -o UserName=user123 -o GroupName="Authenticated Users". The permissions
  3425. on each entry will be set according to options --dir-perms and
  3426. --file-perms, which takes a value in traditional Unix numeric notation.
  3427. The default permissions corresponds to
  3428. --file-perms 0666 --dir-perms 0777, i.e. read and write permissions to
  3429. everyone. This means you will not be able to start any programs from the
  3430. mount. To be able to do that you must add execute permissions, e.g.
  3431. --file-perms 0777 --dir-perms 0777 to add it to everyone. If the program
  3432. needs to write files, chances are you will have to enable VFS File
  3433. Caching as well (see also limitations). Note that the default write
  3434. permission have some restrictions for accounts other than the owner,
  3435. specifically it lacks the "write extended attributes", as explained
  3436. next.
  3437. The mapping of permissions is not always trivial, and the result you see
  3438. in Windows Explorer may not be exactly like you expected. For example,
  3439. when setting a value that includes write access for the group or others
  3440. scope, this will be mapped to individual permissions "write attributes",
  3441. "write data" and "append data", but not "write extended attributes".
  3442. Windows will then show this as basic permission "Special" instead of
  3443. "Write", because "Write" also covers the "write extended attributes"
  3444. permission. When setting digit 0 for group or others, to indicate no
  3445. permissions, they will still get individual permissions "read
  3446. attributes", "read extended attributes" and "read permissions". This is
  3447. done for compatibility reasons, e.g. to allow users without additional
  3448. permissions to be able to read basic metadata about files like in Unix.
  3449. WinFsp 2021 (version 1.9) introduced a new FUSE option "FileSecurity",
  3450. that allows the complete specification of file security descriptors
  3451. using SDDL. With this you get detailed control of the resulting
  3452. permissions, compared to use of the POSIX permissions described above,
  3453. and no additional permissions will be added automatically for
  3454. compatibility with Unix. Some example use cases will following.
  3455. If you set POSIX permissions for only allowing access to the owner,
  3456. using --file-perms 0600 --dir-perms 0700, the user group and the
  3457. built-in "Everyone" group will still be given some special permissions,
  3458. as described above. Some programs may then (incorrectly) interpret this
  3459. as the file being accessible by everyone, for example an SSH client may
  3460. warn about "unprotected private key file". You can work around this by
  3461. specifying -o FileSecurity="D:P(A;;FA;;;OW)", which sets file all access
  3462. (FA) to the owner (OW), and nothing else.
  3463. When setting write permissions then, except for the owner, this does not
  3464. include the "write extended attributes" permission, as mentioned above.
  3465. This may prevent applications from writing to files, giving permission
  3466. denied error instead. To set working write permissions for the built-in
  3467. "Everyone" group, similar to what it gets by default but with the
  3468. addition of the "write extended attributes", you can specify
  3469. -o FileSecurity="D:P(A;;FRFW;;;WD)", which sets file read (FR) and file
  3470. write (FW) to everyone (WD). If file execute (FX) is also needed, then
  3471. change to -o FileSecurity="D:P(A;;FRFWFX;;;WD)", or set file all access
  3472. (FA) to get full access permissions, including delete, with
  3473. -o FileSecurity="D:P(A;;FA;;;WD)".
  3474. Windows caveats
  3475. Drives created as Administrator are not visible to other accounts, not
  3476. even an account that was elevated to Administrator with the User Account
  3477. Control (UAC) feature. A result of this is that if you mount to a drive
  3478. letter from a Command Prompt run as Administrator, and then try to
  3479. access the same drive from Windows Explorer (which does not run as
  3480. Administrator), you will not be able to see the mounted drive.
  3481. If you don't need to access the drive from applications running with
  3482. administrative privileges, the easiest way around this is to always
  3483. create the mount from a non-elevated command prompt.
  3484. To make mapped drives available to the user account that created them
  3485. regardless if elevated or not, there is a special Windows setting called
  3486. linked connections that can be enabled.
  3487. It is also possible to make a drive mount available to everyone on the
  3488. system, by running the process creating it as the built-in SYSTEM
  3489. account. There are several ways to do this: One is to use the
  3490. command-line utility PsExec, from Microsoft's Sysinternals suite, which
  3491. has option -s to start processes as the SYSTEM account. Another
  3492. alternative is to run the mount command from a Windows Scheduled Task,
  3493. or a Windows Service, configured to run as the SYSTEM account. A third
  3494. alternative is to use the WinFsp.Launcher infrastructure). Read more in
  3495. the install documentation. Note that when running rclone as another
  3496. user, it will not use the configuration file from your profile unless
  3497. you tell it to with the --config option. Note also that it is now the
  3498. SYSTEM account that will have the owner permissions, and other accounts
  3499. will have permissions according to the group or others scopes. As
  3500. mentioned above, these will then not get the "write extended attributes"
  3501. permission, and this may prevent writing to files. You can work around
  3502. this with the FileSecurity option, see example above.
  3503. Note that mapping to a directory path, instead of a drive letter, does
  3504. not suffer from the same limitations.
  3505. Mounting on macOS
  3506. Mounting on macOS can be done either via built-in NFS server, macFUSE
  3507. (also known as osxfuse) or FUSE-T. macFUSE is a traditional FUSE driver
  3508. utilizing a macOS kernel extension (kext). FUSE-T is an alternative FUSE
  3509. system which "mounts" via an NFSv4 local server.
  3510. Unicode Normalization
  3511. It is highly recommended to keep the default of
  3512. --no-unicode-normalization=false for all mount and serve commands on
  3513. macOS. For details, see vfs-case-sensitivity.
  3514. NFS mount
  3515. This method spins up an NFS server using serve nfs command and mounts it
  3516. to the specified mountpoint. If you run this in background mode using
  3517. |--daemon|, you will need to send SIGTERM signal to the rclone process
  3518. using |kill| command to stop the mount.
  3519. Note that --nfs-cache-handle-limit controls the maximum number of cached
  3520. file handles stored by the nfsmount caching handler. This should not be
  3521. set too low or you may experience errors when trying to access files.
  3522. The default is 1000000, but consider lowering this limit if the server's
  3523. system resource usage causes problems.
  3524. macFUSE Notes
  3525. If installing macFUSE using dmg packages from the website, rclone will
  3526. locate the macFUSE libraries without any further intervention. If
  3527. however, macFUSE is installed using the macports package manager, the
  3528. following addition steps are required.
  3529. sudo mkdir /usr/local/lib
  3530. cd /usr/local/lib
  3531. sudo ln -s /opt/local/lib/libfuse.2.dylib
  3532. FUSE-T Limitations, Caveats, and Notes
  3533. There are some limitations, caveats, and notes about how it works. These
  3534. are current as of FUSE-T version 1.0.14.
  3535. ModTime update on read
  3536. As per the FUSE-T wiki:
  3537. File access and modification times cannot be set separately as it
  3538. seems to be an issue with the NFS client which always modifies both.
  3539. Can be reproduced with 'touch -m' and 'touch -a' commands
  3540. This means that viewing files with various tools, notably macOS Finder,
  3541. will cause rlcone to update the modification time of the file. This may
  3542. make rclone upload a full new copy of the file.
  3543. Read Only mounts
  3544. When mounting with --read-only, attempts to write to files will fail
  3545. silently as opposed to with a clear warning as in macFUSE.
  3546. Limitations
  3547. Without the use of --vfs-cache-mode this can only write files
  3548. sequentially, it can only seek when reading. This means that many
  3549. applications won't work with their files on an rclone mount without
  3550. --vfs-cache-mode writes or --vfs-cache-mode full. See the VFS File
  3551. Caching section for more info. When using NFS mount on macOS, if you
  3552. don't specify |--vfs-cache-mode| the mount point will be read-only.
  3553. The bucket-based remotes (e.g. Swift, S3, Google Compute Storage, B2) do
  3554. not support the concept of empty directories, so empty directories will
  3555. have a tendency to disappear once they fall out of the directory cache.
  3556. When rclone mount is invoked on Unix with --daemon flag, the main rclone
  3557. program will wait for the background mount to become ready or until the
  3558. timeout specified by the --daemon-wait flag. On Linux it can check mount
  3559. status using ProcFS so the flag in fact sets maximum time to wait, while
  3560. the real wait can be less. On macOS / BSD the time to wait is constant
  3561. and the check is performed only at the end. We advise you to set wait
  3562. time on macOS reasonably.
  3563. Only supported on Linux, FreeBSD, OS X and Windows at the moment.
  3564. rclone mount vs rclone sync/copy
  3565. File systems expect things to be 100% reliable, whereas cloud storage
  3566. systems are a long way from 100% reliable. The rclone sync/copy commands
  3567. cope with this with lots of retries. However rclone mount can't use
  3568. retries in the same way without making local copies of the uploads. Look
  3569. at the VFS File Caching for solutions to make mount more reliable.
  3570. Attribute caching
  3571. You can use the flag --attr-timeout to set the time the kernel caches
  3572. the attributes (size, modification time, etc.) for directory entries.
  3573. The default is 1s which caches files just long enough to avoid too many
  3574. callbacks to rclone from the kernel.
  3575. In theory 0s should be the correct value for filesystems which can
  3576. change outside the control of the kernel. However this causes quite a
  3577. few problems such as rclone using too much memory, rclone not serving
  3578. files to samba and excessive time listing directories.
  3579. The kernel can cache the info about a file for the time given by
  3580. --attr-timeout. You may see corruption if the remote file changes length
  3581. during this window. It will show up as either a truncated file or a file
  3582. with garbage on the end. With --attr-timeout 1s this is very unlikely
  3583. but not impossible. The higher you set --attr-timeout the more likely it
  3584. is. The default setting of "1s" is the lowest setting which mitigates
  3585. the problems above.
  3586. If you set it higher (10s or 1m say) then the kernel will call back to
  3587. rclone less often making it more efficient, however there is more chance
  3588. of the corruption issue above.
  3589. If files don't change on the remote outside of the control of rclone
  3590. then there is no chance of corruption.
  3591. This is the same as setting the attr_timeout option in mount.fuse.
  3592. Filters
  3593. Note that all the rclone filters can be used to select a subset of the
  3594. files to be visible in the mount.
  3595. systemd
  3596. When running rclone mount as a systemd service, it is possible to use
  3597. Type=notify. In this case the service will enter the started state after
  3598. the mountpoint has been successfully set up. Units having the rclone
  3599. mount service specified as a requirement will see all files and folders
  3600. immediately in this mode.
  3601. Note that systemd runs mount units without any environment variables
  3602. including PATH or HOME. This means that tilde (~) expansion will not
  3603. work and you should provide --config and --cache-dir explicitly as
  3604. absolute paths via rclone arguments. Since mounting requires the
  3605. fusermount program, rclone will use the fallback PATH of /bin:/usr/bin
  3606. in this scenario. Please ensure that fusermount is present on this PATH.
  3607. Rclone as Unix mount helper
  3608. The core Unix program /bin/mount normally takes the -t FSTYPE argument
  3609. then runs the /sbin/mount.FSTYPE helper program passing it mount options
  3610. as -o key=val,... or --opt=.... Automount (classic or systemd) behaves
  3611. in a similar way.
  3612. rclone by default expects GNU-style flags --key val. To run it as a
  3613. mount helper you should symlink rclone binary to /sbin/mount.rclone and
  3614. optionally /usr/bin/rclonefs, e.g.
  3615. ln -s /usr/bin/rclone /sbin/mount.rclone. rclone will detect it and
  3616. translate command-line arguments appropriately.
  3617. Now you can run classic mounts like this:
  3618. mount sftp1:subdir /mnt/data -t rclone -o vfs_cache_mode=writes,sftp_key_file=/path/to/pem
  3619. or create systemd mount units:
  3620. # /etc/systemd/system/mnt-data.mount
  3621. [Unit]
  3622. Description=Mount for /mnt/data
  3623. [Mount]
  3624. Type=rclone
  3625. What=sftp1:subdir
  3626. Where=/mnt/data
  3627. Options=rw,_netdev,allow_other,args2env,vfs-cache-mode=writes,config=/etc/rclone.conf,cache-dir=/var/rclone
  3628. optionally accompanied by systemd automount unit
  3629. # /etc/systemd/system/mnt-data.automount
  3630. [Unit]
  3631. Description=AutoMount for /mnt/data
  3632. [Automount]
  3633. Where=/mnt/data
  3634. TimeoutIdleSec=600
  3635. [Install]
  3636. WantedBy=multi-user.target
  3637. or add in /etc/fstab a line like
  3638. sftp1:subdir /mnt/data rclone rw,noauto,nofail,_netdev,x-systemd.automount,args2env,vfs_cache_mode=writes,config=/etc/rclone.conf,cache_dir=/var/cache/rclone 0 0
  3639. or use classic Automountd. Remember to provide explicit
  3640. config=...,cache-dir=... as a workaround for mount units being run
  3641. without HOME.
  3642. Rclone in the mount helper mode will split -o argument(s) by comma,
  3643. replace _ by - and prepend -- to get the command-line flags. Options
  3644. containing commas or spaces can be wrapped in single or double quotes.
  3645. Any inner quotes inside outer quotes of the same type should be doubled.
  3646. Mount option syntax includes a few extra options treated specially:
  3647. - env.NAME=VALUE will set an environment variable for the mount
  3648. process. This helps with Automountd and Systemd.mount which don't
  3649. allow setting custom environment for mount helpers. Typically you
  3650. will use env.HTTPS_PROXY=proxy.host:3128 or env.HOME=/root
  3651. - command=cmount can be used to run cmount or any other rclone command
  3652. rather than the default mount.
  3653. - args2env will pass mount options to the mount helper running in
  3654. background via environment variables instead of command line
  3655. arguments. This allows to hide secrets from such commands as ps or
  3656. pgrep.
  3657. - vv... will be transformed into appropriate --verbose=N
  3658. - standard mount options like x-systemd.automount, _netdev, nosuid and
  3659. alike are intended only for Automountd and ignored by rclone. ##
  3660. VFS - Virtual File System
  3661. This command uses the VFS layer. This adapts the cloud storage objects
  3662. that rclone uses into something which looks much more like a disk filing
  3663. system.
  3664. Cloud storage objects have lots of properties which aren't like disk
  3665. files - you can't extend them or write to the middle of them, so the VFS
  3666. layer has to deal with that. Because there is no one right way of doing
  3667. this there are various options explained below.
  3668. The VFS layer also implements a directory cache - this caches info about
  3669. files and directories (but not the data) in memory.
  3670. VFS Directory Cache
  3671. Using the --dir-cache-time flag, you can control how long a directory
  3672. should be considered up to date and not refreshed from the backend.
  3673. Changes made through the VFS will appear immediately or invalidate the
  3674. cache.
  3675. --dir-cache-time duration Time to cache directory entries for (default 5m0s)
  3676. --poll-interval duration Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable (default 1m0s)
  3677. However, changes made directly on the cloud storage by the web interface
  3678. or a different copy of rclone will only be picked up once the directory
  3679. cache expires if the backend configured does not support polling for
  3680. changes. If the backend supports polling, changes will be picked up
  3681. within the polling interval.
  3682. You can send a SIGHUP signal to rclone for it to flush all directory
  3683. caches, regardless of how old they are. Assuming only one rclone
  3684. instance is running, you can reset the cache like this:
  3685. kill -SIGHUP $(pidof rclone)
  3686. If you configure rclone with a remote control then you can use rclone rc
  3687. to flush the whole directory cache:
  3688. rclone rc vfs/forget
  3689. Or individual files or directories:
  3690. rclone rc vfs/forget file=path/to/file dir=path/to/dir
  3691. VFS File Buffering
  3692. The --buffer-size flag determines the amount of memory, that will be
  3693. used to buffer data in advance.
  3694. Each open file will try to keep the specified amount of data in memory
  3695. at all times. The buffered data is bound to one open file and won't be
  3696. shared.
  3697. This flag is a upper limit for the used memory per open file. The buffer
  3698. will only use memory for data that is downloaded but not not yet read.
  3699. If the buffer is empty, only a small amount of memory will be used.
  3700. The maximum memory used by rclone for buffering can be up to
  3701. --buffer-size * open files.
  3702. VFS File Caching
  3703. These flags control the VFS file caching options. File caching is
  3704. necessary to make the VFS layer appear compatible with a normal file
  3705. system. It can be disabled at the cost of some compatibility.
  3706. For example you'll need to enable VFS caching if you want to read and
  3707. write simultaneously to a file. See below for more details.
  3708. Note that the VFS cache is separate from the cache backend and you may
  3709. find that you need one or the other or both.
  3710. --cache-dir string Directory rclone will use for caching.
  3711. --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
  3712. --vfs-cache-max-age duration Max time since last access of objects in the cache (default 1h0m0s)
  3713. --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
  3714. --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
  3715. --vfs-cache-poll-interval duration Interval to poll the cache for stale objects (default 1m0s)
  3716. --vfs-write-back duration Time to writeback files after last use when using cache (default 5s)
  3717. If run with -vv rclone will print the location of the file cache. The
  3718. files are stored in the user cache file area which is OS dependent but
  3719. can be controlled with --cache-dir or setting the appropriate
  3720. environment variable.
  3721. The cache has 4 different modes selected by --vfs-cache-mode. The higher
  3722. the cache mode the more compatible rclone becomes at the cost of using
  3723. disk space.
  3724. Note that files are written back to the remote only when they are closed
  3725. and if they haven't been accessed for --vfs-write-back seconds. If
  3726. rclone is quit or dies with files that haven't been uploaded, these will
  3727. be uploaded next time rclone is run with the same flags.
  3728. If using --vfs-cache-max-size or --vfs-cache-min-free-size note that the
  3729. cache may exceed these quotas for two reasons. Firstly because it is
  3730. only checked every --vfs-cache-poll-interval. Secondly because open
  3731. files cannot be evicted from the cache. When --vfs-cache-max-size or
  3732. --vfs-cache-min-free-size is exceeded, rclone will attempt to evict the
  3733. least accessed files from the cache first. rclone will start with files
  3734. that haven't been accessed for the longest. This cache flushing strategy
  3735. is efficient and more relevant files are likely to remain cached.
  3736. The --vfs-cache-max-age will evict files from the cache after the set
  3737. time since last access has passed. The default value of 1 hour will
  3738. start evicting files from cache that haven't been accessed for 1 hour.
  3739. When a cached file is accessed the 1 hour timer is reset to 0 and will
  3740. wait for 1 more hour before evicting. Specify the time with standard
  3741. notation, s, m, h, d, w .
  3742. You should not run two copies of rclone using the same VFS cache with
  3743. the same or overlapping remotes if using --vfs-cache-mode > off. This
  3744. can potentially cause data corruption if you do. You can work around
  3745. this by giving each rclone its own cache hierarchy with --cache-dir. You
  3746. don't need to worry about this if the remotes in use don't overlap.
  3747. --vfs-cache-mode off
  3748. In this mode (the default) the cache will read directly from the remote
  3749. and write directly to the remote without caching anything on disk.
  3750. This will mean some operations are not possible
  3751. - Files can't be opened for both read AND write
  3752. - Files opened for write can't be seeked
  3753. - Existing files opened for write must have O_TRUNC set
  3754. - Files open for read with O_TRUNC will be opened write only
  3755. - Files open for write only will behave as if O_TRUNC was supplied
  3756. - Open modes O_APPEND, O_TRUNC are ignored
  3757. - If an upload fails it can't be retried
  3758. --vfs-cache-mode minimal
  3759. This is very similar to "off" except that files opened for read AND
  3760. write will be buffered to disk. This means that files opened for write
  3761. will be a lot more compatible, but uses the minimal disk space.
  3762. These operations are not possible
  3763. - Files opened for write only can't be seeked
  3764. - Existing files opened for write must have O_TRUNC set
  3765. - Files opened for write only will ignore O_APPEND, O_TRUNC
  3766. - If an upload fails it can't be retried
  3767. --vfs-cache-mode writes
  3768. In this mode files opened for read only are still read directly from the
  3769. remote, write only and read/write files are buffered to disk first.
  3770. This mode should support all normal file system operations.
  3771. If an upload fails it will be retried at exponentially increasing
  3772. intervals up to 1 minute.
  3773. --vfs-cache-mode full
  3774. In this mode all reads and writes are buffered to and from disk. When
  3775. data is read from the remote this is buffered to disk as well.
  3776. In this mode the files in the cache will be sparse files and rclone will
  3777. keep track of which bits of the files it has downloaded.
  3778. So if an application only reads the starts of each file, then rclone
  3779. will only buffer the start of the file. These files will appear to be
  3780. their full size in the cache, but they will be sparse files with only
  3781. the data that has been downloaded present in them.
  3782. This mode should support all normal file system operations and is
  3783. otherwise identical to --vfs-cache-mode writes.
  3784. When reading a file rclone will read --buffer-size plus --vfs-read-ahead
  3785. bytes ahead. The --buffer-size is buffered in memory whereas the
  3786. --vfs-read-ahead is buffered on disk.
  3787. When using this mode it is recommended that --buffer-size is not set too
  3788. large and --vfs-read-ahead is set large if required.
  3789. IMPORTANT not all file systems support sparse files. In particular
  3790. FAT/exFAT do not. Rclone will perform very badly if the cache directory
  3791. is on a filesystem which doesn't support sparse files and it will log an
  3792. ERROR message if one is detected.
  3793. Fingerprinting
  3794. Various parts of the VFS use fingerprinting to see if a local file copy
  3795. has changed relative to a remote file. Fingerprints are made from:
  3796. - size
  3797. - modification time
  3798. - hash
  3799. where available on an object.
  3800. On some backends some of these attributes are slow to read (they take an
  3801. extra API call per object, or extra work per object).
  3802. For example hash is slow with the local and sftp backends as they have
  3803. to read the entire file and hash it, and modtime is slow with the s3,
  3804. swift, ftp and qinqstor backends because they need to do an extra API
  3805. call to fetch it.
  3806. If you use the --vfs-fast-fingerprint flag then rclone will not include
  3807. the slow operations in the fingerprint. This makes the fingerprinting
  3808. less accurate but much faster and will improve the opening time of
  3809. cached files.
  3810. If you are running a vfs cache over local, s3 or swift backends then
  3811. using this flag is recommended.
  3812. Note that if you change the value of this flag, the fingerprints of the
  3813. files in the cache may be invalidated and the files will need to be
  3814. downloaded again.
  3815. VFS Chunked Reading
  3816. When rclone reads files from a remote it reads them in chunks. This
  3817. means that rather than requesting the whole file rclone reads the chunk
  3818. specified. This can reduce the used download quota for some remotes by
  3819. requesting only chunks from the remote that are actually read, at the
  3820. cost of an increased number of requests.
  3821. These flags control the chunking:
  3822. --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128M)
  3823. --vfs-read-chunk-size-limit SizeSuffix Max chunk doubling size (default off)
  3824. Rclone will start reading a chunk of size --vfs-read-chunk-size, and
  3825. then double the size for each read. When --vfs-read-chunk-size-limit is
  3826. specified, and greater than --vfs-read-chunk-size, the chunk size for
  3827. each open file will get doubled only until the specified value is
  3828. reached. If the value is "off", which is the default, the limit is
  3829. disabled and the chunk size will grow indefinitely.
  3830. With --vfs-read-chunk-size 100M and --vfs-read-chunk-size-limit 0 the
  3831. following parts will be downloaded: 0-100M, 100M-200M, 200M-300M,
  3832. 300M-400M and so on. When --vfs-read-chunk-size-limit 500M is specified,
  3833. the result would be 0-100M, 100M-300M, 300M-700M, 700M-1200M,
  3834. 1200M-1700M and so on.
  3835. Setting --vfs-read-chunk-size to 0 or "off" disables chunked reading.
  3836. VFS Performance
  3837. These flags may be used to enable/disable features of the VFS for
  3838. performance or other reasons. See also the chunked reading feature.
  3839. In particular S3 and Swift benefit hugely from the --no-modtime flag (or
  3840. use --use-server-modtime for a slightly different effect) as each read
  3841. of the modification time takes a transaction.
  3842. --no-checksum Don't compare checksums on up/download.
  3843. --no-modtime Don't read/write the modification time (can speed things up).
  3844. --no-seek Don't allow seeking in files.
  3845. --read-only Only allow read-only access.
  3846. Sometimes rclone is delivered reads or writes out of order. Rather than
  3847. seeking rclone will wait a short time for the in sequence read or write
  3848. to come in. These flags only come into effect when not using an on disk
  3849. cache file.
  3850. --vfs-read-wait duration Time to wait for in-sequence read before seeking (default 20ms)
  3851. --vfs-write-wait duration Time to wait for in-sequence write before giving error (default 1s)
  3852. When using VFS write caching (--vfs-cache-mode with value writes or
  3853. full), the global flag --transfers can be set to adjust the number of
  3854. parallel uploads of modified files from the cache (the related global
  3855. flag --checkers has no effect on the VFS).
  3856. --transfers int Number of file transfers to run in parallel (default 4)
  3857. VFS Case Sensitivity
  3858. Linux file systems are case-sensitive: two files can differ only by
  3859. case, and the exact case must be used when opening a file.
  3860. File systems in modern Windows are case-insensitive but case-preserving:
  3861. although existing files can be opened using any case, the exact case
  3862. used to create the file is preserved and available for programs to
  3863. query. It is not allowed for two files in the same directory to differ
  3864. only by case.
  3865. Usually file systems on macOS are case-insensitive. It is possible to
  3866. make macOS file systems case-sensitive but that is not the default.
  3867. The --vfs-case-insensitive VFS flag controls how rclone handles these
  3868. two cases. If its value is "false", rclone passes file names to the
  3869. remote as-is. If the flag is "true" (or appears without a value on the
  3870. command line), rclone may perform a "fixup" as explained below.
  3871. The user may specify a file name to open/delete/rename/etc with a case
  3872. different than what is stored on the remote. If an argument refers to an
  3873. existing file with exactly the same name, then the case of the existing
  3874. file on the disk will be used. However, if a file name with exactly the
  3875. same name is not found but a name differing only by case exists, rclone
  3876. will transparently fixup the name. This fixup happens only when an
  3877. existing file is requested. Case sensitivity of file names created anew
  3878. by rclone is controlled by the underlying remote.
  3879. Note that case sensitivity of the operating system running rclone (the
  3880. target) may differ from case sensitivity of a file system presented by
  3881. rclone (the source). The flag controls whether "fixup" is performed to
  3882. satisfy the target.
  3883. If the flag is not provided on the command line, then its default value
  3884. depends on the operating system where rclone runs: "true" on Windows and
  3885. macOS, "false" otherwise. If the flag is provided without a value, then
  3886. it is "true".
  3887. The --no-unicode-normalization flag controls whether a similar "fixup"
  3888. is performed for filenames that differ but are canonically equivalent
  3889. with respect to unicode. Unicode normalization can be particularly
  3890. helpful for users of macOS, which prefers form NFD instead of the NFC
  3891. used by most other platforms. It is therefore highly recommended to keep
  3892. the default of false on macOS, to avoid encoding compatibility issues.
  3893. In the (probably unlikely) event that a directory has multiple duplicate
  3894. filenames after applying case and unicode normalization, the
  3895. --vfs-block-norm-dupes flag allows hiding these duplicates. This comes
  3896. with a performance tradeoff, as rclone will have to scan the entire
  3897. directory for duplicates when listing a directory. For this reason, it
  3898. is recommended to leave this disabled if not needed. However, macOS
  3899. users may wish to consider using it, as otherwise, if a remote directory
  3900. contains both NFC and NFD versions of the same filename, an odd
  3901. situation will occur: both versions of the file will be visible in the
  3902. mount, and both will appear to be editable, however, editing either
  3903. version will actually result in only the NFD version getting edited
  3904. under the hood. --vfs-block- norm-dupes prevents this confusion by
  3905. detecting this scenario, hiding the duplicates, and logging an error,
  3906. similar to how this is handled in rclone sync.
  3907. VFS Disk Options
  3908. This flag allows you to manually set the statistics about the filing
  3909. system. It can be useful when those statistics cannot be read correctly
  3910. automatically.
  3911. --vfs-disk-space-total-size Manually set the total disk space size (example: 256G, default: -1)
  3912. Alternate report of used bytes
  3913. Some backends, most notably S3, do not report the amount of bytes used.
  3914. If you need this information to be available when running df on the
  3915. filesystem, then pass the flag --vfs-used-is-size to rclone. With this
  3916. flag set, instead of relying on the backend to report this information,
  3917. rclone will scan the whole remote similar to rclone size and compute the
  3918. total used space itself.
  3919. WARNING. Contrary to rclone size, this flag ignores filters so that the
  3920. result is accurate. However, this is very inefficient and may cost lots
  3921. of API calls resulting in extra charges. Use it as a last resort and
  3922. only with caching.
  3923. rclone mount remote:path /path/to/mountpoint [flags]
  3924. Options
  3925. --allow-non-empty Allow mounting over a non-empty directory (not supported on Windows)
  3926. --allow-other Allow access to other users (not supported on Windows)
  3927. --allow-root Allow access to root user (not supported on Windows)
  3928. --async-read Use asynchronous reads (not supported on Windows) (default true)
  3929. --attr-timeout Duration Time for which file/directory attributes are cached (default 1s)
  3930. --daemon Run mount in background and exit parent process (as background output is suppressed, use --log-file with --log-format=pid,... to monitor) (not supported on Windows)
  3931. --daemon-timeout Duration Time limit for rclone to respond to kernel (not supported on Windows) (default 0s)
  3932. --daemon-wait Duration Time to wait for ready mount from daemon (maximum time on Linux, constant sleep time on OSX/BSD) (not supported on Windows) (default 1m0s)
  3933. --debug-fuse Debug the FUSE internals - needs -v
  3934. --default-permissions Makes kernel enforce access control based on the file mode (not supported on Windows)
  3935. --devname string Set the device name - default is remote:path
  3936. --dir-cache-time Duration Time to cache directory entries for (default 5m0s)
  3937. --dir-perms FileMode Directory permissions (default 0777)
  3938. --file-perms FileMode File permissions (default 0666)
  3939. --fuse-flag stringArray Flags or arguments to be passed direct to libfuse/WinFsp (repeat if required)
  3940. --gid uint32 Override the gid field set by the filesystem (not supported on Windows) (default 1000)
  3941. -h, --help help for mount
  3942. --max-read-ahead SizeSuffix The number of bytes that can be prefetched for sequential reads (not supported on Windows) (default 128Ki)
  3943. --mount-case-insensitive Tristate Tell the OS the mount is case insensitive (true) or sensitive (false) regardless of the backend (auto) (default unset)
  3944. --network-mode Mount as remote network drive, instead of fixed disk drive (supported on Windows only)
  3945. --no-checksum Don't compare checksums on up/download
  3946. --no-modtime Don't read/write the modification time (can speed things up)
  3947. --no-seek Don't allow seeking in files
  3948. --noappledouble Ignore Apple Double (._) and .DS_Store files (supported on OSX only) (default true)
  3949. --noapplexattr Ignore all "com.apple.*" extended attributes (supported on OSX only)
  3950. -o, --option stringArray Option for libfuse/WinFsp (repeat if required)
  3951. --poll-interval Duration Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s)
  3952. --read-only Only allow read-only access
  3953. --uid uint32 Override the uid field set by the filesystem (not supported on Windows) (default 1000)
  3954. --umask int Override the permission bits set by the filesystem (not supported on Windows) (default 2)
  3955. --vfs-block-norm-dupes If duplicate filenames exist in the same directory (after normalization), log an error and hide the duplicates (may have a performance cost)
  3956. --vfs-cache-max-age Duration Max time since last access of objects in the cache (default 1h0m0s)
  3957. --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
  3958. --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
  3959. --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
  3960. --vfs-cache-poll-interval Duration Interval to poll the cache for stale objects (default 1m0s)
  3961. --vfs-case-insensitive If a file name not found, find a case insensitive match
  3962. --vfs-disk-space-total-size SizeSuffix Specify the total space of disk (default off)
  3963. --vfs-fast-fingerprint Use fast (less accurate) fingerprints for change detection
  3964. --vfs-read-ahead SizeSuffix Extra read ahead over --buffer-size when using cache-mode full
  3965. --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128Mi)
  3966. --vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached ('off' is unlimited) (default off)
  3967. --vfs-read-wait Duration Time to wait for in-sequence read before seeking (default 20ms)
  3968. --vfs-refresh Refreshes the directory cache recursively in the background on start
  3969. --vfs-used-is-size rclone size Use the rclone size algorithm for Used size
  3970. --vfs-write-back Duration Time to writeback files after last use when using cache (default 5s)
  3971. --vfs-write-wait Duration Time to wait for in-sequence write before giving error (default 1s)
  3972. --volname string Set the volume name (supported on Windows and OSX only)
  3973. --write-back-cache Makes kernel buffer writes before sending them to rclone (without this, writethrough caching is used) (not supported on Windows)
  3974. Filter Options
  3975. Flags for filtering directory listings.
  3976. --delete-excluded Delete files on dest excluded from sync
  3977. --exclude stringArray Exclude files matching pattern
  3978. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  3979. --exclude-if-present stringArray Exclude directories if filename is present
  3980. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  3981. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  3982. -f, --filter stringArray Add a file filtering rule
  3983. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  3984. --ignore-case Ignore case in filters (case insensitive)
  3985. --include stringArray Include files matching pattern
  3986. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  3987. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  3988. --max-depth int If set limits the recursion depth to this (default -1)
  3989. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  3990. --metadata-exclude stringArray Exclude metadatas matching pattern
  3991. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  3992. --metadata-filter stringArray Add a metadata filtering rule
  3993. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  3994. --metadata-include stringArray Include metadatas matching pattern
  3995. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  3996. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  3997. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  3998. See the global flags page for global options not listed here.
  3999. SEE ALSO
  4000. - rclone - Show help for rclone commands, flags and backends.
  4001. rclone moveto
  4002. Move file or directory from source to dest.
  4003. Synopsis
  4004. If source:path is a file or directory then it moves it to a file or
  4005. directory named dest:path.
  4006. This can be used to rename files or upload single files to other than
  4007. their existing name. If the source is a directory then it acts exactly
  4008. like the move command.
  4009. So
  4010. rclone moveto src dst
  4011. where src and dst are rclone paths, either remote:path or /path/to/local
  4012. or C:.
  4013. This will:
  4014. if src is file
  4015. move it to dst, overwriting an existing file if it exists
  4016. if src is directory
  4017. move it to dst, overwriting existing files if they exist
  4018. see move command for full details
  4019. This doesn't transfer files that are identical on src and dst, testing
  4020. by size and modification time or MD5SUM. src will be deleted on
  4021. successful transfer.
  4022. Important: Since this can cause data loss, test first with the --dry-run
  4023. or the --interactive/-i flag.
  4024. Note: Use the -P/--progress flag to view real-time transfer statistics.
  4025. rclone moveto source:path dest:path [flags]
  4026. Options
  4027. -h, --help help for moveto
  4028. Copy Options
  4029. Flags for anything which can Copy a file.
  4030. --check-first Do all the checks before starting transfers
  4031. -c, --checksum Check for changes with size & checksum (if available, or fallback to size only).
  4032. --compare-dest stringArray Include additional comma separated server-side paths during comparison
  4033. --copy-dest stringArray Implies --compare-dest but also copies files from paths into destination
  4034. --cutoff-mode HARD|SOFT|CAUTIOUS Mode to stop transfers when reaching the max transfer limit HARD|SOFT|CAUTIOUS (default HARD)
  4035. --ignore-case-sync Ignore case when synchronizing
  4036. --ignore-checksum Skip post copy check of checksums
  4037. --ignore-existing Skip all files that exist on destination
  4038. --ignore-size Ignore size when skipping use modtime or checksum
  4039. -I, --ignore-times Don't skip items that match size and time - transfer all unconditionally
  4040. --immutable Do not modify files, fail if existing files have been modified
  4041. --inplace Download directly to destination file instead of atomic download to temp/rename
  4042. --max-backlog int Maximum number of objects in sync or check backlog (default 10000)
  4043. --max-duration Duration Maximum duration rclone will transfer data for (default 0s)
  4044. --max-transfer SizeSuffix Maximum size of data to transfer (default off)
  4045. -M, --metadata If set, preserve metadata when copying objects
  4046. --modify-window Duration Max time diff to be considered the same (default 1ns)
  4047. --multi-thread-chunk-size SizeSuffix Chunk size for multi-thread downloads / uploads, if not set by filesystem (default 64Mi)
  4048. --multi-thread-cutoff SizeSuffix Use multi-thread downloads for files above this size (default 256Mi)
  4049. --multi-thread-streams int Number of streams to use for multi-thread downloads (default 4)
  4050. --multi-thread-write-buffer-size SizeSuffix In memory buffer size for writing when in multi-thread mode (default 128Ki)
  4051. --no-check-dest Don't check the destination, copy regardless
  4052. --no-traverse Don't traverse destination file system on copy
  4053. --no-update-dir-modtime Don't update directory modification times
  4054. --no-update-modtime Don't update destination modtime if files identical
  4055. --order-by string Instructions on how to order the transfers, e.g. 'size,descending'
  4056. --partial-suffix string Add partial-suffix to temporary file name when --inplace is not used (default ".partial")
  4057. --refresh-times Refresh the modtime of remote files
  4058. --server-side-across-configs Allow server-side operations (e.g. copy) to work across different configs
  4059. --size-only Skip based on size only, not modtime or checksum
  4060. --streaming-upload-cutoff SizeSuffix Cutoff for switching to chunked upload if file size is unknown, upload starts after reaching cutoff or when file ends (default 100Ki)
  4061. -u, --update Skip files that are newer on the destination
  4062. Important Options
  4063. Important flags useful for most commands.
  4064. -n, --dry-run Do a trial run with no permanent changes
  4065. -i, --interactive Enable interactive mode
  4066. -v, --verbose count Print lots more stuff (repeat for more)
  4067. Filter Options
  4068. Flags for filtering directory listings.
  4069. --delete-excluded Delete files on dest excluded from sync
  4070. --exclude stringArray Exclude files matching pattern
  4071. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  4072. --exclude-if-present stringArray Exclude directories if filename is present
  4073. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  4074. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  4075. -f, --filter stringArray Add a file filtering rule
  4076. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  4077. --ignore-case Ignore case in filters (case insensitive)
  4078. --include stringArray Include files matching pattern
  4079. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  4080. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  4081. --max-depth int If set limits the recursion depth to this (default -1)
  4082. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  4083. --metadata-exclude stringArray Exclude metadatas matching pattern
  4084. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  4085. --metadata-filter stringArray Add a metadata filtering rule
  4086. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  4087. --metadata-include stringArray Include metadatas matching pattern
  4088. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  4089. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  4090. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  4091. Listing Options
  4092. Flags for listing directories.
  4093. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  4094. --fast-list Use recursive list if available; uses more memory but fewer transactions
  4095. See the global flags page for global options not listed here.
  4096. SEE ALSO
  4097. - rclone - Show help for rclone commands, flags and backends.
  4098. rclone ncdu
  4099. Explore a remote with a text based user interface.
  4100. Synopsis
  4101. This displays a text based user interface allowing the navigation of a
  4102. remote. It is most useful for answering the question - "What is using
  4103. all my disk space?".
  4104. To make the user interface it first scans the entire remote given and
  4105. builds an in memory representation. rclone ncdu can be used during this
  4106. scanning phase and you will see it building up the directory structure
  4107. as it goes along.
  4108. You can interact with the user interface using key presses, press '?' to
  4109. toggle the help on and off. The supported keys are:
  4110. ↑,↓ or k,j to Move
  4111. →,l to enter
  4112. ←,h to return
  4113. g toggle graph
  4114. c toggle counts
  4115. a toggle average size in directory
  4116. m toggle modified time
  4117. u toggle human-readable format
  4118. n,s,C,A,M sort by name,size,count,asize,mtime
  4119. d delete file/directory
  4120. v select file/directory
  4121. V enter visual select mode
  4122. D delete selected files/directories
  4123. y copy current path to clipboard
  4124. Y display current path
  4125. ^L refresh screen (fix screen corruption)
  4126. r recalculate file sizes
  4127. ? to toggle help on and off
  4128. q/ESC/^c to quit
  4129. Listed files/directories may be prefixed by a one-character flag, some
  4130. of them combined with a description in brackets at end of line. These
  4131. flags have the following meaning:
  4132. e means this is an empty directory, i.e. contains no files (but
  4133. may contain empty subdirectories)
  4134. ~ means this is a directory where some of the files (possibly in
  4135. subdirectories) have unknown size, and therefore the directory
  4136. size may be underestimated (and average size inaccurate, as it
  4137. is average of the files with known sizes).
  4138. . means an error occurred while reading a subdirectory, and
  4139. therefore the directory size may be underestimated (and average
  4140. size inaccurate)
  4141. ! means an error occurred while reading this directory
  4142. This an homage to the ncdu tool but for rclone remotes. It is missing
  4143. lots of features at the moment but is useful as it stands.
  4144. Note that it might take some time to delete big files/directories. The
  4145. UI won't respond in the meantime since the deletion is done
  4146. synchronously.
  4147. For a non-interactive listing of the remote, see the tree command. To
  4148. just get the total size of the remote you can also use the size command.
  4149. rclone ncdu remote:path [flags]
  4150. Options
  4151. -h, --help help for ncdu
  4152. Filter Options
  4153. Flags for filtering directory listings.
  4154. --delete-excluded Delete files on dest excluded from sync
  4155. --exclude stringArray Exclude files matching pattern
  4156. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  4157. --exclude-if-present stringArray Exclude directories if filename is present
  4158. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  4159. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  4160. -f, --filter stringArray Add a file filtering rule
  4161. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  4162. --ignore-case Ignore case in filters (case insensitive)
  4163. --include stringArray Include files matching pattern
  4164. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  4165. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  4166. --max-depth int If set limits the recursion depth to this (default -1)
  4167. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  4168. --metadata-exclude stringArray Exclude metadatas matching pattern
  4169. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  4170. --metadata-filter stringArray Add a metadata filtering rule
  4171. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  4172. --metadata-include stringArray Include metadatas matching pattern
  4173. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  4174. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  4175. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  4176. Listing Options
  4177. Flags for listing directories.
  4178. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  4179. --fast-list Use recursive list if available; uses more memory but fewer transactions
  4180. See the global flags page for global options not listed here.
  4181. SEE ALSO
  4182. - rclone - Show help for rclone commands, flags and backends.
  4183. rclone nfsmount
  4184. Mount the remote as file system on a mountpoint.
  4185. Synopsis
  4186. rclone nfsmount allows Linux, FreeBSD, macOS and Windows to mount any of
  4187. Rclone's cloud storage systems as a file system with FUSE.
  4188. First set up your remote using rclone config. Check it works with
  4189. rclone ls etc.
  4190. On Linux and macOS, you can run mount in either foreground or background
  4191. (aka daemon) mode. Mount runs in foreground mode by default. Use the
  4192. --daemon flag to force background mode. On Windows you can run mount in
  4193. foreground only, the flag is ignored.
  4194. In background mode rclone acts as a generic Unix mount program: the main
  4195. program starts, spawns background rclone process to setup and maintain
  4196. the mount, waits until success or timeout and exits with appropriate
  4197. code (killing the child process if it fails).
  4198. On Linux/macOS/FreeBSD start the mount like this, where
  4199. /path/to/local/mount is an empty existing directory:
  4200. rclone nfsmount remote:path/to/files /path/to/local/mount
  4201. On Windows you can start a mount in different ways. See below for
  4202. details. If foreground mount is used interactively from a console
  4203. window, rclone will serve the mount and occupy the console so another
  4204. window should be used to work with the mount until rclone is interrupted
  4205. e.g. by pressing Ctrl-C.
  4206. The following examples will mount to an automatically assigned drive, to
  4207. specific drive letter X:, to path C:\path\parent\mount (where parent
  4208. directory or drive must exist, and mount must not exist, and is not
  4209. supported when mounting as a network drive), and the last example will
  4210. mount as network share \\cloud\remote and map it to an automatically
  4211. assigned drive:
  4212. rclone nfsmount remote:path/to/files *
  4213. rclone nfsmount remote:path/to/files X:
  4214. rclone nfsmount remote:path/to/files C:\path\parent\mount
  4215. rclone nfsmount remote:path/to/files \\cloud\remote
  4216. When the program ends while in foreground mode, either via Ctrl+C or
  4217. receiving a SIGINT or SIGTERM signal, the mount should be automatically
  4218. stopped.
  4219. When running in background mode the user will have to stop the mount
  4220. manually:
  4221. # Linux
  4222. fusermount -u /path/to/local/mount
  4223. # OS X
  4224. umount /path/to/local/mount
  4225. The umount operation can fail, for example when the mountpoint is busy.
  4226. When that happens, it is the user's responsibility to stop the mount
  4227. manually.
  4228. The size of the mounted file system will be set according to information
  4229. retrieved from the remote, the same as returned by the rclone about
  4230. command. Remotes with unlimited storage may report the used size only,
  4231. then an additional 1 PiB of free space is assumed. If the remote does
  4232. not support the about feature at all, then 1 PiB is set as both the
  4233. total and the free size.
  4234. Installing on Windows
  4235. To run rclone nfsmount on Windows, you will need to download and install
  4236. WinFsp.
  4237. WinFsp is an open-source Windows File System Proxy which makes it easy
  4238. to write user space file systems for Windows. It provides a FUSE
  4239. emulation layer which rclone uses combination with cgofuse. Both of
  4240. these packages are by Bill Zissimopoulos who was very helpful during the
  4241. implementation of rclone nfsmount for Windows.
  4242. Mounting modes on windows
  4243. Unlike other operating systems, Microsoft Windows provides a different
  4244. filesystem type for network and fixed drives. It optimises access on the
  4245. assumption fixed disk drives are fast and reliable, while network drives
  4246. have relatively high latency and less reliability. Some settings can
  4247. also be differentiated between the two types, for example that Windows
  4248. Explorer should just display icons and not create preview thumbnails for
  4249. image and video files on network drives.
  4250. In most cases, rclone will mount the remote as a normal, fixed disk
  4251. drive by default. However, you can also choose to mount it as a remote
  4252. network drive, often described as a network share. If you mount an
  4253. rclone remote using the default, fixed drive mode and experience
  4254. unexpected program errors, freezes or other issues, consider mounting as
  4255. a network drive instead.
  4256. When mounting as a fixed disk drive you can either mount to an unused
  4257. drive letter, or to a path representing a nonexistent subdirectory of an
  4258. existing parent directory or drive. Using the special value * will tell
  4259. rclone to automatically assign the next available drive letter, starting
  4260. with Z: and moving backward. Examples:
  4261. rclone nfsmount remote:path/to/files *
  4262. rclone nfsmount remote:path/to/files X:
  4263. rclone nfsmount remote:path/to/files C:\path\parent\mount
  4264. rclone nfsmount remote:path/to/files X:
  4265. Option --volname can be used to set a custom volume name for the mounted
  4266. file system. The default is to use the remote name and path.
  4267. To mount as network drive, you can add option --network-mode to your
  4268. nfsmount command. Mounting to a directory path is not supported in this
  4269. mode, it is a limitation Windows imposes on junctions, so the remote
  4270. must always be mounted to a drive letter.
  4271. rclone nfsmount remote:path/to/files X: --network-mode
  4272. A volume name specified with --volname will be used to create the
  4273. network share path. A complete UNC path, such as \\cloud\remote,
  4274. optionally with path \\cloud\remote\madeup\path, will be used as is. Any
  4275. other string will be used as the share part, after a default prefix
  4276. \\server\. If no volume name is specified then \\server\share will be
  4277. used. You must make sure the volume name is unique when you are mounting
  4278. more than one drive, or else the mount command will fail. The share name
  4279. will treated as the volume label for the mapped drive, shown in Windows
  4280. Explorer etc, while the complete \\server\share will be reported as the
  4281. remote UNC path by net use etc, just like a normal network drive
  4282. mapping.
  4283. If you specify a full network share UNC path with --volname, this will
  4284. implicitly set the --network-mode option, so the following two examples
  4285. have same result:
  4286. rclone nfsmount remote:path/to/files X: --network-mode
  4287. rclone nfsmount remote:path/to/files X: --volname \\server\share
  4288. You may also specify the network share UNC path as the mountpoint
  4289. itself. Then rclone will automatically assign a drive letter, same as
  4290. with * and use that as mountpoint, and instead use the UNC path
  4291. specified as the volume name, as if it were specified with the --volname
  4292. option. This will also implicitly set the --network-mode option. This
  4293. means the following two examples have same result:
  4294. rclone nfsmount remote:path/to/files \\cloud\remote
  4295. rclone nfsmount remote:path/to/files * --volname \\cloud\remote
  4296. There is yet another way to enable network mode, and to set the share
  4297. path, and that is to pass the "native" libfuse/WinFsp option directly:
  4298. --fuse-flag --VolumePrefix=\server\share. Note that the path must be
  4299. with just a single backslash prefix in this case.
  4300. Note: In previous versions of rclone this was the only supported method.
  4301. Read more about drive mapping
  4302. See also Limitations section below.
  4303. Windows filesystem permissions
  4304. The FUSE emulation layer on Windows must convert between the POSIX-based
  4305. permission model used in FUSE, and the permission model used in Windows,
  4306. based on access-control lists (ACL).
  4307. The mounted filesystem will normally get three entries in its
  4308. access-control list (ACL), representing permissions for the POSIX
  4309. permission scopes: Owner, group and others. By default, the owner and
  4310. group will be taken from the current user, and the built-in group
  4311. "Everyone" will be used to represent others. The user/group can be
  4312. customized with FUSE options "UserName" and "GroupName", e.g.
  4313. -o UserName=user123 -o GroupName="Authenticated Users". The permissions
  4314. on each entry will be set according to options --dir-perms and
  4315. --file-perms, which takes a value in traditional Unix numeric notation.
  4316. The default permissions corresponds to
  4317. --file-perms 0666 --dir-perms 0777, i.e. read and write permissions to
  4318. everyone. This means you will not be able to start any programs from the
  4319. mount. To be able to do that you must add execute permissions, e.g.
  4320. --file-perms 0777 --dir-perms 0777 to add it to everyone. If the program
  4321. needs to write files, chances are you will have to enable VFS File
  4322. Caching as well (see also limitations). Note that the default write
  4323. permission have some restrictions for accounts other than the owner,
  4324. specifically it lacks the "write extended attributes", as explained
  4325. next.
  4326. The mapping of permissions is not always trivial, and the result you see
  4327. in Windows Explorer may not be exactly like you expected. For example,
  4328. when setting a value that includes write access for the group or others
  4329. scope, this will be mapped to individual permissions "write attributes",
  4330. "write data" and "append data", but not "write extended attributes".
  4331. Windows will then show this as basic permission "Special" instead of
  4332. "Write", because "Write" also covers the "write extended attributes"
  4333. permission. When setting digit 0 for group or others, to indicate no
  4334. permissions, they will still get individual permissions "read
  4335. attributes", "read extended attributes" and "read permissions". This is
  4336. done for compatibility reasons, e.g. to allow users without additional
  4337. permissions to be able to read basic metadata about files like in Unix.
  4338. WinFsp 2021 (version 1.9) introduced a new FUSE option "FileSecurity",
  4339. that allows the complete specification of file security descriptors
  4340. using SDDL. With this you get detailed control of the resulting
  4341. permissions, compared to use of the POSIX permissions described above,
  4342. and no additional permissions will be added automatically for
  4343. compatibility with Unix. Some example use cases will following.
  4344. If you set POSIX permissions for only allowing access to the owner,
  4345. using --file-perms 0600 --dir-perms 0700, the user group and the
  4346. built-in "Everyone" group will still be given some special permissions,
  4347. as described above. Some programs may then (incorrectly) interpret this
  4348. as the file being accessible by everyone, for example an SSH client may
  4349. warn about "unprotected private key file". You can work around this by
  4350. specifying -o FileSecurity="D:P(A;;FA;;;OW)", which sets file all access
  4351. (FA) to the owner (OW), and nothing else.
  4352. When setting write permissions then, except for the owner, this does not
  4353. include the "write extended attributes" permission, as mentioned above.
  4354. This may prevent applications from writing to files, giving permission
  4355. denied error instead. To set working write permissions for the built-in
  4356. "Everyone" group, similar to what it gets by default but with the
  4357. addition of the "write extended attributes", you can specify
  4358. -o FileSecurity="D:P(A;;FRFW;;;WD)", which sets file read (FR) and file
  4359. write (FW) to everyone (WD). If file execute (FX) is also needed, then
  4360. change to -o FileSecurity="D:P(A;;FRFWFX;;;WD)", or set file all access
  4361. (FA) to get full access permissions, including delete, with
  4362. -o FileSecurity="D:P(A;;FA;;;WD)".
  4363. Windows caveats
  4364. Drives created as Administrator are not visible to other accounts, not
  4365. even an account that was elevated to Administrator with the User Account
  4366. Control (UAC) feature. A result of this is that if you mount to a drive
  4367. letter from a Command Prompt run as Administrator, and then try to
  4368. access the same drive from Windows Explorer (which does not run as
  4369. Administrator), you will not be able to see the mounted drive.
  4370. If you don't need to access the drive from applications running with
  4371. administrative privileges, the easiest way around this is to always
  4372. create the mount from a non-elevated command prompt.
  4373. To make mapped drives available to the user account that created them
  4374. regardless if elevated or not, there is a special Windows setting called
  4375. linked connections that can be enabled.
  4376. It is also possible to make a drive mount available to everyone on the
  4377. system, by running the process creating it as the built-in SYSTEM
  4378. account. There are several ways to do this: One is to use the
  4379. command-line utility PsExec, from Microsoft's Sysinternals suite, which
  4380. has option -s to start processes as the SYSTEM account. Another
  4381. alternative is to run the mount command from a Windows Scheduled Task,
  4382. or a Windows Service, configured to run as the SYSTEM account. A third
  4383. alternative is to use the WinFsp.Launcher infrastructure). Read more in
  4384. the install documentation. Note that when running rclone as another
  4385. user, it will not use the configuration file from your profile unless
  4386. you tell it to with the --config option. Note also that it is now the
  4387. SYSTEM account that will have the owner permissions, and other accounts
  4388. will have permissions according to the group or others scopes. As
  4389. mentioned above, these will then not get the "write extended attributes"
  4390. permission, and this may prevent writing to files. You can work around
  4391. this with the FileSecurity option, see example above.
  4392. Note that mapping to a directory path, instead of a drive letter, does
  4393. not suffer from the same limitations.
  4394. Mounting on macOS
  4395. Mounting on macOS can be done either via built-in NFS server, macFUSE
  4396. (also known as osxfuse) or FUSE-T. macFUSE is a traditional FUSE driver
  4397. utilizing a macOS kernel extension (kext). FUSE-T is an alternative FUSE
  4398. system which "mounts" via an NFSv4 local server.
  4399. Unicode Normalization
  4400. It is highly recommended to keep the default of
  4401. --no-unicode-normalization=false for all mount and serve commands on
  4402. macOS. For details, see vfs-case-sensitivity.
  4403. NFS mount
  4404. This method spins up an NFS server using serve nfs command and mounts it
  4405. to the specified mountpoint. If you run this in background mode using
  4406. |--daemon|, you will need to send SIGTERM signal to the rclone process
  4407. using |kill| command to stop the mount.
  4408. Note that --nfs-cache-handle-limit controls the maximum number of cached
  4409. file handles stored by the nfsmount caching handler. This should not be
  4410. set too low or you may experience errors when trying to access files.
  4411. The default is 1000000, but consider lowering this limit if the server's
  4412. system resource usage causes problems.
  4413. macFUSE Notes
  4414. If installing macFUSE using dmg packages from the website, rclone will
  4415. locate the macFUSE libraries without any further intervention. If
  4416. however, macFUSE is installed using the macports package manager, the
  4417. following addition steps are required.
  4418. sudo mkdir /usr/local/lib
  4419. cd /usr/local/lib
  4420. sudo ln -s /opt/local/lib/libfuse.2.dylib
  4421. FUSE-T Limitations, Caveats, and Notes
  4422. There are some limitations, caveats, and notes about how it works. These
  4423. are current as of FUSE-T version 1.0.14.
  4424. ModTime update on read
  4425. As per the FUSE-T wiki:
  4426. File access and modification times cannot be set separately as it
  4427. seems to be an issue with the NFS client which always modifies both.
  4428. Can be reproduced with 'touch -m' and 'touch -a' commands
  4429. This means that viewing files with various tools, notably macOS Finder,
  4430. will cause rlcone to update the modification time of the file. This may
  4431. make rclone upload a full new copy of the file.
  4432. Read Only mounts
  4433. When mounting with --read-only, attempts to write to files will fail
  4434. silently as opposed to with a clear warning as in macFUSE.
  4435. Limitations
  4436. Without the use of --vfs-cache-mode this can only write files
  4437. sequentially, it can only seek when reading. This means that many
  4438. applications won't work with their files on an rclone mount without
  4439. --vfs-cache-mode writes or --vfs-cache-mode full. See the VFS File
  4440. Caching section for more info. When using NFS mount on macOS, if you
  4441. don't specify |--vfs-cache-mode| the mount point will be read-only.
  4442. The bucket-based remotes (e.g. Swift, S3, Google Compute Storage, B2) do
  4443. not support the concept of empty directories, so empty directories will
  4444. have a tendency to disappear once they fall out of the directory cache.
  4445. When rclone mount is invoked on Unix with --daemon flag, the main rclone
  4446. program will wait for the background mount to become ready or until the
  4447. timeout specified by the --daemon-wait flag. On Linux it can check mount
  4448. status using ProcFS so the flag in fact sets maximum time to wait, while
  4449. the real wait can be less. On macOS / BSD the time to wait is constant
  4450. and the check is performed only at the end. We advise you to set wait
  4451. time on macOS reasonably.
  4452. Only supported on Linux, FreeBSD, OS X and Windows at the moment.
  4453. rclone nfsmount vs rclone sync/copy
  4454. File systems expect things to be 100% reliable, whereas cloud storage
  4455. systems are a long way from 100% reliable. The rclone sync/copy commands
  4456. cope with this with lots of retries. However rclone nfsmount can't use
  4457. retries in the same way without making local copies of the uploads. Look
  4458. at the VFS File Caching for solutions to make nfsmount more reliable.
  4459. Attribute caching
  4460. You can use the flag --attr-timeout to set the time the kernel caches
  4461. the attributes (size, modification time, etc.) for directory entries.
  4462. The default is 1s which caches files just long enough to avoid too many
  4463. callbacks to rclone from the kernel.
  4464. In theory 0s should be the correct value for filesystems which can
  4465. change outside the control of the kernel. However this causes quite a
  4466. few problems such as rclone using too much memory, rclone not serving
  4467. files to samba and excessive time listing directories.
  4468. The kernel can cache the info about a file for the time given by
  4469. --attr-timeout. You may see corruption if the remote file changes length
  4470. during this window. It will show up as either a truncated file or a file
  4471. with garbage on the end. With --attr-timeout 1s this is very unlikely
  4472. but not impossible. The higher you set --attr-timeout the more likely it
  4473. is. The default setting of "1s" is the lowest setting which mitigates
  4474. the problems above.
  4475. If you set it higher (10s or 1m say) then the kernel will call back to
  4476. rclone less often making it more efficient, however there is more chance
  4477. of the corruption issue above.
  4478. If files don't change on the remote outside of the control of rclone
  4479. then there is no chance of corruption.
  4480. This is the same as setting the attr_timeout option in mount.fuse.
  4481. Filters
  4482. Note that all the rclone filters can be used to select a subset of the
  4483. files to be visible in the mount.
  4484. systemd
  4485. When running rclone nfsmount as a systemd service, it is possible to use
  4486. Type=notify. In this case the service will enter the started state after
  4487. the mountpoint has been successfully set up. Units having the rclone
  4488. nfsmount service specified as a requirement will see all files and
  4489. folders immediately in this mode.
  4490. Note that systemd runs mount units without any environment variables
  4491. including PATH or HOME. This means that tilde (~) expansion will not
  4492. work and you should provide --config and --cache-dir explicitly as
  4493. absolute paths via rclone arguments. Since mounting requires the
  4494. fusermount program, rclone will use the fallback PATH of /bin:/usr/bin
  4495. in this scenario. Please ensure that fusermount is present on this PATH.
  4496. Rclone as Unix mount helper
  4497. The core Unix program /bin/mount normally takes the -t FSTYPE argument
  4498. then runs the /sbin/mount.FSTYPE helper program passing it mount options
  4499. as -o key=val,... or --opt=.... Automount (classic or systemd) behaves
  4500. in a similar way.
  4501. rclone by default expects GNU-style flags --key val. To run it as a
  4502. mount helper you should symlink rclone binary to /sbin/mount.rclone and
  4503. optionally /usr/bin/rclonefs, e.g.
  4504. ln -s /usr/bin/rclone /sbin/mount.rclone. rclone will detect it and
  4505. translate command-line arguments appropriately.
  4506. Now you can run classic mounts like this:
  4507. mount sftp1:subdir /mnt/data -t rclone -o vfs_cache_mode=writes,sftp_key_file=/path/to/pem
  4508. or create systemd mount units:
  4509. # /etc/systemd/system/mnt-data.mount
  4510. [Unit]
  4511. Description=Mount for /mnt/data
  4512. [Mount]
  4513. Type=rclone
  4514. What=sftp1:subdir
  4515. Where=/mnt/data
  4516. Options=rw,_netdev,allow_other,args2env,vfs-cache-mode=writes,config=/etc/rclone.conf,cache-dir=/var/rclone
  4517. optionally accompanied by systemd automount unit
  4518. # /etc/systemd/system/mnt-data.automount
  4519. [Unit]
  4520. Description=AutoMount for /mnt/data
  4521. [Automount]
  4522. Where=/mnt/data
  4523. TimeoutIdleSec=600
  4524. [Install]
  4525. WantedBy=multi-user.target
  4526. or add in /etc/fstab a line like
  4527. sftp1:subdir /mnt/data rclone rw,noauto,nofail,_netdev,x-systemd.automount,args2env,vfs_cache_mode=writes,config=/etc/rclone.conf,cache_dir=/var/cache/rclone 0 0
  4528. or use classic Automountd. Remember to provide explicit
  4529. config=...,cache-dir=... as a workaround for mount units being run
  4530. without HOME.
  4531. Rclone in the mount helper mode will split -o argument(s) by comma,
  4532. replace _ by - and prepend -- to get the command-line flags. Options
  4533. containing commas or spaces can be wrapped in single or double quotes.
  4534. Any inner quotes inside outer quotes of the same type should be doubled.
  4535. Mount option syntax includes a few extra options treated specially:
  4536. - env.NAME=VALUE will set an environment variable for the mount
  4537. process. This helps with Automountd and Systemd.mount which don't
  4538. allow setting custom environment for mount helpers. Typically you
  4539. will use env.HTTPS_PROXY=proxy.host:3128 or env.HOME=/root
  4540. - command=cmount can be used to run cmount or any other rclone command
  4541. rather than the default mount.
  4542. - args2env will pass mount options to the mount helper running in
  4543. background via environment variables instead of command line
  4544. arguments. This allows to hide secrets from such commands as ps or
  4545. pgrep.
  4546. - vv... will be transformed into appropriate --verbose=N
  4547. - standard mount options like x-systemd.automount, _netdev, nosuid and
  4548. alike are intended only for Automountd and ignored by rclone. ##
  4549. VFS - Virtual File System
  4550. This command uses the VFS layer. This adapts the cloud storage objects
  4551. that rclone uses into something which looks much more like a disk filing
  4552. system.
  4553. Cloud storage objects have lots of properties which aren't like disk
  4554. files - you can't extend them or write to the middle of them, so the VFS
  4555. layer has to deal with that. Because there is no one right way of doing
  4556. this there are various options explained below.
  4557. The VFS layer also implements a directory cache - this caches info about
  4558. files and directories (but not the data) in memory.
  4559. VFS Directory Cache
  4560. Using the --dir-cache-time flag, you can control how long a directory
  4561. should be considered up to date and not refreshed from the backend.
  4562. Changes made through the VFS will appear immediately or invalidate the
  4563. cache.
  4564. --dir-cache-time duration Time to cache directory entries for (default 5m0s)
  4565. --poll-interval duration Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable (default 1m0s)
  4566. However, changes made directly on the cloud storage by the web interface
  4567. or a different copy of rclone will only be picked up once the directory
  4568. cache expires if the backend configured does not support polling for
  4569. changes. If the backend supports polling, changes will be picked up
  4570. within the polling interval.
  4571. You can send a SIGHUP signal to rclone for it to flush all directory
  4572. caches, regardless of how old they are. Assuming only one rclone
  4573. instance is running, you can reset the cache like this:
  4574. kill -SIGHUP $(pidof rclone)
  4575. If you configure rclone with a remote control then you can use rclone rc
  4576. to flush the whole directory cache:
  4577. rclone rc vfs/forget
  4578. Or individual files or directories:
  4579. rclone rc vfs/forget file=path/to/file dir=path/to/dir
  4580. VFS File Buffering
  4581. The --buffer-size flag determines the amount of memory, that will be
  4582. used to buffer data in advance.
  4583. Each open file will try to keep the specified amount of data in memory
  4584. at all times. The buffered data is bound to one open file and won't be
  4585. shared.
  4586. This flag is a upper limit for the used memory per open file. The buffer
  4587. will only use memory for data that is downloaded but not not yet read.
  4588. If the buffer is empty, only a small amount of memory will be used.
  4589. The maximum memory used by rclone for buffering can be up to
  4590. --buffer-size * open files.
  4591. VFS File Caching
  4592. These flags control the VFS file caching options. File caching is
  4593. necessary to make the VFS layer appear compatible with a normal file
  4594. system. It can be disabled at the cost of some compatibility.
  4595. For example you'll need to enable VFS caching if you want to read and
  4596. write simultaneously to a file. See below for more details.
  4597. Note that the VFS cache is separate from the cache backend and you may
  4598. find that you need one or the other or both.
  4599. --cache-dir string Directory rclone will use for caching.
  4600. --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
  4601. --vfs-cache-max-age duration Max time since last access of objects in the cache (default 1h0m0s)
  4602. --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
  4603. --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
  4604. --vfs-cache-poll-interval duration Interval to poll the cache for stale objects (default 1m0s)
  4605. --vfs-write-back duration Time to writeback files after last use when using cache (default 5s)
  4606. If run with -vv rclone will print the location of the file cache. The
  4607. files are stored in the user cache file area which is OS dependent but
  4608. can be controlled with --cache-dir or setting the appropriate
  4609. environment variable.
  4610. The cache has 4 different modes selected by --vfs-cache-mode. The higher
  4611. the cache mode the more compatible rclone becomes at the cost of using
  4612. disk space.
  4613. Note that files are written back to the remote only when they are closed
  4614. and if they haven't been accessed for --vfs-write-back seconds. If
  4615. rclone is quit or dies with files that haven't been uploaded, these will
  4616. be uploaded next time rclone is run with the same flags.
  4617. If using --vfs-cache-max-size or --vfs-cache-min-free-size note that the
  4618. cache may exceed these quotas for two reasons. Firstly because it is
  4619. only checked every --vfs-cache-poll-interval. Secondly because open
  4620. files cannot be evicted from the cache. When --vfs-cache-max-size or
  4621. --vfs-cache-min-free-size is exceeded, rclone will attempt to evict the
  4622. least accessed files from the cache first. rclone will start with files
  4623. that haven't been accessed for the longest. This cache flushing strategy
  4624. is efficient and more relevant files are likely to remain cached.
  4625. The --vfs-cache-max-age will evict files from the cache after the set
  4626. time since last access has passed. The default value of 1 hour will
  4627. start evicting files from cache that haven't been accessed for 1 hour.
  4628. When a cached file is accessed the 1 hour timer is reset to 0 and will
  4629. wait for 1 more hour before evicting. Specify the time with standard
  4630. notation, s, m, h, d, w .
  4631. You should not run two copies of rclone using the same VFS cache with
  4632. the same or overlapping remotes if using --vfs-cache-mode > off. This
  4633. can potentially cause data corruption if you do. You can work around
  4634. this by giving each rclone its own cache hierarchy with --cache-dir. You
  4635. don't need to worry about this if the remotes in use don't overlap.
  4636. --vfs-cache-mode off
  4637. In this mode (the default) the cache will read directly from the remote
  4638. and write directly to the remote without caching anything on disk.
  4639. This will mean some operations are not possible
  4640. - Files can't be opened for both read AND write
  4641. - Files opened for write can't be seeked
  4642. - Existing files opened for write must have O_TRUNC set
  4643. - Files open for read with O_TRUNC will be opened write only
  4644. - Files open for write only will behave as if O_TRUNC was supplied
  4645. - Open modes O_APPEND, O_TRUNC are ignored
  4646. - If an upload fails it can't be retried
  4647. --vfs-cache-mode minimal
  4648. This is very similar to "off" except that files opened for read AND
  4649. write will be buffered to disk. This means that files opened for write
  4650. will be a lot more compatible, but uses the minimal disk space.
  4651. These operations are not possible
  4652. - Files opened for write only can't be seeked
  4653. - Existing files opened for write must have O_TRUNC set
  4654. - Files opened for write only will ignore O_APPEND, O_TRUNC
  4655. - If an upload fails it can't be retried
  4656. --vfs-cache-mode writes
  4657. In this mode files opened for read only are still read directly from the
  4658. remote, write only and read/write files are buffered to disk first.
  4659. This mode should support all normal file system operations.
  4660. If an upload fails it will be retried at exponentially increasing
  4661. intervals up to 1 minute.
  4662. --vfs-cache-mode full
  4663. In this mode all reads and writes are buffered to and from disk. When
  4664. data is read from the remote this is buffered to disk as well.
  4665. In this mode the files in the cache will be sparse files and rclone will
  4666. keep track of which bits of the files it has downloaded.
  4667. So if an application only reads the starts of each file, then rclone
  4668. will only buffer the start of the file. These files will appear to be
  4669. their full size in the cache, but they will be sparse files with only
  4670. the data that has been downloaded present in them.
  4671. This mode should support all normal file system operations and is
  4672. otherwise identical to --vfs-cache-mode writes.
  4673. When reading a file rclone will read --buffer-size plus --vfs-read-ahead
  4674. bytes ahead. The --buffer-size is buffered in memory whereas the
  4675. --vfs-read-ahead is buffered on disk.
  4676. When using this mode it is recommended that --buffer-size is not set too
  4677. large and --vfs-read-ahead is set large if required.
  4678. IMPORTANT not all file systems support sparse files. In particular
  4679. FAT/exFAT do not. Rclone will perform very badly if the cache directory
  4680. is on a filesystem which doesn't support sparse files and it will log an
  4681. ERROR message if one is detected.
  4682. Fingerprinting
  4683. Various parts of the VFS use fingerprinting to see if a local file copy
  4684. has changed relative to a remote file. Fingerprints are made from:
  4685. - size
  4686. - modification time
  4687. - hash
  4688. where available on an object.
  4689. On some backends some of these attributes are slow to read (they take an
  4690. extra API call per object, or extra work per object).
  4691. For example hash is slow with the local and sftp backends as they have
  4692. to read the entire file and hash it, and modtime is slow with the s3,
  4693. swift, ftp and qinqstor backends because they need to do an extra API
  4694. call to fetch it.
  4695. If you use the --vfs-fast-fingerprint flag then rclone will not include
  4696. the slow operations in the fingerprint. This makes the fingerprinting
  4697. less accurate but much faster and will improve the opening time of
  4698. cached files.
  4699. If you are running a vfs cache over local, s3 or swift backends then
  4700. using this flag is recommended.
  4701. Note that if you change the value of this flag, the fingerprints of the
  4702. files in the cache may be invalidated and the files will need to be
  4703. downloaded again.
  4704. VFS Chunked Reading
  4705. When rclone reads files from a remote it reads them in chunks. This
  4706. means that rather than requesting the whole file rclone reads the chunk
  4707. specified. This can reduce the used download quota for some remotes by
  4708. requesting only chunks from the remote that are actually read, at the
  4709. cost of an increased number of requests.
  4710. These flags control the chunking:
  4711. --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128M)
  4712. --vfs-read-chunk-size-limit SizeSuffix Max chunk doubling size (default off)
  4713. Rclone will start reading a chunk of size --vfs-read-chunk-size, and
  4714. then double the size for each read. When --vfs-read-chunk-size-limit is
  4715. specified, and greater than --vfs-read-chunk-size, the chunk size for
  4716. each open file will get doubled only until the specified value is
  4717. reached. If the value is "off", which is the default, the limit is
  4718. disabled and the chunk size will grow indefinitely.
  4719. With --vfs-read-chunk-size 100M and --vfs-read-chunk-size-limit 0 the
  4720. following parts will be downloaded: 0-100M, 100M-200M, 200M-300M,
  4721. 300M-400M and so on. When --vfs-read-chunk-size-limit 500M is specified,
  4722. the result would be 0-100M, 100M-300M, 300M-700M, 700M-1200M,
  4723. 1200M-1700M and so on.
  4724. Setting --vfs-read-chunk-size to 0 or "off" disables chunked reading.
  4725. VFS Performance
  4726. These flags may be used to enable/disable features of the VFS for
  4727. performance or other reasons. See also the chunked reading feature.
  4728. In particular S3 and Swift benefit hugely from the --no-modtime flag (or
  4729. use --use-server-modtime for a slightly different effect) as each read
  4730. of the modification time takes a transaction.
  4731. --no-checksum Don't compare checksums on up/download.
  4732. --no-modtime Don't read/write the modification time (can speed things up).
  4733. --no-seek Don't allow seeking in files.
  4734. --read-only Only allow read-only access.
  4735. Sometimes rclone is delivered reads or writes out of order. Rather than
  4736. seeking rclone will wait a short time for the in sequence read or write
  4737. to come in. These flags only come into effect when not using an on disk
  4738. cache file.
  4739. --vfs-read-wait duration Time to wait for in-sequence read before seeking (default 20ms)
  4740. --vfs-write-wait duration Time to wait for in-sequence write before giving error (default 1s)
  4741. When using VFS write caching (--vfs-cache-mode with value writes or
  4742. full), the global flag --transfers can be set to adjust the number of
  4743. parallel uploads of modified files from the cache (the related global
  4744. flag --checkers has no effect on the VFS).
  4745. --transfers int Number of file transfers to run in parallel (default 4)
  4746. VFS Case Sensitivity
  4747. Linux file systems are case-sensitive: two files can differ only by
  4748. case, and the exact case must be used when opening a file.
  4749. File systems in modern Windows are case-insensitive but case-preserving:
  4750. although existing files can be opened using any case, the exact case
  4751. used to create the file is preserved and available for programs to
  4752. query. It is not allowed for two files in the same directory to differ
  4753. only by case.
  4754. Usually file systems on macOS are case-insensitive. It is possible to
  4755. make macOS file systems case-sensitive but that is not the default.
  4756. The --vfs-case-insensitive VFS flag controls how rclone handles these
  4757. two cases. If its value is "false", rclone passes file names to the
  4758. remote as-is. If the flag is "true" (or appears without a value on the
  4759. command line), rclone may perform a "fixup" as explained below.
  4760. The user may specify a file name to open/delete/rename/etc with a case
  4761. different than what is stored on the remote. If an argument refers to an
  4762. existing file with exactly the same name, then the case of the existing
  4763. file on the disk will be used. However, if a file name with exactly the
  4764. same name is not found but a name differing only by case exists, rclone
  4765. will transparently fixup the name. This fixup happens only when an
  4766. existing file is requested. Case sensitivity of file names created anew
  4767. by rclone is controlled by the underlying remote.
  4768. Note that case sensitivity of the operating system running rclone (the
  4769. target) may differ from case sensitivity of a file system presented by
  4770. rclone (the source). The flag controls whether "fixup" is performed to
  4771. satisfy the target.
  4772. If the flag is not provided on the command line, then its default value
  4773. depends on the operating system where rclone runs: "true" on Windows and
  4774. macOS, "false" otherwise. If the flag is provided without a value, then
  4775. it is "true".
  4776. The --no-unicode-normalization flag controls whether a similar "fixup"
  4777. is performed for filenames that differ but are canonically equivalent
  4778. with respect to unicode. Unicode normalization can be particularly
  4779. helpful for users of macOS, which prefers form NFD instead of the NFC
  4780. used by most other platforms. It is therefore highly recommended to keep
  4781. the default of false on macOS, to avoid encoding compatibility issues.
  4782. In the (probably unlikely) event that a directory has multiple duplicate
  4783. filenames after applying case and unicode normalization, the
  4784. --vfs-block-norm-dupes flag allows hiding these duplicates. This comes
  4785. with a performance tradeoff, as rclone will have to scan the entire
  4786. directory for duplicates when listing a directory. For this reason, it
  4787. is recommended to leave this disabled if not needed. However, macOS
  4788. users may wish to consider using it, as otherwise, if a remote directory
  4789. contains both NFC and NFD versions of the same filename, an odd
  4790. situation will occur: both versions of the file will be visible in the
  4791. mount, and both will appear to be editable, however, editing either
  4792. version will actually result in only the NFD version getting edited
  4793. under the hood. --vfs-block- norm-dupes prevents this confusion by
  4794. detecting this scenario, hiding the duplicates, and logging an error,
  4795. similar to how this is handled in rclone sync.
  4796. VFS Disk Options
  4797. This flag allows you to manually set the statistics about the filing
  4798. system. It can be useful when those statistics cannot be read correctly
  4799. automatically.
  4800. --vfs-disk-space-total-size Manually set the total disk space size (example: 256G, default: -1)
  4801. Alternate report of used bytes
  4802. Some backends, most notably S3, do not report the amount of bytes used.
  4803. If you need this information to be available when running df on the
  4804. filesystem, then pass the flag --vfs-used-is-size to rclone. With this
  4805. flag set, instead of relying on the backend to report this information,
  4806. rclone will scan the whole remote similar to rclone size and compute the
  4807. total used space itself.
  4808. WARNING. Contrary to rclone size, this flag ignores filters so that the
  4809. result is accurate. However, this is very inefficient and may cost lots
  4810. of API calls resulting in extra charges. Use it as a last resort and
  4811. only with caching.
  4812. rclone nfsmount remote:path /path/to/mountpoint [flags]
  4813. Options
  4814. --addr string IPaddress:Port or :Port to bind server to
  4815. --allow-non-empty Allow mounting over a non-empty directory (not supported on Windows)
  4816. --allow-other Allow access to other users (not supported on Windows)
  4817. --allow-root Allow access to root user (not supported on Windows)
  4818. --async-read Use asynchronous reads (not supported on Windows) (default true)
  4819. --attr-timeout Duration Time for which file/directory attributes are cached (default 1s)
  4820. --daemon Run mount in background and exit parent process (as background output is suppressed, use --log-file with --log-format=pid,... to monitor) (not supported on Windows)
  4821. --daemon-timeout Duration Time limit for rclone to respond to kernel (not supported on Windows) (default 0s)
  4822. --daemon-wait Duration Time to wait for ready mount from daemon (maximum time on Linux, constant sleep time on OSX/BSD) (not supported on Windows) (default 1m0s)
  4823. --debug-fuse Debug the FUSE internals - needs -v
  4824. --default-permissions Makes kernel enforce access control based on the file mode (not supported on Windows)
  4825. --devname string Set the device name - default is remote:path
  4826. --dir-cache-time Duration Time to cache directory entries for (default 5m0s)
  4827. --dir-perms FileMode Directory permissions (default 0777)
  4828. --file-perms FileMode File permissions (default 0666)
  4829. --fuse-flag stringArray Flags or arguments to be passed direct to libfuse/WinFsp (repeat if required)
  4830. --gid uint32 Override the gid field set by the filesystem (not supported on Windows) (default 1000)
  4831. -h, --help help for nfsmount
  4832. --max-read-ahead SizeSuffix The number of bytes that can be prefetched for sequential reads (not supported on Windows) (default 128Ki)
  4833. --mount-case-insensitive Tristate Tell the OS the mount is case insensitive (true) or sensitive (false) regardless of the backend (auto) (default unset)
  4834. --network-mode Mount as remote network drive, instead of fixed disk drive (supported on Windows only)
  4835. --nfs-cache-handle-limit int max file handles cached simultaneously (min 5) (default 1000000)
  4836. --no-checksum Don't compare checksums on up/download
  4837. --no-modtime Don't read/write the modification time (can speed things up)
  4838. --no-seek Don't allow seeking in files
  4839. --noappledouble Ignore Apple Double (._) and .DS_Store files (supported on OSX only) (default true)
  4840. --noapplexattr Ignore all "com.apple.*" extended attributes (supported on OSX only)
  4841. -o, --option stringArray Option for libfuse/WinFsp (repeat if required)
  4842. --poll-interval Duration Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s)
  4843. --read-only Only allow read-only access
  4844. --sudo Use sudo to run the mount command as root.
  4845. --uid uint32 Override the uid field set by the filesystem (not supported on Windows) (default 1000)
  4846. --umask int Override the permission bits set by the filesystem (not supported on Windows) (default 2)
  4847. --vfs-block-norm-dupes If duplicate filenames exist in the same directory (after normalization), log an error and hide the duplicates (may have a performance cost)
  4848. --vfs-cache-max-age Duration Max time since last access of objects in the cache (default 1h0m0s)
  4849. --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
  4850. --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
  4851. --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
  4852. --vfs-cache-poll-interval Duration Interval to poll the cache for stale objects (default 1m0s)
  4853. --vfs-case-insensitive If a file name not found, find a case insensitive match
  4854. --vfs-disk-space-total-size SizeSuffix Specify the total space of disk (default off)
  4855. --vfs-fast-fingerprint Use fast (less accurate) fingerprints for change detection
  4856. --vfs-read-ahead SizeSuffix Extra read ahead over --buffer-size when using cache-mode full
  4857. --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128Mi)
  4858. --vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached ('off' is unlimited) (default off)
  4859. --vfs-read-wait Duration Time to wait for in-sequence read before seeking (default 20ms)
  4860. --vfs-refresh Refreshes the directory cache recursively in the background on start
  4861. --vfs-used-is-size rclone size Use the rclone size algorithm for Used size
  4862. --vfs-write-back Duration Time to writeback files after last use when using cache (default 5s)
  4863. --vfs-write-wait Duration Time to wait for in-sequence write before giving error (default 1s)
  4864. --volname string Set the volume name (supported on Windows and OSX only)
  4865. --write-back-cache Makes kernel buffer writes before sending them to rclone (without this, writethrough caching is used) (not supported on Windows)
  4866. Filter Options
  4867. Flags for filtering directory listings.
  4868. --delete-excluded Delete files on dest excluded from sync
  4869. --exclude stringArray Exclude files matching pattern
  4870. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  4871. --exclude-if-present stringArray Exclude directories if filename is present
  4872. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  4873. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  4874. -f, --filter stringArray Add a file filtering rule
  4875. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  4876. --ignore-case Ignore case in filters (case insensitive)
  4877. --include stringArray Include files matching pattern
  4878. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  4879. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  4880. --max-depth int If set limits the recursion depth to this (default -1)
  4881. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  4882. --metadata-exclude stringArray Exclude metadatas matching pattern
  4883. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  4884. --metadata-filter stringArray Add a metadata filtering rule
  4885. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  4886. --metadata-include stringArray Include metadatas matching pattern
  4887. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  4888. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  4889. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  4890. See the global flags page for global options not listed here.
  4891. SEE ALSO
  4892. - rclone - Show help for rclone commands, flags and backends.
  4893. rclone obscure
  4894. Obscure password for use in the rclone config file.
  4895. Synopsis
  4896. In the rclone config file, human-readable passwords are obscured.
  4897. Obscuring them is done by encrypting them and writing them out in
  4898. base64. This is not a secure way of encrypting these passwords as rclone
  4899. can decrypt them - it is to prevent "eyedropping" - namely someone
  4900. seeing a password in the rclone config file by accident.
  4901. Many equally important things (like access tokens) are not obscured in
  4902. the config file. However it is very hard to shoulder surf a 64 character
  4903. hex token.
  4904. This command can also accept a password through STDIN instead of an
  4905. argument by passing a hyphen as an argument. This will use the first
  4906. line of STDIN as the password not including the trailing newline.
  4907. echo "secretpassword" | rclone obscure -
  4908. If there is no data on STDIN to read, rclone obscure will default to
  4909. obfuscating the hyphen itself.
  4910. If you want to encrypt the config file then please use config file
  4911. encryption - see rclone config for more info.
  4912. rclone obscure password [flags]
  4913. Options
  4914. -h, --help help for obscure
  4915. See the global flags page for global options not listed here.
  4916. SEE ALSO
  4917. - rclone - Show help for rclone commands, flags and backends.
  4918. rclone rc
  4919. Run a command against a running rclone.
  4920. Synopsis
  4921. This runs a command against a running rclone. Use the --url flag to
  4922. specify an non default URL to connect on. This can be either a ":port"
  4923. which is taken to mean "http://localhost:port" or a "host:port" which is
  4924. taken to mean "http://host:port"
  4925. A username and password can be passed in with --user and --pass.
  4926. Note that --rc-addr, --rc-user, --rc-pass will be read also for --url,
  4927. --user, --pass.
  4928. Arguments should be passed in as parameter=value.
  4929. The result will be returned as a JSON object by default.
  4930. The --json parameter can be used to pass in a JSON blob as an input
  4931. instead of key=value arguments. This is the only way of passing in more
  4932. complicated values.
  4933. The -o/--opt option can be used to set a key "opt" with key, value
  4934. options in the form -o key=value or -o key. It can be repeated as many
  4935. times as required. This is useful for rc commands which take the "opt"
  4936. parameter which by convention is a dictionary of strings.
  4937. -o key=value -o key2
  4938. Will place this in the "opt" value
  4939. {"key":"value", "key2","")
  4940. The -a/--arg option can be used to set strings in the "arg" value. It
  4941. can be repeated as many times as required. This is useful for rc
  4942. commands which take the "arg" parameter which by convention is a list of
  4943. strings.
  4944. -a value -a value2
  4945. Will place this in the "arg" value
  4946. ["value", "value2"]
  4947. Use --loopback to connect to the rclone instance running rclone rc. This
  4948. is very useful for testing commands without having to run an rclone rc
  4949. server, e.g.:
  4950. rclone rc --loopback operations/about fs=/
  4951. Use rclone rc to see a list of all possible commands.
  4952. rclone rc commands parameter [flags]
  4953. Options
  4954. -a, --arg stringArray Argument placed in the "arg" array
  4955. -h, --help help for rc
  4956. --json string Input JSON - use instead of key=value args
  4957. --loopback If set connect to this rclone instance not via HTTP
  4958. --no-output If set, don't output the JSON result
  4959. -o, --opt stringArray Option in the form name=value or name placed in the "opt" array
  4960. --pass string Password to use to connect to rclone remote control
  4961. --url string URL to connect to rclone remote control (default "http://localhost:5572/")
  4962. --user string Username to use to rclone remote control
  4963. See the global flags page for global options not listed here.
  4964. SEE ALSO
  4965. - rclone - Show help for rclone commands, flags and backends.
  4966. rclone rcat
  4967. Copies standard input to file on remote.
  4968. Synopsis
  4969. rclone rcat reads from standard input (stdin) and copies it to a single
  4970. remote file.
  4971. echo "hello world" | rclone rcat remote:path/to/file
  4972. ffmpeg - | rclone rcat remote:path/to/file
  4973. If the remote file already exists, it will be overwritten.
  4974. rcat will try to upload small files in a single request, which is
  4975. usually more efficient than the streaming/chunked upload endpoints,
  4976. which use multiple requests. Exact behaviour depends on the remote. What
  4977. is considered a small file may be set through --streaming-upload-cutoff.
  4978. Uploading only starts after the cutoff is reached or if the file ends
  4979. before that. The data must fit into RAM. The cutoff needs to be small
  4980. enough to adhere the limits of your remote, please see there. Generally
  4981. speaking, setting this cutoff too high will decrease your performance.
  4982. Use the --size flag to preallocate the file in advance at the remote end
  4983. and actually stream it, even if remote backend doesn't support
  4984. streaming.
  4985. --size should be the exact size of the input stream in bytes. If the
  4986. size of the stream is different in length to the --size passed in then
  4987. the transfer will likely fail.
  4988. Note that the upload cannot be retried because the data is not stored.
  4989. If the backend supports multipart uploading then individual chunks can
  4990. be retried. If you need to transfer a lot of data, you may be better off
  4991. caching it locally and then rclone move it to the destination which can
  4992. use retries.
  4993. rclone rcat remote:path [flags]
  4994. Options
  4995. -h, --help help for rcat
  4996. --size int File size hint to preallocate (default -1)
  4997. Important Options
  4998. Important flags useful for most commands.
  4999. -n, --dry-run Do a trial run with no permanent changes
  5000. -i, --interactive Enable interactive mode
  5001. -v, --verbose count Print lots more stuff (repeat for more)
  5002. See the global flags page for global options not listed here.
  5003. SEE ALSO
  5004. - rclone - Show help for rclone commands, flags and backends.
  5005. rclone rcd
  5006. Run rclone listening to remote control commands only.
  5007. Synopsis
  5008. This runs rclone so that it only listens to remote control commands.
  5009. This is useful if you are controlling rclone via the rc API.
  5010. If you pass in a path to a directory, rclone will serve that directory
  5011. for GET requests on the URL passed in. It will also open the URL in the
  5012. browser when rclone is run.
  5013. See the rc documentation for more info on the rc flags.
  5014. Server options
  5015. Use --rc-addr to specify which IP address and port the server should
  5016. listen on, eg --rc-addr 1.2.3.4:8000 or --rc-addr :8080 to listen to all
  5017. IPs. By default it only listens on localhost. You can use port :0 to let
  5018. the OS choose an available port.
  5019. If you set --rc-addr to listen on a public or LAN accessible IP address
  5020. then using Authentication is advised - see the next section for info.
  5021. You can use a unix socket by setting the url to unix:///path/to/socket
  5022. or just by using an absolute path name. Note that unix sockets bypass
  5023. the authentication - this is expected to be done with file system
  5024. permissions.
  5025. --rc-addr may be repeated to listen on multiple IPs/ports/sockets.
  5026. --rc-server-read-timeout and --rc-server-write-timeout can be used to
  5027. control the timeouts on the server. Note that this is the total time for
  5028. a transfer.
  5029. --rc-max-header-bytes controls the maximum number of bytes the server
  5030. will accept in the HTTP header.
  5031. --rc-baseurl controls the URL prefix that rclone serves from. By default
  5032. rclone will serve from the root. If you used --rc-baseurl "/rclone" then
  5033. rclone would serve from a URL starting with "/rclone/". This is useful
  5034. if you wish to proxy rclone serve. Rclone automatically inserts leading
  5035. and trailing "/" on --rc-baseurl, so --rc-baseurl "rclone",
  5036. --rc-baseurl "/rclone" and --rc-baseurl "/rclone/" are all treated
  5037. identically.
  5038. TLS (SSL)
  5039. By default this will serve over http. If you want you can serve over
  5040. https. You will need to supply the --rc-cert and --rc-key flags. If you
  5041. wish to do client side certificate validation then you will need to
  5042. supply --rc-client-ca also.
  5043. --rc-cert should be a either a PEM encoded certificate or a
  5044. concatenation of that with the CA certificate. --krc-ey should be the
  5045. PEM encoded private key and --rc-client-ca should be the PEM encoded
  5046. client certificate authority certificate.
  5047. --rc-min-tls-version is minimum TLS version that is acceptable. Valid
  5048. values are "tls1.0", "tls1.1", "tls1.2" and "tls1.3" (default "tls1.0").
  5049. Template
  5050. --rc-template allows a user to specify a custom markup template for HTTP
  5051. and WebDAV serve functions. The server exports the following markup to
  5052. be used within the template to server pages:
  5053. -----------------------------------------------------------------------
  5054. Parameter Description
  5055. ----------------------------------- -----------------------------------
  5056. .Name The full path of a file/directory.
  5057. .Title Directory listing of .Name
  5058. .Sort The current sort used. This is
  5059. changeable via ?sort= parameter
  5060. Sort Options:
  5061. namedirfirst,name,size,time
  5062. (default namedirfirst)
  5063. .Order The current ordering used. This is
  5064. changeable via ?order= parameter
  5065. Order Options: asc,desc (default
  5066. asc)
  5067. .Query Currently unused.
  5068. .Breadcrumb Allows for creating a relative
  5069. navigation
  5070. -- .Link The relative to the root link of
  5071. the Text.
  5072. -- .Text The Name of the directory.
  5073. .Entries Information about a specific
  5074. file/directory.
  5075. -- .URL The 'url' of an entry.
  5076. -- .Leaf Currently same as 'URL' but
  5077. intended to be 'just' the name.
  5078. -- .IsDir Boolean for if an entry is a
  5079. directory or not.
  5080. -- .Size Size in Bytes of the entry.
  5081. -- .ModTime The UTC timestamp of an entry.
  5082. -----------------------------------------------------------------------
  5083. The server also makes the following functions available so that they can
  5084. be used within the template. These functions help extend the options for
  5085. dynamic rendering of HTML. They can be used to render HTML based on
  5086. specific conditions.
  5087. -----------------------------------------------------------------------
  5088. Function Description
  5089. ----------------------------------- -----------------------------------
  5090. afterEpoch Returns the time since the epoch
  5091. for the given time.
  5092. contains Checks whether a given substring is
  5093. present or not in a given string.
  5094. hasPrefix Checks whether the given string
  5095. begins with the specified prefix.
  5096. hasSuffix Checks whether the given string end
  5097. with the specified suffix.
  5098. -----------------------------------------------------------------------
  5099. Authentication
  5100. By default this will serve files without needing a login.
  5101. You can either use an htpasswd file which can take lots of users, or set
  5102. a single username and password with the --rc-user and --rc-pass flags.
  5103. If no static users are configured by either of the above methods, and
  5104. client certificates are required by the --client-ca flag passed to the
  5105. server, the client certificate common name will be considered as the
  5106. username.
  5107. Use --rc-htpasswd /path/to/htpasswd to provide an htpasswd file. This is
  5108. in standard apache format and supports MD5, SHA1 and BCrypt for basic
  5109. authentication. Bcrypt is recommended.
  5110. To create an htpasswd file:
  5111. touch htpasswd
  5112. htpasswd -B htpasswd user
  5113. htpasswd -B htpasswd anotherUser
  5114. The password file can be updated while rclone is running.
  5115. Use --rc-realm to set the authentication realm.
  5116. Use --rc-salt to change the password hashing salt from the default.
  5117. rclone rcd <path to files to serve>* [flags]
  5118. Options
  5119. -h, --help help for rcd
  5120. RC Options
  5121. Flags to control the Remote Control API.
  5122. --rc Enable the remote control server
  5123. --rc-addr stringArray IPaddress:Port or :Port to bind server to (default [localhost:5572])
  5124. --rc-allow-origin string Origin which cross-domain request (CORS) can be executed from
  5125. --rc-baseurl string Prefix for URLs - leave blank for root
  5126. --rc-cert string TLS PEM key (concatenation of certificate and CA certificate)
  5127. --rc-client-ca string Client certificate authority to verify clients with
  5128. --rc-enable-metrics Enable prometheus metrics on /metrics
  5129. --rc-files string Path to local files to serve on the HTTP server
  5130. --rc-htpasswd string A htpasswd file - if not provided no authentication is done
  5131. --rc-job-expire-duration Duration Expire finished async jobs older than this value (default 1m0s)
  5132. --rc-job-expire-interval Duration Interval to check for expired async jobs (default 10s)
  5133. --rc-key string TLS PEM Private key
  5134. --rc-max-header-bytes int Maximum size of request header (default 4096)
  5135. --rc-min-tls-version string Minimum TLS version that is acceptable (default "tls1.0")
  5136. --rc-no-auth Don't require auth for certain methods
  5137. --rc-pass string Password for authentication
  5138. --rc-realm string Realm for authentication
  5139. --rc-salt string Password hashing salt (default "dlPL2MqE")
  5140. --rc-serve Enable the serving of remote objects
  5141. --rc-server-read-timeout Duration Timeout for server reading data (default 1h0m0s)
  5142. --rc-server-write-timeout Duration Timeout for server writing data (default 1h0m0s)
  5143. --rc-template string User-specified template
  5144. --rc-user string User name for authentication
  5145. --rc-web-fetch-url string URL to fetch the releases for webgui (default "https://api.github.com/repos/rclone/rclone-webui-react/releases/latest")
  5146. --rc-web-gui Launch WebGUI on localhost
  5147. --rc-web-gui-force-update Force update to latest version of web gui
  5148. --rc-web-gui-no-open-browser Don't open the browser automatically
  5149. --rc-web-gui-update Check and update to latest version of web gui
  5150. See the global flags page for global options not listed here.
  5151. SEE ALSO
  5152. - rclone - Show help for rclone commands, flags and backends.
  5153. rclone rmdirs
  5154. Remove empty directories under the path.
  5155. Synopsis
  5156. This recursively removes any empty directories (including directories
  5157. that only contain empty directories), that it finds under the path. The
  5158. root path itself will also be removed if it is empty, unless you supply
  5159. the --leave-root flag.
  5160. Use command rmdir to delete just the empty directory given by path, not
  5161. recurse.
  5162. This is useful for tidying up remotes that rclone has left a lot of
  5163. empty directories in. For example the delete command will delete files
  5164. but leave the directory structure (unless used with option --rmdirs).
  5165. This will delete --checkers directories concurrently so if you have
  5166. thousands of empty directories consider increasing this number.
  5167. To delete a path and any objects in it, use the purge command.
  5168. rclone rmdirs remote:path [flags]
  5169. Options
  5170. -h, --help help for rmdirs
  5171. --leave-root Do not remove root directory if empty
  5172. Important Options
  5173. Important flags useful for most commands.
  5174. -n, --dry-run Do a trial run with no permanent changes
  5175. -i, --interactive Enable interactive mode
  5176. -v, --verbose count Print lots more stuff (repeat for more)
  5177. See the global flags page for global options not listed here.
  5178. SEE ALSO
  5179. - rclone - Show help for rclone commands, flags and backends.
  5180. rclone selfupdate
  5181. Update the rclone binary.
  5182. Synopsis
  5183. This command downloads the latest release of rclone and replaces the
  5184. currently running binary. The download is verified with a hashsum and
  5185. cryptographically signed signature; see the release signing docs for
  5186. details.
  5187. If used without flags (or with implied --stable flag), this command will
  5188. install the latest stable release. However, some issues may be fixed (or
  5189. features added) only in the latest beta release. In such cases you
  5190. should run the command with the --beta flag, i.e.
  5191. rclone selfupdate --beta. You can check in advance what version would be
  5192. installed by adding the --check flag, then repeat the command without it
  5193. when you are satisfied.
  5194. Sometimes the rclone team may recommend you a concrete beta or stable
  5195. rclone release to troubleshoot your issue or add a bleeding edge
  5196. feature. The --version VER flag, if given, will update to the concrete
  5197. version instead of the latest one. If you omit micro version from VER
  5198. (for example 1.53), the latest matching micro version will be used.
  5199. Upon successful update rclone will print a message that contains a
  5200. previous version number. You will need it if you later decide to revert
  5201. your update for some reason. Then you'll have to note the previous
  5202. version and run the following command:
  5203. rclone selfupdate [--beta] OLDVER. If the old version contains only dots
  5204. and digits (for example v1.54.0) then it's a stable release so you won't
  5205. need the --beta flag. Beta releases have an additional information
  5206. similar to v1.54.0-beta.5111.06f1c0c61. (if you are a developer and use
  5207. a locally built rclone, the version number will end with -DEV, you will
  5208. have to rebuild it as it obviously can't be distributed).
  5209. If you previously installed rclone via a package manager, the package
  5210. may include local documentation or configure services. You may wish to
  5211. update with the flag --package deb or --package rpm (whichever is
  5212. correct for your OS) to update these too. This command with the default
  5213. --package zip will update only the rclone executable so the local manual
  5214. may become inaccurate after it.
  5215. The rclone mount command may or may not support extended FUSE options
  5216. depending on the build and OS. selfupdate will refuse to update if the
  5217. capability would be discarded.
  5218. Note: Windows forbids deletion of a currently running executable so this
  5219. command will rename the old executable to 'rclone.old.exe' upon success.
  5220. Please note that this command was not available before rclone version
  5221. 1.55. If it fails for you with the message unknown command "selfupdate"
  5222. then you will need to update manually following the install instructions
  5223. located at https://rclone.org/install/
  5224. rclone selfupdate [flags]
  5225. Options
  5226. --beta Install beta release
  5227. --check Check for latest release, do not download
  5228. -h, --help help for selfupdate
  5229. --output string Save the downloaded binary at a given path (default: replace running binary)
  5230. --package string Package format: zip|deb|rpm (default: zip)
  5231. --stable Install stable release (this is the default)
  5232. --version string Install the given rclone version (default: latest)
  5233. See the global flags page for global options not listed here.
  5234. SEE ALSO
  5235. - rclone - Show help for rclone commands, flags and backends.
  5236. rclone serve
  5237. Serve a remote over a protocol.
  5238. Synopsis
  5239. Serve a remote over a given protocol. Requires the use of a subcommand
  5240. to specify the protocol, e.g.
  5241. rclone serve http remote:
  5242. Each subcommand has its own options which you can see in their help.
  5243. rclone serve <protocol> [opts] <remote> [flags]
  5244. Options
  5245. -h, --help help for serve
  5246. See the global flags page for global options not listed here.
  5247. SEE ALSO
  5248. - rclone - Show help for rclone commands, flags and backends.
  5249. - rclone serve dlna - Serve remote:path over DLNA
  5250. - rclone serve docker - Serve any remote on docker's volume plugin
  5251. API.
  5252. - rclone serve ftp - Serve remote:path over FTP.
  5253. - rclone serve http - Serve the remote over HTTP.
  5254. - rclone serve nfs - Serve the remote as an NFS mount
  5255. - rclone serve restic - Serve the remote for restic's REST API.
  5256. - rclone serve s3 - Serve remote:path over s3.
  5257. - rclone serve sftp - Serve the remote over SFTP.
  5258. - rclone serve webdav - Serve remote:path over WebDAV.
  5259. rclone serve dlna
  5260. Serve remote:path over DLNA
  5261. Synopsis
  5262. Run a DLNA media server for media stored in an rclone remote. Many
  5263. devices, such as the Xbox and PlayStation, can automatically discover
  5264. this server in the LAN and play audio/video from it. VLC is also
  5265. supported. Service discovery uses UDP multicast packets (SSDP) and will
  5266. thus only work on LANs.
  5267. Rclone will list all files present in the remote, without filtering
  5268. based on media formats or file extensions. Additionally, there is no
  5269. media transcoding support. This means that some players might show files
  5270. that they are not able to play back correctly.
  5271. Server options
  5272. Use --addr to specify which IP address and port the server should listen
  5273. on, e.g. --addr 1.2.3.4:8000 or --addr :8080 to listen to all IPs.
  5274. Use --name to choose the friendly server name, which is by default
  5275. "rclone (hostname)".
  5276. Use --log-trace in conjunction with -vv to enable additional debug
  5277. logging of all UPNP traffic. ## VFS - Virtual File System
  5278. This command uses the VFS layer. This adapts the cloud storage objects
  5279. that rclone uses into something which looks much more like a disk filing
  5280. system.
  5281. Cloud storage objects have lots of properties which aren't like disk
  5282. files - you can't extend them or write to the middle of them, so the VFS
  5283. layer has to deal with that. Because there is no one right way of doing
  5284. this there are various options explained below.
  5285. The VFS layer also implements a directory cache - this caches info about
  5286. files and directories (but not the data) in memory.
  5287. VFS Directory Cache
  5288. Using the --dir-cache-time flag, you can control how long a directory
  5289. should be considered up to date and not refreshed from the backend.
  5290. Changes made through the VFS will appear immediately or invalidate the
  5291. cache.
  5292. --dir-cache-time duration Time to cache directory entries for (default 5m0s)
  5293. --poll-interval duration Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable (default 1m0s)
  5294. However, changes made directly on the cloud storage by the web interface
  5295. or a different copy of rclone will only be picked up once the directory
  5296. cache expires if the backend configured does not support polling for
  5297. changes. If the backend supports polling, changes will be picked up
  5298. within the polling interval.
  5299. You can send a SIGHUP signal to rclone for it to flush all directory
  5300. caches, regardless of how old they are. Assuming only one rclone
  5301. instance is running, you can reset the cache like this:
  5302. kill -SIGHUP $(pidof rclone)
  5303. If you configure rclone with a remote control then you can use rclone rc
  5304. to flush the whole directory cache:
  5305. rclone rc vfs/forget
  5306. Or individual files or directories:
  5307. rclone rc vfs/forget file=path/to/file dir=path/to/dir
  5308. VFS File Buffering
  5309. The --buffer-size flag determines the amount of memory, that will be
  5310. used to buffer data in advance.
  5311. Each open file will try to keep the specified amount of data in memory
  5312. at all times. The buffered data is bound to one open file and won't be
  5313. shared.
  5314. This flag is a upper limit for the used memory per open file. The buffer
  5315. will only use memory for data that is downloaded but not not yet read.
  5316. If the buffer is empty, only a small amount of memory will be used.
  5317. The maximum memory used by rclone for buffering can be up to
  5318. --buffer-size * open files.
  5319. VFS File Caching
  5320. These flags control the VFS file caching options. File caching is
  5321. necessary to make the VFS layer appear compatible with a normal file
  5322. system. It can be disabled at the cost of some compatibility.
  5323. For example you'll need to enable VFS caching if you want to read and
  5324. write simultaneously to a file. See below for more details.
  5325. Note that the VFS cache is separate from the cache backend and you may
  5326. find that you need one or the other or both.
  5327. --cache-dir string Directory rclone will use for caching.
  5328. --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
  5329. --vfs-cache-max-age duration Max time since last access of objects in the cache (default 1h0m0s)
  5330. --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
  5331. --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
  5332. --vfs-cache-poll-interval duration Interval to poll the cache for stale objects (default 1m0s)
  5333. --vfs-write-back duration Time to writeback files after last use when using cache (default 5s)
  5334. If run with -vv rclone will print the location of the file cache. The
  5335. files are stored in the user cache file area which is OS dependent but
  5336. can be controlled with --cache-dir or setting the appropriate
  5337. environment variable.
  5338. The cache has 4 different modes selected by --vfs-cache-mode. The higher
  5339. the cache mode the more compatible rclone becomes at the cost of using
  5340. disk space.
  5341. Note that files are written back to the remote only when they are closed
  5342. and if they haven't been accessed for --vfs-write-back seconds. If
  5343. rclone is quit or dies with files that haven't been uploaded, these will
  5344. be uploaded next time rclone is run with the same flags.
  5345. If using --vfs-cache-max-size or --vfs-cache-min-free-size note that the
  5346. cache may exceed these quotas for two reasons. Firstly because it is
  5347. only checked every --vfs-cache-poll-interval. Secondly because open
  5348. files cannot be evicted from the cache. When --vfs-cache-max-size or
  5349. --vfs-cache-min-free-size is exceeded, rclone will attempt to evict the
  5350. least accessed files from the cache first. rclone will start with files
  5351. that haven't been accessed for the longest. This cache flushing strategy
  5352. is efficient and more relevant files are likely to remain cached.
  5353. The --vfs-cache-max-age will evict files from the cache after the set
  5354. time since last access has passed. The default value of 1 hour will
  5355. start evicting files from cache that haven't been accessed for 1 hour.
  5356. When a cached file is accessed the 1 hour timer is reset to 0 and will
  5357. wait for 1 more hour before evicting. Specify the time with standard
  5358. notation, s, m, h, d, w .
  5359. You should not run two copies of rclone using the same VFS cache with
  5360. the same or overlapping remotes if using --vfs-cache-mode > off. This
  5361. can potentially cause data corruption if you do. You can work around
  5362. this by giving each rclone its own cache hierarchy with --cache-dir. You
  5363. don't need to worry about this if the remotes in use don't overlap.
  5364. --vfs-cache-mode off
  5365. In this mode (the default) the cache will read directly from the remote
  5366. and write directly to the remote without caching anything on disk.
  5367. This will mean some operations are not possible
  5368. - Files can't be opened for both read AND write
  5369. - Files opened for write can't be seeked
  5370. - Existing files opened for write must have O_TRUNC set
  5371. - Files open for read with O_TRUNC will be opened write only
  5372. - Files open for write only will behave as if O_TRUNC was supplied
  5373. - Open modes O_APPEND, O_TRUNC are ignored
  5374. - If an upload fails it can't be retried
  5375. --vfs-cache-mode minimal
  5376. This is very similar to "off" except that files opened for read AND
  5377. write will be buffered to disk. This means that files opened for write
  5378. will be a lot more compatible, but uses the minimal disk space.
  5379. These operations are not possible
  5380. - Files opened for write only can't be seeked
  5381. - Existing files opened for write must have O_TRUNC set
  5382. - Files opened for write only will ignore O_APPEND, O_TRUNC
  5383. - If an upload fails it can't be retried
  5384. --vfs-cache-mode writes
  5385. In this mode files opened for read only are still read directly from the
  5386. remote, write only and read/write files are buffered to disk first.
  5387. This mode should support all normal file system operations.
  5388. If an upload fails it will be retried at exponentially increasing
  5389. intervals up to 1 minute.
  5390. --vfs-cache-mode full
  5391. In this mode all reads and writes are buffered to and from disk. When
  5392. data is read from the remote this is buffered to disk as well.
  5393. In this mode the files in the cache will be sparse files and rclone will
  5394. keep track of which bits of the files it has downloaded.
  5395. So if an application only reads the starts of each file, then rclone
  5396. will only buffer the start of the file. These files will appear to be
  5397. their full size in the cache, but they will be sparse files with only
  5398. the data that has been downloaded present in them.
  5399. This mode should support all normal file system operations and is
  5400. otherwise identical to --vfs-cache-mode writes.
  5401. When reading a file rclone will read --buffer-size plus --vfs-read-ahead
  5402. bytes ahead. The --buffer-size is buffered in memory whereas the
  5403. --vfs-read-ahead is buffered on disk.
  5404. When using this mode it is recommended that --buffer-size is not set too
  5405. large and --vfs-read-ahead is set large if required.
  5406. IMPORTANT not all file systems support sparse files. In particular
  5407. FAT/exFAT do not. Rclone will perform very badly if the cache directory
  5408. is on a filesystem which doesn't support sparse files and it will log an
  5409. ERROR message if one is detected.
  5410. Fingerprinting
  5411. Various parts of the VFS use fingerprinting to see if a local file copy
  5412. has changed relative to a remote file. Fingerprints are made from:
  5413. - size
  5414. - modification time
  5415. - hash
  5416. where available on an object.
  5417. On some backends some of these attributes are slow to read (they take an
  5418. extra API call per object, or extra work per object).
  5419. For example hash is slow with the local and sftp backends as they have
  5420. to read the entire file and hash it, and modtime is slow with the s3,
  5421. swift, ftp and qinqstor backends because they need to do an extra API
  5422. call to fetch it.
  5423. If you use the --vfs-fast-fingerprint flag then rclone will not include
  5424. the slow operations in the fingerprint. This makes the fingerprinting
  5425. less accurate but much faster and will improve the opening time of
  5426. cached files.
  5427. If you are running a vfs cache over local, s3 or swift backends then
  5428. using this flag is recommended.
  5429. Note that if you change the value of this flag, the fingerprints of the
  5430. files in the cache may be invalidated and the files will need to be
  5431. downloaded again.
  5432. VFS Chunked Reading
  5433. When rclone reads files from a remote it reads them in chunks. This
  5434. means that rather than requesting the whole file rclone reads the chunk
  5435. specified. This can reduce the used download quota for some remotes by
  5436. requesting only chunks from the remote that are actually read, at the
  5437. cost of an increased number of requests.
  5438. These flags control the chunking:
  5439. --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128M)
  5440. --vfs-read-chunk-size-limit SizeSuffix Max chunk doubling size (default off)
  5441. Rclone will start reading a chunk of size --vfs-read-chunk-size, and
  5442. then double the size for each read. When --vfs-read-chunk-size-limit is
  5443. specified, and greater than --vfs-read-chunk-size, the chunk size for
  5444. each open file will get doubled only until the specified value is
  5445. reached. If the value is "off", which is the default, the limit is
  5446. disabled and the chunk size will grow indefinitely.
  5447. With --vfs-read-chunk-size 100M and --vfs-read-chunk-size-limit 0 the
  5448. following parts will be downloaded: 0-100M, 100M-200M, 200M-300M,
  5449. 300M-400M and so on. When --vfs-read-chunk-size-limit 500M is specified,
  5450. the result would be 0-100M, 100M-300M, 300M-700M, 700M-1200M,
  5451. 1200M-1700M and so on.
  5452. Setting --vfs-read-chunk-size to 0 or "off" disables chunked reading.
  5453. VFS Performance
  5454. These flags may be used to enable/disable features of the VFS for
  5455. performance or other reasons. See also the chunked reading feature.
  5456. In particular S3 and Swift benefit hugely from the --no-modtime flag (or
  5457. use --use-server-modtime for a slightly different effect) as each read
  5458. of the modification time takes a transaction.
  5459. --no-checksum Don't compare checksums on up/download.
  5460. --no-modtime Don't read/write the modification time (can speed things up).
  5461. --no-seek Don't allow seeking in files.
  5462. --read-only Only allow read-only access.
  5463. Sometimes rclone is delivered reads or writes out of order. Rather than
  5464. seeking rclone will wait a short time for the in sequence read or write
  5465. to come in. These flags only come into effect when not using an on disk
  5466. cache file.
  5467. --vfs-read-wait duration Time to wait for in-sequence read before seeking (default 20ms)
  5468. --vfs-write-wait duration Time to wait for in-sequence write before giving error (default 1s)
  5469. When using VFS write caching (--vfs-cache-mode with value writes or
  5470. full), the global flag --transfers can be set to adjust the number of
  5471. parallel uploads of modified files from the cache (the related global
  5472. flag --checkers has no effect on the VFS).
  5473. --transfers int Number of file transfers to run in parallel (default 4)
  5474. VFS Case Sensitivity
  5475. Linux file systems are case-sensitive: two files can differ only by
  5476. case, and the exact case must be used when opening a file.
  5477. File systems in modern Windows are case-insensitive but case-preserving:
  5478. although existing files can be opened using any case, the exact case
  5479. used to create the file is preserved and available for programs to
  5480. query. It is not allowed for two files in the same directory to differ
  5481. only by case.
  5482. Usually file systems on macOS are case-insensitive. It is possible to
  5483. make macOS file systems case-sensitive but that is not the default.
  5484. The --vfs-case-insensitive VFS flag controls how rclone handles these
  5485. two cases. If its value is "false", rclone passes file names to the
  5486. remote as-is. If the flag is "true" (or appears without a value on the
  5487. command line), rclone may perform a "fixup" as explained below.
  5488. The user may specify a file name to open/delete/rename/etc with a case
  5489. different than what is stored on the remote. If an argument refers to an
  5490. existing file with exactly the same name, then the case of the existing
  5491. file on the disk will be used. However, if a file name with exactly the
  5492. same name is not found but a name differing only by case exists, rclone
  5493. will transparently fixup the name. This fixup happens only when an
  5494. existing file is requested. Case sensitivity of file names created anew
  5495. by rclone is controlled by the underlying remote.
  5496. Note that case sensitivity of the operating system running rclone (the
  5497. target) may differ from case sensitivity of a file system presented by
  5498. rclone (the source). The flag controls whether "fixup" is performed to
  5499. satisfy the target.
  5500. If the flag is not provided on the command line, then its default value
  5501. depends on the operating system where rclone runs: "true" on Windows and
  5502. macOS, "false" otherwise. If the flag is provided without a value, then
  5503. it is "true".
  5504. The --no-unicode-normalization flag controls whether a similar "fixup"
  5505. is performed for filenames that differ but are canonically equivalent
  5506. with respect to unicode. Unicode normalization can be particularly
  5507. helpful for users of macOS, which prefers form NFD instead of the NFC
  5508. used by most other platforms. It is therefore highly recommended to keep
  5509. the default of false on macOS, to avoid encoding compatibility issues.
  5510. In the (probably unlikely) event that a directory has multiple duplicate
  5511. filenames after applying case and unicode normalization, the
  5512. --vfs-block-norm-dupes flag allows hiding these duplicates. This comes
  5513. with a performance tradeoff, as rclone will have to scan the entire
  5514. directory for duplicates when listing a directory. For this reason, it
  5515. is recommended to leave this disabled if not needed. However, macOS
  5516. users may wish to consider using it, as otherwise, if a remote directory
  5517. contains both NFC and NFD versions of the same filename, an odd
  5518. situation will occur: both versions of the file will be visible in the
  5519. mount, and both will appear to be editable, however, editing either
  5520. version will actually result in only the NFD version getting edited
  5521. under the hood. --vfs-block- norm-dupes prevents this confusion by
  5522. detecting this scenario, hiding the duplicates, and logging an error,
  5523. similar to how this is handled in rclone sync.
  5524. VFS Disk Options
  5525. This flag allows you to manually set the statistics about the filing
  5526. system. It can be useful when those statistics cannot be read correctly
  5527. automatically.
  5528. --vfs-disk-space-total-size Manually set the total disk space size (example: 256G, default: -1)
  5529. Alternate report of used bytes
  5530. Some backends, most notably S3, do not report the amount of bytes used.
  5531. If you need this information to be available when running df on the
  5532. filesystem, then pass the flag --vfs-used-is-size to rclone. With this
  5533. flag set, instead of relying on the backend to report this information,
  5534. rclone will scan the whole remote similar to rclone size and compute the
  5535. total used space itself.
  5536. WARNING. Contrary to rclone size, this flag ignores filters so that the
  5537. result is accurate. However, this is very inefficient and may cost lots
  5538. of API calls resulting in extra charges. Use it as a last resort and
  5539. only with caching.
  5540. rclone serve dlna remote:path [flags]
  5541. Options
  5542. --addr string The ip:port or :port to bind the DLNA http server to (default ":7879")
  5543. --announce-interval Duration The interval between SSDP announcements (default 12m0s)
  5544. --dir-cache-time Duration Time to cache directory entries for (default 5m0s)
  5545. --dir-perms FileMode Directory permissions (default 0777)
  5546. --file-perms FileMode File permissions (default 0666)
  5547. --gid uint32 Override the gid field set by the filesystem (not supported on Windows) (default 1000)
  5548. -h, --help help for dlna
  5549. --interface stringArray The interface to use for SSDP (repeat as necessary)
  5550. --log-trace Enable trace logging of SOAP traffic
  5551. --name string Name of DLNA server
  5552. --no-checksum Don't compare checksums on up/download
  5553. --no-modtime Don't read/write the modification time (can speed things up)
  5554. --no-seek Don't allow seeking in files
  5555. --poll-interval Duration Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s)
  5556. --read-only Only allow read-only access
  5557. --uid uint32 Override the uid field set by the filesystem (not supported on Windows) (default 1000)
  5558. --umask int Override the permission bits set by the filesystem (not supported on Windows) (default 2)
  5559. --vfs-block-norm-dupes If duplicate filenames exist in the same directory (after normalization), log an error and hide the duplicates (may have a performance cost)
  5560. --vfs-cache-max-age Duration Max time since last access of objects in the cache (default 1h0m0s)
  5561. --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
  5562. --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
  5563. --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
  5564. --vfs-cache-poll-interval Duration Interval to poll the cache for stale objects (default 1m0s)
  5565. --vfs-case-insensitive If a file name not found, find a case insensitive match
  5566. --vfs-disk-space-total-size SizeSuffix Specify the total space of disk (default off)
  5567. --vfs-fast-fingerprint Use fast (less accurate) fingerprints for change detection
  5568. --vfs-read-ahead SizeSuffix Extra read ahead over --buffer-size when using cache-mode full
  5569. --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128Mi)
  5570. --vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached ('off' is unlimited) (default off)
  5571. --vfs-read-wait Duration Time to wait for in-sequence read before seeking (default 20ms)
  5572. --vfs-refresh Refreshes the directory cache recursively in the background on start
  5573. --vfs-used-is-size rclone size Use the rclone size algorithm for Used size
  5574. --vfs-write-back Duration Time to writeback files after last use when using cache (default 5s)
  5575. --vfs-write-wait Duration Time to wait for in-sequence write before giving error (default 1s)
  5576. Filter Options
  5577. Flags for filtering directory listings.
  5578. --delete-excluded Delete files on dest excluded from sync
  5579. --exclude stringArray Exclude files matching pattern
  5580. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  5581. --exclude-if-present stringArray Exclude directories if filename is present
  5582. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  5583. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  5584. -f, --filter stringArray Add a file filtering rule
  5585. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  5586. --ignore-case Ignore case in filters (case insensitive)
  5587. --include stringArray Include files matching pattern
  5588. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  5589. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  5590. --max-depth int If set limits the recursion depth to this (default -1)
  5591. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  5592. --metadata-exclude stringArray Exclude metadatas matching pattern
  5593. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  5594. --metadata-filter stringArray Add a metadata filtering rule
  5595. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  5596. --metadata-include stringArray Include metadatas matching pattern
  5597. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  5598. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  5599. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  5600. See the global flags page for global options not listed here.
  5601. SEE ALSO
  5602. - rclone serve - Serve a remote over a protocol.
  5603. rclone serve docker
  5604. Serve any remote on docker's volume plugin API.
  5605. Synopsis
  5606. This command implements the Docker volume plugin API allowing docker to
  5607. use rclone as a data storage mechanism for various cloud providers.
  5608. rclone provides docker volume plugin based on it.
  5609. To create a docker plugin, one must create a Unix or TCP socket that
  5610. Docker will look for when you use the plugin and then it listens for
  5611. commands from docker daemon and runs the corresponding code when
  5612. necessary. Docker plugins can run as a managed plugin under control of
  5613. the docker daemon or as an independent native service. For testing, you
  5614. can just run it directly from the command line, for example:
  5615. sudo rclone serve docker --base-dir /tmp/rclone-volumes --socket-addr localhost:8787 -vv
  5616. Running rclone serve docker will create the said socket, listening for
  5617. commands from Docker to create the necessary Volumes. Normally you need
  5618. not give the --socket-addr flag. The API will listen on the unix domain
  5619. socket at /run/docker/plugins/rclone.sock. In the example above rclone
  5620. will create a TCP socket and a small file
  5621. /etc/docker/plugins/rclone.spec containing the socket address. We use
  5622. sudo because both paths are writeable only by the root user.
  5623. If you later decide to change listening socket, the docker daemon must
  5624. be restarted to reconnect to /run/docker/plugins/rclone.sock or parse
  5625. new /etc/docker/plugins/rclone.spec. Until you restart, any volume
  5626. related docker commands will timeout trying to access the old socket.
  5627. Running directly is supported on Linux only, not on Windows or MacOS.
  5628. This is not a problem with managed plugin mode described in details in
  5629. the full documentation.
  5630. The command will create volume mounts under the path given by --base-dir
  5631. (by default /var/lib/docker-volumes/rclone available only to root) and
  5632. maintain the JSON formatted file docker-plugin.state in the rclone cache
  5633. directory with book-keeping records of created and mounted volumes.
  5634. All mount and VFS options are submitted by the docker daemon via API,
  5635. but you can also provide defaults on the command line as well as set
  5636. path to the config file and cache directory or adjust logging verbosity.
  5637. ## VFS - Virtual File System
  5638. This command uses the VFS layer. This adapts the cloud storage objects
  5639. that rclone uses into something which looks much more like a disk filing
  5640. system.
  5641. Cloud storage objects have lots of properties which aren't like disk
  5642. files - you can't extend them or write to the middle of them, so the VFS
  5643. layer has to deal with that. Because there is no one right way of doing
  5644. this there are various options explained below.
  5645. The VFS layer also implements a directory cache - this caches info about
  5646. files and directories (but not the data) in memory.
  5647. VFS Directory Cache
  5648. Using the --dir-cache-time flag, you can control how long a directory
  5649. should be considered up to date and not refreshed from the backend.
  5650. Changes made through the VFS will appear immediately or invalidate the
  5651. cache.
  5652. --dir-cache-time duration Time to cache directory entries for (default 5m0s)
  5653. --poll-interval duration Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable (default 1m0s)
  5654. However, changes made directly on the cloud storage by the web interface
  5655. or a different copy of rclone will only be picked up once the directory
  5656. cache expires if the backend configured does not support polling for
  5657. changes. If the backend supports polling, changes will be picked up
  5658. within the polling interval.
  5659. You can send a SIGHUP signal to rclone for it to flush all directory
  5660. caches, regardless of how old they are. Assuming only one rclone
  5661. instance is running, you can reset the cache like this:
  5662. kill -SIGHUP $(pidof rclone)
  5663. If you configure rclone with a remote control then you can use rclone rc
  5664. to flush the whole directory cache:
  5665. rclone rc vfs/forget
  5666. Or individual files or directories:
  5667. rclone rc vfs/forget file=path/to/file dir=path/to/dir
  5668. VFS File Buffering
  5669. The --buffer-size flag determines the amount of memory, that will be
  5670. used to buffer data in advance.
  5671. Each open file will try to keep the specified amount of data in memory
  5672. at all times. The buffered data is bound to one open file and won't be
  5673. shared.
  5674. This flag is a upper limit for the used memory per open file. The buffer
  5675. will only use memory for data that is downloaded but not not yet read.
  5676. If the buffer is empty, only a small amount of memory will be used.
  5677. The maximum memory used by rclone for buffering can be up to
  5678. --buffer-size * open files.
  5679. VFS File Caching
  5680. These flags control the VFS file caching options. File caching is
  5681. necessary to make the VFS layer appear compatible with a normal file
  5682. system. It can be disabled at the cost of some compatibility.
  5683. For example you'll need to enable VFS caching if you want to read and
  5684. write simultaneously to a file. See below for more details.
  5685. Note that the VFS cache is separate from the cache backend and you may
  5686. find that you need one or the other or both.
  5687. --cache-dir string Directory rclone will use for caching.
  5688. --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
  5689. --vfs-cache-max-age duration Max time since last access of objects in the cache (default 1h0m0s)
  5690. --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
  5691. --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
  5692. --vfs-cache-poll-interval duration Interval to poll the cache for stale objects (default 1m0s)
  5693. --vfs-write-back duration Time to writeback files after last use when using cache (default 5s)
  5694. If run with -vv rclone will print the location of the file cache. The
  5695. files are stored in the user cache file area which is OS dependent but
  5696. can be controlled with --cache-dir or setting the appropriate
  5697. environment variable.
  5698. The cache has 4 different modes selected by --vfs-cache-mode. The higher
  5699. the cache mode the more compatible rclone becomes at the cost of using
  5700. disk space.
  5701. Note that files are written back to the remote only when they are closed
  5702. and if they haven't been accessed for --vfs-write-back seconds. If
  5703. rclone is quit or dies with files that haven't been uploaded, these will
  5704. be uploaded next time rclone is run with the same flags.
  5705. If using --vfs-cache-max-size or --vfs-cache-min-free-size note that the
  5706. cache may exceed these quotas for two reasons. Firstly because it is
  5707. only checked every --vfs-cache-poll-interval. Secondly because open
  5708. files cannot be evicted from the cache. When --vfs-cache-max-size or
  5709. --vfs-cache-min-free-size is exceeded, rclone will attempt to evict the
  5710. least accessed files from the cache first. rclone will start with files
  5711. that haven't been accessed for the longest. This cache flushing strategy
  5712. is efficient and more relevant files are likely to remain cached.
  5713. The --vfs-cache-max-age will evict files from the cache after the set
  5714. time since last access has passed. The default value of 1 hour will
  5715. start evicting files from cache that haven't been accessed for 1 hour.
  5716. When a cached file is accessed the 1 hour timer is reset to 0 and will
  5717. wait for 1 more hour before evicting. Specify the time with standard
  5718. notation, s, m, h, d, w .
  5719. You should not run two copies of rclone using the same VFS cache with
  5720. the same or overlapping remotes if using --vfs-cache-mode > off. This
  5721. can potentially cause data corruption if you do. You can work around
  5722. this by giving each rclone its own cache hierarchy with --cache-dir. You
  5723. don't need to worry about this if the remotes in use don't overlap.
  5724. --vfs-cache-mode off
  5725. In this mode (the default) the cache will read directly from the remote
  5726. and write directly to the remote without caching anything on disk.
  5727. This will mean some operations are not possible
  5728. - Files can't be opened for both read AND write
  5729. - Files opened for write can't be seeked
  5730. - Existing files opened for write must have O_TRUNC set
  5731. - Files open for read with O_TRUNC will be opened write only
  5732. - Files open for write only will behave as if O_TRUNC was supplied
  5733. - Open modes O_APPEND, O_TRUNC are ignored
  5734. - If an upload fails it can't be retried
  5735. --vfs-cache-mode minimal
  5736. This is very similar to "off" except that files opened for read AND
  5737. write will be buffered to disk. This means that files opened for write
  5738. will be a lot more compatible, but uses the minimal disk space.
  5739. These operations are not possible
  5740. - Files opened for write only can't be seeked
  5741. - Existing files opened for write must have O_TRUNC set
  5742. - Files opened for write only will ignore O_APPEND, O_TRUNC
  5743. - If an upload fails it can't be retried
  5744. --vfs-cache-mode writes
  5745. In this mode files opened for read only are still read directly from the
  5746. remote, write only and read/write files are buffered to disk first.
  5747. This mode should support all normal file system operations.
  5748. If an upload fails it will be retried at exponentially increasing
  5749. intervals up to 1 minute.
  5750. --vfs-cache-mode full
  5751. In this mode all reads and writes are buffered to and from disk. When
  5752. data is read from the remote this is buffered to disk as well.
  5753. In this mode the files in the cache will be sparse files and rclone will
  5754. keep track of which bits of the files it has downloaded.
  5755. So if an application only reads the starts of each file, then rclone
  5756. will only buffer the start of the file. These files will appear to be
  5757. their full size in the cache, but they will be sparse files with only
  5758. the data that has been downloaded present in them.
  5759. This mode should support all normal file system operations and is
  5760. otherwise identical to --vfs-cache-mode writes.
  5761. When reading a file rclone will read --buffer-size plus --vfs-read-ahead
  5762. bytes ahead. The --buffer-size is buffered in memory whereas the
  5763. --vfs-read-ahead is buffered on disk.
  5764. When using this mode it is recommended that --buffer-size is not set too
  5765. large and --vfs-read-ahead is set large if required.
  5766. IMPORTANT not all file systems support sparse files. In particular
  5767. FAT/exFAT do not. Rclone will perform very badly if the cache directory
  5768. is on a filesystem which doesn't support sparse files and it will log an
  5769. ERROR message if one is detected.
  5770. Fingerprinting
  5771. Various parts of the VFS use fingerprinting to see if a local file copy
  5772. has changed relative to a remote file. Fingerprints are made from:
  5773. - size
  5774. - modification time
  5775. - hash
  5776. where available on an object.
  5777. On some backends some of these attributes are slow to read (they take an
  5778. extra API call per object, or extra work per object).
  5779. For example hash is slow with the local and sftp backends as they have
  5780. to read the entire file and hash it, and modtime is slow with the s3,
  5781. swift, ftp and qinqstor backends because they need to do an extra API
  5782. call to fetch it.
  5783. If you use the --vfs-fast-fingerprint flag then rclone will not include
  5784. the slow operations in the fingerprint. This makes the fingerprinting
  5785. less accurate but much faster and will improve the opening time of
  5786. cached files.
  5787. If you are running a vfs cache over local, s3 or swift backends then
  5788. using this flag is recommended.
  5789. Note that if you change the value of this flag, the fingerprints of the
  5790. files in the cache may be invalidated and the files will need to be
  5791. downloaded again.
  5792. VFS Chunked Reading
  5793. When rclone reads files from a remote it reads them in chunks. This
  5794. means that rather than requesting the whole file rclone reads the chunk
  5795. specified. This can reduce the used download quota for some remotes by
  5796. requesting only chunks from the remote that are actually read, at the
  5797. cost of an increased number of requests.
  5798. These flags control the chunking:
  5799. --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128M)
  5800. --vfs-read-chunk-size-limit SizeSuffix Max chunk doubling size (default off)
  5801. Rclone will start reading a chunk of size --vfs-read-chunk-size, and
  5802. then double the size for each read. When --vfs-read-chunk-size-limit is
  5803. specified, and greater than --vfs-read-chunk-size, the chunk size for
  5804. each open file will get doubled only until the specified value is
  5805. reached. If the value is "off", which is the default, the limit is
  5806. disabled and the chunk size will grow indefinitely.
  5807. With --vfs-read-chunk-size 100M and --vfs-read-chunk-size-limit 0 the
  5808. following parts will be downloaded: 0-100M, 100M-200M, 200M-300M,
  5809. 300M-400M and so on. When --vfs-read-chunk-size-limit 500M is specified,
  5810. the result would be 0-100M, 100M-300M, 300M-700M, 700M-1200M,
  5811. 1200M-1700M and so on.
  5812. Setting --vfs-read-chunk-size to 0 or "off" disables chunked reading.
  5813. VFS Performance
  5814. These flags may be used to enable/disable features of the VFS for
  5815. performance or other reasons. See also the chunked reading feature.
  5816. In particular S3 and Swift benefit hugely from the --no-modtime flag (or
  5817. use --use-server-modtime for a slightly different effect) as each read
  5818. of the modification time takes a transaction.
  5819. --no-checksum Don't compare checksums on up/download.
  5820. --no-modtime Don't read/write the modification time (can speed things up).
  5821. --no-seek Don't allow seeking in files.
  5822. --read-only Only allow read-only access.
  5823. Sometimes rclone is delivered reads or writes out of order. Rather than
  5824. seeking rclone will wait a short time for the in sequence read or write
  5825. to come in. These flags only come into effect when not using an on disk
  5826. cache file.
  5827. --vfs-read-wait duration Time to wait for in-sequence read before seeking (default 20ms)
  5828. --vfs-write-wait duration Time to wait for in-sequence write before giving error (default 1s)
  5829. When using VFS write caching (--vfs-cache-mode with value writes or
  5830. full), the global flag --transfers can be set to adjust the number of
  5831. parallel uploads of modified files from the cache (the related global
  5832. flag --checkers has no effect on the VFS).
  5833. --transfers int Number of file transfers to run in parallel (default 4)
  5834. VFS Case Sensitivity
  5835. Linux file systems are case-sensitive: two files can differ only by
  5836. case, and the exact case must be used when opening a file.
  5837. File systems in modern Windows are case-insensitive but case-preserving:
  5838. although existing files can be opened using any case, the exact case
  5839. used to create the file is preserved and available for programs to
  5840. query. It is not allowed for two files in the same directory to differ
  5841. only by case.
  5842. Usually file systems on macOS are case-insensitive. It is possible to
  5843. make macOS file systems case-sensitive but that is not the default.
  5844. The --vfs-case-insensitive VFS flag controls how rclone handles these
  5845. two cases. If its value is "false", rclone passes file names to the
  5846. remote as-is. If the flag is "true" (or appears without a value on the
  5847. command line), rclone may perform a "fixup" as explained below.
  5848. The user may specify a file name to open/delete/rename/etc with a case
  5849. different than what is stored on the remote. If an argument refers to an
  5850. existing file with exactly the same name, then the case of the existing
  5851. file on the disk will be used. However, if a file name with exactly the
  5852. same name is not found but a name differing only by case exists, rclone
  5853. will transparently fixup the name. This fixup happens only when an
  5854. existing file is requested. Case sensitivity of file names created anew
  5855. by rclone is controlled by the underlying remote.
  5856. Note that case sensitivity of the operating system running rclone (the
  5857. target) may differ from case sensitivity of a file system presented by
  5858. rclone (the source). The flag controls whether "fixup" is performed to
  5859. satisfy the target.
  5860. If the flag is not provided on the command line, then its default value
  5861. depends on the operating system where rclone runs: "true" on Windows and
  5862. macOS, "false" otherwise. If the flag is provided without a value, then
  5863. it is "true".
  5864. The --no-unicode-normalization flag controls whether a similar "fixup"
  5865. is performed for filenames that differ but are canonically equivalent
  5866. with respect to unicode. Unicode normalization can be particularly
  5867. helpful for users of macOS, which prefers form NFD instead of the NFC
  5868. used by most other platforms. It is therefore highly recommended to keep
  5869. the default of false on macOS, to avoid encoding compatibility issues.
  5870. In the (probably unlikely) event that a directory has multiple duplicate
  5871. filenames after applying case and unicode normalization, the
  5872. --vfs-block-norm-dupes flag allows hiding these duplicates. This comes
  5873. with a performance tradeoff, as rclone will have to scan the entire
  5874. directory for duplicates when listing a directory. For this reason, it
  5875. is recommended to leave this disabled if not needed. However, macOS
  5876. users may wish to consider using it, as otherwise, if a remote directory
  5877. contains both NFC and NFD versions of the same filename, an odd
  5878. situation will occur: both versions of the file will be visible in the
  5879. mount, and both will appear to be editable, however, editing either
  5880. version will actually result in only the NFD version getting edited
  5881. under the hood. --vfs-block- norm-dupes prevents this confusion by
  5882. detecting this scenario, hiding the duplicates, and logging an error,
  5883. similar to how this is handled in rclone sync.
  5884. VFS Disk Options
  5885. This flag allows you to manually set the statistics about the filing
  5886. system. It can be useful when those statistics cannot be read correctly
  5887. automatically.
  5888. --vfs-disk-space-total-size Manually set the total disk space size (example: 256G, default: -1)
  5889. Alternate report of used bytes
  5890. Some backends, most notably S3, do not report the amount of bytes used.
  5891. If you need this information to be available when running df on the
  5892. filesystem, then pass the flag --vfs-used-is-size to rclone. With this
  5893. flag set, instead of relying on the backend to report this information,
  5894. rclone will scan the whole remote similar to rclone size and compute the
  5895. total used space itself.
  5896. WARNING. Contrary to rclone size, this flag ignores filters so that the
  5897. result is accurate. However, this is very inefficient and may cost lots
  5898. of API calls resulting in extra charges. Use it as a last resort and
  5899. only with caching.
  5900. rclone serve docker [flags]
  5901. Options
  5902. --allow-non-empty Allow mounting over a non-empty directory (not supported on Windows)
  5903. --allow-other Allow access to other users (not supported on Windows)
  5904. --allow-root Allow access to root user (not supported on Windows)
  5905. --async-read Use asynchronous reads (not supported on Windows) (default true)
  5906. --attr-timeout Duration Time for which file/directory attributes are cached (default 1s)
  5907. --base-dir string Base directory for volumes (default "/var/lib/docker-volumes/rclone")
  5908. --daemon Run mount in background and exit parent process (as background output is suppressed, use --log-file with --log-format=pid,... to monitor) (not supported on Windows)
  5909. --daemon-timeout Duration Time limit for rclone to respond to kernel (not supported on Windows) (default 0s)
  5910. --daemon-wait Duration Time to wait for ready mount from daemon (maximum time on Linux, constant sleep time on OSX/BSD) (not supported on Windows) (default 1m0s)
  5911. --debug-fuse Debug the FUSE internals - needs -v
  5912. --default-permissions Makes kernel enforce access control based on the file mode (not supported on Windows)
  5913. --devname string Set the device name - default is remote:path
  5914. --dir-cache-time Duration Time to cache directory entries for (default 5m0s)
  5915. --dir-perms FileMode Directory permissions (default 0777)
  5916. --file-perms FileMode File permissions (default 0666)
  5917. --forget-state Skip restoring previous state
  5918. --fuse-flag stringArray Flags or arguments to be passed direct to libfuse/WinFsp (repeat if required)
  5919. --gid uint32 Override the gid field set by the filesystem (not supported on Windows) (default 1000)
  5920. -h, --help help for docker
  5921. --max-read-ahead SizeSuffix The number of bytes that can be prefetched for sequential reads (not supported on Windows) (default 128Ki)
  5922. --mount-case-insensitive Tristate Tell the OS the mount is case insensitive (true) or sensitive (false) regardless of the backend (auto) (default unset)
  5923. --network-mode Mount as remote network drive, instead of fixed disk drive (supported on Windows only)
  5924. --no-checksum Don't compare checksums on up/download
  5925. --no-modtime Don't read/write the modification time (can speed things up)
  5926. --no-seek Don't allow seeking in files
  5927. --no-spec Do not write spec file
  5928. --noappledouble Ignore Apple Double (._) and .DS_Store files (supported on OSX only) (default true)
  5929. --noapplexattr Ignore all "com.apple.*" extended attributes (supported on OSX only)
  5930. -o, --option stringArray Option for libfuse/WinFsp (repeat if required)
  5931. --poll-interval Duration Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s)
  5932. --read-only Only allow read-only access
  5933. --socket-addr string Address <host:port> or absolute path (default: /run/docker/plugins/rclone.sock)
  5934. --socket-gid int GID for unix socket (default: current process GID) (default 1000)
  5935. --uid uint32 Override the uid field set by the filesystem (not supported on Windows) (default 1000)
  5936. --umask int Override the permission bits set by the filesystem (not supported on Windows) (default 2)
  5937. --vfs-block-norm-dupes If duplicate filenames exist in the same directory (after normalization), log an error and hide the duplicates (may have a performance cost)
  5938. --vfs-cache-max-age Duration Max time since last access of objects in the cache (default 1h0m0s)
  5939. --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
  5940. --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
  5941. --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
  5942. --vfs-cache-poll-interval Duration Interval to poll the cache for stale objects (default 1m0s)
  5943. --vfs-case-insensitive If a file name not found, find a case insensitive match
  5944. --vfs-disk-space-total-size SizeSuffix Specify the total space of disk (default off)
  5945. --vfs-fast-fingerprint Use fast (less accurate) fingerprints for change detection
  5946. --vfs-read-ahead SizeSuffix Extra read ahead over --buffer-size when using cache-mode full
  5947. --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128Mi)
  5948. --vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached ('off' is unlimited) (default off)
  5949. --vfs-read-wait Duration Time to wait for in-sequence read before seeking (default 20ms)
  5950. --vfs-refresh Refreshes the directory cache recursively in the background on start
  5951. --vfs-used-is-size rclone size Use the rclone size algorithm for Used size
  5952. --vfs-write-back Duration Time to writeback files after last use when using cache (default 5s)
  5953. --vfs-write-wait Duration Time to wait for in-sequence write before giving error (default 1s)
  5954. --volname string Set the volume name (supported on Windows and OSX only)
  5955. --write-back-cache Makes kernel buffer writes before sending them to rclone (without this, writethrough caching is used) (not supported on Windows)
  5956. Filter Options
  5957. Flags for filtering directory listings.
  5958. --delete-excluded Delete files on dest excluded from sync
  5959. --exclude stringArray Exclude files matching pattern
  5960. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  5961. --exclude-if-present stringArray Exclude directories if filename is present
  5962. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  5963. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  5964. -f, --filter stringArray Add a file filtering rule
  5965. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  5966. --ignore-case Ignore case in filters (case insensitive)
  5967. --include stringArray Include files matching pattern
  5968. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  5969. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  5970. --max-depth int If set limits the recursion depth to this (default -1)
  5971. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  5972. --metadata-exclude stringArray Exclude metadatas matching pattern
  5973. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  5974. --metadata-filter stringArray Add a metadata filtering rule
  5975. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  5976. --metadata-include stringArray Include metadatas matching pattern
  5977. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  5978. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  5979. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  5980. See the global flags page for global options not listed here.
  5981. SEE ALSO
  5982. - rclone serve - Serve a remote over a protocol.
  5983. rclone serve ftp
  5984. Serve remote:path over FTP.
  5985. Synopsis
  5986. Run a basic FTP server to serve a remote over FTP protocol. This can be
  5987. viewed with a FTP client or you can make a remote of type FTP to read
  5988. and write it.
  5989. Server options
  5990. Use --addr to specify which IP address and port the server should listen
  5991. on, e.g. --addr 1.2.3.4:8000 or --addr :8080 to listen to all IPs. By
  5992. default it only listens on localhost. You can use port :0 to let the OS
  5993. choose an available port.
  5994. If you set --addr to listen on a public or LAN accessible IP address
  5995. then using Authentication is advised - see the next section for info.
  5996. Authentication
  5997. By default this will serve files without needing a login.
  5998. You can set a single username and password with the --user and --pass
  5999. flags. ## VFS - Virtual File System
  6000. This command uses the VFS layer. This adapts the cloud storage objects
  6001. that rclone uses into something which looks much more like a disk filing
  6002. system.
  6003. Cloud storage objects have lots of properties which aren't like disk
  6004. files - you can't extend them or write to the middle of them, so the VFS
  6005. layer has to deal with that. Because there is no one right way of doing
  6006. this there are various options explained below.
  6007. The VFS layer also implements a directory cache - this caches info about
  6008. files and directories (but not the data) in memory.
  6009. VFS Directory Cache
  6010. Using the --dir-cache-time flag, you can control how long a directory
  6011. should be considered up to date and not refreshed from the backend.
  6012. Changes made through the VFS will appear immediately or invalidate the
  6013. cache.
  6014. --dir-cache-time duration Time to cache directory entries for (default 5m0s)
  6015. --poll-interval duration Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable (default 1m0s)
  6016. However, changes made directly on the cloud storage by the web interface
  6017. or a different copy of rclone will only be picked up once the directory
  6018. cache expires if the backend configured does not support polling for
  6019. changes. If the backend supports polling, changes will be picked up
  6020. within the polling interval.
  6021. You can send a SIGHUP signal to rclone for it to flush all directory
  6022. caches, regardless of how old they are. Assuming only one rclone
  6023. instance is running, you can reset the cache like this:
  6024. kill -SIGHUP $(pidof rclone)
  6025. If you configure rclone with a remote control then you can use rclone rc
  6026. to flush the whole directory cache:
  6027. rclone rc vfs/forget
  6028. Or individual files or directories:
  6029. rclone rc vfs/forget file=path/to/file dir=path/to/dir
  6030. VFS File Buffering
  6031. The --buffer-size flag determines the amount of memory, that will be
  6032. used to buffer data in advance.
  6033. Each open file will try to keep the specified amount of data in memory
  6034. at all times. The buffered data is bound to one open file and won't be
  6035. shared.
  6036. This flag is a upper limit for the used memory per open file. The buffer
  6037. will only use memory for data that is downloaded but not not yet read.
  6038. If the buffer is empty, only a small amount of memory will be used.
  6039. The maximum memory used by rclone for buffering can be up to
  6040. --buffer-size * open files.
  6041. VFS File Caching
  6042. These flags control the VFS file caching options. File caching is
  6043. necessary to make the VFS layer appear compatible with a normal file
  6044. system. It can be disabled at the cost of some compatibility.
  6045. For example you'll need to enable VFS caching if you want to read and
  6046. write simultaneously to a file. See below for more details.
  6047. Note that the VFS cache is separate from the cache backend and you may
  6048. find that you need one or the other or both.
  6049. --cache-dir string Directory rclone will use for caching.
  6050. --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
  6051. --vfs-cache-max-age duration Max time since last access of objects in the cache (default 1h0m0s)
  6052. --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
  6053. --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
  6054. --vfs-cache-poll-interval duration Interval to poll the cache for stale objects (default 1m0s)
  6055. --vfs-write-back duration Time to writeback files after last use when using cache (default 5s)
  6056. If run with -vv rclone will print the location of the file cache. The
  6057. files are stored in the user cache file area which is OS dependent but
  6058. can be controlled with --cache-dir or setting the appropriate
  6059. environment variable.
  6060. The cache has 4 different modes selected by --vfs-cache-mode. The higher
  6061. the cache mode the more compatible rclone becomes at the cost of using
  6062. disk space.
  6063. Note that files are written back to the remote only when they are closed
  6064. and if they haven't been accessed for --vfs-write-back seconds. If
  6065. rclone is quit or dies with files that haven't been uploaded, these will
  6066. be uploaded next time rclone is run with the same flags.
  6067. If using --vfs-cache-max-size or --vfs-cache-min-free-size note that the
  6068. cache may exceed these quotas for two reasons. Firstly because it is
  6069. only checked every --vfs-cache-poll-interval. Secondly because open
  6070. files cannot be evicted from the cache. When --vfs-cache-max-size or
  6071. --vfs-cache-min-free-size is exceeded, rclone will attempt to evict the
  6072. least accessed files from the cache first. rclone will start with files
  6073. that haven't been accessed for the longest. This cache flushing strategy
  6074. is efficient and more relevant files are likely to remain cached.
  6075. The --vfs-cache-max-age will evict files from the cache after the set
  6076. time since last access has passed. The default value of 1 hour will
  6077. start evicting files from cache that haven't been accessed for 1 hour.
  6078. When a cached file is accessed the 1 hour timer is reset to 0 and will
  6079. wait for 1 more hour before evicting. Specify the time with standard
  6080. notation, s, m, h, d, w .
  6081. You should not run two copies of rclone using the same VFS cache with
  6082. the same or overlapping remotes if using --vfs-cache-mode > off. This
  6083. can potentially cause data corruption if you do. You can work around
  6084. this by giving each rclone its own cache hierarchy with --cache-dir. You
  6085. don't need to worry about this if the remotes in use don't overlap.
  6086. --vfs-cache-mode off
  6087. In this mode (the default) the cache will read directly from the remote
  6088. and write directly to the remote without caching anything on disk.
  6089. This will mean some operations are not possible
  6090. - Files can't be opened for both read AND write
  6091. - Files opened for write can't be seeked
  6092. - Existing files opened for write must have O_TRUNC set
  6093. - Files open for read with O_TRUNC will be opened write only
  6094. - Files open for write only will behave as if O_TRUNC was supplied
  6095. - Open modes O_APPEND, O_TRUNC are ignored
  6096. - If an upload fails it can't be retried
  6097. --vfs-cache-mode minimal
  6098. This is very similar to "off" except that files opened for read AND
  6099. write will be buffered to disk. This means that files opened for write
  6100. will be a lot more compatible, but uses the minimal disk space.
  6101. These operations are not possible
  6102. - Files opened for write only can't be seeked
  6103. - Existing files opened for write must have O_TRUNC set
  6104. - Files opened for write only will ignore O_APPEND, O_TRUNC
  6105. - If an upload fails it can't be retried
  6106. --vfs-cache-mode writes
  6107. In this mode files opened for read only are still read directly from the
  6108. remote, write only and read/write files are buffered to disk first.
  6109. This mode should support all normal file system operations.
  6110. If an upload fails it will be retried at exponentially increasing
  6111. intervals up to 1 minute.
  6112. --vfs-cache-mode full
  6113. In this mode all reads and writes are buffered to and from disk. When
  6114. data is read from the remote this is buffered to disk as well.
  6115. In this mode the files in the cache will be sparse files and rclone will
  6116. keep track of which bits of the files it has downloaded.
  6117. So if an application only reads the starts of each file, then rclone
  6118. will only buffer the start of the file. These files will appear to be
  6119. their full size in the cache, but they will be sparse files with only
  6120. the data that has been downloaded present in them.
  6121. This mode should support all normal file system operations and is
  6122. otherwise identical to --vfs-cache-mode writes.
  6123. When reading a file rclone will read --buffer-size plus --vfs-read-ahead
  6124. bytes ahead. The --buffer-size is buffered in memory whereas the
  6125. --vfs-read-ahead is buffered on disk.
  6126. When using this mode it is recommended that --buffer-size is not set too
  6127. large and --vfs-read-ahead is set large if required.
  6128. IMPORTANT not all file systems support sparse files. In particular
  6129. FAT/exFAT do not. Rclone will perform very badly if the cache directory
  6130. is on a filesystem which doesn't support sparse files and it will log an
  6131. ERROR message if one is detected.
  6132. Fingerprinting
  6133. Various parts of the VFS use fingerprinting to see if a local file copy
  6134. has changed relative to a remote file. Fingerprints are made from:
  6135. - size
  6136. - modification time
  6137. - hash
  6138. where available on an object.
  6139. On some backends some of these attributes are slow to read (they take an
  6140. extra API call per object, or extra work per object).
  6141. For example hash is slow with the local and sftp backends as they have
  6142. to read the entire file and hash it, and modtime is slow with the s3,
  6143. swift, ftp and qinqstor backends because they need to do an extra API
  6144. call to fetch it.
  6145. If you use the --vfs-fast-fingerprint flag then rclone will not include
  6146. the slow operations in the fingerprint. This makes the fingerprinting
  6147. less accurate but much faster and will improve the opening time of
  6148. cached files.
  6149. If you are running a vfs cache over local, s3 or swift backends then
  6150. using this flag is recommended.
  6151. Note that if you change the value of this flag, the fingerprints of the
  6152. files in the cache may be invalidated and the files will need to be
  6153. downloaded again.
  6154. VFS Chunked Reading
  6155. When rclone reads files from a remote it reads them in chunks. This
  6156. means that rather than requesting the whole file rclone reads the chunk
  6157. specified. This can reduce the used download quota for some remotes by
  6158. requesting only chunks from the remote that are actually read, at the
  6159. cost of an increased number of requests.
  6160. These flags control the chunking:
  6161. --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128M)
  6162. --vfs-read-chunk-size-limit SizeSuffix Max chunk doubling size (default off)
  6163. Rclone will start reading a chunk of size --vfs-read-chunk-size, and
  6164. then double the size for each read. When --vfs-read-chunk-size-limit is
  6165. specified, and greater than --vfs-read-chunk-size, the chunk size for
  6166. each open file will get doubled only until the specified value is
  6167. reached. If the value is "off", which is the default, the limit is
  6168. disabled and the chunk size will grow indefinitely.
  6169. With --vfs-read-chunk-size 100M and --vfs-read-chunk-size-limit 0 the
  6170. following parts will be downloaded: 0-100M, 100M-200M, 200M-300M,
  6171. 300M-400M and so on. When --vfs-read-chunk-size-limit 500M is specified,
  6172. the result would be 0-100M, 100M-300M, 300M-700M, 700M-1200M,
  6173. 1200M-1700M and so on.
  6174. Setting --vfs-read-chunk-size to 0 or "off" disables chunked reading.
  6175. VFS Performance
  6176. These flags may be used to enable/disable features of the VFS for
  6177. performance or other reasons. See also the chunked reading feature.
  6178. In particular S3 and Swift benefit hugely from the --no-modtime flag (or
  6179. use --use-server-modtime for a slightly different effect) as each read
  6180. of the modification time takes a transaction.
  6181. --no-checksum Don't compare checksums on up/download.
  6182. --no-modtime Don't read/write the modification time (can speed things up).
  6183. --no-seek Don't allow seeking in files.
  6184. --read-only Only allow read-only access.
  6185. Sometimes rclone is delivered reads or writes out of order. Rather than
  6186. seeking rclone will wait a short time for the in sequence read or write
  6187. to come in. These flags only come into effect when not using an on disk
  6188. cache file.
  6189. --vfs-read-wait duration Time to wait for in-sequence read before seeking (default 20ms)
  6190. --vfs-write-wait duration Time to wait for in-sequence write before giving error (default 1s)
  6191. When using VFS write caching (--vfs-cache-mode with value writes or
  6192. full), the global flag --transfers can be set to adjust the number of
  6193. parallel uploads of modified files from the cache (the related global
  6194. flag --checkers has no effect on the VFS).
  6195. --transfers int Number of file transfers to run in parallel (default 4)
  6196. VFS Case Sensitivity
  6197. Linux file systems are case-sensitive: two files can differ only by
  6198. case, and the exact case must be used when opening a file.
  6199. File systems in modern Windows are case-insensitive but case-preserving:
  6200. although existing files can be opened using any case, the exact case
  6201. used to create the file is preserved and available for programs to
  6202. query. It is not allowed for two files in the same directory to differ
  6203. only by case.
  6204. Usually file systems on macOS are case-insensitive. It is possible to
  6205. make macOS file systems case-sensitive but that is not the default.
  6206. The --vfs-case-insensitive VFS flag controls how rclone handles these
  6207. two cases. If its value is "false", rclone passes file names to the
  6208. remote as-is. If the flag is "true" (or appears without a value on the
  6209. command line), rclone may perform a "fixup" as explained below.
  6210. The user may specify a file name to open/delete/rename/etc with a case
  6211. different than what is stored on the remote. If an argument refers to an
  6212. existing file with exactly the same name, then the case of the existing
  6213. file on the disk will be used. However, if a file name with exactly the
  6214. same name is not found but a name differing only by case exists, rclone
  6215. will transparently fixup the name. This fixup happens only when an
  6216. existing file is requested. Case sensitivity of file names created anew
  6217. by rclone is controlled by the underlying remote.
  6218. Note that case sensitivity of the operating system running rclone (the
  6219. target) may differ from case sensitivity of a file system presented by
  6220. rclone (the source). The flag controls whether "fixup" is performed to
  6221. satisfy the target.
  6222. If the flag is not provided on the command line, then its default value
  6223. depends on the operating system where rclone runs: "true" on Windows and
  6224. macOS, "false" otherwise. If the flag is provided without a value, then
  6225. it is "true".
  6226. The --no-unicode-normalization flag controls whether a similar "fixup"
  6227. is performed for filenames that differ but are canonically equivalent
  6228. with respect to unicode. Unicode normalization can be particularly
  6229. helpful for users of macOS, which prefers form NFD instead of the NFC
  6230. used by most other platforms. It is therefore highly recommended to keep
  6231. the default of false on macOS, to avoid encoding compatibility issues.
  6232. In the (probably unlikely) event that a directory has multiple duplicate
  6233. filenames after applying case and unicode normalization, the
  6234. --vfs-block-norm-dupes flag allows hiding these duplicates. This comes
  6235. with a performance tradeoff, as rclone will have to scan the entire
  6236. directory for duplicates when listing a directory. For this reason, it
  6237. is recommended to leave this disabled if not needed. However, macOS
  6238. users may wish to consider using it, as otherwise, if a remote directory
  6239. contains both NFC and NFD versions of the same filename, an odd
  6240. situation will occur: both versions of the file will be visible in the
  6241. mount, and both will appear to be editable, however, editing either
  6242. version will actually result in only the NFD version getting edited
  6243. under the hood. --vfs-block- norm-dupes prevents this confusion by
  6244. detecting this scenario, hiding the duplicates, and logging an error,
  6245. similar to how this is handled in rclone sync.
  6246. VFS Disk Options
  6247. This flag allows you to manually set the statistics about the filing
  6248. system. It can be useful when those statistics cannot be read correctly
  6249. automatically.
  6250. --vfs-disk-space-total-size Manually set the total disk space size (example: 256G, default: -1)
  6251. Alternate report of used bytes
  6252. Some backends, most notably S3, do not report the amount of bytes used.
  6253. If you need this information to be available when running df on the
  6254. filesystem, then pass the flag --vfs-used-is-size to rclone. With this
  6255. flag set, instead of relying on the backend to report this information,
  6256. rclone will scan the whole remote similar to rclone size and compute the
  6257. total used space itself.
  6258. WARNING. Contrary to rclone size, this flag ignores filters so that the
  6259. result is accurate. However, this is very inefficient and may cost lots
  6260. of API calls resulting in extra charges. Use it as a last resort and
  6261. only with caching.
  6262. Auth Proxy
  6263. If you supply the parameter --auth-proxy /path/to/program then rclone
  6264. will use that program to generate backends on the fly which then are
  6265. used to authenticate incoming requests. This uses a simple JSON based
  6266. protocol with input on STDIN and output on STDOUT.
  6267. PLEASE NOTE: --auth-proxy and --authorized-keys cannot be used together,
  6268. if --auth-proxy is set the authorized keys option will be ignored.
  6269. There is an example program bin/test_proxy.py in the rclone source code.
  6270. The program's job is to take a user and pass on the input and turn those
  6271. into the config for a backend on STDOUT in JSON format. This config will
  6272. have any default parameters for the backend added, but it won't use
  6273. configuration from environment variables or command line options - it is
  6274. the job of the proxy program to make a complete config.
  6275. This config generated must have this extra parameter - _root - root to
  6276. use for the backend
  6277. And it may have this parameter - _obscure - comma separated strings for
  6278. parameters to obscure
  6279. If password authentication was used by the client, input to the proxy
  6280. process (on STDIN) would look similar to this:
  6281. {
  6282. "user": "me",
  6283. "pass": "mypassword"
  6284. }
  6285. If public-key authentication was used by the client, input to the proxy
  6286. process (on STDIN) would look similar to this:
  6287. {
  6288. "user": "me",
  6289. "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf"
  6290. }
  6291. And as an example return this on STDOUT
  6292. {
  6293. "type": "sftp",
  6294. "_root": "",
  6295. "_obscure": "pass",
  6296. "user": "me",
  6297. "pass": "mypassword",
  6298. "host": "sftp.example.com"
  6299. }
  6300. This would mean that an SFTP backend would be created on the fly for the
  6301. user and pass/public_key returned in the output to the host given. Note
  6302. that since _obscure is set to pass, rclone will obscure the pass
  6303. parameter before creating the backend (which is required for sftp
  6304. backends).
  6305. The program can manipulate the supplied user in any way, for example to
  6306. make proxy to many different sftp backends, you could make the user be
  6307. user@example.com and then set the host to example.com in the output and
  6308. the user to user. For security you'd probably want to restrict the host
  6309. to a limited list.
  6310. Note that an internal cache is keyed on user so only use that for
  6311. configuration, don't use pass or public_key. This also means that if a
  6312. user's password or public-key is changed the cache will need to expire
  6313. (which takes 5 mins) before it takes effect.
  6314. This can be used to build general purpose proxies to any kind of backend
  6315. that rclone supports.
  6316. rclone serve ftp remote:path [flags]
  6317. Options
  6318. --addr string IPaddress:Port or :Port to bind server to (default "localhost:2121")
  6319. --auth-proxy string A program to use to create the backend from the auth
  6320. --cert string TLS PEM key (concatenation of certificate and CA certificate)
  6321. --dir-cache-time Duration Time to cache directory entries for (default 5m0s)
  6322. --dir-perms FileMode Directory permissions (default 0777)
  6323. --file-perms FileMode File permissions (default 0666)
  6324. --gid uint32 Override the gid field set by the filesystem (not supported on Windows) (default 1000)
  6325. -h, --help help for ftp
  6326. --key string TLS PEM Private key
  6327. --no-checksum Don't compare checksums on up/download
  6328. --no-modtime Don't read/write the modification time (can speed things up)
  6329. --no-seek Don't allow seeking in files
  6330. --pass string Password for authentication (empty value allow every password)
  6331. --passive-port string Passive port range to use (default "30000-32000")
  6332. --poll-interval Duration Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s)
  6333. --public-ip string Public IP address to advertise for passive connections
  6334. --read-only Only allow read-only access
  6335. --uid uint32 Override the uid field set by the filesystem (not supported on Windows) (default 1000)
  6336. --umask int Override the permission bits set by the filesystem (not supported on Windows) (default 2)
  6337. --user string User name for authentication (default "anonymous")
  6338. --vfs-block-norm-dupes If duplicate filenames exist in the same directory (after normalization), log an error and hide the duplicates (may have a performance cost)
  6339. --vfs-cache-max-age Duration Max time since last access of objects in the cache (default 1h0m0s)
  6340. --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
  6341. --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
  6342. --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
  6343. --vfs-cache-poll-interval Duration Interval to poll the cache for stale objects (default 1m0s)
  6344. --vfs-case-insensitive If a file name not found, find a case insensitive match
  6345. --vfs-disk-space-total-size SizeSuffix Specify the total space of disk (default off)
  6346. --vfs-fast-fingerprint Use fast (less accurate) fingerprints for change detection
  6347. --vfs-read-ahead SizeSuffix Extra read ahead over --buffer-size when using cache-mode full
  6348. --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128Mi)
  6349. --vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached ('off' is unlimited) (default off)
  6350. --vfs-read-wait Duration Time to wait for in-sequence read before seeking (default 20ms)
  6351. --vfs-refresh Refreshes the directory cache recursively in the background on start
  6352. --vfs-used-is-size rclone size Use the rclone size algorithm for Used size
  6353. --vfs-write-back Duration Time to writeback files after last use when using cache (default 5s)
  6354. --vfs-write-wait Duration Time to wait for in-sequence write before giving error (default 1s)
  6355. Filter Options
  6356. Flags for filtering directory listings.
  6357. --delete-excluded Delete files on dest excluded from sync
  6358. --exclude stringArray Exclude files matching pattern
  6359. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  6360. --exclude-if-present stringArray Exclude directories if filename is present
  6361. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  6362. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  6363. -f, --filter stringArray Add a file filtering rule
  6364. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  6365. --ignore-case Ignore case in filters (case insensitive)
  6366. --include stringArray Include files matching pattern
  6367. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  6368. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  6369. --max-depth int If set limits the recursion depth to this (default -1)
  6370. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  6371. --metadata-exclude stringArray Exclude metadatas matching pattern
  6372. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  6373. --metadata-filter stringArray Add a metadata filtering rule
  6374. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  6375. --metadata-include stringArray Include metadatas matching pattern
  6376. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  6377. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  6378. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  6379. See the global flags page for global options not listed here.
  6380. SEE ALSO
  6381. - rclone serve - Serve a remote over a protocol.
  6382. rclone serve http
  6383. Serve the remote over HTTP.
  6384. Synopsis
  6385. Run a basic web server to serve a remote over HTTP. This can be viewed
  6386. in a web browser or you can make a remote of type http read from it.
  6387. You can use the filter flags (e.g. --include, --exclude) to control what
  6388. is served.
  6389. The server will log errors. Use -v to see access logs.
  6390. --bwlimit will be respected for file transfers. Use --stats to control
  6391. the stats printing.
  6392. Server options
  6393. Use --addr to specify which IP address and port the server should listen
  6394. on, eg --addr 1.2.3.4:8000 or --addr :8080 to listen to all IPs. By
  6395. default it only listens on localhost. You can use port :0 to let the OS
  6396. choose an available port.
  6397. If you set --addr to listen on a public or LAN accessible IP address
  6398. then using Authentication is advised - see the next section for info.
  6399. You can use a unix socket by setting the url to unix:///path/to/socket
  6400. or just by using an absolute path name. Note that unix sockets bypass
  6401. the authentication - this is expected to be done with file system
  6402. permissions.
  6403. --addr may be repeated to listen on multiple IPs/ports/sockets.
  6404. --server-read-timeout and --server-write-timeout can be used to control
  6405. the timeouts on the server. Note that this is the total time for a
  6406. transfer.
  6407. --max-header-bytes controls the maximum number of bytes the server will
  6408. accept in the HTTP header.
  6409. --baseurl controls the URL prefix that rclone serves from. By default
  6410. rclone will serve from the root. If you used --baseurl "/rclone" then
  6411. rclone would serve from a URL starting with "/rclone/". This is useful
  6412. if you wish to proxy rclone serve. Rclone automatically inserts leading
  6413. and trailing "/" on --baseurl, so --baseurl "rclone",
  6414. --baseurl "/rclone" and --baseurl "/rclone/" are all treated
  6415. identically.
  6416. TLS (SSL)
  6417. By default this will serve over http. If you want you can serve over
  6418. https. You will need to supply the --cert and --key flags. If you wish
  6419. to do client side certificate validation then you will need to supply
  6420. --client-ca also.
  6421. --cert should be a either a PEM encoded certificate or a concatenation
  6422. of that with the CA certificate. --key should be the PEM encoded private
  6423. key and --client-ca should be the PEM encoded client certificate
  6424. authority certificate.
  6425. --min-tls-version is minimum TLS version that is acceptable. Valid
  6426. values are "tls1.0", "tls1.1", "tls1.2" and "tls1.3" (default "tls1.0").
  6427. Template
  6428. --template allows a user to specify a custom markup template for HTTP
  6429. and WebDAV serve functions. The server exports the following markup to
  6430. be used within the template to server pages:
  6431. -----------------------------------------------------------------------
  6432. Parameter Description
  6433. ----------------------------------- -----------------------------------
  6434. .Name The full path of a file/directory.
  6435. .Title Directory listing of .Name
  6436. .Sort The current sort used. This is
  6437. changeable via ?sort= parameter
  6438. Sort Options:
  6439. namedirfirst,name,size,time
  6440. (default namedirfirst)
  6441. .Order The current ordering used. This is
  6442. changeable via ?order= parameter
  6443. Order Options: asc,desc (default
  6444. asc)
  6445. .Query Currently unused.
  6446. .Breadcrumb Allows for creating a relative
  6447. navigation
  6448. -- .Link The relative to the root link of
  6449. the Text.
  6450. -- .Text The Name of the directory.
  6451. .Entries Information about a specific
  6452. file/directory.
  6453. -- .URL The 'url' of an entry.
  6454. -- .Leaf Currently same as 'URL' but
  6455. intended to be 'just' the name.
  6456. -- .IsDir Boolean for if an entry is a
  6457. directory or not.
  6458. -- .Size Size in Bytes of the entry.
  6459. -- .ModTime The UTC timestamp of an entry.
  6460. -----------------------------------------------------------------------
  6461. The server also makes the following functions available so that they can
  6462. be used within the template. These functions help extend the options for
  6463. dynamic rendering of HTML. They can be used to render HTML based on
  6464. specific conditions.
  6465. -----------------------------------------------------------------------
  6466. Function Description
  6467. ----------------------------------- -----------------------------------
  6468. afterEpoch Returns the time since the epoch
  6469. for the given time.
  6470. contains Checks whether a given substring is
  6471. present or not in a given string.
  6472. hasPrefix Checks whether the given string
  6473. begins with the specified prefix.
  6474. hasSuffix Checks whether the given string end
  6475. with the specified suffix.
  6476. -----------------------------------------------------------------------
  6477. Authentication
  6478. By default this will serve files without needing a login.
  6479. You can either use an htpasswd file which can take lots of users, or set
  6480. a single username and password with the --user and --pass flags.
  6481. If no static users are configured by either of the above methods, and
  6482. client certificates are required by the --client-ca flag passed to the
  6483. server, the client certificate common name will be considered as the
  6484. username.
  6485. Use --htpasswd /path/to/htpasswd to provide an htpasswd file. This is in
  6486. standard apache format and supports MD5, SHA1 and BCrypt for basic
  6487. authentication. Bcrypt is recommended.
  6488. To create an htpasswd file:
  6489. touch htpasswd
  6490. htpasswd -B htpasswd user
  6491. htpasswd -B htpasswd anotherUser
  6492. The password file can be updated while rclone is running.
  6493. Use --realm to set the authentication realm.
  6494. Use --salt to change the password hashing salt from the default. ## VFS
  6495. - Virtual File System
  6496. This command uses the VFS layer. This adapts the cloud storage objects
  6497. that rclone uses into something which looks much more like a disk filing
  6498. system.
  6499. Cloud storage objects have lots of properties which aren't like disk
  6500. files - you can't extend them or write to the middle of them, so the VFS
  6501. layer has to deal with that. Because there is no one right way of doing
  6502. this there are various options explained below.
  6503. The VFS layer also implements a directory cache - this caches info about
  6504. files and directories (but not the data) in memory.
  6505. VFS Directory Cache
  6506. Using the --dir-cache-time flag, you can control how long a directory
  6507. should be considered up to date and not refreshed from the backend.
  6508. Changes made through the VFS will appear immediately or invalidate the
  6509. cache.
  6510. --dir-cache-time duration Time to cache directory entries for (default 5m0s)
  6511. --poll-interval duration Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable (default 1m0s)
  6512. However, changes made directly on the cloud storage by the web interface
  6513. or a different copy of rclone will only be picked up once the directory
  6514. cache expires if the backend configured does not support polling for
  6515. changes. If the backend supports polling, changes will be picked up
  6516. within the polling interval.
  6517. You can send a SIGHUP signal to rclone for it to flush all directory
  6518. caches, regardless of how old they are. Assuming only one rclone
  6519. instance is running, you can reset the cache like this:
  6520. kill -SIGHUP $(pidof rclone)
  6521. If you configure rclone with a remote control then you can use rclone rc
  6522. to flush the whole directory cache:
  6523. rclone rc vfs/forget
  6524. Or individual files or directories:
  6525. rclone rc vfs/forget file=path/to/file dir=path/to/dir
  6526. VFS File Buffering
  6527. The --buffer-size flag determines the amount of memory, that will be
  6528. used to buffer data in advance.
  6529. Each open file will try to keep the specified amount of data in memory
  6530. at all times. The buffered data is bound to one open file and won't be
  6531. shared.
  6532. This flag is a upper limit for the used memory per open file. The buffer
  6533. will only use memory for data that is downloaded but not not yet read.
  6534. If the buffer is empty, only a small amount of memory will be used.
  6535. The maximum memory used by rclone for buffering can be up to
  6536. --buffer-size * open files.
  6537. VFS File Caching
  6538. These flags control the VFS file caching options. File caching is
  6539. necessary to make the VFS layer appear compatible with a normal file
  6540. system. It can be disabled at the cost of some compatibility.
  6541. For example you'll need to enable VFS caching if you want to read and
  6542. write simultaneously to a file. See below for more details.
  6543. Note that the VFS cache is separate from the cache backend and you may
  6544. find that you need one or the other or both.
  6545. --cache-dir string Directory rclone will use for caching.
  6546. --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
  6547. --vfs-cache-max-age duration Max time since last access of objects in the cache (default 1h0m0s)
  6548. --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
  6549. --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
  6550. --vfs-cache-poll-interval duration Interval to poll the cache for stale objects (default 1m0s)
  6551. --vfs-write-back duration Time to writeback files after last use when using cache (default 5s)
  6552. If run with -vv rclone will print the location of the file cache. The
  6553. files are stored in the user cache file area which is OS dependent but
  6554. can be controlled with --cache-dir or setting the appropriate
  6555. environment variable.
  6556. The cache has 4 different modes selected by --vfs-cache-mode. The higher
  6557. the cache mode the more compatible rclone becomes at the cost of using
  6558. disk space.
  6559. Note that files are written back to the remote only when they are closed
  6560. and if they haven't been accessed for --vfs-write-back seconds. If
  6561. rclone is quit or dies with files that haven't been uploaded, these will
  6562. be uploaded next time rclone is run with the same flags.
  6563. If using --vfs-cache-max-size or --vfs-cache-min-free-size note that the
  6564. cache may exceed these quotas for two reasons. Firstly because it is
  6565. only checked every --vfs-cache-poll-interval. Secondly because open
  6566. files cannot be evicted from the cache. When --vfs-cache-max-size or
  6567. --vfs-cache-min-free-size is exceeded, rclone will attempt to evict the
  6568. least accessed files from the cache first. rclone will start with files
  6569. that haven't been accessed for the longest. This cache flushing strategy
  6570. is efficient and more relevant files are likely to remain cached.
  6571. The --vfs-cache-max-age will evict files from the cache after the set
  6572. time since last access has passed. The default value of 1 hour will
  6573. start evicting files from cache that haven't been accessed for 1 hour.
  6574. When a cached file is accessed the 1 hour timer is reset to 0 and will
  6575. wait for 1 more hour before evicting. Specify the time with standard
  6576. notation, s, m, h, d, w .
  6577. You should not run two copies of rclone using the same VFS cache with
  6578. the same or overlapping remotes if using --vfs-cache-mode > off. This
  6579. can potentially cause data corruption if you do. You can work around
  6580. this by giving each rclone its own cache hierarchy with --cache-dir. You
  6581. don't need to worry about this if the remotes in use don't overlap.
  6582. --vfs-cache-mode off
  6583. In this mode (the default) the cache will read directly from the remote
  6584. and write directly to the remote without caching anything on disk.
  6585. This will mean some operations are not possible
  6586. - Files can't be opened for both read AND write
  6587. - Files opened for write can't be seeked
  6588. - Existing files opened for write must have O_TRUNC set
  6589. - Files open for read with O_TRUNC will be opened write only
  6590. - Files open for write only will behave as if O_TRUNC was supplied
  6591. - Open modes O_APPEND, O_TRUNC are ignored
  6592. - If an upload fails it can't be retried
  6593. --vfs-cache-mode minimal
  6594. This is very similar to "off" except that files opened for read AND
  6595. write will be buffered to disk. This means that files opened for write
  6596. will be a lot more compatible, but uses the minimal disk space.
  6597. These operations are not possible
  6598. - Files opened for write only can't be seeked
  6599. - Existing files opened for write must have O_TRUNC set
  6600. - Files opened for write only will ignore O_APPEND, O_TRUNC
  6601. - If an upload fails it can't be retried
  6602. --vfs-cache-mode writes
  6603. In this mode files opened for read only are still read directly from the
  6604. remote, write only and read/write files are buffered to disk first.
  6605. This mode should support all normal file system operations.
  6606. If an upload fails it will be retried at exponentially increasing
  6607. intervals up to 1 minute.
  6608. --vfs-cache-mode full
  6609. In this mode all reads and writes are buffered to and from disk. When
  6610. data is read from the remote this is buffered to disk as well.
  6611. In this mode the files in the cache will be sparse files and rclone will
  6612. keep track of which bits of the files it has downloaded.
  6613. So if an application only reads the starts of each file, then rclone
  6614. will only buffer the start of the file. These files will appear to be
  6615. their full size in the cache, but they will be sparse files with only
  6616. the data that has been downloaded present in them.
  6617. This mode should support all normal file system operations and is
  6618. otherwise identical to --vfs-cache-mode writes.
  6619. When reading a file rclone will read --buffer-size plus --vfs-read-ahead
  6620. bytes ahead. The --buffer-size is buffered in memory whereas the
  6621. --vfs-read-ahead is buffered on disk.
  6622. When using this mode it is recommended that --buffer-size is not set too
  6623. large and --vfs-read-ahead is set large if required.
  6624. IMPORTANT not all file systems support sparse files. In particular
  6625. FAT/exFAT do not. Rclone will perform very badly if the cache directory
  6626. is on a filesystem which doesn't support sparse files and it will log an
  6627. ERROR message if one is detected.
  6628. Fingerprinting
  6629. Various parts of the VFS use fingerprinting to see if a local file copy
  6630. has changed relative to a remote file. Fingerprints are made from:
  6631. - size
  6632. - modification time
  6633. - hash
  6634. where available on an object.
  6635. On some backends some of these attributes are slow to read (they take an
  6636. extra API call per object, or extra work per object).
  6637. For example hash is slow with the local and sftp backends as they have
  6638. to read the entire file and hash it, and modtime is slow with the s3,
  6639. swift, ftp and qinqstor backends because they need to do an extra API
  6640. call to fetch it.
  6641. If you use the --vfs-fast-fingerprint flag then rclone will not include
  6642. the slow operations in the fingerprint. This makes the fingerprinting
  6643. less accurate but much faster and will improve the opening time of
  6644. cached files.
  6645. If you are running a vfs cache over local, s3 or swift backends then
  6646. using this flag is recommended.
  6647. Note that if you change the value of this flag, the fingerprints of the
  6648. files in the cache may be invalidated and the files will need to be
  6649. downloaded again.
  6650. VFS Chunked Reading
  6651. When rclone reads files from a remote it reads them in chunks. This
  6652. means that rather than requesting the whole file rclone reads the chunk
  6653. specified. This can reduce the used download quota for some remotes by
  6654. requesting only chunks from the remote that are actually read, at the
  6655. cost of an increased number of requests.
  6656. These flags control the chunking:
  6657. --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128M)
  6658. --vfs-read-chunk-size-limit SizeSuffix Max chunk doubling size (default off)
  6659. Rclone will start reading a chunk of size --vfs-read-chunk-size, and
  6660. then double the size for each read. When --vfs-read-chunk-size-limit is
  6661. specified, and greater than --vfs-read-chunk-size, the chunk size for
  6662. each open file will get doubled only until the specified value is
  6663. reached. If the value is "off", which is the default, the limit is
  6664. disabled and the chunk size will grow indefinitely.
  6665. With --vfs-read-chunk-size 100M and --vfs-read-chunk-size-limit 0 the
  6666. following parts will be downloaded: 0-100M, 100M-200M, 200M-300M,
  6667. 300M-400M and so on. When --vfs-read-chunk-size-limit 500M is specified,
  6668. the result would be 0-100M, 100M-300M, 300M-700M, 700M-1200M,
  6669. 1200M-1700M and so on.
  6670. Setting --vfs-read-chunk-size to 0 or "off" disables chunked reading.
  6671. VFS Performance
  6672. These flags may be used to enable/disable features of the VFS for
  6673. performance or other reasons. See also the chunked reading feature.
  6674. In particular S3 and Swift benefit hugely from the --no-modtime flag (or
  6675. use --use-server-modtime for a slightly different effect) as each read
  6676. of the modification time takes a transaction.
  6677. --no-checksum Don't compare checksums on up/download.
  6678. --no-modtime Don't read/write the modification time (can speed things up).
  6679. --no-seek Don't allow seeking in files.
  6680. --read-only Only allow read-only access.
  6681. Sometimes rclone is delivered reads or writes out of order. Rather than
  6682. seeking rclone will wait a short time for the in sequence read or write
  6683. to come in. These flags only come into effect when not using an on disk
  6684. cache file.
  6685. --vfs-read-wait duration Time to wait for in-sequence read before seeking (default 20ms)
  6686. --vfs-write-wait duration Time to wait for in-sequence write before giving error (default 1s)
  6687. When using VFS write caching (--vfs-cache-mode with value writes or
  6688. full), the global flag --transfers can be set to adjust the number of
  6689. parallel uploads of modified files from the cache (the related global
  6690. flag --checkers has no effect on the VFS).
  6691. --transfers int Number of file transfers to run in parallel (default 4)
  6692. VFS Case Sensitivity
  6693. Linux file systems are case-sensitive: two files can differ only by
  6694. case, and the exact case must be used when opening a file.
  6695. File systems in modern Windows are case-insensitive but case-preserving:
  6696. although existing files can be opened using any case, the exact case
  6697. used to create the file is preserved and available for programs to
  6698. query. It is not allowed for two files in the same directory to differ
  6699. only by case.
  6700. Usually file systems on macOS are case-insensitive. It is possible to
  6701. make macOS file systems case-sensitive but that is not the default.
  6702. The --vfs-case-insensitive VFS flag controls how rclone handles these
  6703. two cases. If its value is "false", rclone passes file names to the
  6704. remote as-is. If the flag is "true" (or appears without a value on the
  6705. command line), rclone may perform a "fixup" as explained below.
  6706. The user may specify a file name to open/delete/rename/etc with a case
  6707. different than what is stored on the remote. If an argument refers to an
  6708. existing file with exactly the same name, then the case of the existing
  6709. file on the disk will be used. However, if a file name with exactly the
  6710. same name is not found but a name differing only by case exists, rclone
  6711. will transparently fixup the name. This fixup happens only when an
  6712. existing file is requested. Case sensitivity of file names created anew
  6713. by rclone is controlled by the underlying remote.
  6714. Note that case sensitivity of the operating system running rclone (the
  6715. target) may differ from case sensitivity of a file system presented by
  6716. rclone (the source). The flag controls whether "fixup" is performed to
  6717. satisfy the target.
  6718. If the flag is not provided on the command line, then its default value
  6719. depends on the operating system where rclone runs: "true" on Windows and
  6720. macOS, "false" otherwise. If the flag is provided without a value, then
  6721. it is "true".
  6722. The --no-unicode-normalization flag controls whether a similar "fixup"
  6723. is performed for filenames that differ but are canonically equivalent
  6724. with respect to unicode. Unicode normalization can be particularly
  6725. helpful for users of macOS, which prefers form NFD instead of the NFC
  6726. used by most other platforms. It is therefore highly recommended to keep
  6727. the default of false on macOS, to avoid encoding compatibility issues.
  6728. In the (probably unlikely) event that a directory has multiple duplicate
  6729. filenames after applying case and unicode normalization, the
  6730. --vfs-block-norm-dupes flag allows hiding these duplicates. This comes
  6731. with a performance tradeoff, as rclone will have to scan the entire
  6732. directory for duplicates when listing a directory. For this reason, it
  6733. is recommended to leave this disabled if not needed. However, macOS
  6734. users may wish to consider using it, as otherwise, if a remote directory
  6735. contains both NFC and NFD versions of the same filename, an odd
  6736. situation will occur: both versions of the file will be visible in the
  6737. mount, and both will appear to be editable, however, editing either
  6738. version will actually result in only the NFD version getting edited
  6739. under the hood. --vfs-block- norm-dupes prevents this confusion by
  6740. detecting this scenario, hiding the duplicates, and logging an error,
  6741. similar to how this is handled in rclone sync.
  6742. VFS Disk Options
  6743. This flag allows you to manually set the statistics about the filing
  6744. system. It can be useful when those statistics cannot be read correctly
  6745. automatically.
  6746. --vfs-disk-space-total-size Manually set the total disk space size (example: 256G, default: -1)
  6747. Alternate report of used bytes
  6748. Some backends, most notably S3, do not report the amount of bytes used.
  6749. If you need this information to be available when running df on the
  6750. filesystem, then pass the flag --vfs-used-is-size to rclone. With this
  6751. flag set, instead of relying on the backend to report this information,
  6752. rclone will scan the whole remote similar to rclone size and compute the
  6753. total used space itself.
  6754. WARNING. Contrary to rclone size, this flag ignores filters so that the
  6755. result is accurate. However, this is very inefficient and may cost lots
  6756. of API calls resulting in extra charges. Use it as a last resort and
  6757. only with caching.
  6758. Auth Proxy
  6759. If you supply the parameter --auth-proxy /path/to/program then rclone
  6760. will use that program to generate backends on the fly which then are
  6761. used to authenticate incoming requests. This uses a simple JSON based
  6762. protocol with input on STDIN and output on STDOUT.
  6763. PLEASE NOTE: --auth-proxy and --authorized-keys cannot be used together,
  6764. if --auth-proxy is set the authorized keys option will be ignored.
  6765. There is an example program bin/test_proxy.py in the rclone source code.
  6766. The program's job is to take a user and pass on the input and turn those
  6767. into the config for a backend on STDOUT in JSON format. This config will
  6768. have any default parameters for the backend added, but it won't use
  6769. configuration from environment variables or command line options - it is
  6770. the job of the proxy program to make a complete config.
  6771. This config generated must have this extra parameter - _root - root to
  6772. use for the backend
  6773. And it may have this parameter - _obscure - comma separated strings for
  6774. parameters to obscure
  6775. If password authentication was used by the client, input to the proxy
  6776. process (on STDIN) would look similar to this:
  6777. {
  6778. "user": "me",
  6779. "pass": "mypassword"
  6780. }
  6781. If public-key authentication was used by the client, input to the proxy
  6782. process (on STDIN) would look similar to this:
  6783. {
  6784. "user": "me",
  6785. "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf"
  6786. }
  6787. And as an example return this on STDOUT
  6788. {
  6789. "type": "sftp",
  6790. "_root": "",
  6791. "_obscure": "pass",
  6792. "user": "me",
  6793. "pass": "mypassword",
  6794. "host": "sftp.example.com"
  6795. }
  6796. This would mean that an SFTP backend would be created on the fly for the
  6797. user and pass/public_key returned in the output to the host given. Note
  6798. that since _obscure is set to pass, rclone will obscure the pass
  6799. parameter before creating the backend (which is required for sftp
  6800. backends).
  6801. The program can manipulate the supplied user in any way, for example to
  6802. make proxy to many different sftp backends, you could make the user be
  6803. user@example.com and then set the host to example.com in the output and
  6804. the user to user. For security you'd probably want to restrict the host
  6805. to a limited list.
  6806. Note that an internal cache is keyed on user so only use that for
  6807. configuration, don't use pass or public_key. This also means that if a
  6808. user's password or public-key is changed the cache will need to expire
  6809. (which takes 5 mins) before it takes effect.
  6810. This can be used to build general purpose proxies to any kind of backend
  6811. that rclone supports.
  6812. rclone serve http remote:path [flags]
  6813. Options
  6814. --addr stringArray IPaddress:Port or :Port to bind server to (default [127.0.0.1:8080])
  6815. --allow-origin string Origin which cross-domain request (CORS) can be executed from
  6816. --auth-proxy string A program to use to create the backend from the auth
  6817. --baseurl string Prefix for URLs - leave blank for root
  6818. --cert string TLS PEM key (concatenation of certificate and CA certificate)
  6819. --client-ca string Client certificate authority to verify clients with
  6820. --dir-cache-time Duration Time to cache directory entries for (default 5m0s)
  6821. --dir-perms FileMode Directory permissions (default 0777)
  6822. --file-perms FileMode File permissions (default 0666)
  6823. --gid uint32 Override the gid field set by the filesystem (not supported on Windows) (default 1000)
  6824. -h, --help help for http
  6825. --htpasswd string A htpasswd file - if not provided no authentication is done
  6826. --key string TLS PEM Private key
  6827. --max-header-bytes int Maximum size of request header (default 4096)
  6828. --min-tls-version string Minimum TLS version that is acceptable (default "tls1.0")
  6829. --no-checksum Don't compare checksums on up/download
  6830. --no-modtime Don't read/write the modification time (can speed things up)
  6831. --no-seek Don't allow seeking in files
  6832. --pass string Password for authentication
  6833. --poll-interval Duration Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s)
  6834. --read-only Only allow read-only access
  6835. --realm string Realm for authentication
  6836. --salt string Password hashing salt (default "dlPL2MqE")
  6837. --server-read-timeout Duration Timeout for server reading data (default 1h0m0s)
  6838. --server-write-timeout Duration Timeout for server writing data (default 1h0m0s)
  6839. --template string User-specified template
  6840. --uid uint32 Override the uid field set by the filesystem (not supported on Windows) (default 1000)
  6841. --umask int Override the permission bits set by the filesystem (not supported on Windows) (default 2)
  6842. --user string User name for authentication
  6843. --vfs-block-norm-dupes If duplicate filenames exist in the same directory (after normalization), log an error and hide the duplicates (may have a performance cost)
  6844. --vfs-cache-max-age Duration Max time since last access of objects in the cache (default 1h0m0s)
  6845. --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
  6846. --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
  6847. --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
  6848. --vfs-cache-poll-interval Duration Interval to poll the cache for stale objects (default 1m0s)
  6849. --vfs-case-insensitive If a file name not found, find a case insensitive match
  6850. --vfs-disk-space-total-size SizeSuffix Specify the total space of disk (default off)
  6851. --vfs-fast-fingerprint Use fast (less accurate) fingerprints for change detection
  6852. --vfs-read-ahead SizeSuffix Extra read ahead over --buffer-size when using cache-mode full
  6853. --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128Mi)
  6854. --vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached ('off' is unlimited) (default off)
  6855. --vfs-read-wait Duration Time to wait for in-sequence read before seeking (default 20ms)
  6856. --vfs-refresh Refreshes the directory cache recursively in the background on start
  6857. --vfs-used-is-size rclone size Use the rclone size algorithm for Used size
  6858. --vfs-write-back Duration Time to writeback files after last use when using cache (default 5s)
  6859. --vfs-write-wait Duration Time to wait for in-sequence write before giving error (default 1s)
  6860. Filter Options
  6861. Flags for filtering directory listings.
  6862. --delete-excluded Delete files on dest excluded from sync
  6863. --exclude stringArray Exclude files matching pattern
  6864. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  6865. --exclude-if-present stringArray Exclude directories if filename is present
  6866. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  6867. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  6868. -f, --filter stringArray Add a file filtering rule
  6869. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  6870. --ignore-case Ignore case in filters (case insensitive)
  6871. --include stringArray Include files matching pattern
  6872. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  6873. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  6874. --max-depth int If set limits the recursion depth to this (default -1)
  6875. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  6876. --metadata-exclude stringArray Exclude metadatas matching pattern
  6877. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  6878. --metadata-filter stringArray Add a metadata filtering rule
  6879. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  6880. --metadata-include stringArray Include metadatas matching pattern
  6881. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  6882. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  6883. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  6884. See the global flags page for global options not listed here.
  6885. SEE ALSO
  6886. - rclone serve - Serve a remote over a protocol.
  6887. rclone serve nfs
  6888. Serve the remote as an NFS mount
  6889. Synopsis
  6890. Create an NFS server that serves the given remote over the network.
  6891. The primary purpose for this command is to enable mount command on
  6892. recent macOS versions where installing FUSE is very cumbersome.
  6893. Since this is running on NFSv3, no authentication method is available.
  6894. Any client will be able to access the data. To limit access, you can use
  6895. serve NFS on loopback address and rely on secure tunnels (such as SSH).
  6896. For this reason, by default, a random TCP port is chosen and loopback
  6897. interface is used for the listening address; meaning that it is only
  6898. available to the local machine. If you want other machines to access the
  6899. NFS mount over local network, you need to specify the listening address
  6900. and port using --addr flag.
  6901. Modifying files through NFS protocol requires VFS caching. Usually you
  6902. will need to specify --vfs-cache-mode in order to be able to write to
  6903. the mountpoint (full is recommended). If you don't specify VFS cache
  6904. mode, the mount will be read-only. Note also that
  6905. --nfs-cache-handle-limit controls the maximum number of cached file
  6906. handles stored by the caching handler. This should not be set too low or
  6907. you may experience errors when trying to access files. The default is
  6908. 1000000, but consider lowering this limit if the server's system
  6909. resource usage causes problems.
  6910. To serve NFS over the network use following command:
  6911. rclone serve nfs remote: --addr 0.0.0.0:$PORT --vfs-cache-mode=full
  6912. We specify a specific port that we can use in the mount command:
  6913. To mount the server under Linux/macOS, use the following command:
  6914. mount -oport=$PORT,mountport=$PORT $HOSTNAME: path/to/mountpoint
  6915. Where $PORT is the same port number we used in the serve nfs command.
  6916. This feature is only available on Unix platforms.
  6917. VFS - Virtual File System
  6918. This command uses the VFS layer. This adapts the cloud storage objects
  6919. that rclone uses into something which looks much more like a disk filing
  6920. system.
  6921. Cloud storage objects have lots of properties which aren't like disk
  6922. files - you can't extend them or write to the middle of them, so the VFS
  6923. layer has to deal with that. Because there is no one right way of doing
  6924. this there are various options explained below.
  6925. The VFS layer also implements a directory cache - this caches info about
  6926. files and directories (but not the data) in memory.
  6927. VFS Directory Cache
  6928. Using the --dir-cache-time flag, you can control how long a directory
  6929. should be considered up to date and not refreshed from the backend.
  6930. Changes made through the VFS will appear immediately or invalidate the
  6931. cache.
  6932. --dir-cache-time duration Time to cache directory entries for (default 5m0s)
  6933. --poll-interval duration Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable (default 1m0s)
  6934. However, changes made directly on the cloud storage by the web interface
  6935. or a different copy of rclone will only be picked up once the directory
  6936. cache expires if the backend configured does not support polling for
  6937. changes. If the backend supports polling, changes will be picked up
  6938. within the polling interval.
  6939. You can send a SIGHUP signal to rclone for it to flush all directory
  6940. caches, regardless of how old they are. Assuming only one rclone
  6941. instance is running, you can reset the cache like this:
  6942. kill -SIGHUP $(pidof rclone)
  6943. If you configure rclone with a remote control then you can use rclone rc
  6944. to flush the whole directory cache:
  6945. rclone rc vfs/forget
  6946. Or individual files or directories:
  6947. rclone rc vfs/forget file=path/to/file dir=path/to/dir
  6948. VFS File Buffering
  6949. The --buffer-size flag determines the amount of memory, that will be
  6950. used to buffer data in advance.
  6951. Each open file will try to keep the specified amount of data in memory
  6952. at all times. The buffered data is bound to one open file and won't be
  6953. shared.
  6954. This flag is a upper limit for the used memory per open file. The buffer
  6955. will only use memory for data that is downloaded but not not yet read.
  6956. If the buffer is empty, only a small amount of memory will be used.
  6957. The maximum memory used by rclone for buffering can be up to
  6958. --buffer-size * open files.
  6959. VFS File Caching
  6960. These flags control the VFS file caching options. File caching is
  6961. necessary to make the VFS layer appear compatible with a normal file
  6962. system. It can be disabled at the cost of some compatibility.
  6963. For example you'll need to enable VFS caching if you want to read and
  6964. write simultaneously to a file. See below for more details.
  6965. Note that the VFS cache is separate from the cache backend and you may
  6966. find that you need one or the other or both.
  6967. --cache-dir string Directory rclone will use for caching.
  6968. --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
  6969. --vfs-cache-max-age duration Max time since last access of objects in the cache (default 1h0m0s)
  6970. --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
  6971. --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
  6972. --vfs-cache-poll-interval duration Interval to poll the cache for stale objects (default 1m0s)
  6973. --vfs-write-back duration Time to writeback files after last use when using cache (default 5s)
  6974. If run with -vv rclone will print the location of the file cache. The
  6975. files are stored in the user cache file area which is OS dependent but
  6976. can be controlled with --cache-dir or setting the appropriate
  6977. environment variable.
  6978. The cache has 4 different modes selected by --vfs-cache-mode. The higher
  6979. the cache mode the more compatible rclone becomes at the cost of using
  6980. disk space.
  6981. Note that files are written back to the remote only when they are closed
  6982. and if they haven't been accessed for --vfs-write-back seconds. If
  6983. rclone is quit or dies with files that haven't been uploaded, these will
  6984. be uploaded next time rclone is run with the same flags.
  6985. If using --vfs-cache-max-size or --vfs-cache-min-free-size note that the
  6986. cache may exceed these quotas for two reasons. Firstly because it is
  6987. only checked every --vfs-cache-poll-interval. Secondly because open
  6988. files cannot be evicted from the cache. When --vfs-cache-max-size or
  6989. --vfs-cache-min-free-size is exceeded, rclone will attempt to evict the
  6990. least accessed files from the cache first. rclone will start with files
  6991. that haven't been accessed for the longest. This cache flushing strategy
  6992. is efficient and more relevant files are likely to remain cached.
  6993. The --vfs-cache-max-age will evict files from the cache after the set
  6994. time since last access has passed. The default value of 1 hour will
  6995. start evicting files from cache that haven't been accessed for 1 hour.
  6996. When a cached file is accessed the 1 hour timer is reset to 0 and will
  6997. wait for 1 more hour before evicting. Specify the time with standard
  6998. notation, s, m, h, d, w .
  6999. You should not run two copies of rclone using the same VFS cache with
  7000. the same or overlapping remotes if using --vfs-cache-mode > off. This
  7001. can potentially cause data corruption if you do. You can work around
  7002. this by giving each rclone its own cache hierarchy with --cache-dir. You
  7003. don't need to worry about this if the remotes in use don't overlap.
  7004. --vfs-cache-mode off
  7005. In this mode (the default) the cache will read directly from the remote
  7006. and write directly to the remote without caching anything on disk.
  7007. This will mean some operations are not possible
  7008. - Files can't be opened for both read AND write
  7009. - Files opened for write can't be seeked
  7010. - Existing files opened for write must have O_TRUNC set
  7011. - Files open for read with O_TRUNC will be opened write only
  7012. - Files open for write only will behave as if O_TRUNC was supplied
  7013. - Open modes O_APPEND, O_TRUNC are ignored
  7014. - If an upload fails it can't be retried
  7015. --vfs-cache-mode minimal
  7016. This is very similar to "off" except that files opened for read AND
  7017. write will be buffered to disk. This means that files opened for write
  7018. will be a lot more compatible, but uses the minimal disk space.
  7019. These operations are not possible
  7020. - Files opened for write only can't be seeked
  7021. - Existing files opened for write must have O_TRUNC set
  7022. - Files opened for write only will ignore O_APPEND, O_TRUNC
  7023. - If an upload fails it can't be retried
  7024. --vfs-cache-mode writes
  7025. In this mode files opened for read only are still read directly from the
  7026. remote, write only and read/write files are buffered to disk first.
  7027. This mode should support all normal file system operations.
  7028. If an upload fails it will be retried at exponentially increasing
  7029. intervals up to 1 minute.
  7030. --vfs-cache-mode full
  7031. In this mode all reads and writes are buffered to and from disk. When
  7032. data is read from the remote this is buffered to disk as well.
  7033. In this mode the files in the cache will be sparse files and rclone will
  7034. keep track of which bits of the files it has downloaded.
  7035. So if an application only reads the starts of each file, then rclone
  7036. will only buffer the start of the file. These files will appear to be
  7037. their full size in the cache, but they will be sparse files with only
  7038. the data that has been downloaded present in them.
  7039. This mode should support all normal file system operations and is
  7040. otherwise identical to --vfs-cache-mode writes.
  7041. When reading a file rclone will read --buffer-size plus --vfs-read-ahead
  7042. bytes ahead. The --buffer-size is buffered in memory whereas the
  7043. --vfs-read-ahead is buffered on disk.
  7044. When using this mode it is recommended that --buffer-size is not set too
  7045. large and --vfs-read-ahead is set large if required.
  7046. IMPORTANT not all file systems support sparse files. In particular
  7047. FAT/exFAT do not. Rclone will perform very badly if the cache directory
  7048. is on a filesystem which doesn't support sparse files and it will log an
  7049. ERROR message if one is detected.
  7050. Fingerprinting
  7051. Various parts of the VFS use fingerprinting to see if a local file copy
  7052. has changed relative to a remote file. Fingerprints are made from:
  7053. - size
  7054. - modification time
  7055. - hash
  7056. where available on an object.
  7057. On some backends some of these attributes are slow to read (they take an
  7058. extra API call per object, or extra work per object).
  7059. For example hash is slow with the local and sftp backends as they have
  7060. to read the entire file and hash it, and modtime is slow with the s3,
  7061. swift, ftp and qinqstor backends because they need to do an extra API
  7062. call to fetch it.
  7063. If you use the --vfs-fast-fingerprint flag then rclone will not include
  7064. the slow operations in the fingerprint. This makes the fingerprinting
  7065. less accurate but much faster and will improve the opening time of
  7066. cached files.
  7067. If you are running a vfs cache over local, s3 or swift backends then
  7068. using this flag is recommended.
  7069. Note that if you change the value of this flag, the fingerprints of the
  7070. files in the cache may be invalidated and the files will need to be
  7071. downloaded again.
  7072. VFS Chunked Reading
  7073. When rclone reads files from a remote it reads them in chunks. This
  7074. means that rather than requesting the whole file rclone reads the chunk
  7075. specified. This can reduce the used download quota for some remotes by
  7076. requesting only chunks from the remote that are actually read, at the
  7077. cost of an increased number of requests.
  7078. These flags control the chunking:
  7079. --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128M)
  7080. --vfs-read-chunk-size-limit SizeSuffix Max chunk doubling size (default off)
  7081. Rclone will start reading a chunk of size --vfs-read-chunk-size, and
  7082. then double the size for each read. When --vfs-read-chunk-size-limit is
  7083. specified, and greater than --vfs-read-chunk-size, the chunk size for
  7084. each open file will get doubled only until the specified value is
  7085. reached. If the value is "off", which is the default, the limit is
  7086. disabled and the chunk size will grow indefinitely.
  7087. With --vfs-read-chunk-size 100M and --vfs-read-chunk-size-limit 0 the
  7088. following parts will be downloaded: 0-100M, 100M-200M, 200M-300M,
  7089. 300M-400M and so on. When --vfs-read-chunk-size-limit 500M is specified,
  7090. the result would be 0-100M, 100M-300M, 300M-700M, 700M-1200M,
  7091. 1200M-1700M and so on.
  7092. Setting --vfs-read-chunk-size to 0 or "off" disables chunked reading.
  7093. VFS Performance
  7094. These flags may be used to enable/disable features of the VFS for
  7095. performance or other reasons. See also the chunked reading feature.
  7096. In particular S3 and Swift benefit hugely from the --no-modtime flag (or
  7097. use --use-server-modtime for a slightly different effect) as each read
  7098. of the modification time takes a transaction.
  7099. --no-checksum Don't compare checksums on up/download.
  7100. --no-modtime Don't read/write the modification time (can speed things up).
  7101. --no-seek Don't allow seeking in files.
  7102. --read-only Only allow read-only access.
  7103. Sometimes rclone is delivered reads or writes out of order. Rather than
  7104. seeking rclone will wait a short time for the in sequence read or write
  7105. to come in. These flags only come into effect when not using an on disk
  7106. cache file.
  7107. --vfs-read-wait duration Time to wait for in-sequence read before seeking (default 20ms)
  7108. --vfs-write-wait duration Time to wait for in-sequence write before giving error (default 1s)
  7109. When using VFS write caching (--vfs-cache-mode with value writes or
  7110. full), the global flag --transfers can be set to adjust the number of
  7111. parallel uploads of modified files from the cache (the related global
  7112. flag --checkers has no effect on the VFS).
  7113. --transfers int Number of file transfers to run in parallel (default 4)
  7114. VFS Case Sensitivity
  7115. Linux file systems are case-sensitive: two files can differ only by
  7116. case, and the exact case must be used when opening a file.
  7117. File systems in modern Windows are case-insensitive but case-preserving:
  7118. although existing files can be opened using any case, the exact case
  7119. used to create the file is preserved and available for programs to
  7120. query. It is not allowed for two files in the same directory to differ
  7121. only by case.
  7122. Usually file systems on macOS are case-insensitive. It is possible to
  7123. make macOS file systems case-sensitive but that is not the default.
  7124. The --vfs-case-insensitive VFS flag controls how rclone handles these
  7125. two cases. If its value is "false", rclone passes file names to the
  7126. remote as-is. If the flag is "true" (or appears without a value on the
  7127. command line), rclone may perform a "fixup" as explained below.
  7128. The user may specify a file name to open/delete/rename/etc with a case
  7129. different than what is stored on the remote. If an argument refers to an
  7130. existing file with exactly the same name, then the case of the existing
  7131. file on the disk will be used. However, if a file name with exactly the
  7132. same name is not found but a name differing only by case exists, rclone
  7133. will transparently fixup the name. This fixup happens only when an
  7134. existing file is requested. Case sensitivity of file names created anew
  7135. by rclone is controlled by the underlying remote.
  7136. Note that case sensitivity of the operating system running rclone (the
  7137. target) may differ from case sensitivity of a file system presented by
  7138. rclone (the source). The flag controls whether "fixup" is performed to
  7139. satisfy the target.
  7140. If the flag is not provided on the command line, then its default value
  7141. depends on the operating system where rclone runs: "true" on Windows and
  7142. macOS, "false" otherwise. If the flag is provided without a value, then
  7143. it is "true".
  7144. The --no-unicode-normalization flag controls whether a similar "fixup"
  7145. is performed for filenames that differ but are canonically equivalent
  7146. with respect to unicode. Unicode normalization can be particularly
  7147. helpful for users of macOS, which prefers form NFD instead of the NFC
  7148. used by most other platforms. It is therefore highly recommended to keep
  7149. the default of false on macOS, to avoid encoding compatibility issues.
  7150. In the (probably unlikely) event that a directory has multiple duplicate
  7151. filenames after applying case and unicode normalization, the
  7152. --vfs-block-norm-dupes flag allows hiding these duplicates. This comes
  7153. with a performance tradeoff, as rclone will have to scan the entire
  7154. directory for duplicates when listing a directory. For this reason, it
  7155. is recommended to leave this disabled if not needed. However, macOS
  7156. users may wish to consider using it, as otherwise, if a remote directory
  7157. contains both NFC and NFD versions of the same filename, an odd
  7158. situation will occur: both versions of the file will be visible in the
  7159. mount, and both will appear to be editable, however, editing either
  7160. version will actually result in only the NFD version getting edited
  7161. under the hood. --vfs-block- norm-dupes prevents this confusion by
  7162. detecting this scenario, hiding the duplicates, and logging an error,
  7163. similar to how this is handled in rclone sync.
  7164. VFS Disk Options
  7165. This flag allows you to manually set the statistics about the filing
  7166. system. It can be useful when those statistics cannot be read correctly
  7167. automatically.
  7168. --vfs-disk-space-total-size Manually set the total disk space size (example: 256G, default: -1)
  7169. Alternate report of used bytes
  7170. Some backends, most notably S3, do not report the amount of bytes used.
  7171. If you need this information to be available when running df on the
  7172. filesystem, then pass the flag --vfs-used-is-size to rclone. With this
  7173. flag set, instead of relying on the backend to report this information,
  7174. rclone will scan the whole remote similar to rclone size and compute the
  7175. total used space itself.
  7176. WARNING. Contrary to rclone size, this flag ignores filters so that the
  7177. result is accurate. However, this is very inefficient and may cost lots
  7178. of API calls resulting in extra charges. Use it as a last resort and
  7179. only with caching.
  7180. rclone serve nfs remote:path [flags]
  7181. Options
  7182. --addr string IPaddress:Port or :Port to bind server to
  7183. --dir-cache-time Duration Time to cache directory entries for (default 5m0s)
  7184. --dir-perms FileMode Directory permissions (default 0777)
  7185. --file-perms FileMode File permissions (default 0666)
  7186. --gid uint32 Override the gid field set by the filesystem (not supported on Windows) (default 1000)
  7187. -h, --help help for nfs
  7188. --nfs-cache-handle-limit int max file handles cached simultaneously (min 5) (default 1000000)
  7189. --no-checksum Don't compare checksums on up/download
  7190. --no-modtime Don't read/write the modification time (can speed things up)
  7191. --no-seek Don't allow seeking in files
  7192. --poll-interval Duration Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s)
  7193. --read-only Only allow read-only access
  7194. --uid uint32 Override the uid field set by the filesystem (not supported on Windows) (default 1000)
  7195. --umask int Override the permission bits set by the filesystem (not supported on Windows) (default 2)
  7196. --vfs-block-norm-dupes If duplicate filenames exist in the same directory (after normalization), log an error and hide the duplicates (may have a performance cost)
  7197. --vfs-cache-max-age Duration Max time since last access of objects in the cache (default 1h0m0s)
  7198. --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
  7199. --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
  7200. --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
  7201. --vfs-cache-poll-interval Duration Interval to poll the cache for stale objects (default 1m0s)
  7202. --vfs-case-insensitive If a file name not found, find a case insensitive match
  7203. --vfs-disk-space-total-size SizeSuffix Specify the total space of disk (default off)
  7204. --vfs-fast-fingerprint Use fast (less accurate) fingerprints for change detection
  7205. --vfs-read-ahead SizeSuffix Extra read ahead over --buffer-size when using cache-mode full
  7206. --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128Mi)
  7207. --vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached ('off' is unlimited) (default off)
  7208. --vfs-read-wait Duration Time to wait for in-sequence read before seeking (default 20ms)
  7209. --vfs-refresh Refreshes the directory cache recursively in the background on start
  7210. --vfs-used-is-size rclone size Use the rclone size algorithm for Used size
  7211. --vfs-write-back Duration Time to writeback files after last use when using cache (default 5s)
  7212. --vfs-write-wait Duration Time to wait for in-sequence write before giving error (default 1s)
  7213. Filter Options
  7214. Flags for filtering directory listings.
  7215. --delete-excluded Delete files on dest excluded from sync
  7216. --exclude stringArray Exclude files matching pattern
  7217. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  7218. --exclude-if-present stringArray Exclude directories if filename is present
  7219. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  7220. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  7221. -f, --filter stringArray Add a file filtering rule
  7222. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  7223. --ignore-case Ignore case in filters (case insensitive)
  7224. --include stringArray Include files matching pattern
  7225. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  7226. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  7227. --max-depth int If set limits the recursion depth to this (default -1)
  7228. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  7229. --metadata-exclude stringArray Exclude metadatas matching pattern
  7230. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  7231. --metadata-filter stringArray Add a metadata filtering rule
  7232. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  7233. --metadata-include stringArray Include metadatas matching pattern
  7234. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  7235. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  7236. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  7237. See the global flags page for global options not listed here.
  7238. SEE ALSO
  7239. - rclone serve - Serve a remote over a protocol.
  7240. rclone serve restic
  7241. Serve the remote for restic's REST API.
  7242. Synopsis
  7243. Run a basic web server to serve a remote over restic's REST backend API
  7244. over HTTP. This allows restic to use rclone as a data storage mechanism
  7245. for cloud providers that restic does not support directly.
  7246. Restic is a command-line program for doing backups.
  7247. The server will log errors. Use -v to see access logs.
  7248. --bwlimit will be respected for file transfers. Use --stats to control
  7249. the stats printing.
  7250. Setting up rclone for use by restic
  7251. First set up a remote for your chosen cloud provider.
  7252. Once you have set up the remote, check it is working with, for example
  7253. "rclone lsd remote:". You may have called the remote something other
  7254. than "remote:" - just substitute whatever you called it in the following
  7255. instructions.
  7256. Now start the rclone restic server
  7257. rclone serve restic -v remote:backup
  7258. Where you can replace "backup" in the above by whatever path in the
  7259. remote you wish to use.
  7260. By default this will serve on "localhost:8080" you can change this with
  7261. use of the --addr flag.
  7262. You might wish to start this server on boot.
  7263. Adding --cache-objects=false will cause rclone to stop caching objects
  7264. returned from the List call. Caching is normally desirable as it speeds
  7265. up downloading objects, saves transactions and uses very little memory.
  7266. Setting up restic to use rclone
  7267. Now you can follow the restic instructions on setting up restic.
  7268. Note that you will need restic 0.8.2 or later to interoperate with
  7269. rclone.
  7270. For the example above you will want to use "http://localhost:8080/" as
  7271. the URL for the REST server.
  7272. For example:
  7273. $ export RESTIC_REPOSITORY=rest:http://localhost:8080/
  7274. $ export RESTIC_PASSWORD=yourpassword
  7275. $ restic init
  7276. created restic backend 8b1a4b56ae at rest:http://localhost:8080/
  7277. Please note that knowledge of your password is required to access
  7278. the repository. Losing your password means that your data is
  7279. irrecoverably lost.
  7280. $ restic backup /path/to/files/to/backup
  7281. scan [/path/to/files/to/backup]
  7282. scanned 189 directories, 312 files in 0:00
  7283. [0:00] 100.00% 38.128 MiB / 38.128 MiB 501 / 501 items 0 errors ETA 0:00
  7284. duration: 0:00
  7285. snapshot 45c8fdd8 saved
  7286. Multiple repositories
  7287. Note that you can use the endpoint to host multiple repositories. Do
  7288. this by adding a directory name or path after the URL. Note that these
  7289. must end with /. Eg
  7290. $ export RESTIC_REPOSITORY=rest:http://localhost:8080/user1repo/
  7291. # backup user1 stuff
  7292. $ export RESTIC_REPOSITORY=rest:http://localhost:8080/user2repo/
  7293. # backup user2 stuff
  7294. Private repositories
  7295. The--private-repos flag can be used to limit users to repositories
  7296. starting with a path of /<username>/.
  7297. Server options
  7298. Use --addr to specify which IP address and port the server should listen
  7299. on, eg --addr 1.2.3.4:8000 or --addr :8080 to listen to all IPs. By
  7300. default it only listens on localhost. You can use port :0 to let the OS
  7301. choose an available port.
  7302. If you set --addr to listen on a public or LAN accessible IP address
  7303. then using Authentication is advised - see the next section for info.
  7304. You can use a unix socket by setting the url to unix:///path/to/socket
  7305. or just by using an absolute path name. Note that unix sockets bypass
  7306. the authentication - this is expected to be done with file system
  7307. permissions.
  7308. --addr may be repeated to listen on multiple IPs/ports/sockets.
  7309. --server-read-timeout and --server-write-timeout can be used to control
  7310. the timeouts on the server. Note that this is the total time for a
  7311. transfer.
  7312. --max-header-bytes controls the maximum number of bytes the server will
  7313. accept in the HTTP header.
  7314. --baseurl controls the URL prefix that rclone serves from. By default
  7315. rclone will serve from the root. If you used --baseurl "/rclone" then
  7316. rclone would serve from a URL starting with "/rclone/". This is useful
  7317. if you wish to proxy rclone serve. Rclone automatically inserts leading
  7318. and trailing "/" on --baseurl, so --baseurl "rclone",
  7319. --baseurl "/rclone" and --baseurl "/rclone/" are all treated
  7320. identically.
  7321. TLS (SSL)
  7322. By default this will serve over http. If you want you can serve over
  7323. https. You will need to supply the --cert and --key flags. If you wish
  7324. to do client side certificate validation then you will need to supply
  7325. --client-ca also.
  7326. --cert should be a either a PEM encoded certificate or a concatenation
  7327. of that with the CA certificate. --key should be the PEM encoded private
  7328. key and --client-ca should be the PEM encoded client certificate
  7329. authority certificate.
  7330. --min-tls-version is minimum TLS version that is acceptable. Valid
  7331. values are "tls1.0", "tls1.1", "tls1.2" and "tls1.3" (default "tls1.0").
  7332. Authentication
  7333. By default this will serve files without needing a login.
  7334. You can either use an htpasswd file which can take lots of users, or set
  7335. a single username and password with the --user and --pass flags.
  7336. If no static users are configured by either of the above methods, and
  7337. client certificates are required by the --client-ca flag passed to the
  7338. server, the client certificate common name will be considered as the
  7339. username.
  7340. Use --htpasswd /path/to/htpasswd to provide an htpasswd file. This is in
  7341. standard apache format and supports MD5, SHA1 and BCrypt for basic
  7342. authentication. Bcrypt is recommended.
  7343. To create an htpasswd file:
  7344. touch htpasswd
  7345. htpasswd -B htpasswd user
  7346. htpasswd -B htpasswd anotherUser
  7347. The password file can be updated while rclone is running.
  7348. Use --realm to set the authentication realm.
  7349. Use --salt to change the password hashing salt from the default.
  7350. rclone serve restic remote:path [flags]
  7351. Options
  7352. --addr stringArray IPaddress:Port or :Port to bind server to (default [127.0.0.1:8080])
  7353. --allow-origin string Origin which cross-domain request (CORS) can be executed from
  7354. --append-only Disallow deletion of repository data
  7355. --baseurl string Prefix for URLs - leave blank for root
  7356. --cache-objects Cache listed objects (default true)
  7357. --cert string TLS PEM key (concatenation of certificate and CA certificate)
  7358. --client-ca string Client certificate authority to verify clients with
  7359. -h, --help help for restic
  7360. --htpasswd string A htpasswd file - if not provided no authentication is done
  7361. --key string TLS PEM Private key
  7362. --max-header-bytes int Maximum size of request header (default 4096)
  7363. --min-tls-version string Minimum TLS version that is acceptable (default "tls1.0")
  7364. --pass string Password for authentication
  7365. --private-repos Users can only access their private repo
  7366. --realm string Realm for authentication
  7367. --salt string Password hashing salt (default "dlPL2MqE")
  7368. --server-read-timeout Duration Timeout for server reading data (default 1h0m0s)
  7369. --server-write-timeout Duration Timeout for server writing data (default 1h0m0s)
  7370. --stdio Run an HTTP2 server on stdin/stdout
  7371. --user string User name for authentication
  7372. See the global flags page for global options not listed here.
  7373. SEE ALSO
  7374. - rclone serve - Serve a remote over a protocol.
  7375. rclone serve s3
  7376. Serve remote:path over s3.
  7377. Synopsis
  7378. serve s3 implements a basic s3 server that serves a remote via s3. This
  7379. can be viewed with an s3 client, or you can make an s3 type remote to
  7380. read and write to it with rclone.
  7381. serve s3 is considered Experimental so use with care.
  7382. S3 server supports Signature Version 4 authentication. Just use
  7383. --auth-key accessKey,secretKey and set the Authorization header
  7384. correctly in the request. (See the AWS docs).
  7385. --auth-key can be repeated for multiple auth pairs. If --auth-key is not
  7386. provided then serve s3 will allow anonymous access.
  7387. Please note that some clients may require HTTPS endpoints. See the SSL
  7388. docs for more information.
  7389. This command uses the VFS directory cache. All the functionality will
  7390. work with --vfs-cache-mode off. Using --vfs-cache-mode full (or writes)
  7391. can be used to cache objects locally to improve performance.
  7392. Use --force-path-style=false if you want to use the bucket name as a
  7393. part of the hostname (such as mybucket.local)
  7394. Use --etag-hash if you want to change the hash uses for the ETag. Note
  7395. that using anything other than MD5 (the default) is likely to cause
  7396. problems for S3 clients which rely on the Etag being the MD5.
  7397. Quickstart
  7398. For a simple set up, to serve remote:path over s3, run the server like
  7399. this:
  7400. rclone serve s3 --auth-key ACCESS_KEY_ID,SECRET_ACCESS_KEY remote:path
  7401. This will be compatible with an rclone remote which is defined like
  7402. this:
  7403. [serves3]
  7404. type = s3
  7405. provider = Rclone
  7406. endpoint = http://127.0.0.1:8080/
  7407. access_key_id = ACCESS_KEY_ID
  7408. secret_access_key = SECRET_ACCESS_KEY
  7409. use_multipart_uploads = false
  7410. Note that setting disable_multipart_uploads = true is to work around a
  7411. bug which will be fixed in due course.
  7412. Bugs
  7413. When uploading multipart files serve s3 holds all the parts in memory
  7414. (see #7453). This is a limitaton of the library rclone uses for serving
  7415. S3 and will hopefully be fixed at some point.
  7416. Multipart server side copies do not work (see #7454). These take a very
  7417. long time and eventually fail. The default threshold for multipart
  7418. server side copies is 5G which is the maximum it can be, so files above
  7419. this side will fail to be server side copied.
  7420. For a current list of serve s3 bugs see the serve s3 bug category on
  7421. GitHub.
  7422. Limitations
  7423. serve s3 will treat all directories in the root as buckets and ignore
  7424. all files in the root. You can use CreateBucket to create folders under
  7425. the root, but you can't create empty folders under other folders not in
  7426. the root.
  7427. When using PutObject or DeleteObject, rclone will automatically create
  7428. or clean up empty folders. If you don't want to clean up empty folders
  7429. automatically, use --no-cleanup.
  7430. When using ListObjects, rclone will use / when the delimiter is empty.
  7431. This reduces backend requests with no effect on most operations, but if
  7432. the delimiter is something other than / and empty, rclone will do a full
  7433. recursive search of the backend, which can take some time.
  7434. Versioning is not currently supported.
  7435. Metadata will only be saved in memory other than the rclone mtime
  7436. metadata which will be set as the modification time of the file.
  7437. Supported operations
  7438. serve s3 currently supports the following operations.
  7439. - Bucket
  7440. - ListBuckets
  7441. - CreateBucket
  7442. - DeleteBucket
  7443. - Object
  7444. - HeadObject
  7445. - ListObjects
  7446. - GetObject
  7447. - PutObject
  7448. - DeleteObject
  7449. - DeleteObjects
  7450. - CreateMultipartUpload
  7451. - CompleteMultipartUpload
  7452. - AbortMultipartUpload
  7453. - CopyObject
  7454. - UploadPart
  7455. Other operations will return error Unimplemented.
  7456. Server options
  7457. Use --addr to specify which IP address and port the server should listen
  7458. on, eg --addr 1.2.3.4:8000 or --addr :8080 to listen to all IPs. By
  7459. default it only listens on localhost. You can use port :0 to let the OS
  7460. choose an available port.
  7461. If you set --addr to listen on a public or LAN accessible IP address
  7462. then using Authentication is advised - see the next section for info.
  7463. You can use a unix socket by setting the url to unix:///path/to/socket
  7464. or just by using an absolute path name. Note that unix sockets bypass
  7465. the authentication - this is expected to be done with file system
  7466. permissions.
  7467. --addr may be repeated to listen on multiple IPs/ports/sockets.
  7468. --server-read-timeout and --server-write-timeout can be used to control
  7469. the timeouts on the server. Note that this is the total time for a
  7470. transfer.
  7471. --max-header-bytes controls the maximum number of bytes the server will
  7472. accept in the HTTP header.
  7473. --baseurl controls the URL prefix that rclone serves from. By default
  7474. rclone will serve from the root. If you used --baseurl "/rclone" then
  7475. rclone would serve from a URL starting with "/rclone/". This is useful
  7476. if you wish to proxy rclone serve. Rclone automatically inserts leading
  7477. and trailing "/" on --baseurl, so --baseurl "rclone",
  7478. --baseurl "/rclone" and --baseurl "/rclone/" are all treated
  7479. identically.
  7480. TLS (SSL)
  7481. By default this will serve over http. If you want you can serve over
  7482. https. You will need to supply the --cert and --key flags. If you wish
  7483. to do client side certificate validation then you will need to supply
  7484. --client-ca also.
  7485. --cert should be a either a PEM encoded certificate or a concatenation
  7486. of that with the CA certificate. --key should be the PEM encoded private
  7487. key and --client-ca should be the PEM encoded client certificate
  7488. authority certificate.
  7489. --min-tls-version is minimum TLS version that is acceptable. Valid
  7490. values are "tls1.0", "tls1.1", "tls1.2" and "tls1.3" (default "tls1.0").
  7491. ## VFS - Virtual File System
  7492. This command uses the VFS layer. This adapts the cloud storage objects
  7493. that rclone uses into something which looks much more like a disk filing
  7494. system.
  7495. Cloud storage objects have lots of properties which aren't like disk
  7496. files - you can't extend them or write to the middle of them, so the VFS
  7497. layer has to deal with that. Because there is no one right way of doing
  7498. this there are various options explained below.
  7499. The VFS layer also implements a directory cache - this caches info about
  7500. files and directories (but not the data) in memory.
  7501. VFS Directory Cache
  7502. Using the --dir-cache-time flag, you can control how long a directory
  7503. should be considered up to date and not refreshed from the backend.
  7504. Changes made through the VFS will appear immediately or invalidate the
  7505. cache.
  7506. --dir-cache-time duration Time to cache directory entries for (default 5m0s)
  7507. --poll-interval duration Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable (default 1m0s)
  7508. However, changes made directly on the cloud storage by the web interface
  7509. or a different copy of rclone will only be picked up once the directory
  7510. cache expires if the backend configured does not support polling for
  7511. changes. If the backend supports polling, changes will be picked up
  7512. within the polling interval.
  7513. You can send a SIGHUP signal to rclone for it to flush all directory
  7514. caches, regardless of how old they are. Assuming only one rclone
  7515. instance is running, you can reset the cache like this:
  7516. kill -SIGHUP $(pidof rclone)
  7517. If you configure rclone with a remote control then you can use rclone rc
  7518. to flush the whole directory cache:
  7519. rclone rc vfs/forget
  7520. Or individual files or directories:
  7521. rclone rc vfs/forget file=path/to/file dir=path/to/dir
  7522. VFS File Buffering
  7523. The --buffer-size flag determines the amount of memory, that will be
  7524. used to buffer data in advance.
  7525. Each open file will try to keep the specified amount of data in memory
  7526. at all times. The buffered data is bound to one open file and won't be
  7527. shared.
  7528. This flag is a upper limit for the used memory per open file. The buffer
  7529. will only use memory for data that is downloaded but not not yet read.
  7530. If the buffer is empty, only a small amount of memory will be used.
  7531. The maximum memory used by rclone for buffering can be up to
  7532. --buffer-size * open files.
  7533. VFS File Caching
  7534. These flags control the VFS file caching options. File caching is
  7535. necessary to make the VFS layer appear compatible with a normal file
  7536. system. It can be disabled at the cost of some compatibility.
  7537. For example you'll need to enable VFS caching if you want to read and
  7538. write simultaneously to a file. See below for more details.
  7539. Note that the VFS cache is separate from the cache backend and you may
  7540. find that you need one or the other or both.
  7541. --cache-dir string Directory rclone will use for caching.
  7542. --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
  7543. --vfs-cache-max-age duration Max time since last access of objects in the cache (default 1h0m0s)
  7544. --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
  7545. --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
  7546. --vfs-cache-poll-interval duration Interval to poll the cache for stale objects (default 1m0s)
  7547. --vfs-write-back duration Time to writeback files after last use when using cache (default 5s)
  7548. If run with -vv rclone will print the location of the file cache. The
  7549. files are stored in the user cache file area which is OS dependent but
  7550. can be controlled with --cache-dir or setting the appropriate
  7551. environment variable.
  7552. The cache has 4 different modes selected by --vfs-cache-mode. The higher
  7553. the cache mode the more compatible rclone becomes at the cost of using
  7554. disk space.
  7555. Note that files are written back to the remote only when they are closed
  7556. and if they haven't been accessed for --vfs-write-back seconds. If
  7557. rclone is quit or dies with files that haven't been uploaded, these will
  7558. be uploaded next time rclone is run with the same flags.
  7559. If using --vfs-cache-max-size or --vfs-cache-min-free-size note that the
  7560. cache may exceed these quotas for two reasons. Firstly because it is
  7561. only checked every --vfs-cache-poll-interval. Secondly because open
  7562. files cannot be evicted from the cache. When --vfs-cache-max-size or
  7563. --vfs-cache-min-free-size is exceeded, rclone will attempt to evict the
  7564. least accessed files from the cache first. rclone will start with files
  7565. that haven't been accessed for the longest. This cache flushing strategy
  7566. is efficient and more relevant files are likely to remain cached.
  7567. The --vfs-cache-max-age will evict files from the cache after the set
  7568. time since last access has passed. The default value of 1 hour will
  7569. start evicting files from cache that haven't been accessed for 1 hour.
  7570. When a cached file is accessed the 1 hour timer is reset to 0 and will
  7571. wait for 1 more hour before evicting. Specify the time with standard
  7572. notation, s, m, h, d, w .
  7573. You should not run two copies of rclone using the same VFS cache with
  7574. the same or overlapping remotes if using --vfs-cache-mode > off. This
  7575. can potentially cause data corruption if you do. You can work around
  7576. this by giving each rclone its own cache hierarchy with --cache-dir. You
  7577. don't need to worry about this if the remotes in use don't overlap.
  7578. --vfs-cache-mode off
  7579. In this mode (the default) the cache will read directly from the remote
  7580. and write directly to the remote without caching anything on disk.
  7581. This will mean some operations are not possible
  7582. - Files can't be opened for both read AND write
  7583. - Files opened for write can't be seeked
  7584. - Existing files opened for write must have O_TRUNC set
  7585. - Files open for read with O_TRUNC will be opened write only
  7586. - Files open for write only will behave as if O_TRUNC was supplied
  7587. - Open modes O_APPEND, O_TRUNC are ignored
  7588. - If an upload fails it can't be retried
  7589. --vfs-cache-mode minimal
  7590. This is very similar to "off" except that files opened for read AND
  7591. write will be buffered to disk. This means that files opened for write
  7592. will be a lot more compatible, but uses the minimal disk space.
  7593. These operations are not possible
  7594. - Files opened for write only can't be seeked
  7595. - Existing files opened for write must have O_TRUNC set
  7596. - Files opened for write only will ignore O_APPEND, O_TRUNC
  7597. - If an upload fails it can't be retried
  7598. --vfs-cache-mode writes
  7599. In this mode files opened for read only are still read directly from the
  7600. remote, write only and read/write files are buffered to disk first.
  7601. This mode should support all normal file system operations.
  7602. If an upload fails it will be retried at exponentially increasing
  7603. intervals up to 1 minute.
  7604. --vfs-cache-mode full
  7605. In this mode all reads and writes are buffered to and from disk. When
  7606. data is read from the remote this is buffered to disk as well.
  7607. In this mode the files in the cache will be sparse files and rclone will
  7608. keep track of which bits of the files it has downloaded.
  7609. So if an application only reads the starts of each file, then rclone
  7610. will only buffer the start of the file. These files will appear to be
  7611. their full size in the cache, but they will be sparse files with only
  7612. the data that has been downloaded present in them.
  7613. This mode should support all normal file system operations and is
  7614. otherwise identical to --vfs-cache-mode writes.
  7615. When reading a file rclone will read --buffer-size plus --vfs-read-ahead
  7616. bytes ahead. The --buffer-size is buffered in memory whereas the
  7617. --vfs-read-ahead is buffered on disk.
  7618. When using this mode it is recommended that --buffer-size is not set too
  7619. large and --vfs-read-ahead is set large if required.
  7620. IMPORTANT not all file systems support sparse files. In particular
  7621. FAT/exFAT do not. Rclone will perform very badly if the cache directory
  7622. is on a filesystem which doesn't support sparse files and it will log an
  7623. ERROR message if one is detected.
  7624. Fingerprinting
  7625. Various parts of the VFS use fingerprinting to see if a local file copy
  7626. has changed relative to a remote file. Fingerprints are made from:
  7627. - size
  7628. - modification time
  7629. - hash
  7630. where available on an object.
  7631. On some backends some of these attributes are slow to read (they take an
  7632. extra API call per object, or extra work per object).
  7633. For example hash is slow with the local and sftp backends as they have
  7634. to read the entire file and hash it, and modtime is slow with the s3,
  7635. swift, ftp and qinqstor backends because they need to do an extra API
  7636. call to fetch it.
  7637. If you use the --vfs-fast-fingerprint flag then rclone will not include
  7638. the slow operations in the fingerprint. This makes the fingerprinting
  7639. less accurate but much faster and will improve the opening time of
  7640. cached files.
  7641. If you are running a vfs cache over local, s3 or swift backends then
  7642. using this flag is recommended.
  7643. Note that if you change the value of this flag, the fingerprints of the
  7644. files in the cache may be invalidated and the files will need to be
  7645. downloaded again.
  7646. VFS Chunked Reading
  7647. When rclone reads files from a remote it reads them in chunks. This
  7648. means that rather than requesting the whole file rclone reads the chunk
  7649. specified. This can reduce the used download quota for some remotes by
  7650. requesting only chunks from the remote that are actually read, at the
  7651. cost of an increased number of requests.
  7652. These flags control the chunking:
  7653. --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128M)
  7654. --vfs-read-chunk-size-limit SizeSuffix Max chunk doubling size (default off)
  7655. Rclone will start reading a chunk of size --vfs-read-chunk-size, and
  7656. then double the size for each read. When --vfs-read-chunk-size-limit is
  7657. specified, and greater than --vfs-read-chunk-size, the chunk size for
  7658. each open file will get doubled only until the specified value is
  7659. reached. If the value is "off", which is the default, the limit is
  7660. disabled and the chunk size will grow indefinitely.
  7661. With --vfs-read-chunk-size 100M and --vfs-read-chunk-size-limit 0 the
  7662. following parts will be downloaded: 0-100M, 100M-200M, 200M-300M,
  7663. 300M-400M and so on. When --vfs-read-chunk-size-limit 500M is specified,
  7664. the result would be 0-100M, 100M-300M, 300M-700M, 700M-1200M,
  7665. 1200M-1700M and so on.
  7666. Setting --vfs-read-chunk-size to 0 or "off" disables chunked reading.
  7667. VFS Performance
  7668. These flags may be used to enable/disable features of the VFS for
  7669. performance or other reasons. See also the chunked reading feature.
  7670. In particular S3 and Swift benefit hugely from the --no-modtime flag (or
  7671. use --use-server-modtime for a slightly different effect) as each read
  7672. of the modification time takes a transaction.
  7673. --no-checksum Don't compare checksums on up/download.
  7674. --no-modtime Don't read/write the modification time (can speed things up).
  7675. --no-seek Don't allow seeking in files.
  7676. --read-only Only allow read-only access.
  7677. Sometimes rclone is delivered reads or writes out of order. Rather than
  7678. seeking rclone will wait a short time for the in sequence read or write
  7679. to come in. These flags only come into effect when not using an on disk
  7680. cache file.
  7681. --vfs-read-wait duration Time to wait for in-sequence read before seeking (default 20ms)
  7682. --vfs-write-wait duration Time to wait for in-sequence write before giving error (default 1s)
  7683. When using VFS write caching (--vfs-cache-mode with value writes or
  7684. full), the global flag --transfers can be set to adjust the number of
  7685. parallel uploads of modified files from the cache (the related global
  7686. flag --checkers has no effect on the VFS).
  7687. --transfers int Number of file transfers to run in parallel (default 4)
  7688. VFS Case Sensitivity
  7689. Linux file systems are case-sensitive: two files can differ only by
  7690. case, and the exact case must be used when opening a file.
  7691. File systems in modern Windows are case-insensitive but case-preserving:
  7692. although existing files can be opened using any case, the exact case
  7693. used to create the file is preserved and available for programs to
  7694. query. It is not allowed for two files in the same directory to differ
  7695. only by case.
  7696. Usually file systems on macOS are case-insensitive. It is possible to
  7697. make macOS file systems case-sensitive but that is not the default.
  7698. The --vfs-case-insensitive VFS flag controls how rclone handles these
  7699. two cases. If its value is "false", rclone passes file names to the
  7700. remote as-is. If the flag is "true" (or appears without a value on the
  7701. command line), rclone may perform a "fixup" as explained below.
  7702. The user may specify a file name to open/delete/rename/etc with a case
  7703. different than what is stored on the remote. If an argument refers to an
  7704. existing file with exactly the same name, then the case of the existing
  7705. file on the disk will be used. However, if a file name with exactly the
  7706. same name is not found but a name differing only by case exists, rclone
  7707. will transparently fixup the name. This fixup happens only when an
  7708. existing file is requested. Case sensitivity of file names created anew
  7709. by rclone is controlled by the underlying remote.
  7710. Note that case sensitivity of the operating system running rclone (the
  7711. target) may differ from case sensitivity of a file system presented by
  7712. rclone (the source). The flag controls whether "fixup" is performed to
  7713. satisfy the target.
  7714. If the flag is not provided on the command line, then its default value
  7715. depends on the operating system where rclone runs: "true" on Windows and
  7716. macOS, "false" otherwise. If the flag is provided without a value, then
  7717. it is "true".
  7718. The --no-unicode-normalization flag controls whether a similar "fixup"
  7719. is performed for filenames that differ but are canonically equivalent
  7720. with respect to unicode. Unicode normalization can be particularly
  7721. helpful for users of macOS, which prefers form NFD instead of the NFC
  7722. used by most other platforms. It is therefore highly recommended to keep
  7723. the default of false on macOS, to avoid encoding compatibility issues.
  7724. In the (probably unlikely) event that a directory has multiple duplicate
  7725. filenames after applying case and unicode normalization, the
  7726. --vfs-block-norm-dupes flag allows hiding these duplicates. This comes
  7727. with a performance tradeoff, as rclone will have to scan the entire
  7728. directory for duplicates when listing a directory. For this reason, it
  7729. is recommended to leave this disabled if not needed. However, macOS
  7730. users may wish to consider using it, as otherwise, if a remote directory
  7731. contains both NFC and NFD versions of the same filename, an odd
  7732. situation will occur: both versions of the file will be visible in the
  7733. mount, and both will appear to be editable, however, editing either
  7734. version will actually result in only the NFD version getting edited
  7735. under the hood. --vfs-block- norm-dupes prevents this confusion by
  7736. detecting this scenario, hiding the duplicates, and logging an error,
  7737. similar to how this is handled in rclone sync.
  7738. VFS Disk Options
  7739. This flag allows you to manually set the statistics about the filing
  7740. system. It can be useful when those statistics cannot be read correctly
  7741. automatically.
  7742. --vfs-disk-space-total-size Manually set the total disk space size (example: 256G, default: -1)
  7743. Alternate report of used bytes
  7744. Some backends, most notably S3, do not report the amount of bytes used.
  7745. If you need this information to be available when running df on the
  7746. filesystem, then pass the flag --vfs-used-is-size to rclone. With this
  7747. flag set, instead of relying on the backend to report this information,
  7748. rclone will scan the whole remote similar to rclone size and compute the
  7749. total used space itself.
  7750. WARNING. Contrary to rclone size, this flag ignores filters so that the
  7751. result is accurate. However, this is very inefficient and may cost lots
  7752. of API calls resulting in extra charges. Use it as a last resort and
  7753. only with caching.
  7754. rclone serve s3 remote:path [flags]
  7755. Options
  7756. --addr stringArray IPaddress:Port or :Port to bind server to (default [127.0.0.1:8080])
  7757. --allow-origin string Origin which cross-domain request (CORS) can be executed from
  7758. --auth-key stringArray Set key pair for v4 authorization: access_key_id,secret_access_key
  7759. --baseurl string Prefix for URLs - leave blank for root
  7760. --cert string TLS PEM key (concatenation of certificate and CA certificate)
  7761. --client-ca string Client certificate authority to verify clients with
  7762. --dir-cache-time Duration Time to cache directory entries for (default 5m0s)
  7763. --dir-perms FileMode Directory permissions (default 0777)
  7764. --etag-hash string Which hash to use for the ETag, or auto or blank for off (default "MD5")
  7765. --file-perms FileMode File permissions (default 0666)
  7766. --force-path-style If true use path style access if false use virtual hosted style (default true) (default true)
  7767. --gid uint32 Override the gid field set by the filesystem (not supported on Windows) (default 1000)
  7768. -h, --help help for s3
  7769. --key string TLS PEM Private key
  7770. --max-header-bytes int Maximum size of request header (default 4096)
  7771. --min-tls-version string Minimum TLS version that is acceptable (default "tls1.0")
  7772. --no-checksum Don't compare checksums on up/download
  7773. --no-cleanup Not to cleanup empty folder after object is deleted
  7774. --no-modtime Don't read/write the modification time (can speed things up)
  7775. --no-seek Don't allow seeking in files
  7776. --poll-interval Duration Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s)
  7777. --read-only Only allow read-only access
  7778. --server-read-timeout Duration Timeout for server reading data (default 1h0m0s)
  7779. --server-write-timeout Duration Timeout for server writing data (default 1h0m0s)
  7780. --uid uint32 Override the uid field set by the filesystem (not supported on Windows) (default 1000)
  7781. --umask int Override the permission bits set by the filesystem (not supported on Windows) (default 2)
  7782. --vfs-block-norm-dupes If duplicate filenames exist in the same directory (after normalization), log an error and hide the duplicates (may have a performance cost)
  7783. --vfs-cache-max-age Duration Max time since last access of objects in the cache (default 1h0m0s)
  7784. --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
  7785. --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
  7786. --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
  7787. --vfs-cache-poll-interval Duration Interval to poll the cache for stale objects (default 1m0s)
  7788. --vfs-case-insensitive If a file name not found, find a case insensitive match
  7789. --vfs-disk-space-total-size SizeSuffix Specify the total space of disk (default off)
  7790. --vfs-fast-fingerprint Use fast (less accurate) fingerprints for change detection
  7791. --vfs-read-ahead SizeSuffix Extra read ahead over --buffer-size when using cache-mode full
  7792. --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128Mi)
  7793. --vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached ('off' is unlimited) (default off)
  7794. --vfs-read-wait Duration Time to wait for in-sequence read before seeking (default 20ms)
  7795. --vfs-refresh Refreshes the directory cache recursively in the background on start
  7796. --vfs-used-is-size rclone size Use the rclone size algorithm for Used size
  7797. --vfs-write-back Duration Time to writeback files after last use when using cache (default 5s)
  7798. --vfs-write-wait Duration Time to wait for in-sequence write before giving error (default 1s)
  7799. Filter Options
  7800. Flags for filtering directory listings.
  7801. --delete-excluded Delete files on dest excluded from sync
  7802. --exclude stringArray Exclude files matching pattern
  7803. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  7804. --exclude-if-present stringArray Exclude directories if filename is present
  7805. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  7806. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  7807. -f, --filter stringArray Add a file filtering rule
  7808. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  7809. --ignore-case Ignore case in filters (case insensitive)
  7810. --include stringArray Include files matching pattern
  7811. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  7812. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  7813. --max-depth int If set limits the recursion depth to this (default -1)
  7814. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  7815. --metadata-exclude stringArray Exclude metadatas matching pattern
  7816. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  7817. --metadata-filter stringArray Add a metadata filtering rule
  7818. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  7819. --metadata-include stringArray Include metadatas matching pattern
  7820. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  7821. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  7822. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  7823. See the global flags page for global options not listed here.
  7824. SEE ALSO
  7825. - rclone serve - Serve a remote over a protocol.
  7826. rclone serve sftp
  7827. Serve the remote over SFTP.
  7828. Synopsis
  7829. Run an SFTP server to serve a remote over SFTP. This can be used with an
  7830. SFTP client or you can make a remote of type sftp to use with it.
  7831. You can use the filter flags (e.g. --include, --exclude) to control what
  7832. is served.
  7833. The server will respond to a small number of shell commands, mainly
  7834. md5sum, sha1sum and df, which enable it to provide support for checksums
  7835. and the about feature when accessed from an sftp remote.
  7836. Note that this server uses standard 32 KiB packet payload size, which
  7837. means you must not configure the client to expect anything else, e.g.
  7838. with the chunk_size option on an sftp remote.
  7839. The server will log errors. Use -v to see access logs.
  7840. --bwlimit will be respected for file transfers. Use --stats to control
  7841. the stats printing.
  7842. You must provide some means of authentication, either with
  7843. --user/--pass, an authorized keys file (specify location with
  7844. --authorized-keys - the default is the same as ssh), an --auth-proxy, or
  7845. set the --no-auth flag for no authentication when logging in.
  7846. If you don't supply a host --key then rclone will generate rsa, ecdsa
  7847. and ed25519 variants, and cache them for later use in rclone's cache
  7848. directory (see rclone help flags cache-dir) in the "serve-sftp"
  7849. directory.
  7850. By default the server binds to localhost:2022 - if you want it to be
  7851. reachable externally then supply --addr :2022 for example.
  7852. Note that the default of --vfs-cache-mode off is fine for the rclone
  7853. sftp backend, but it may not be with other SFTP clients.
  7854. If --stdio is specified, rclone will serve SFTP over stdio, which can be
  7855. used with sshd via ~/.ssh/authorized_keys, for example:
  7856. restrict,command="rclone serve sftp --stdio ./photos" ssh-rsa ...
  7857. On the client you need to set --transfers 1 when using --stdio.
  7858. Otherwise multiple instances of the rclone server are started by OpenSSH
  7859. which can lead to "corrupted on transfer" errors. This is the case
  7860. because the client chooses indiscriminately which server to send
  7861. commands to while the servers all have different views of the state of
  7862. the filing system.
  7863. The "restrict" in authorized_keys prevents SHA1SUMs and MD5SUMs from
  7864. being used. Omitting "restrict" and using --sftp-path-override to enable
  7865. checksumming is possible but less secure and you could use the SFTP
  7866. server provided by OpenSSH in this case.
  7867. VFS - Virtual File System
  7868. This command uses the VFS layer. This adapts the cloud storage objects
  7869. that rclone uses into something which looks much more like a disk filing
  7870. system.
  7871. Cloud storage objects have lots of properties which aren't like disk
  7872. files - you can't extend them or write to the middle of them, so the VFS
  7873. layer has to deal with that. Because there is no one right way of doing
  7874. this there are various options explained below.
  7875. The VFS layer also implements a directory cache - this caches info about
  7876. files and directories (but not the data) in memory.
  7877. VFS Directory Cache
  7878. Using the --dir-cache-time flag, you can control how long a directory
  7879. should be considered up to date and not refreshed from the backend.
  7880. Changes made through the VFS will appear immediately or invalidate the
  7881. cache.
  7882. --dir-cache-time duration Time to cache directory entries for (default 5m0s)
  7883. --poll-interval duration Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable (default 1m0s)
  7884. However, changes made directly on the cloud storage by the web interface
  7885. or a different copy of rclone will only be picked up once the directory
  7886. cache expires if the backend configured does not support polling for
  7887. changes. If the backend supports polling, changes will be picked up
  7888. within the polling interval.
  7889. You can send a SIGHUP signal to rclone for it to flush all directory
  7890. caches, regardless of how old they are. Assuming only one rclone
  7891. instance is running, you can reset the cache like this:
  7892. kill -SIGHUP $(pidof rclone)
  7893. If you configure rclone with a remote control then you can use rclone rc
  7894. to flush the whole directory cache:
  7895. rclone rc vfs/forget
  7896. Or individual files or directories:
  7897. rclone rc vfs/forget file=path/to/file dir=path/to/dir
  7898. VFS File Buffering
  7899. The --buffer-size flag determines the amount of memory, that will be
  7900. used to buffer data in advance.
  7901. Each open file will try to keep the specified amount of data in memory
  7902. at all times. The buffered data is bound to one open file and won't be
  7903. shared.
  7904. This flag is a upper limit for the used memory per open file. The buffer
  7905. will only use memory for data that is downloaded but not not yet read.
  7906. If the buffer is empty, only a small amount of memory will be used.
  7907. The maximum memory used by rclone for buffering can be up to
  7908. --buffer-size * open files.
  7909. VFS File Caching
  7910. These flags control the VFS file caching options. File caching is
  7911. necessary to make the VFS layer appear compatible with a normal file
  7912. system. It can be disabled at the cost of some compatibility.
  7913. For example you'll need to enable VFS caching if you want to read and
  7914. write simultaneously to a file. See below for more details.
  7915. Note that the VFS cache is separate from the cache backend and you may
  7916. find that you need one or the other or both.
  7917. --cache-dir string Directory rclone will use for caching.
  7918. --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
  7919. --vfs-cache-max-age duration Max time since last access of objects in the cache (default 1h0m0s)
  7920. --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
  7921. --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
  7922. --vfs-cache-poll-interval duration Interval to poll the cache for stale objects (default 1m0s)
  7923. --vfs-write-back duration Time to writeback files after last use when using cache (default 5s)
  7924. If run with -vv rclone will print the location of the file cache. The
  7925. files are stored in the user cache file area which is OS dependent but
  7926. can be controlled with --cache-dir or setting the appropriate
  7927. environment variable.
  7928. The cache has 4 different modes selected by --vfs-cache-mode. The higher
  7929. the cache mode the more compatible rclone becomes at the cost of using
  7930. disk space.
  7931. Note that files are written back to the remote only when they are closed
  7932. and if they haven't been accessed for --vfs-write-back seconds. If
  7933. rclone is quit or dies with files that haven't been uploaded, these will
  7934. be uploaded next time rclone is run with the same flags.
  7935. If using --vfs-cache-max-size or --vfs-cache-min-free-size note that the
  7936. cache may exceed these quotas for two reasons. Firstly because it is
  7937. only checked every --vfs-cache-poll-interval. Secondly because open
  7938. files cannot be evicted from the cache. When --vfs-cache-max-size or
  7939. --vfs-cache-min-free-size is exceeded, rclone will attempt to evict the
  7940. least accessed files from the cache first. rclone will start with files
  7941. that haven't been accessed for the longest. This cache flushing strategy
  7942. is efficient and more relevant files are likely to remain cached.
  7943. The --vfs-cache-max-age will evict files from the cache after the set
  7944. time since last access has passed. The default value of 1 hour will
  7945. start evicting files from cache that haven't been accessed for 1 hour.
  7946. When a cached file is accessed the 1 hour timer is reset to 0 and will
  7947. wait for 1 more hour before evicting. Specify the time with standard
  7948. notation, s, m, h, d, w .
  7949. You should not run two copies of rclone using the same VFS cache with
  7950. the same or overlapping remotes if using --vfs-cache-mode > off. This
  7951. can potentially cause data corruption if you do. You can work around
  7952. this by giving each rclone its own cache hierarchy with --cache-dir. You
  7953. don't need to worry about this if the remotes in use don't overlap.
  7954. --vfs-cache-mode off
  7955. In this mode (the default) the cache will read directly from the remote
  7956. and write directly to the remote without caching anything on disk.
  7957. This will mean some operations are not possible
  7958. - Files can't be opened for both read AND write
  7959. - Files opened for write can't be seeked
  7960. - Existing files opened for write must have O_TRUNC set
  7961. - Files open for read with O_TRUNC will be opened write only
  7962. - Files open for write only will behave as if O_TRUNC was supplied
  7963. - Open modes O_APPEND, O_TRUNC are ignored
  7964. - If an upload fails it can't be retried
  7965. --vfs-cache-mode minimal
  7966. This is very similar to "off" except that files opened for read AND
  7967. write will be buffered to disk. This means that files opened for write
  7968. will be a lot more compatible, but uses the minimal disk space.
  7969. These operations are not possible
  7970. - Files opened for write only can't be seeked
  7971. - Existing files opened for write must have O_TRUNC set
  7972. - Files opened for write only will ignore O_APPEND, O_TRUNC
  7973. - If an upload fails it can't be retried
  7974. --vfs-cache-mode writes
  7975. In this mode files opened for read only are still read directly from the
  7976. remote, write only and read/write files are buffered to disk first.
  7977. This mode should support all normal file system operations.
  7978. If an upload fails it will be retried at exponentially increasing
  7979. intervals up to 1 minute.
  7980. --vfs-cache-mode full
  7981. In this mode all reads and writes are buffered to and from disk. When
  7982. data is read from the remote this is buffered to disk as well.
  7983. In this mode the files in the cache will be sparse files and rclone will
  7984. keep track of which bits of the files it has downloaded.
  7985. So if an application only reads the starts of each file, then rclone
  7986. will only buffer the start of the file. These files will appear to be
  7987. their full size in the cache, but they will be sparse files with only
  7988. the data that has been downloaded present in them.
  7989. This mode should support all normal file system operations and is
  7990. otherwise identical to --vfs-cache-mode writes.
  7991. When reading a file rclone will read --buffer-size plus --vfs-read-ahead
  7992. bytes ahead. The --buffer-size is buffered in memory whereas the
  7993. --vfs-read-ahead is buffered on disk.
  7994. When using this mode it is recommended that --buffer-size is not set too
  7995. large and --vfs-read-ahead is set large if required.
  7996. IMPORTANT not all file systems support sparse files. In particular
  7997. FAT/exFAT do not. Rclone will perform very badly if the cache directory
  7998. is on a filesystem which doesn't support sparse files and it will log an
  7999. ERROR message if one is detected.
  8000. Fingerprinting
  8001. Various parts of the VFS use fingerprinting to see if a local file copy
  8002. has changed relative to a remote file. Fingerprints are made from:
  8003. - size
  8004. - modification time
  8005. - hash
  8006. where available on an object.
  8007. On some backends some of these attributes are slow to read (they take an
  8008. extra API call per object, or extra work per object).
  8009. For example hash is slow with the local and sftp backends as they have
  8010. to read the entire file and hash it, and modtime is slow with the s3,
  8011. swift, ftp and qinqstor backends because they need to do an extra API
  8012. call to fetch it.
  8013. If you use the --vfs-fast-fingerprint flag then rclone will not include
  8014. the slow operations in the fingerprint. This makes the fingerprinting
  8015. less accurate but much faster and will improve the opening time of
  8016. cached files.
  8017. If you are running a vfs cache over local, s3 or swift backends then
  8018. using this flag is recommended.
  8019. Note that if you change the value of this flag, the fingerprints of the
  8020. files in the cache may be invalidated and the files will need to be
  8021. downloaded again.
  8022. VFS Chunked Reading
  8023. When rclone reads files from a remote it reads them in chunks. This
  8024. means that rather than requesting the whole file rclone reads the chunk
  8025. specified. This can reduce the used download quota for some remotes by
  8026. requesting only chunks from the remote that are actually read, at the
  8027. cost of an increased number of requests.
  8028. These flags control the chunking:
  8029. --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128M)
  8030. --vfs-read-chunk-size-limit SizeSuffix Max chunk doubling size (default off)
  8031. Rclone will start reading a chunk of size --vfs-read-chunk-size, and
  8032. then double the size for each read. When --vfs-read-chunk-size-limit is
  8033. specified, and greater than --vfs-read-chunk-size, the chunk size for
  8034. each open file will get doubled only until the specified value is
  8035. reached. If the value is "off", which is the default, the limit is
  8036. disabled and the chunk size will grow indefinitely.
  8037. With --vfs-read-chunk-size 100M and --vfs-read-chunk-size-limit 0 the
  8038. following parts will be downloaded: 0-100M, 100M-200M, 200M-300M,
  8039. 300M-400M and so on. When --vfs-read-chunk-size-limit 500M is specified,
  8040. the result would be 0-100M, 100M-300M, 300M-700M, 700M-1200M,
  8041. 1200M-1700M and so on.
  8042. Setting --vfs-read-chunk-size to 0 or "off" disables chunked reading.
  8043. VFS Performance
  8044. These flags may be used to enable/disable features of the VFS for
  8045. performance or other reasons. See also the chunked reading feature.
  8046. In particular S3 and Swift benefit hugely from the --no-modtime flag (or
  8047. use --use-server-modtime for a slightly different effect) as each read
  8048. of the modification time takes a transaction.
  8049. --no-checksum Don't compare checksums on up/download.
  8050. --no-modtime Don't read/write the modification time (can speed things up).
  8051. --no-seek Don't allow seeking in files.
  8052. --read-only Only allow read-only access.
  8053. Sometimes rclone is delivered reads or writes out of order. Rather than
  8054. seeking rclone will wait a short time for the in sequence read or write
  8055. to come in. These flags only come into effect when not using an on disk
  8056. cache file.
  8057. --vfs-read-wait duration Time to wait for in-sequence read before seeking (default 20ms)
  8058. --vfs-write-wait duration Time to wait for in-sequence write before giving error (default 1s)
  8059. When using VFS write caching (--vfs-cache-mode with value writes or
  8060. full), the global flag --transfers can be set to adjust the number of
  8061. parallel uploads of modified files from the cache (the related global
  8062. flag --checkers has no effect on the VFS).
  8063. --transfers int Number of file transfers to run in parallel (default 4)
  8064. VFS Case Sensitivity
  8065. Linux file systems are case-sensitive: two files can differ only by
  8066. case, and the exact case must be used when opening a file.
  8067. File systems in modern Windows are case-insensitive but case-preserving:
  8068. although existing files can be opened using any case, the exact case
  8069. used to create the file is preserved and available for programs to
  8070. query. It is not allowed for two files in the same directory to differ
  8071. only by case.
  8072. Usually file systems on macOS are case-insensitive. It is possible to
  8073. make macOS file systems case-sensitive but that is not the default.
  8074. The --vfs-case-insensitive VFS flag controls how rclone handles these
  8075. two cases. If its value is "false", rclone passes file names to the
  8076. remote as-is. If the flag is "true" (or appears without a value on the
  8077. command line), rclone may perform a "fixup" as explained below.
  8078. The user may specify a file name to open/delete/rename/etc with a case
  8079. different than what is stored on the remote. If an argument refers to an
  8080. existing file with exactly the same name, then the case of the existing
  8081. file on the disk will be used. However, if a file name with exactly the
  8082. same name is not found but a name differing only by case exists, rclone
  8083. will transparently fixup the name. This fixup happens only when an
  8084. existing file is requested. Case sensitivity of file names created anew
  8085. by rclone is controlled by the underlying remote.
  8086. Note that case sensitivity of the operating system running rclone (the
  8087. target) may differ from case sensitivity of a file system presented by
  8088. rclone (the source). The flag controls whether "fixup" is performed to
  8089. satisfy the target.
  8090. If the flag is not provided on the command line, then its default value
  8091. depends on the operating system where rclone runs: "true" on Windows and
  8092. macOS, "false" otherwise. If the flag is provided without a value, then
  8093. it is "true".
  8094. The --no-unicode-normalization flag controls whether a similar "fixup"
  8095. is performed for filenames that differ but are canonically equivalent
  8096. with respect to unicode. Unicode normalization can be particularly
  8097. helpful for users of macOS, which prefers form NFD instead of the NFC
  8098. used by most other platforms. It is therefore highly recommended to keep
  8099. the default of false on macOS, to avoid encoding compatibility issues.
  8100. In the (probably unlikely) event that a directory has multiple duplicate
  8101. filenames after applying case and unicode normalization, the
  8102. --vfs-block-norm-dupes flag allows hiding these duplicates. This comes
  8103. with a performance tradeoff, as rclone will have to scan the entire
  8104. directory for duplicates when listing a directory. For this reason, it
  8105. is recommended to leave this disabled if not needed. However, macOS
  8106. users may wish to consider using it, as otherwise, if a remote directory
  8107. contains both NFC and NFD versions of the same filename, an odd
  8108. situation will occur: both versions of the file will be visible in the
  8109. mount, and both will appear to be editable, however, editing either
  8110. version will actually result in only the NFD version getting edited
  8111. under the hood. --vfs-block- norm-dupes prevents this confusion by
  8112. detecting this scenario, hiding the duplicates, and logging an error,
  8113. similar to how this is handled in rclone sync.
  8114. VFS Disk Options
  8115. This flag allows you to manually set the statistics about the filing
  8116. system. It can be useful when those statistics cannot be read correctly
  8117. automatically.
  8118. --vfs-disk-space-total-size Manually set the total disk space size (example: 256G, default: -1)
  8119. Alternate report of used bytes
  8120. Some backends, most notably S3, do not report the amount of bytes used.
  8121. If you need this information to be available when running df on the
  8122. filesystem, then pass the flag --vfs-used-is-size to rclone. With this
  8123. flag set, instead of relying on the backend to report this information,
  8124. rclone will scan the whole remote similar to rclone size and compute the
  8125. total used space itself.
  8126. WARNING. Contrary to rclone size, this flag ignores filters so that the
  8127. result is accurate. However, this is very inefficient and may cost lots
  8128. of API calls resulting in extra charges. Use it as a last resort and
  8129. only with caching.
  8130. Auth Proxy
  8131. If you supply the parameter --auth-proxy /path/to/program then rclone
  8132. will use that program to generate backends on the fly which then are
  8133. used to authenticate incoming requests. This uses a simple JSON based
  8134. protocol with input on STDIN and output on STDOUT.
  8135. PLEASE NOTE: --auth-proxy and --authorized-keys cannot be used together,
  8136. if --auth-proxy is set the authorized keys option will be ignored.
  8137. There is an example program bin/test_proxy.py in the rclone source code.
  8138. The program's job is to take a user and pass on the input and turn those
  8139. into the config for a backend on STDOUT in JSON format. This config will
  8140. have any default parameters for the backend added, but it won't use
  8141. configuration from environment variables or command line options - it is
  8142. the job of the proxy program to make a complete config.
  8143. This config generated must have this extra parameter - _root - root to
  8144. use for the backend
  8145. And it may have this parameter - _obscure - comma separated strings for
  8146. parameters to obscure
  8147. If password authentication was used by the client, input to the proxy
  8148. process (on STDIN) would look similar to this:
  8149. {
  8150. "user": "me",
  8151. "pass": "mypassword"
  8152. }
  8153. If public-key authentication was used by the client, input to the proxy
  8154. process (on STDIN) would look similar to this:
  8155. {
  8156. "user": "me",
  8157. "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf"
  8158. }
  8159. And as an example return this on STDOUT
  8160. {
  8161. "type": "sftp",
  8162. "_root": "",
  8163. "_obscure": "pass",
  8164. "user": "me",
  8165. "pass": "mypassword",
  8166. "host": "sftp.example.com"
  8167. }
  8168. This would mean that an SFTP backend would be created on the fly for the
  8169. user and pass/public_key returned in the output to the host given. Note
  8170. that since _obscure is set to pass, rclone will obscure the pass
  8171. parameter before creating the backend (which is required for sftp
  8172. backends).
  8173. The program can manipulate the supplied user in any way, for example to
  8174. make proxy to many different sftp backends, you could make the user be
  8175. user@example.com and then set the host to example.com in the output and
  8176. the user to user. For security you'd probably want to restrict the host
  8177. to a limited list.
  8178. Note that an internal cache is keyed on user so only use that for
  8179. configuration, don't use pass or public_key. This also means that if a
  8180. user's password or public-key is changed the cache will need to expire
  8181. (which takes 5 mins) before it takes effect.
  8182. This can be used to build general purpose proxies to any kind of backend
  8183. that rclone supports.
  8184. rclone serve sftp remote:path [flags]
  8185. Options
  8186. --addr string IPaddress:Port or :Port to bind server to (default "localhost:2022")
  8187. --auth-proxy string A program to use to create the backend from the auth
  8188. --authorized-keys string Authorized keys file (default "~/.ssh/authorized_keys")
  8189. --dir-cache-time Duration Time to cache directory entries for (default 5m0s)
  8190. --dir-perms FileMode Directory permissions (default 0777)
  8191. --file-perms FileMode File permissions (default 0666)
  8192. --gid uint32 Override the gid field set by the filesystem (not supported on Windows) (default 1000)
  8193. -h, --help help for sftp
  8194. --key stringArray SSH private host key file (Can be multi-valued, leave blank to auto generate)
  8195. --no-auth Allow connections with no authentication if set
  8196. --no-checksum Don't compare checksums on up/download
  8197. --no-modtime Don't read/write the modification time (can speed things up)
  8198. --no-seek Don't allow seeking in files
  8199. --pass string Password for authentication
  8200. --poll-interval Duration Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s)
  8201. --read-only Only allow read-only access
  8202. --stdio Run an sftp server on stdin/stdout
  8203. --uid uint32 Override the uid field set by the filesystem (not supported on Windows) (default 1000)
  8204. --umask int Override the permission bits set by the filesystem (not supported on Windows) (default 2)
  8205. --user string User name for authentication
  8206. --vfs-block-norm-dupes If duplicate filenames exist in the same directory (after normalization), log an error and hide the duplicates (may have a performance cost)
  8207. --vfs-cache-max-age Duration Max time since last access of objects in the cache (default 1h0m0s)
  8208. --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
  8209. --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
  8210. --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
  8211. --vfs-cache-poll-interval Duration Interval to poll the cache for stale objects (default 1m0s)
  8212. --vfs-case-insensitive If a file name not found, find a case insensitive match
  8213. --vfs-disk-space-total-size SizeSuffix Specify the total space of disk (default off)
  8214. --vfs-fast-fingerprint Use fast (less accurate) fingerprints for change detection
  8215. --vfs-read-ahead SizeSuffix Extra read ahead over --buffer-size when using cache-mode full
  8216. --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128Mi)
  8217. --vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached ('off' is unlimited) (default off)
  8218. --vfs-read-wait Duration Time to wait for in-sequence read before seeking (default 20ms)
  8219. --vfs-refresh Refreshes the directory cache recursively in the background on start
  8220. --vfs-used-is-size rclone size Use the rclone size algorithm for Used size
  8221. --vfs-write-back Duration Time to writeback files after last use when using cache (default 5s)
  8222. --vfs-write-wait Duration Time to wait for in-sequence write before giving error (default 1s)
  8223. Filter Options
  8224. Flags for filtering directory listings.
  8225. --delete-excluded Delete files on dest excluded from sync
  8226. --exclude stringArray Exclude files matching pattern
  8227. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  8228. --exclude-if-present stringArray Exclude directories if filename is present
  8229. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  8230. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  8231. -f, --filter stringArray Add a file filtering rule
  8232. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  8233. --ignore-case Ignore case in filters (case insensitive)
  8234. --include stringArray Include files matching pattern
  8235. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  8236. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  8237. --max-depth int If set limits the recursion depth to this (default -1)
  8238. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  8239. --metadata-exclude stringArray Exclude metadatas matching pattern
  8240. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  8241. --metadata-filter stringArray Add a metadata filtering rule
  8242. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  8243. --metadata-include stringArray Include metadatas matching pattern
  8244. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  8245. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  8246. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  8247. See the global flags page for global options not listed here.
  8248. SEE ALSO
  8249. - rclone serve - Serve a remote over a protocol.
  8250. rclone serve webdav
  8251. Serve remote:path over WebDAV.
  8252. Synopsis
  8253. Run a basic WebDAV server to serve a remote over HTTP via the WebDAV
  8254. protocol. This can be viewed with a WebDAV client, through a web
  8255. browser, or you can make a remote of type WebDAV to read and write it.
  8256. WebDAV options
  8257. --etag-hash
  8258. This controls the ETag header. Without this flag the ETag will be based
  8259. on the ModTime and Size of the object.
  8260. If this flag is set to "auto" then rclone will choose the first
  8261. supported hash on the backend or you can use a named hash such as "MD5"
  8262. or "SHA-1". Use the hashsum command to see the full list.
  8263. Access WebDAV on Windows
  8264. WebDAV shared folder can be mapped as a drive on Windows, however the
  8265. default settings prevent it. Windows will fail to connect to the server
  8266. using insecure Basic authentication. It will not even display any login
  8267. dialog. Windows requires SSL / HTTPS connection to be used with Basic.
  8268. If you try to connect via Add Network Location Wizard you will get the
  8269. following error: "The folder you entered does not appear to be valid.
  8270. Please choose another". However, you still can connect if you set the
  8271. following registry key on a client machine: HKEY_LOCAL_MACHINEto 2. The
  8272. BasicAuthLevel can be set to the following values: 0 - Basic
  8273. authentication disabled 1 - Basic authentication enabled for SSL
  8274. connections only 2 - Basic authentication enabled for SSL connections
  8275. and for non-SSL connections If required, increase the
  8276. FileSizeLimitInBytes to a higher value. Navigate to the Services
  8277. interface, then restart the WebClient service.
  8278. Access Office applications on WebDAV
  8279. Navigate to following registry HKEY_CURRENT_USER[14.0/15.0/16.0] Create
  8280. a new DWORD BasicAuthLevel with value 2. 0 - Basic authentication
  8281. disabled 1 - Basic authentication enabled for SSL connections only 2 -
  8282. Basic authentication enabled for SSL and for non-SSL connections
  8283. https://learn.microsoft.com/en-us/office/troubleshoot/powerpoint/office-opens-blank-from-sharepoint
  8284. Server options
  8285. Use --addr to specify which IP address and port the server should listen
  8286. on, eg --addr 1.2.3.4:8000 or --addr :8080 to listen to all IPs. By
  8287. default it only listens on localhost. You can use port :0 to let the OS
  8288. choose an available port.
  8289. If you set --addr to listen on a public or LAN accessible IP address
  8290. then using Authentication is advised - see the next section for info.
  8291. You can use a unix socket by setting the url to unix:///path/to/socket
  8292. or just by using an absolute path name. Note that unix sockets bypass
  8293. the authentication - this is expected to be done with file system
  8294. permissions.
  8295. --addr may be repeated to listen on multiple IPs/ports/sockets.
  8296. --server-read-timeout and --server-write-timeout can be used to control
  8297. the timeouts on the server. Note that this is the total time for a
  8298. transfer.
  8299. --max-header-bytes controls the maximum number of bytes the server will
  8300. accept in the HTTP header.
  8301. --baseurl controls the URL prefix that rclone serves from. By default
  8302. rclone will serve from the root. If you used --baseurl "/rclone" then
  8303. rclone would serve from a URL starting with "/rclone/". This is useful
  8304. if you wish to proxy rclone serve. Rclone automatically inserts leading
  8305. and trailing "/" on --baseurl, so --baseurl "rclone",
  8306. --baseurl "/rclone" and --baseurl "/rclone/" are all treated
  8307. identically.
  8308. TLS (SSL)
  8309. By default this will serve over http. If you want you can serve over
  8310. https. You will need to supply the --cert and --key flags. If you wish
  8311. to do client side certificate validation then you will need to supply
  8312. --client-ca also.
  8313. --cert should be a either a PEM encoded certificate or a concatenation
  8314. of that with the CA certificate. --key should be the PEM encoded private
  8315. key and --client-ca should be the PEM encoded client certificate
  8316. authority certificate.
  8317. --min-tls-version is minimum TLS version that is acceptable. Valid
  8318. values are "tls1.0", "tls1.1", "tls1.2" and "tls1.3" (default "tls1.0").
  8319. Template
  8320. --template allows a user to specify a custom markup template for HTTP
  8321. and WebDAV serve functions. The server exports the following markup to
  8322. be used within the template to server pages:
  8323. -----------------------------------------------------------------------
  8324. Parameter Description
  8325. ----------------------------------- -----------------------------------
  8326. .Name The full path of a file/directory.
  8327. .Title Directory listing of .Name
  8328. .Sort The current sort used. This is
  8329. changeable via ?sort= parameter
  8330. Sort Options:
  8331. namedirfirst,name,size,time
  8332. (default namedirfirst)
  8333. .Order The current ordering used. This is
  8334. changeable via ?order= parameter
  8335. Order Options: asc,desc (default
  8336. asc)
  8337. .Query Currently unused.
  8338. .Breadcrumb Allows for creating a relative
  8339. navigation
  8340. -- .Link The relative to the root link of
  8341. the Text.
  8342. -- .Text The Name of the directory.
  8343. .Entries Information about a specific
  8344. file/directory.
  8345. -- .URL The 'url' of an entry.
  8346. -- .Leaf Currently same as 'URL' but
  8347. intended to be 'just' the name.
  8348. -- .IsDir Boolean for if an entry is a
  8349. directory or not.
  8350. -- .Size Size in Bytes of the entry.
  8351. -- .ModTime The UTC timestamp of an entry.
  8352. -----------------------------------------------------------------------
  8353. The server also makes the following functions available so that they can
  8354. be used within the template. These functions help extend the options for
  8355. dynamic rendering of HTML. They can be used to render HTML based on
  8356. specific conditions.
  8357. -----------------------------------------------------------------------
  8358. Function Description
  8359. ----------------------------------- -----------------------------------
  8360. afterEpoch Returns the time since the epoch
  8361. for the given time.
  8362. contains Checks whether a given substring is
  8363. present or not in a given string.
  8364. hasPrefix Checks whether the given string
  8365. begins with the specified prefix.
  8366. hasSuffix Checks whether the given string end
  8367. with the specified suffix.
  8368. -----------------------------------------------------------------------
  8369. Authentication
  8370. By default this will serve files without needing a login.
  8371. You can either use an htpasswd file which can take lots of users, or set
  8372. a single username and password with the --user and --pass flags.
  8373. If no static users are configured by either of the above methods, and
  8374. client certificates are required by the --client-ca flag passed to the
  8375. server, the client certificate common name will be considered as the
  8376. username.
  8377. Use --htpasswd /path/to/htpasswd to provide an htpasswd file. This is in
  8378. standard apache format and supports MD5, SHA1 and BCrypt for basic
  8379. authentication. Bcrypt is recommended.
  8380. To create an htpasswd file:
  8381. touch htpasswd
  8382. htpasswd -B htpasswd user
  8383. htpasswd -B htpasswd anotherUser
  8384. The password file can be updated while rclone is running.
  8385. Use --realm to set the authentication realm.
  8386. Use --salt to change the password hashing salt from the default. ## VFS
  8387. - Virtual File System
  8388. This command uses the VFS layer. This adapts the cloud storage objects
  8389. that rclone uses into something which looks much more like a disk filing
  8390. system.
  8391. Cloud storage objects have lots of properties which aren't like disk
  8392. files - you can't extend them or write to the middle of them, so the VFS
  8393. layer has to deal with that. Because there is no one right way of doing
  8394. this there are various options explained below.
  8395. The VFS layer also implements a directory cache - this caches info about
  8396. files and directories (but not the data) in memory.
  8397. VFS Directory Cache
  8398. Using the --dir-cache-time flag, you can control how long a directory
  8399. should be considered up to date and not refreshed from the backend.
  8400. Changes made through the VFS will appear immediately or invalidate the
  8401. cache.
  8402. --dir-cache-time duration Time to cache directory entries for (default 5m0s)
  8403. --poll-interval duration Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable (default 1m0s)
  8404. However, changes made directly on the cloud storage by the web interface
  8405. or a different copy of rclone will only be picked up once the directory
  8406. cache expires if the backend configured does not support polling for
  8407. changes. If the backend supports polling, changes will be picked up
  8408. within the polling interval.
  8409. You can send a SIGHUP signal to rclone for it to flush all directory
  8410. caches, regardless of how old they are. Assuming only one rclone
  8411. instance is running, you can reset the cache like this:
  8412. kill -SIGHUP $(pidof rclone)
  8413. If you configure rclone with a remote control then you can use rclone rc
  8414. to flush the whole directory cache:
  8415. rclone rc vfs/forget
  8416. Or individual files or directories:
  8417. rclone rc vfs/forget file=path/to/file dir=path/to/dir
  8418. VFS File Buffering
  8419. The --buffer-size flag determines the amount of memory, that will be
  8420. used to buffer data in advance.
  8421. Each open file will try to keep the specified amount of data in memory
  8422. at all times. The buffered data is bound to one open file and won't be
  8423. shared.
  8424. This flag is a upper limit for the used memory per open file. The buffer
  8425. will only use memory for data that is downloaded but not not yet read.
  8426. If the buffer is empty, only a small amount of memory will be used.
  8427. The maximum memory used by rclone for buffering can be up to
  8428. --buffer-size * open files.
  8429. VFS File Caching
  8430. These flags control the VFS file caching options. File caching is
  8431. necessary to make the VFS layer appear compatible with a normal file
  8432. system. It can be disabled at the cost of some compatibility.
  8433. For example you'll need to enable VFS caching if you want to read and
  8434. write simultaneously to a file. See below for more details.
  8435. Note that the VFS cache is separate from the cache backend and you may
  8436. find that you need one or the other or both.
  8437. --cache-dir string Directory rclone will use for caching.
  8438. --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
  8439. --vfs-cache-max-age duration Max time since last access of objects in the cache (default 1h0m0s)
  8440. --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
  8441. --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
  8442. --vfs-cache-poll-interval duration Interval to poll the cache for stale objects (default 1m0s)
  8443. --vfs-write-back duration Time to writeback files after last use when using cache (default 5s)
  8444. If run with -vv rclone will print the location of the file cache. The
  8445. files are stored in the user cache file area which is OS dependent but
  8446. can be controlled with --cache-dir or setting the appropriate
  8447. environment variable.
  8448. The cache has 4 different modes selected by --vfs-cache-mode. The higher
  8449. the cache mode the more compatible rclone becomes at the cost of using
  8450. disk space.
  8451. Note that files are written back to the remote only when they are closed
  8452. and if they haven't been accessed for --vfs-write-back seconds. If
  8453. rclone is quit or dies with files that haven't been uploaded, these will
  8454. be uploaded next time rclone is run with the same flags.
  8455. If using --vfs-cache-max-size or --vfs-cache-min-free-size note that the
  8456. cache may exceed these quotas for two reasons. Firstly because it is
  8457. only checked every --vfs-cache-poll-interval. Secondly because open
  8458. files cannot be evicted from the cache. When --vfs-cache-max-size or
  8459. --vfs-cache-min-free-size is exceeded, rclone will attempt to evict the
  8460. least accessed files from the cache first. rclone will start with files
  8461. that haven't been accessed for the longest. This cache flushing strategy
  8462. is efficient and more relevant files are likely to remain cached.
  8463. The --vfs-cache-max-age will evict files from the cache after the set
  8464. time since last access has passed. The default value of 1 hour will
  8465. start evicting files from cache that haven't been accessed for 1 hour.
  8466. When a cached file is accessed the 1 hour timer is reset to 0 and will
  8467. wait for 1 more hour before evicting. Specify the time with standard
  8468. notation, s, m, h, d, w .
  8469. You should not run two copies of rclone using the same VFS cache with
  8470. the same or overlapping remotes if using --vfs-cache-mode > off. This
  8471. can potentially cause data corruption if you do. You can work around
  8472. this by giving each rclone its own cache hierarchy with --cache-dir. You
  8473. don't need to worry about this if the remotes in use don't overlap.
  8474. --vfs-cache-mode off
  8475. In this mode (the default) the cache will read directly from the remote
  8476. and write directly to the remote without caching anything on disk.
  8477. This will mean some operations are not possible
  8478. - Files can't be opened for both read AND write
  8479. - Files opened for write can't be seeked
  8480. - Existing files opened for write must have O_TRUNC set
  8481. - Files open for read with O_TRUNC will be opened write only
  8482. - Files open for write only will behave as if O_TRUNC was supplied
  8483. - Open modes O_APPEND, O_TRUNC are ignored
  8484. - If an upload fails it can't be retried
  8485. --vfs-cache-mode minimal
  8486. This is very similar to "off" except that files opened for read AND
  8487. write will be buffered to disk. This means that files opened for write
  8488. will be a lot more compatible, but uses the minimal disk space.
  8489. These operations are not possible
  8490. - Files opened for write only can't be seeked
  8491. - Existing files opened for write must have O_TRUNC set
  8492. - Files opened for write only will ignore O_APPEND, O_TRUNC
  8493. - If an upload fails it can't be retried
  8494. --vfs-cache-mode writes
  8495. In this mode files opened for read only are still read directly from the
  8496. remote, write only and read/write files are buffered to disk first.
  8497. This mode should support all normal file system operations.
  8498. If an upload fails it will be retried at exponentially increasing
  8499. intervals up to 1 minute.
  8500. --vfs-cache-mode full
  8501. In this mode all reads and writes are buffered to and from disk. When
  8502. data is read from the remote this is buffered to disk as well.
  8503. In this mode the files in the cache will be sparse files and rclone will
  8504. keep track of which bits of the files it has downloaded.
  8505. So if an application only reads the starts of each file, then rclone
  8506. will only buffer the start of the file. These files will appear to be
  8507. their full size in the cache, but they will be sparse files with only
  8508. the data that has been downloaded present in them.
  8509. This mode should support all normal file system operations and is
  8510. otherwise identical to --vfs-cache-mode writes.
  8511. When reading a file rclone will read --buffer-size plus --vfs-read-ahead
  8512. bytes ahead. The --buffer-size is buffered in memory whereas the
  8513. --vfs-read-ahead is buffered on disk.
  8514. When using this mode it is recommended that --buffer-size is not set too
  8515. large and --vfs-read-ahead is set large if required.
  8516. IMPORTANT not all file systems support sparse files. In particular
  8517. FAT/exFAT do not. Rclone will perform very badly if the cache directory
  8518. is on a filesystem which doesn't support sparse files and it will log an
  8519. ERROR message if one is detected.
  8520. Fingerprinting
  8521. Various parts of the VFS use fingerprinting to see if a local file copy
  8522. has changed relative to a remote file. Fingerprints are made from:
  8523. - size
  8524. - modification time
  8525. - hash
  8526. where available on an object.
  8527. On some backends some of these attributes are slow to read (they take an
  8528. extra API call per object, or extra work per object).
  8529. For example hash is slow with the local and sftp backends as they have
  8530. to read the entire file and hash it, and modtime is slow with the s3,
  8531. swift, ftp and qinqstor backends because they need to do an extra API
  8532. call to fetch it.
  8533. If you use the --vfs-fast-fingerprint flag then rclone will not include
  8534. the slow operations in the fingerprint. This makes the fingerprinting
  8535. less accurate but much faster and will improve the opening time of
  8536. cached files.
  8537. If you are running a vfs cache over local, s3 or swift backends then
  8538. using this flag is recommended.
  8539. Note that if you change the value of this flag, the fingerprints of the
  8540. files in the cache may be invalidated and the files will need to be
  8541. downloaded again.
  8542. VFS Chunked Reading
  8543. When rclone reads files from a remote it reads them in chunks. This
  8544. means that rather than requesting the whole file rclone reads the chunk
  8545. specified. This can reduce the used download quota for some remotes by
  8546. requesting only chunks from the remote that are actually read, at the
  8547. cost of an increased number of requests.
  8548. These flags control the chunking:
  8549. --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128M)
  8550. --vfs-read-chunk-size-limit SizeSuffix Max chunk doubling size (default off)
  8551. Rclone will start reading a chunk of size --vfs-read-chunk-size, and
  8552. then double the size for each read. When --vfs-read-chunk-size-limit is
  8553. specified, and greater than --vfs-read-chunk-size, the chunk size for
  8554. each open file will get doubled only until the specified value is
  8555. reached. If the value is "off", which is the default, the limit is
  8556. disabled and the chunk size will grow indefinitely.
  8557. With --vfs-read-chunk-size 100M and --vfs-read-chunk-size-limit 0 the
  8558. following parts will be downloaded: 0-100M, 100M-200M, 200M-300M,
  8559. 300M-400M and so on. When --vfs-read-chunk-size-limit 500M is specified,
  8560. the result would be 0-100M, 100M-300M, 300M-700M, 700M-1200M,
  8561. 1200M-1700M and so on.
  8562. Setting --vfs-read-chunk-size to 0 or "off" disables chunked reading.
  8563. VFS Performance
  8564. These flags may be used to enable/disable features of the VFS for
  8565. performance or other reasons. See also the chunked reading feature.
  8566. In particular S3 and Swift benefit hugely from the --no-modtime flag (or
  8567. use --use-server-modtime for a slightly different effect) as each read
  8568. of the modification time takes a transaction.
  8569. --no-checksum Don't compare checksums on up/download.
  8570. --no-modtime Don't read/write the modification time (can speed things up).
  8571. --no-seek Don't allow seeking in files.
  8572. --read-only Only allow read-only access.
  8573. Sometimes rclone is delivered reads or writes out of order. Rather than
  8574. seeking rclone will wait a short time for the in sequence read or write
  8575. to come in. These flags only come into effect when not using an on disk
  8576. cache file.
  8577. --vfs-read-wait duration Time to wait for in-sequence read before seeking (default 20ms)
  8578. --vfs-write-wait duration Time to wait for in-sequence write before giving error (default 1s)
  8579. When using VFS write caching (--vfs-cache-mode with value writes or
  8580. full), the global flag --transfers can be set to adjust the number of
  8581. parallel uploads of modified files from the cache (the related global
  8582. flag --checkers has no effect on the VFS).
  8583. --transfers int Number of file transfers to run in parallel (default 4)
  8584. VFS Case Sensitivity
  8585. Linux file systems are case-sensitive: two files can differ only by
  8586. case, and the exact case must be used when opening a file.
  8587. File systems in modern Windows are case-insensitive but case-preserving:
  8588. although existing files can be opened using any case, the exact case
  8589. used to create the file is preserved and available for programs to
  8590. query. It is not allowed for two files in the same directory to differ
  8591. only by case.
  8592. Usually file systems on macOS are case-insensitive. It is possible to
  8593. make macOS file systems case-sensitive but that is not the default.
  8594. The --vfs-case-insensitive VFS flag controls how rclone handles these
  8595. two cases. If its value is "false", rclone passes file names to the
  8596. remote as-is. If the flag is "true" (or appears without a value on the
  8597. command line), rclone may perform a "fixup" as explained below.
  8598. The user may specify a file name to open/delete/rename/etc with a case
  8599. different than what is stored on the remote. If an argument refers to an
  8600. existing file with exactly the same name, then the case of the existing
  8601. file on the disk will be used. However, if a file name with exactly the
  8602. same name is not found but a name differing only by case exists, rclone
  8603. will transparently fixup the name. This fixup happens only when an
  8604. existing file is requested. Case sensitivity of file names created anew
  8605. by rclone is controlled by the underlying remote.
  8606. Note that case sensitivity of the operating system running rclone (the
  8607. target) may differ from case sensitivity of a file system presented by
  8608. rclone (the source). The flag controls whether "fixup" is performed to
  8609. satisfy the target.
  8610. If the flag is not provided on the command line, then its default value
  8611. depends on the operating system where rclone runs: "true" on Windows and
  8612. macOS, "false" otherwise. If the flag is provided without a value, then
  8613. it is "true".
  8614. The --no-unicode-normalization flag controls whether a similar "fixup"
  8615. is performed for filenames that differ but are canonically equivalent
  8616. with respect to unicode. Unicode normalization can be particularly
  8617. helpful for users of macOS, which prefers form NFD instead of the NFC
  8618. used by most other platforms. It is therefore highly recommended to keep
  8619. the default of false on macOS, to avoid encoding compatibility issues.
  8620. In the (probably unlikely) event that a directory has multiple duplicate
  8621. filenames after applying case and unicode normalization, the
  8622. --vfs-block-norm-dupes flag allows hiding these duplicates. This comes
  8623. with a performance tradeoff, as rclone will have to scan the entire
  8624. directory for duplicates when listing a directory. For this reason, it
  8625. is recommended to leave this disabled if not needed. However, macOS
  8626. users may wish to consider using it, as otherwise, if a remote directory
  8627. contains both NFC and NFD versions of the same filename, an odd
  8628. situation will occur: both versions of the file will be visible in the
  8629. mount, and both will appear to be editable, however, editing either
  8630. version will actually result in only the NFD version getting edited
  8631. under the hood. --vfs-block- norm-dupes prevents this confusion by
  8632. detecting this scenario, hiding the duplicates, and logging an error,
  8633. similar to how this is handled in rclone sync.
  8634. VFS Disk Options
  8635. This flag allows you to manually set the statistics about the filing
  8636. system. It can be useful when those statistics cannot be read correctly
  8637. automatically.
  8638. --vfs-disk-space-total-size Manually set the total disk space size (example: 256G, default: -1)
  8639. Alternate report of used bytes
  8640. Some backends, most notably S3, do not report the amount of bytes used.
  8641. If you need this information to be available when running df on the
  8642. filesystem, then pass the flag --vfs-used-is-size to rclone. With this
  8643. flag set, instead of relying on the backend to report this information,
  8644. rclone will scan the whole remote similar to rclone size and compute the
  8645. total used space itself.
  8646. WARNING. Contrary to rclone size, this flag ignores filters so that the
  8647. result is accurate. However, this is very inefficient and may cost lots
  8648. of API calls resulting in extra charges. Use it as a last resort and
  8649. only with caching.
  8650. Auth Proxy
  8651. If you supply the parameter --auth-proxy /path/to/program then rclone
  8652. will use that program to generate backends on the fly which then are
  8653. used to authenticate incoming requests. This uses a simple JSON based
  8654. protocol with input on STDIN and output on STDOUT.
  8655. PLEASE NOTE: --auth-proxy and --authorized-keys cannot be used together,
  8656. if --auth-proxy is set the authorized keys option will be ignored.
  8657. There is an example program bin/test_proxy.py in the rclone source code.
  8658. The program's job is to take a user and pass on the input and turn those
  8659. into the config for a backend on STDOUT in JSON format. This config will
  8660. have any default parameters for the backend added, but it won't use
  8661. configuration from environment variables or command line options - it is
  8662. the job of the proxy program to make a complete config.
  8663. This config generated must have this extra parameter - _root - root to
  8664. use for the backend
  8665. And it may have this parameter - _obscure - comma separated strings for
  8666. parameters to obscure
  8667. If password authentication was used by the client, input to the proxy
  8668. process (on STDIN) would look similar to this:
  8669. {
  8670. "user": "me",
  8671. "pass": "mypassword"
  8672. }
  8673. If public-key authentication was used by the client, input to the proxy
  8674. process (on STDIN) would look similar to this:
  8675. {
  8676. "user": "me",
  8677. "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf"
  8678. }
  8679. And as an example return this on STDOUT
  8680. {
  8681. "type": "sftp",
  8682. "_root": "",
  8683. "_obscure": "pass",
  8684. "user": "me",
  8685. "pass": "mypassword",
  8686. "host": "sftp.example.com"
  8687. }
  8688. This would mean that an SFTP backend would be created on the fly for the
  8689. user and pass/public_key returned in the output to the host given. Note
  8690. that since _obscure is set to pass, rclone will obscure the pass
  8691. parameter before creating the backend (which is required for sftp
  8692. backends).
  8693. The program can manipulate the supplied user in any way, for example to
  8694. make proxy to many different sftp backends, you could make the user be
  8695. user@example.com and then set the host to example.com in the output and
  8696. the user to user. For security you'd probably want to restrict the host
  8697. to a limited list.
  8698. Note that an internal cache is keyed on user so only use that for
  8699. configuration, don't use pass or public_key. This also means that if a
  8700. user's password or public-key is changed the cache will need to expire
  8701. (which takes 5 mins) before it takes effect.
  8702. This can be used to build general purpose proxies to any kind of backend
  8703. that rclone supports.
  8704. rclone serve webdav remote:path [flags]
  8705. Options
  8706. --addr stringArray IPaddress:Port or :Port to bind server to (default [127.0.0.1:8080])
  8707. --allow-origin string Origin which cross-domain request (CORS) can be executed from
  8708. --auth-proxy string A program to use to create the backend from the auth
  8709. --baseurl string Prefix for URLs - leave blank for root
  8710. --cert string TLS PEM key (concatenation of certificate and CA certificate)
  8711. --client-ca string Client certificate authority to verify clients with
  8712. --dir-cache-time Duration Time to cache directory entries for (default 5m0s)
  8713. --dir-perms FileMode Directory permissions (default 0777)
  8714. --disable-dir-list Disable HTML directory list on GET request for a directory
  8715. --etag-hash string Which hash to use for the ETag, or auto or blank for off
  8716. --file-perms FileMode File permissions (default 0666)
  8717. --gid uint32 Override the gid field set by the filesystem (not supported on Windows) (default 1000)
  8718. -h, --help help for webdav
  8719. --htpasswd string A htpasswd file - if not provided no authentication is done
  8720. --key string TLS PEM Private key
  8721. --max-header-bytes int Maximum size of request header (default 4096)
  8722. --min-tls-version string Minimum TLS version that is acceptable (default "tls1.0")
  8723. --no-checksum Don't compare checksums on up/download
  8724. --no-modtime Don't read/write the modification time (can speed things up)
  8725. --no-seek Don't allow seeking in files
  8726. --pass string Password for authentication
  8727. --poll-interval Duration Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s)
  8728. --read-only Only allow read-only access
  8729. --realm string Realm for authentication
  8730. --salt string Password hashing salt (default "dlPL2MqE")
  8731. --server-read-timeout Duration Timeout for server reading data (default 1h0m0s)
  8732. --server-write-timeout Duration Timeout for server writing data (default 1h0m0s)
  8733. --template string User-specified template
  8734. --uid uint32 Override the uid field set by the filesystem (not supported on Windows) (default 1000)
  8735. --umask int Override the permission bits set by the filesystem (not supported on Windows) (default 2)
  8736. --user string User name for authentication
  8737. --vfs-block-norm-dupes If duplicate filenames exist in the same directory (after normalization), log an error and hide the duplicates (may have a performance cost)
  8738. --vfs-cache-max-age Duration Max time since last access of objects in the cache (default 1h0m0s)
  8739. --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
  8740. --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off)
  8741. --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
  8742. --vfs-cache-poll-interval Duration Interval to poll the cache for stale objects (default 1m0s)
  8743. --vfs-case-insensitive If a file name not found, find a case insensitive match
  8744. --vfs-disk-space-total-size SizeSuffix Specify the total space of disk (default off)
  8745. --vfs-fast-fingerprint Use fast (less accurate) fingerprints for change detection
  8746. --vfs-read-ahead SizeSuffix Extra read ahead over --buffer-size when using cache-mode full
  8747. --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128Mi)
  8748. --vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached ('off' is unlimited) (default off)
  8749. --vfs-read-wait Duration Time to wait for in-sequence read before seeking (default 20ms)
  8750. --vfs-refresh Refreshes the directory cache recursively in the background on start
  8751. --vfs-used-is-size rclone size Use the rclone size algorithm for Used size
  8752. --vfs-write-back Duration Time to writeback files after last use when using cache (default 5s)
  8753. --vfs-write-wait Duration Time to wait for in-sequence write before giving error (default 1s)
  8754. Filter Options
  8755. Flags for filtering directory listings.
  8756. --delete-excluded Delete files on dest excluded from sync
  8757. --exclude stringArray Exclude files matching pattern
  8758. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  8759. --exclude-if-present stringArray Exclude directories if filename is present
  8760. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  8761. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  8762. -f, --filter stringArray Add a file filtering rule
  8763. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  8764. --ignore-case Ignore case in filters (case insensitive)
  8765. --include stringArray Include files matching pattern
  8766. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  8767. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  8768. --max-depth int If set limits the recursion depth to this (default -1)
  8769. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  8770. --metadata-exclude stringArray Exclude metadatas matching pattern
  8771. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  8772. --metadata-filter stringArray Add a metadata filtering rule
  8773. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  8774. --metadata-include stringArray Include metadatas matching pattern
  8775. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  8776. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  8777. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  8778. See the global flags page for global options not listed here.
  8779. SEE ALSO
  8780. - rclone serve - Serve a remote over a protocol.
  8781. rclone settier
  8782. Changes storage class/tier of objects in remote.
  8783. Synopsis
  8784. rclone settier changes storage tier or class at remote if supported. Few
  8785. cloud storage services provides different storage classes on objects,
  8786. for example AWS S3 and Glacier, Azure Blob storage - Hot, Cool and
  8787. Archive, Google Cloud Storage, Regional Storage, Nearline, Coldline etc.
  8788. Note that, certain tier changes make objects not available to access
  8789. immediately. For example tiering to archive in azure blob storage makes
  8790. objects in frozen state, user can restore by setting tier to Hot/Cool,
  8791. similarly S3 to Glacier makes object inaccessible.true
  8792. You can use it to tier single object
  8793. rclone settier Cool remote:path/file
  8794. Or use rclone filters to set tier on only specific files
  8795. rclone --include "*.txt" settier Hot remote:path/dir
  8796. Or just provide remote directory and all files in directory will be
  8797. tiered
  8798. rclone settier tier remote:path/dir
  8799. rclone settier tier remote:path [flags]
  8800. Options
  8801. -h, --help help for settier
  8802. See the global flags page for global options not listed here.
  8803. SEE ALSO
  8804. - rclone - Show help for rclone commands, flags and backends.
  8805. rclone test
  8806. Run a test command
  8807. Synopsis
  8808. Rclone test is used to run test commands.
  8809. Select which test command you want with the subcommand, eg
  8810. rclone test memory remote:
  8811. Each subcommand has its own options which you can see in their help.
  8812. NB Be careful running these commands, they may do strange things so
  8813. reading their documentation first is recommended.
  8814. Options
  8815. -h, --help help for test
  8816. See the global flags page for global options not listed here.
  8817. SEE ALSO
  8818. - rclone - Show help for rclone commands, flags and backends.
  8819. - rclone test changenotify - Log any change notify requests for the
  8820. remote passed in.
  8821. - rclone test histogram - Makes a histogram of file name characters.
  8822. - rclone test info - Discovers file name or other limitations for
  8823. paths.
  8824. - rclone test makefile - Make files with random contents of the size
  8825. given
  8826. - rclone test makefiles - Make a random file hierarchy in a directory
  8827. - rclone test memory - Load all the objects at remote:path into memory
  8828. and report memory stats.
  8829. rclone test changenotify
  8830. Log any change notify requests for the remote passed in.
  8831. rclone test changenotify remote: [flags]
  8832. Options
  8833. -h, --help help for changenotify
  8834. --poll-interval Duration Time to wait between polling for changes (default 10s)
  8835. See the global flags page for global options not listed here.
  8836. SEE ALSO
  8837. - rclone test - Run a test command
  8838. rclone test histogram
  8839. Makes a histogram of file name characters.
  8840. Synopsis
  8841. This command outputs JSON which shows the histogram of characters used
  8842. in filenames in the remote:path specified.
  8843. The data doesn't contain any identifying information but is useful for
  8844. the rclone developers when developing filename compression.
  8845. rclone test histogram [remote:path] [flags]
  8846. Options
  8847. -h, --help help for histogram
  8848. See the global flags page for global options not listed here.
  8849. SEE ALSO
  8850. - rclone test - Run a test command
  8851. rclone test info
  8852. Discovers file name or other limitations for paths.
  8853. Synopsis
  8854. rclone info discovers what filenames and upload methods are possible to
  8855. write to the paths passed in and how long they can be. It can take some
  8856. time. It will write test files into the remote:path passed in. It
  8857. outputs a bit of go code for each one.
  8858. NB this can create undeletable files and other hazards - use with care
  8859. rclone test info [remote:path]+ [flags]
  8860. Options
  8861. --all Run all tests
  8862. --check-base32768 Check can store all possible base32768 characters
  8863. --check-control Check control characters
  8864. --check-length Check max filename length
  8865. --check-normalization Check UTF-8 Normalization
  8866. --check-streaming Check uploads with indeterminate file size
  8867. -h, --help help for info
  8868. --upload-wait Duration Wait after writing a file (default 0s)
  8869. --write-json string Write results to file
  8870. See the global flags page for global options not listed here.
  8871. SEE ALSO
  8872. - rclone test - Run a test command
  8873. rclone test makefile
  8874. Make files with random contents of the size given
  8875. rclone test makefile <size> [<file>]+ [flags]
  8876. Options
  8877. --ascii Fill files with random ASCII printable bytes only
  8878. --chargen Fill files with a ASCII chargen pattern
  8879. -h, --help help for makefile
  8880. --pattern Fill files with a periodic pattern
  8881. --seed int Seed for the random number generator (0 for random) (default 1)
  8882. --sparse Make the files sparse (appear to be filled with ASCII 0x00)
  8883. --zero Fill files with ASCII 0x00
  8884. See the global flags page for global options not listed here.
  8885. SEE ALSO
  8886. - rclone test - Run a test command
  8887. rclone test makefiles
  8888. Make a random file hierarchy in a directory
  8889. rclone test makefiles <dir> [flags]
  8890. Options
  8891. --ascii Fill files with random ASCII printable bytes only
  8892. --chargen Fill files with a ASCII chargen pattern
  8893. --files int Number of files to create (default 1000)
  8894. --files-per-directory int Average number of files per directory (default 10)
  8895. -h, --help help for makefiles
  8896. --max-depth int Maximum depth of directory hierarchy (default 10)
  8897. --max-file-size SizeSuffix Maximum size of files to create (default 100)
  8898. --max-name-length int Maximum size of file names (default 12)
  8899. --min-file-size SizeSuffix Minimum size of file to create
  8900. --min-name-length int Minimum size of file names (default 4)
  8901. --pattern Fill files with a periodic pattern
  8902. --seed int Seed for the random number generator (0 for random) (default 1)
  8903. --sparse Make the files sparse (appear to be filled with ASCII 0x00)
  8904. --zero Fill files with ASCII 0x00
  8905. See the global flags page for global options not listed here.
  8906. SEE ALSO
  8907. - rclone test - Run a test command
  8908. rclone test memory
  8909. Load all the objects at remote:path into memory and report memory stats.
  8910. rclone test memory remote:path [flags]
  8911. Options
  8912. -h, --help help for memory
  8913. See the global flags page for global options not listed here.
  8914. SEE ALSO
  8915. - rclone test - Run a test command
  8916. rclone touch
  8917. Create new file or change file modification time.
  8918. Synopsis
  8919. Set the modification time on file(s) as specified by remote:path to have
  8920. the current time.
  8921. If remote:path does not exist then a zero sized file will be created,
  8922. unless --no-create or --recursive is provided.
  8923. If --recursive is used then recursively sets the modification time on
  8924. all existing files that is found under the path. Filters are supported,
  8925. and you can test with the --dry-run or the --interactive/-i flag.
  8926. If --timestamp is used then sets the modification time to that time
  8927. instead of the current time. Times may be specified as one of:
  8928. - 'YYMMDD' - e.g. 17.10.30
  8929. - 'YYYY-MM-DDTHH:MM:SS' - e.g. 2006-01-02T15:04:05
  8930. - 'YYYY-MM-DDTHH:MM:SS.SSS' - e.g. 2006-01-02T15:04:05.123456789
  8931. Note that value of --timestamp is in UTC. If you want local time then
  8932. add the --localtime flag.
  8933. rclone touch remote:path [flags]
  8934. Options
  8935. -h, --help help for touch
  8936. --localtime Use localtime for timestamp, not UTC
  8937. -C, --no-create Do not create the file if it does not exist (implied with --recursive)
  8938. -R, --recursive Recursively touch all files
  8939. -t, --timestamp string Use specified time instead of the current time of day
  8940. Important Options
  8941. Important flags useful for most commands.
  8942. -n, --dry-run Do a trial run with no permanent changes
  8943. -i, --interactive Enable interactive mode
  8944. -v, --verbose count Print lots more stuff (repeat for more)
  8945. Filter Options
  8946. Flags for filtering directory listings.
  8947. --delete-excluded Delete files on dest excluded from sync
  8948. --exclude stringArray Exclude files matching pattern
  8949. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  8950. --exclude-if-present stringArray Exclude directories if filename is present
  8951. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  8952. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  8953. -f, --filter stringArray Add a file filtering rule
  8954. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  8955. --ignore-case Ignore case in filters (case insensitive)
  8956. --include stringArray Include files matching pattern
  8957. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  8958. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  8959. --max-depth int If set limits the recursion depth to this (default -1)
  8960. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  8961. --metadata-exclude stringArray Exclude metadatas matching pattern
  8962. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  8963. --metadata-filter stringArray Add a metadata filtering rule
  8964. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  8965. --metadata-include stringArray Include metadatas matching pattern
  8966. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  8967. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  8968. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  8969. Listing Options
  8970. Flags for listing directories.
  8971. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  8972. --fast-list Use recursive list if available; uses more memory but fewer transactions
  8973. See the global flags page for global options not listed here.
  8974. SEE ALSO
  8975. - rclone - Show help for rclone commands, flags and backends.
  8976. rclone tree
  8977. List the contents of the remote in a tree like fashion.
  8978. Synopsis
  8979. rclone tree lists the contents of a remote in a similar way to the unix
  8980. tree command.
  8981. For example
  8982. $ rclone tree remote:path
  8983. /
  8984. ├── file1
  8985. ├── file2
  8986. ├── file3
  8987. └── subdir
  8988. ├── file4
  8989. └── file5
  8990. 1 directories, 5 files
  8991. You can use any of the filtering options with the tree command (e.g.
  8992. --include and --exclude. You can also use --fast-list.
  8993. The tree command has many options for controlling the listing which are
  8994. compatible with the tree command, for example you can include file sizes
  8995. with --size. Note that not all of them have short options as they
  8996. conflict with rclone's short options.
  8997. For a more interactive navigation of the remote see the ncdu command.
  8998. rclone tree remote:path [flags]
  8999. Options
  9000. -a, --all All files are listed (list . files too)
  9001. -d, --dirs-only List directories only
  9002. --dirsfirst List directories before files (-U disables)
  9003. --full-path Print the full path prefix for each file
  9004. -h, --help help for tree
  9005. --level int Descend only level directories deep
  9006. -D, --modtime Print the date of last modification.
  9007. --noindent Don't print indentation lines
  9008. --noreport Turn off file/directory count at end of tree listing
  9009. -o, --output string Output to file instead of stdout
  9010. -p, --protections Print the protections for each file.
  9011. -Q, --quote Quote filenames with double quotes.
  9012. -s, --size Print the size in bytes of each file.
  9013. --sort string Select sort: name,version,size,mtime,ctime
  9014. --sort-ctime Sort files by last status change time
  9015. -t, --sort-modtime Sort files by last modification time
  9016. -r, --sort-reverse Reverse the order of the sort
  9017. -U, --unsorted Leave files unsorted
  9018. --version Sort files alphanumerically by version
  9019. Filter Options
  9020. Flags for filtering directory listings.
  9021. --delete-excluded Delete files on dest excluded from sync
  9022. --exclude stringArray Exclude files matching pattern
  9023. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  9024. --exclude-if-present stringArray Exclude directories if filename is present
  9025. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  9026. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  9027. -f, --filter stringArray Add a file filtering rule
  9028. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  9029. --ignore-case Ignore case in filters (case insensitive)
  9030. --include stringArray Include files matching pattern
  9031. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  9032. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  9033. --max-depth int If set limits the recursion depth to this (default -1)
  9034. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  9035. --metadata-exclude stringArray Exclude metadatas matching pattern
  9036. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  9037. --metadata-filter stringArray Add a metadata filtering rule
  9038. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  9039. --metadata-include stringArray Include metadatas matching pattern
  9040. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  9041. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  9042. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  9043. Listing Options
  9044. Flags for listing directories.
  9045. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  9046. --fast-list Use recursive list if available; uses more memory but fewer transactions
  9047. See the global flags page for global options not listed here.
  9048. SEE ALSO
  9049. - rclone - Show help for rclone commands, flags and backends.
  9050. Copying single files
  9051. rclone normally syncs or copies directories. However, if the source
  9052. remote points to a file, rclone will just copy that file. The
  9053. destination remote must point to a directory - rclone will give the
  9054. error
  9055. Failed to create file system for "remote:file": is a file not a directory
  9056. if it isn't.
  9057. For example, suppose you have a remote with a file in called test.jpg,
  9058. then you could copy just that file like this
  9059. rclone copy remote:test.jpg /tmp/download
  9060. The file test.jpg will be placed inside /tmp/download.
  9061. This is equivalent to specifying
  9062. rclone copy --files-from /tmp/files remote: /tmp/download
  9063. Where /tmp/files contains the single line
  9064. test.jpg
  9065. It is recommended to use copy when copying individual files, not sync.
  9066. They have pretty much the same effect but copy will use a lot less
  9067. memory.
  9068. Syntax of remote paths
  9069. The syntax of the paths passed to the rclone command are as follows.
  9070. /path/to/dir
  9071. This refers to the local file system.
  9072. On Windows \ may be used instead of / in local paths only, non local
  9073. paths must use /. See local filesystem documentation for more about
  9074. Windows-specific paths.
  9075. These paths needn't start with a leading / - if they don't then they
  9076. will be relative to the current directory.
  9077. remote:path/to/dir
  9078. This refers to a directory path/to/dir on remote: as defined in the
  9079. config file (configured with rclone config).
  9080. remote:/path/to/dir
  9081. On most backends this is refers to the same directory as
  9082. remote:path/to/dir and that format should be preferred. On a very small
  9083. number of remotes (FTP, SFTP, Dropbox for business) this will refer to a
  9084. different directory. On these, paths without a leading / will refer to
  9085. your "home" directory and paths with a leading / will refer to the root.
  9086. :backend:path/to/dir
  9087. This is an advanced form for creating remotes on the fly. backend should
  9088. be the name or prefix of a backend (the type in the config file) and all
  9089. the configuration for the backend should be provided on the command line
  9090. (or in environment variables).
  9091. Here are some examples:
  9092. rclone lsd --http-url https://pub.rclone.org :http:
  9093. To list all the directories in the root of https://pub.rclone.org/.
  9094. rclone lsf --http-url https://example.com :http:path/to/dir
  9095. To list files and directories in https://example.com/path/to/dir/
  9096. rclone copy --http-url https://example.com :http:path/to/dir /tmp/dir
  9097. To copy files and directories in https://example.com/path/to/dir to
  9098. /tmp/dir.
  9099. rclone copy --sftp-host example.com :sftp:path/to/dir /tmp/dir
  9100. To copy files and directories from example.com in the relative directory
  9101. path/to/dir to /tmp/dir using sftp.
  9102. Connection strings
  9103. The above examples can also be written using a connection string syntax,
  9104. so instead of providing the arguments as command line parameters
  9105. --http-url https://pub.rclone.org they are provided as part of the
  9106. remote specification as a kind of connection string.
  9107. rclone lsd ":http,url='https://pub.rclone.org':"
  9108. rclone lsf ":http,url='https://example.com':path/to/dir"
  9109. rclone copy ":http,url='https://example.com':path/to/dir" /tmp/dir
  9110. rclone copy :sftp,host=example.com:path/to/dir /tmp/dir
  9111. These can apply to modify existing remotes as well as create new remotes
  9112. with the on the fly syntax. This example is equivalent to adding the
  9113. --drive-shared-with-me parameter to the remote gdrive:.
  9114. rclone lsf "gdrive,shared_with_me:path/to/dir"
  9115. The major advantage to using the connection string style syntax is that
  9116. it only applies to the remote, not to all the remotes of that type of
  9117. the command line. A common confusion is this attempt to copy a file
  9118. shared on google drive to the normal drive which does not work because
  9119. the --drive-shared-with-me flag applies to both the source and the
  9120. destination.
  9121. rclone copy --drive-shared-with-me gdrive:shared-file.txt gdrive:
  9122. However using the connection string syntax, this does work.
  9123. rclone copy "gdrive,shared_with_me:shared-file.txt" gdrive:
  9124. Note that the connection string only affects the options of the
  9125. immediate backend. If for example gdriveCrypt is a crypt based on
  9126. gdrive, then the following command will not work as intended, because
  9127. shared_with_me is ignored by the crypt backend:
  9128. rclone copy "gdriveCrypt,shared_with_me:shared-file.txt" gdriveCrypt:
  9129. The connection strings have the following syntax
  9130. remote,parameter=value,parameter2=value2:path/to/dir
  9131. :backend,parameter=value,parameter2=value2:path/to/dir
  9132. If the parameter has a : or , then it must be placed in quotes " or ',
  9133. so
  9134. remote,parameter="colon:value",parameter2="comma,value":path/to/dir
  9135. :backend,parameter='colon:value',parameter2='comma,value':path/to/dir
  9136. If a quoted value needs to include that quote, then it should be
  9137. doubled, so
  9138. remote,parameter="with""quote",parameter2='with''quote':path/to/dir
  9139. This will make parameter be with"quote and parameter2 be with'quote.
  9140. If you leave off the =parameter then rclone will substitute =true which
  9141. works very well with flags. For example, to use s3 configured in the
  9142. environment you could use:
  9143. rclone lsd :s3,env_auth:
  9144. Which is equivalent to
  9145. rclone lsd :s3,env_auth=true:
  9146. Note that on the command line you might need to surround these
  9147. connection strings with " or ' to stop the shell interpreting any
  9148. special characters within them.
  9149. If you are a shell master then you'll know which strings are OK and
  9150. which aren't, but if you aren't sure then enclose them in " and use ' as
  9151. the inside quote. This syntax works on all OSes.
  9152. rclone copy ":http,url='https://example.com':path/to/dir" /tmp/dir
  9153. On Linux/macOS some characters are still interpreted inside " strings in
  9154. the shell (notably \ and $ and ") so if your strings contain those you
  9155. can swap the roles of " and ' thus. (This syntax does not work on
  9156. Windows.)
  9157. rclone copy ':http,url="https://example.com":path/to/dir' /tmp/dir
  9158. Connection strings, config and logging
  9159. If you supply extra configuration to a backend by command line flag,
  9160. environment variable or connection string then rclone will add a suffix
  9161. based on the hash of the config to the name of the remote, eg
  9162. rclone -vv lsf --s3-chunk-size 20M s3:
  9163. Has the log message
  9164. DEBUG : s3: detected overridden config - adding "{Srj1p}" suffix to name
  9165. This is so rclone can tell the modified remote apart from the unmodified
  9166. remote when caching the backends.
  9167. This should only be noticeable in the logs.
  9168. This means that on the fly backends such as
  9169. rclone -vv lsf :s3,env_auth:
  9170. Will get their own names
  9171. DEBUG : :s3: detected overridden config - adding "{YTu53}" suffix to name
  9172. Valid remote names
  9173. Remote names are case sensitive, and must adhere to the following rules:
  9174. - May contain number, letter, _, -, ., +, @ and space. - May not start
  9175. with - or space. - May not end with space.
  9176. Starting with rclone version 1.61, any Unicode numbers and letters are
  9177. allowed, while in older versions it was limited to plain ASCII (0-9,
  9178. A-Z, a-z). If you use the same rclone configuration from different
  9179. shells, which may be configured with different character encoding, you
  9180. must be cautious to use characters that are possible to write in all of
  9181. them. This is mostly a problem on Windows, where the console
  9182. traditionally uses a non-Unicode character set - defined by the
  9183. so-called "code page".
  9184. Do not use single character names on Windows as it creates ambiguity
  9185. with Windows drives' names, e.g.: remote called C is indistinguishable
  9186. from C drive. Rclone will always assume that single letter name refers
  9187. to a drive.
  9188. Quoting and the shell
  9189. When you are typing commands to your computer you are using something
  9190. called the command line shell. This interprets various characters in an
  9191. OS specific way.
  9192. Here are some gotchas which may help users unfamiliar with the shell
  9193. rules
  9194. Linux / OSX
  9195. If your names have spaces or shell metacharacters (e.g. *, ?, $, ', ",
  9196. etc.) then you must quote them. Use single quotes ' by default.
  9197. rclone copy 'Important files?' remote:backup
  9198. If you want to send a ' you will need to use ", e.g.
  9199. rclone copy "O'Reilly Reviews" remote:backup
  9200. The rules for quoting metacharacters are complicated and if you want the
  9201. full details you'll have to consult the manual page for your shell.
  9202. Windows
  9203. If your names have spaces in you need to put them in ", e.g.
  9204. rclone copy "E:\folder name\folder name\folder name" remote:backup
  9205. If you are using the root directory on its own then don't quote it (see
  9206. #464 for why), e.g.
  9207. rclone copy E:\ remote:backup
  9208. Copying files or directories with : in the names
  9209. rclone uses : to mark a remote name. This is, however, a valid filename
  9210. component in non-Windows OSes. The remote name parser will only search
  9211. for a : up to the first / so if you need to act on a file or directory
  9212. like this then use the full path starting with a /, or use ./ as a
  9213. current directory prefix.
  9214. So to sync a directory called sync:me to a remote called remote: use
  9215. rclone sync --interactive ./sync:me remote:path
  9216. or
  9217. rclone sync --interactive /full/path/to/sync:me remote:path
  9218. Server Side Copy
  9219. Most remotes (but not all - see the overview) support server-side copy.
  9220. This means if you want to copy one folder to another then rclone won't
  9221. download all the files and re-upload them; it will instruct the server
  9222. to copy them in place.
  9223. Eg
  9224. rclone copy s3:oldbucket s3:newbucket
  9225. Will copy the contents of oldbucket to newbucket without downloading and
  9226. re-uploading.
  9227. Remotes which don't support server-side copy will download and re-upload
  9228. in this case.
  9229. Server side copies are used with sync and copy and will be identified in
  9230. the log when using the -v flag. The move command may also use them if
  9231. remote doesn't support server-side move directly. This is done by
  9232. issuing a server-side copy then a delete which is much quicker than a
  9233. download and re-upload.
  9234. Server side copies will only be attempted if the remote names are the
  9235. same.
  9236. This can be used when scripting to make aged backups efficiently, e.g.
  9237. rclone sync --interactive remote:current-backup remote:previous-backup
  9238. rclone sync --interactive /path/to/files remote:current-backup
  9239. Metadata support
  9240. Metadata is data about a file (or directory) which isn't the contents of
  9241. the file (or directory). Normally rclone only preserves the modification
  9242. time and the content (MIME) type where possible.
  9243. Rclone supports preserving all the available metadata on files and
  9244. directories when using the --metadata or -M flag.
  9245. Exactly what metadata is supported and what that support means depends
  9246. on the backend. Backends that support metadata have a metadata section
  9247. in their docs and are listed in the features table (Eg local, s3)
  9248. Some backends don't support metadata, some only support metadata on
  9249. files and some support metadata on both files and directories.
  9250. Rclone only supports a one-time sync of metadata. This means that
  9251. metadata will be synced from the source object to the destination object
  9252. only when the source object has changed and needs to be re-uploaded. If
  9253. the metadata subsequently changes on the source object without changing
  9254. the object itself then it won't be synced to the destination object.
  9255. This is in line with the way rclone syncs Content-Type without the
  9256. --metadata flag.
  9257. Using --metadata when syncing from local to local will preserve file
  9258. attributes such as file mode, owner, extended attributes (not Windows).
  9259. Note that arbitrary metadata may be added to objects using the
  9260. --metadata-set key=value flag when the object is first uploaded. This
  9261. flag can be repeated as many times as necessary.
  9262. The --metadata-mapper flag can be used to pass the name of a program in
  9263. which can transform metadata when it is being copied from source to
  9264. destination.
  9265. Rclone supports --metadata-set and --metadata-mapper when doing sever
  9266. side Move and server side Copy, but not when doing server side DirMove
  9267. (renaming a directory) as this would involve recursing into the
  9268. directory. Note that you can disable DirMove with --disable DirMove and
  9269. rclone will revert back to using Move for each individual object where
  9270. --metadata-set and --metadata-mapper are supported.
  9271. Types of metadata
  9272. Metadata is divided into two type. System metadata and User metadata.
  9273. Metadata which the backend uses itself is called system metadata. For
  9274. example on the local backend the system metadata uid will store the user
  9275. ID of the file when used on a unix based platform.
  9276. Arbitrary metadata is called user metadata and this can be set however
  9277. is desired.
  9278. When objects are copied from backend to backend, they will attempt to
  9279. interpret system metadata if it is supplied. Metadata may change from
  9280. being user metadata to system metadata as objects are copied between
  9281. different backends. For example copying an object from s3 sets the
  9282. content-type metadata. In a backend which understands this (like
  9283. azureblob) this will become the Content-Type of the object. In a backend
  9284. which doesn't understand this (like the local backend) this will become
  9285. user metadata. However should the local object be copied back to s3, the
  9286. Content-Type will be set correctly.
  9287. Metadata framework
  9288. Rclone implements a metadata framework which can read metadata from an
  9289. object and write it to the object when (and only when) it is being
  9290. uploaded.
  9291. This metadata is stored as a dictionary with string keys and string
  9292. values.
  9293. There are some limits on the names of the keys (these may be clarified
  9294. further in the future).
  9295. - must be lower case
  9296. - may be a-z 0-9 containing . - or _
  9297. - length is backend dependent
  9298. Each backend can provide system metadata that it understands. Some
  9299. backends can also store arbitrary user metadata.
  9300. Where possible the key names are standardized, so, for example, it is
  9301. possible to copy object metadata from s3 to azureblob for example and
  9302. metadata will be translated appropriately.
  9303. Some backends have limits on the size of the metadata and rclone will
  9304. give errors on upload if they are exceeded.
  9305. Metadata preservation
  9306. The goal of the implementation is to
  9307. 1. Preserve metadata if at all possible
  9308. 2. Interpret metadata if at all possible
  9309. The consequences of 1 is that you can copy an S3 object to a local disk
  9310. then back to S3 losslessly. Likewise you can copy a local file with file
  9311. attributes and xattrs from local disk to s3 and back again losslessly.
  9312. The consequence of 2 is that you can copy an S3 object with metadata to
  9313. Azureblob (say) and have the metadata appear on the Azureblob object
  9314. also.
  9315. Standard system metadata
  9316. Here is a table of standard system metadata which, if appropriate, a
  9317. backend may implement.
  9318. ----------------------------------------------------------------------------------------------
  9319. key description example
  9320. ---------------------------------- --------------------- -------------------------------------
  9321. mode File type and mode: 0100664
  9322. octal, unix style
  9323. uid User ID of owner: 500
  9324. decimal number
  9325. gid Group ID of owner: 500
  9326. decimal number
  9327. rdev Device ID (if special 0
  9328. file) => hexadecimal
  9329. atime Time of last access: 2006-01-02T15:04:05.999999999Z07:00
  9330. RFC 3339
  9331. mtime Time of last 2006-01-02T15:04:05.999999999Z07:00
  9332. modification: RFC
  9333. 3339
  9334. btime Time of file creation 2006-01-02T15:04:05.999999999Z07:00
  9335. (birth): RFC 3339
  9336. utime Time of file upload: 2006-01-02T15:04:05.999999999Z07:00
  9337. RFC 3339
  9338. cache-control Cache-Control header no-cache
  9339. content-disposition Content-Disposition inline
  9340. header
  9341. content-encoding Content-Encoding gzip
  9342. header
  9343. content-language Content-Language en-US
  9344. header
  9345. content-type Content-Type header text/plain
  9346. ----------------------------------------------------------------------------------------------
  9347. The metadata keys mtime and content-type will take precedence if
  9348. supplied in the metadata over reading the Content-Type or modification
  9349. time of the source object.
  9350. Hashes are not included in system metadata as there is a well defined
  9351. way of reading those already.
  9352. Options
  9353. Rclone has a number of options to control its behaviour.
  9354. Options that take parameters can have the values passed in two ways,
  9355. --option=value or --option value. However boolean (true/false) options
  9356. behave slightly differently to the other options in that --boolean sets
  9357. the option to true and the absence of the flag sets it to false. It is
  9358. also possible to specify --boolean=false or --boolean=true. Note that
  9359. --boolean false is not valid - this is parsed as --boolean and the false
  9360. is parsed as an extra command line argument for rclone.
  9361. Time or duration options
  9362. TIME or DURATION options can be specified as a duration string or a time
  9363. string.
  9364. A duration string is a possibly signed sequence of decimal numbers, each
  9365. with optional fraction and a unit suffix, such as "300ms", "-1.5h" or
  9366. "2h45m". Default units are seconds or the following abbreviations are
  9367. valid:
  9368. - ms - Milliseconds
  9369. - s - Seconds
  9370. - m - Minutes
  9371. - h - Hours
  9372. - d - Days
  9373. - w - Weeks
  9374. - M - Months
  9375. - y - Years
  9376. These can also be specified as an absolute time in the following
  9377. formats:
  9378. - RFC3339 - e.g. 2006-01-02T15:04:05Z or 2006-01-02T15:04:05+07:00
  9379. - ISO8601 Date and time, local timezone - 2006-01-02T15:04:05
  9380. - ISO8601 Date and time, local timezone - 2006-01-02 15:04:05
  9381. - ISO8601 Date - 2006-01-02 (YYYY-MM-DD)
  9382. Size options
  9383. Options which use SIZE use KiB (multiples of 1024 bytes) by default.
  9384. However, a suffix of B for Byte, K for KiB, M for MiB, G for GiB, T for
  9385. TiB and P for PiB may be used. These are the binary units, e.g. 1,
  9386. 2**10, 2**20, 2**30 respectively.
  9387. --backup-dir=DIR
  9388. When using sync, copy or move any files which would have been
  9389. overwritten or deleted are moved in their original hierarchy into this
  9390. directory.
  9391. If --suffix is set, then the moved files will have the suffix added to
  9392. them. If there is a file with the same path (after the suffix has been
  9393. added) in DIR, then it will be overwritten.
  9394. The remote in use must support server-side move or copy and you must use
  9395. the same remote as the destination of the sync. The backup directory
  9396. must not overlap the destination directory without it being excluded by
  9397. a filter rule.
  9398. For example
  9399. rclone sync --interactive /path/to/local remote:current --backup-dir remote:old
  9400. will sync /path/to/local to remote:current, but for any files which
  9401. would have been updated or deleted will be stored in remote:old.
  9402. If running rclone from a script you might want to use today's date as
  9403. the directory name passed to --backup-dir to store the old files, or you
  9404. might want to pass --suffix with today's date.
  9405. See --compare-dest and --copy-dest.
  9406. --bind string
  9407. Local address to bind to for outgoing connections. This can be an IPv4
  9408. address (1.2.3.4), an IPv6 address (1234::789A) or host name. If the
  9409. host name doesn't resolve or resolves to more than one IP address it
  9410. will give an error.
  9411. You can use --bind 0.0.0.0 to force rclone to use IPv4 addresses and
  9412. --bind ::0 to force rclone to use IPv6 addresses.
  9413. --bwlimit=BANDWIDTH_SPEC
  9414. This option controls the bandwidth limit. For example
  9415. --bwlimit 10M
  9416. would mean limit the upload and download bandwidth to 10 MiB/s. NB this
  9417. is bytes per second not bits per second. To use a single limit, specify
  9418. the desired bandwidth in KiB/s, or use a suffix B|K|M|G|T|P. The default
  9419. is 0 which means to not limit bandwidth.
  9420. The upload and download bandwidth can be specified separately, as
  9421. --bwlimit UP:DOWN, so
  9422. --bwlimit 10M:100k
  9423. would mean limit the upload bandwidth to 10 MiB/s and the download
  9424. bandwidth to 100 KiB/s. Either limit can be "off" meaning no limit, so
  9425. to just limit the upload bandwidth you would use
  9426. --bwlimit 10M:off
  9427. this would limit the upload bandwidth to 10 MiB/s but the download
  9428. bandwidth would be unlimited.
  9429. When specified as above the bandwidth limits last for the duration of
  9430. run of the rclone binary.
  9431. It is also possible to specify a "timetable" of limits, which will cause
  9432. certain limits to be applied at certain times. To specify a timetable,
  9433. format your entries as
  9434. WEEKDAY-HH:MM,BANDWIDTH WEEKDAY-HH:MM,BANDWIDTH... where: WEEKDAY is
  9435. optional element.
  9436. - BANDWIDTH can be a single number, e.g.100k or a pair of numbers for
  9437. upload:download, e.g.10M:1M.
  9438. - WEEKDAY can be written as the whole word or only using the first 3
  9439. characters. It is optional.
  9440. - HH:MM is an hour from 00:00 to 23:59.
  9441. An example of a typical timetable to avoid link saturation during
  9442. daytime working hours could be:
  9443. --bwlimit "08:00,512k 12:00,10M 13:00,512k 18:00,30M 23:00,off"
  9444. In this example, the transfer bandwidth will be set to 512 KiB/s at 8am
  9445. every day. At noon, it will rise to 10 MiB/s, and drop back to 512
  9446. KiB/sec at 1pm. At 6pm, the bandwidth limit will be set to 30 MiB/s, and
  9447. at 11pm it will be completely disabled (full speed). Anything between
  9448. 11pm and 8am will remain unlimited.
  9449. An example of timetable with WEEKDAY could be:
  9450. --bwlimit "Mon-00:00,512 Fri-23:59,10M Sat-10:00,1M Sun-20:00,off"
  9451. It means that, the transfer bandwidth will be set to 512 KiB/s on
  9452. Monday. It will rise to 10 MiB/s before the end of Friday. At 10:00 on
  9453. Saturday it will be set to 1 MiB/s. From 20:00 on Sunday it will be
  9454. unlimited.
  9455. Timeslots without WEEKDAY are extended to the whole week. So this
  9456. example:
  9457. --bwlimit "Mon-00:00,512 12:00,1M Sun-20:00,off"
  9458. Is equivalent to this:
  9459. --bwlimit "Mon-00:00,512Mon-12:00,1M Tue-12:00,1M Wed-12:00,1M Thu-12:00,1M Fri-12:00,1M Sat-12:00,1M Sun-12:00,1M Sun-20:00,off"
  9460. Bandwidth limit apply to the data transfer for all backends. For most
  9461. backends the directory listing bandwidth is also included (exceptions
  9462. being the non HTTP backends, ftp, sftp and storj).
  9463. Note that the units are Byte/s, not bit/s. Typically connections are
  9464. measured in bit/s - to convert divide by 8. For example, let's say you
  9465. have a 10 Mbit/s connection and you wish rclone to use half of it - 5
  9466. Mbit/s. This is 5/8 = 0.625 MiB/s so you would use a --bwlimit 0.625M
  9467. parameter for rclone.
  9468. On Unix systems (Linux, macOS, …) the bandwidth limiter can be toggled
  9469. by sending a SIGUSR2 signal to rclone. This allows to remove the
  9470. limitations of a long running rclone transfer and to restore it back to
  9471. the value specified with --bwlimit quickly when needed. Assuming there
  9472. is only one rclone instance running, you can toggle the limiter like
  9473. this:
  9474. kill -SIGUSR2 $(pidof rclone)
  9475. If you configure rclone with a remote control then you can use change
  9476. the bwlimit dynamically:
  9477. rclone rc core/bwlimit rate=1M
  9478. --bwlimit-file=BANDWIDTH_SPEC
  9479. This option controls per file bandwidth limit. For the options see the
  9480. --bwlimit flag.
  9481. For example use this to allow no transfers to be faster than 1 MiB/s
  9482. --bwlimit-file 1M
  9483. This can be used in conjunction with --bwlimit.
  9484. Note that if a schedule is provided the file will use the schedule in
  9485. effect at the start of the transfer.
  9486. --buffer-size=SIZE
  9487. Use this sized buffer to speed up file transfers. Each --transfer will
  9488. use this much memory for buffering.
  9489. When using mount or cmount each open file descriptor will use this much
  9490. memory for buffering. See the mount documentation for more details.
  9491. Set to 0 to disable the buffering for the minimum memory usage.
  9492. Note that the memory allocation of the buffers is influenced by the
  9493. --use-mmap flag.
  9494. --cache-dir=DIR
  9495. Specify the directory rclone will use for caching, to override the
  9496. default.
  9497. Default value is depending on operating system: - Windows
  9498. %LocalAppData%\rclone, if LocalAppData is defined. - macOS
  9499. $HOME/Library/Caches/rclone if HOME is defined. - Unix
  9500. $XDG_CACHE_HOME/rclone if XDG_CACHE_HOME is defined, else
  9501. $HOME/.cache/rclone if HOME is defined. - Fallback (on all OS) to
  9502. $TMPDIR/rclone, where TMPDIR is the value from --temp-dir.
  9503. You can use the config paths command to see the current value.
  9504. Cache directory is heavily used by the VFS File Caching mount feature,
  9505. but also by serve, GUI and other parts of rclone.
  9506. --check-first
  9507. If this flag is set then in a sync, copy or move, rclone will do all the
  9508. checks to see whether files need to be transferred before doing any of
  9509. the transfers. Normally rclone would start running transfers as soon as
  9510. possible.
  9511. This flag can be useful on IO limited systems where transfers interfere
  9512. with checking.
  9513. It can also be useful to ensure perfect ordering when using --order-by.
  9514. If both --check-first and --order-by are set when doing rclone move then
  9515. rclone will use the transfer thread to delete source files which don't
  9516. need transferring. This will enable perfect ordering of the transfers
  9517. and deletes but will cause the transfer stats to have more items in than
  9518. expected.
  9519. Using this flag can use more memory as it effectively sets --max-backlog
  9520. to infinite. This means that all the info on the objects to transfer is
  9521. held in memory before the transfers start.
  9522. --checkers=N
  9523. Originally controlling just the number of file checkers to run in
  9524. parallel, e.g. by rclone copy. Now a fairly universal parallelism
  9525. control used by rclone in several places.
  9526. Note: checkers do the equality checking of files during a sync. For some
  9527. storage systems (e.g. S3, Swift, Dropbox) this can take a significant
  9528. amount of time so they are run in parallel.
  9529. The default is to run 8 checkers in parallel. However, in case of
  9530. slow-reacting backends you may need to lower (rather than increase) this
  9531. default by setting --checkers to 4 or less threads. This is especially
  9532. advised if you are experiencing backend server crashes during file
  9533. checking phase (e.g. on subsequent or top-up backups where little or no
  9534. file copying is done and checking takes up most of the time). Increase
  9535. this setting only with utmost care, while monitoring your server health
  9536. and file checking throughput.
  9537. -c, --checksum
  9538. Normally rclone will look at modification time and size of files to see
  9539. if they are equal. If you set this flag then rclone will check the file
  9540. hash and size to determine if files are equal.
  9541. This is useful when the remote doesn't support setting modified time and
  9542. a more accurate sync is desired than just checking the file size.
  9543. This is very useful when transferring between remotes which store the
  9544. same hash type on the object, e.g. Drive and Swift. For details of which
  9545. remotes support which hash type see the table in the overview section.
  9546. Eg rclone --checksum sync s3:/bucket swift:/bucket would run much
  9547. quicker than without the --checksum flag.
  9548. When using this flag, rclone won't update mtimes of remote files if they
  9549. are incorrect as it would normally.
  9550. --color WHEN
  9551. Specify when colors (and other ANSI codes) should be added to the
  9552. output.
  9553. AUTO (default) only allows ANSI codes when the output is a terminal
  9554. NEVER never allow ANSI codes
  9555. ALWAYS always add ANSI codes, regardless of the output format (terminal
  9556. or file)
  9557. --compare-dest=DIR
  9558. When using sync, copy or move DIR is checked in addition to the
  9559. destination for files. If a file identical to the source is found that
  9560. file is NOT copied from source. This is useful to copy just files that
  9561. have changed since the last backup.
  9562. You must use the same remote as the destination of the sync. The compare
  9563. directory must not overlap the destination directory.
  9564. See --copy-dest and --backup-dir.
  9565. --config=CONFIG_FILE
  9566. Specify the location of the rclone configuration file, to override the
  9567. default. E.g. rclone config --config="rclone.conf".
  9568. The exact default is a bit complex to describe, due to changes
  9569. introduced through different versions of rclone while preserving
  9570. backwards compatibility, but in most cases it is as simple as:
  9571. - %APPDATA%/rclone/rclone.conf on Windows
  9572. - ~/.config/rclone/rclone.conf on other
  9573. The complete logic is as follows: Rclone will look for an existing
  9574. configuration file in any of the following locations, in priority order:
  9575. 1. rclone.conf (in program directory, where rclone executable is)
  9576. 2. %APPDATA%/rclone/rclone.conf (only on Windows)
  9577. 3. $XDG_CONFIG_HOME/rclone/rclone.conf (on all systems, including
  9578. Windows)
  9579. 4. ~/.config/rclone/rclone.conf (see below for explanation of ~ symbol)
  9580. 5. ~/.rclone.conf
  9581. If no existing configuration file is found, then a new one will be
  9582. created in the following location:
  9583. - On Windows: Location 2 listed above, except in the unlikely event
  9584. that APPDATA is not defined, then location 4 is used instead.
  9585. - On Unix: Location 3 if XDG_CONFIG_HOME is defined, else location 4.
  9586. - Fallback to location 5 (on all OS), when the rclone directory cannot
  9587. be created, but if also a home directory was not found then path
  9588. .rclone.conf relative to current working directory will be used as a
  9589. final resort.
  9590. The ~ symbol in paths above represent the home directory of the current
  9591. user on any OS, and the value is defined as following:
  9592. - On Windows: %HOME% if defined, else %USERPROFILE%, or else
  9593. %HOMEDRIVE%\%HOMEPATH%.
  9594. - On Unix: $HOME if defined, else by looking up current user in
  9595. OS-specific user database (e.g. passwd file), or else use the result
  9596. from shell command cd && pwd.
  9597. If you run rclone config file you will see where the default location is
  9598. for you.
  9599. The fact that an existing file rclone.conf in the same directory as the
  9600. rclone executable is always preferred, means that it is easy to run in
  9601. "portable" mode by downloading rclone executable to a writable directory
  9602. and then create an empty file rclone.conf in the same directory.
  9603. If the location is set to empty string "" or path to a file with name
  9604. notfound, or the os null device represented by value NUL on Windows and
  9605. /dev/null on Unix systems, then rclone will keep the config file in
  9606. memory only.
  9607. The file format is basic INI: Sections of text, led by a [section]
  9608. header and followed by key=value entries on separate lines. In rclone
  9609. each remote is represented by its own section, where the section name
  9610. defines the name of the remote. Options are specified as the key=value
  9611. entries, where the key is the option name without the --backend- prefix,
  9612. in lowercase and with _ instead of -. E.g. option --mega-hard-delete
  9613. corresponds to key hard_delete. Only backend options can be specified. A
  9614. special, and required, key type identifies the storage system, where the
  9615. value is the internal lowercase name as returned by command
  9616. rclone help backends. Comments are indicated by ; or # at the beginning
  9617. of a line.
  9618. Example:
  9619. [megaremote]
  9620. type = mega
  9621. user = you@example.com
  9622. pass = PDPcQVVjVtzFY-GTdDFozqBhTdsPg3qH
  9623. Note that passwords are in obscured form. Also, many storage systems
  9624. uses token-based authentication instead of passwords, and this requires
  9625. additional steps. It is easier, and safer, to use the interactive
  9626. command rclone config instead of manually editing the configuration
  9627. file.
  9628. The configuration file will typically contain login information, and
  9629. should therefore have restricted permissions so that only the current
  9630. user can read it. Rclone tries to ensure this when it writes the file.
  9631. You may also choose to encrypt the file.
  9632. When token-based authentication are used, the configuration file must be
  9633. writable, because rclone needs to update the tokens inside it.
  9634. To reduce risk of corrupting an existing configuration file, rclone will
  9635. not write directly to it when saving changes. Instead it will first
  9636. write to a new, temporary, file. If a configuration file already
  9637. existed, it will (on Unix systems) try to mirror its permissions to the
  9638. new file. Then it will rename the existing file to a temporary name as
  9639. backup. Next, rclone will rename the new file to the correct name,
  9640. before finally cleaning up by deleting the backup file.
  9641. If the configuration file path used by rclone is a symbolic link, then
  9642. this will be evaluated and rclone will write to the resolved path,
  9643. instead of overwriting the symbolic link. Temporary files used in the
  9644. process (described above) will be written to the same parent directory
  9645. as that of the resolved configuration file, but if this directory is
  9646. also a symbolic link it will not be resolved and the temporary files
  9647. will be written to the location of the directory symbolic link.
  9648. --contimeout=TIME
  9649. Set the connection timeout. This should be in go time format which looks
  9650. like 5s for 5 seconds, 10m for 10 minutes, or 3h30m.
  9651. The connection timeout is the amount of time rclone will wait for a
  9652. connection to go through to a remote object storage system. It is 1m by
  9653. default.
  9654. --copy-dest=DIR
  9655. When using sync, copy or move DIR is checked in addition to the
  9656. destination for files. If a file identical to the source is found that
  9657. file is server-side copied from DIR to the destination. This is useful
  9658. for incremental backup.
  9659. The remote in use must support server-side copy and you must use the
  9660. same remote as the destination of the sync. The compare directory must
  9661. not overlap the destination directory.
  9662. See --compare-dest and --backup-dir.
  9663. --dedupe-mode MODE
  9664. Mode to run dedupe command in. One of interactive, skip, first, newest,
  9665. oldest, rename. The default is interactive.
  9666. See the dedupe command for more information as to what these options
  9667. mean.
  9668. --default-time TIME
  9669. If a file or directory does have a modification time rclone can read
  9670. then rclone will display this fixed time instead.
  9671. The default is 2000-01-01 00:00:00 UTC. This can be configured in any of
  9672. the ways shown in the time or duration options.
  9673. For example --default-time 2020-06-01 to set the default time to the 1st
  9674. of June 2020 or --default-time 0s to set the default time to the time
  9675. rclone started up.
  9676. --disable FEATURE,FEATURE,...
  9677. This disables a comma separated list of optional features. For example
  9678. to disable server-side move and server-side copy use:
  9679. --disable move,copy
  9680. The features can be put in any case.
  9681. To see a list of which features can be disabled use:
  9682. --disable help
  9683. The features a remote has can be seen in JSON format with:
  9684. rclone backend features remote:
  9685. See the overview features and optional features to get an idea of which
  9686. feature does what.
  9687. Note that some features can be set to true if they are true/false
  9688. feature flag features by prefixing them with !. For example the
  9689. CaseInsensitive feature can be forced to false with
  9690. --disable CaseInsensitive and forced to true with
  9691. --disable '!CaseInsensitive'. In general it isn't a good idea doing this
  9692. but it may be useful in extremis.
  9693. (Note that ! is a shell command which you will need to escape with
  9694. single quotes or a backslash on unix like platforms.)
  9695. This flag can be useful for debugging and in exceptional circumstances
  9696. (e.g. Google Drive limiting the total volume of Server Side Copies to
  9697. 100 GiB/day).
  9698. --disable-http2
  9699. This stops rclone from trying to use HTTP/2 if available. This can
  9700. sometimes speed up transfers due to a problem in the Go standard
  9701. library.
  9702. --dscp VALUE
  9703. Specify a DSCP value or name to use in connections. This could help QoS
  9704. system to identify traffic class. BE, EF, DF, LE, CSx and AFxx are
  9705. allowed.
  9706. See the description of differentiated services to get an idea of this
  9707. field. Setting this to 1 (LE) to identify the flow to SCAVENGER class
  9708. can avoid occupying too much bandwidth in a network with DiffServ
  9709. support (RFC 8622).
  9710. For example, if you configured QoS on router to handle LE properly.
  9711. Running:
  9712. rclone copy --dscp LE from:/from to:/to
  9713. would make the priority lower than usual internet flows.
  9714. This option has no effect on Windows (see golang/go#42728).
  9715. -n, --dry-run
  9716. Do a trial run with no permanent changes. Use this to see what rclone
  9717. would do without actually doing it. Useful when setting up the sync
  9718. command which deletes files in the destination.
  9719. --expect-continue-timeout=TIME
  9720. This specifies the amount of time to wait for a server's first response
  9721. headers after fully writing the request headers if the request has an
  9722. "Expect: 100-continue" header. Not all backends support using this.
  9723. Zero means no timeout and causes the body to be sent immediately,
  9724. without waiting for the server to approve. This time does not include
  9725. the time to send the request header.
  9726. The default is 1s. Set to 0 to disable.
  9727. --error-on-no-transfer
  9728. By default, rclone will exit with return code 0 if there were no errors.
  9729. This option allows rclone to return exit code 9 if no files were
  9730. transferred between the source and destination. This allows using rclone
  9731. in scripts, and triggering follow-on actions if data was copied, or
  9732. skipping if not.
  9733. NB: Enabling this option turns a usually non-fatal error into a
  9734. potentially fatal one - please check and adjust your scripts
  9735. accordingly!
  9736. --fix-case
  9737. Normally, a sync to a case insensitive dest (such as macOS / Windows)
  9738. will not result in a matching filename if the source and dest filenames
  9739. have casing differences but are otherwise identical. For example,
  9740. syncing hello.txt to HELLO.txt will normally result in the dest filename
  9741. remaining HELLO.txt. If --fix-case is set, then HELLO.txt will be
  9742. renamed to hello.txt to match the source.
  9743. NB: - directory names with incorrect casing will also be fixed -
  9744. --fix-case will be ignored if --immutable is set - using
  9745. --local-case-sensitive instead is not advisable; it will cause HELLO.txt
  9746. to get deleted! - the old dest filename must not be excluded by filters.
  9747. Be especially careful with --files-from, which does not respect
  9748. --ignore-case! - on remotes that do not support server-side move,
  9749. --fix-case will require downloading the file and re-uploading it. To
  9750. avoid this, do not use --fix-case.
  9751. --fs-cache-expire-duration=TIME
  9752. When using rclone via the API rclone caches created remotes for 5
  9753. minutes by default in the "fs cache". This means that if you do repeated
  9754. actions on the same remote then rclone won't have to build it again from
  9755. scratch, which makes it more efficient.
  9756. This flag sets the time that the remotes are cached for. If you set it
  9757. to 0 (or negative) then rclone won't cache the remotes at all.
  9758. Note that if you use some flags, eg --backup-dir and if this is set to 0
  9759. rclone may build two remotes (one for the source or destination and one
  9760. for the --backup-dir where it may have only built one before.
  9761. --fs-cache-expire-interval=TIME
  9762. This controls how often rclone checks for cached remotes to expire. See
  9763. the --fs-cache-expire-duration documentation above for more info. The
  9764. default is 60s, set to 0 to disable expiry.
  9765. --header
  9766. Add an HTTP header for all transactions. The flag can be repeated to add
  9767. multiple headers.
  9768. If you want to add headers only for uploads use --header-upload and if
  9769. you want to add headers only for downloads use --header-download.
  9770. This flag is supported for all HTTP based backends even those not
  9771. supported by --header-upload and --header-download so may be used as a
  9772. workaround for those with care.
  9773. rclone ls remote:test --header "X-Rclone: Foo" --header "X-LetMeIn: Yes"
  9774. --header-download
  9775. Add an HTTP header for all download transactions. The flag can be
  9776. repeated to add multiple headers.
  9777. rclone sync --interactive s3:test/src ~/dst --header-download "X-Amz-Meta-Test: Foo" --header-download "X-Amz-Meta-Test2: Bar"
  9778. See the GitHub issue here for currently supported backends.
  9779. --header-upload
  9780. Add an HTTP header for all upload transactions. The flag can be repeated
  9781. to add multiple headers.
  9782. rclone sync --interactive ~/src s3:test/dst --header-upload "Content-Disposition: attachment; filename='cool.html'" --header-upload "X-Amz-Meta-Test: FooBar"
  9783. See the GitHub issue here for currently supported backends.
  9784. --human-readable
  9785. Rclone commands output values for sizes (e.g. number of bytes) and
  9786. counts (e.g. number of files) either as raw numbers, or in
  9787. human-readable format.
  9788. In human-readable format the values are scaled to larger units,
  9789. indicated with a suffix shown after the value, and rounded to three
  9790. decimals. Rclone consistently uses binary units (powers of 2) for sizes
  9791. and decimal units (powers of 10) for counts. The unit prefix for size is
  9792. according to IEC standard notation, e.g. Ki for kibi. Used with byte
  9793. unit, 1 KiB means 1024 Byte. In list type of output, only the unit
  9794. prefix appended to the value (e.g. 9.762Ki), while in more textual
  9795. output the full unit is shown (e.g. 9.762 KiB). For counts the SI
  9796. standard notation is used, e.g. prefix k for kilo. Used with file
  9797. counts, 1k means 1000 files.
  9798. The various list commands output raw numbers by default. Option
  9799. --human-readable will make them output values in human-readable format
  9800. instead (with the short unit prefix).
  9801. The about command outputs human-readable by default, with a
  9802. command-specific option --full to output the raw numbers instead.
  9803. Command size outputs both human-readable and raw numbers in the same
  9804. output.
  9805. The tree command also considers --human-readable, but it will not use
  9806. the exact same notation as the other commands: It rounds to one decimal,
  9807. and uses single letter suffix, e.g. K instead of Ki. The reason for this
  9808. is that it relies on an external library.
  9809. The interactive command ncdu shows human-readable by default, and
  9810. responds to key u for toggling human-readable format.
  9811. --ignore-case-sync
  9812. Using this option will cause rclone to ignore the case of the files when
  9813. synchronizing so files will not be copied/synced when the existing
  9814. filenames are the same, even if the casing is different.
  9815. --ignore-checksum
  9816. Normally rclone will check that the checksums of transferred files
  9817. match, and give an error "corrupted on transfer" if they don't.
  9818. You can use this option to skip that check. You should only use it if
  9819. you have had the "corrupted on transfer" error message and you are sure
  9820. you might want to transfer potentially corrupted data.
  9821. --ignore-existing
  9822. Using this option will make rclone unconditionally skip all files that
  9823. exist on the destination, no matter the content of these files.
  9824. While this isn't a generally recommended option, it can be useful in
  9825. cases where your files change due to encryption. However, it cannot
  9826. correct partial transfers in case a transfer was interrupted.
  9827. When performing a move/moveto command, this flag will leave skipped
  9828. files in the source location unchanged when a file with the same name
  9829. exists on the destination.
  9830. --ignore-size
  9831. Normally rclone will look at modification time and size of files to see
  9832. if they are equal. If you set this flag then rclone will check only the
  9833. modification time. If --checksum is set then it only checks the
  9834. checksum.
  9835. It will also cause rclone to skip verifying the sizes are the same after
  9836. transfer.
  9837. This can be useful for transferring files to and from OneDrive which
  9838. occasionally misreports the size of image files (see #399 for more
  9839. info).
  9840. -I, --ignore-times
  9841. Using this option will cause rclone to unconditionally upload all files
  9842. regardless of the state of files on the destination.
  9843. Normally rclone would skip any files that have the same modification
  9844. time and are the same size (or have the same checksum if using
  9845. --checksum).
  9846. --immutable
  9847. Treat source and destination files as immutable and disallow
  9848. modification.
  9849. With this option set, files will be created and deleted as requested,
  9850. but existing files will never be updated. If an existing file does not
  9851. match between the source and destination, rclone will give the error
  9852. Source and destination exist but do not match: immutable file modified.
  9853. Note that only commands which transfer files (e.g. sync, copy, move) are
  9854. affected by this behavior, and only modification is disallowed. Files
  9855. may still be deleted explicitly (e.g. delete, purge) or implicitly (e.g.
  9856. sync, move). Use copy --immutable if it is desired to avoid deletion as
  9857. well as modification.
  9858. This can be useful as an additional layer of protection for immutable or
  9859. append-only data sets (notably backup archives), where modification
  9860. implies corruption and should not be propagated.
  9861. --inplace
  9862. The --inplace flag changes the behaviour of rclone when uploading files
  9863. to some backends (backends with the PartialUploads feature flag set)
  9864. such as:
  9865. - local
  9866. - ftp
  9867. - sftp
  9868. Without --inplace (the default) rclone will first upload to a temporary
  9869. file with an extension like this, where XXXXXX represents a random
  9870. string and .partial is --partial-suffix value (.partial by default).
  9871. original-file-name.XXXXXX.partial
  9872. (rclone will make sure the final name is no longer than 100 characters
  9873. by truncating the original-file-name part if necessary).
  9874. When the upload is complete, rclone will rename the .partial file to the
  9875. correct name, overwriting any existing file at that point. If the upload
  9876. fails then the .partial file will be deleted.
  9877. This prevents other users of the backend from seeing partially uploaded
  9878. files in their new names and prevents overwriting the old file until the
  9879. new one is completely uploaded.
  9880. If the --inplace flag is supplied, rclone will upload directly to the
  9881. final name without creating a .partial file.
  9882. This means that an incomplete file will be visible in the directory
  9883. listings while the upload is in progress and any existing files will be
  9884. overwritten as soon as the upload starts. If the transfer fails then the
  9885. file will be deleted. This can cause data loss of the existing file if
  9886. the transfer fails.
  9887. Note that on the local file system if you don't use --inplace hard links
  9888. (Unix only) will be broken. And if you do use --inplace you won't be
  9889. able to update in use executables.
  9890. Note also that versions of rclone prior to v1.63.0 behave as if the
  9891. --inplace flag is always supplied.
  9892. -i, --interactive
  9893. This flag can be used to tell rclone that you wish a manual confirmation
  9894. before destructive operations.
  9895. It is recommended that you use this flag while learning rclone
  9896. especially with rclone sync.
  9897. For example
  9898. $ rclone delete --interactive /tmp/dir
  9899. rclone: delete "important-file.txt"?
  9900. y) Yes, this is OK (default)
  9901. n) No, skip this
  9902. s) Skip all delete operations with no more questions
  9903. !) Do all delete operations with no more questions
  9904. q) Exit rclone now.
  9905. y/n/s/!/q> n
  9906. The options mean
  9907. - y: Yes, this operation should go ahead. You can also press Return
  9908. for this to happen. You'll be asked every time unless you choose s
  9909. or !.
  9910. - n: No, do not do this operation. You'll be asked every time unless
  9911. you choose s or !.
  9912. - s: Skip all the following operations of this type with no more
  9913. questions. This takes effect until rclone exits. If there are any
  9914. different kind of operations you'll be prompted for them.
  9915. - !: Do all the following operations with no more questions. Useful if
  9916. you've decided that you don't mind rclone doing that kind of
  9917. operation. This takes effect until rclone exits . If there are any
  9918. different kind of operations you'll be prompted for them.
  9919. - q: Quit rclone now, just in case!
  9920. --leave-root
  9921. During rmdirs it will not remove root directory, even if it's empty.
  9922. --log-file=FILE
  9923. Log all of rclone's output to FILE. This is not active by default. This
  9924. can be useful for tracking down problems with syncs in combination with
  9925. the -v flag. See the Logging section for more info.
  9926. If FILE exists then rclone will append to it.
  9927. Note that if you are using the logrotate program to manage rclone's
  9928. logs, then you should use the copytruncate option as rclone doesn't have
  9929. a signal to rotate logs.
  9930. --log-format LIST
  9931. Comma separated list of log format options. Accepted options are date,
  9932. time, microseconds, pid, longfile, shortfile, UTC. Any other keywords
  9933. will be silently ignored. pid will tag log messages with process
  9934. identifier which useful with rclone mount --daemon. Other accepted
  9935. options are explained in the go documentation. The default log format is
  9936. "date,time".
  9937. --log-level LEVEL
  9938. This sets the log level for rclone. The default log level is NOTICE.
  9939. DEBUG is equivalent to -vv. It outputs lots of debug info - useful for
  9940. bug reports and really finding out what rclone is doing.
  9941. INFO is equivalent to -v. It outputs information about each transfer and
  9942. prints stats once a minute by default.
  9943. NOTICE is the default log level if no logging flags are supplied. It
  9944. outputs very little when things are working normally. It outputs
  9945. warnings and significant events.
  9946. ERROR is equivalent to -q. It only outputs error messages.
  9947. --use-json-log
  9948. This switches the log format to JSON for rclone. The fields of json log
  9949. are level, msg, source, time.
  9950. --low-level-retries NUMBER
  9951. This controls the number of low level retries rclone does.
  9952. A low level retry is used to retry a failing operation - typically one
  9953. HTTP request. This might be uploading a chunk of a big file for example.
  9954. You will see low level retries in the log with the -v flag.
  9955. This shouldn't need to be changed from the default in normal operations.
  9956. However, if you get a lot of low level retries you may wish to reduce
  9957. the value so rclone moves on to a high level retry (see the --retries
  9958. flag) quicker.
  9959. Disable low level retries with --low-level-retries 1.
  9960. --max-backlog=N
  9961. This is the maximum allowable backlog of files in a sync/copy/move
  9962. queued for being checked or transferred.
  9963. This can be set arbitrarily large. It will only use memory when the
  9964. queue is in use. Note that it will use in the order of N KiB of memory
  9965. when the backlog is in use.
  9966. Setting this large allows rclone to calculate how many files are pending
  9967. more accurately, give a more accurate estimated finish time and make
  9968. --order-by work more accurately.
  9969. Setting this small will make rclone more synchronous to the listings of
  9970. the remote which may be desirable.
  9971. Setting this to a negative number will make the backlog as large as
  9972. possible.
  9973. --max-delete=N
  9974. This tells rclone not to delete more than N files. If that limit is
  9975. exceeded then a fatal error will be generated and rclone will stop the
  9976. operation in progress.
  9977. --max-delete-size=SIZE
  9978. Rclone will stop deleting files when the total size of deletions has
  9979. reached the size specified. It defaults to off.
  9980. If that limit is exceeded then a fatal error will be generated and
  9981. rclone will stop the operation in progress.
  9982. --max-depth=N
  9983. This modifies the recursion depth for all the commands except purge.
  9984. So if you do rclone --max-depth 1 ls remote:path you will see only the
  9985. files in the top level directory. Using --max-depth 2 means you will see
  9986. all the files in first two directory levels and so on.
  9987. For historical reasons the lsd command defaults to using a --max-depth
  9988. of 1 - you can override this with the command line flag.
  9989. You can use this command to disable recursion (with --max-depth 1).
  9990. Note that if you use this with sync and --delete-excluded the files not
  9991. recursed through are considered excluded and will be deleted on the
  9992. destination. Test first with --dry-run if you are not sure what will
  9993. happen.
  9994. --max-duration=TIME
  9995. Rclone will stop transferring when it has run for the duration
  9996. specified. Defaults to off.
  9997. When the limit is reached all transfers will stop immediately. Use
  9998. --cutoff-mode to modify this behaviour.
  9999. Rclone will exit with exit code 10 if the duration limit is reached.
  10000. --max-transfer=SIZE
  10001. Rclone will stop transferring when it has reached the size specified.
  10002. Defaults to off.
  10003. When the limit is reached all transfers will stop immediately. Use
  10004. --cutoff-mode to modify this behaviour.
  10005. Rclone will exit with exit code 8 if the transfer limit is reached.
  10006. --cutoff-mode=hard|soft|cautious
  10007. This modifies the behavior of --max-transfer and --max-duration Defaults
  10008. to --cutoff-mode=hard.
  10009. Specifying --cutoff-mode=hard will stop transferring immediately when
  10010. Rclone reaches the limit.
  10011. Specifying --cutoff-mode=soft will stop starting new transfers when
  10012. Rclone reaches the limit.
  10013. Specifying --cutoff-mode=cautious will try to prevent Rclone from
  10014. reaching the limit. Only applicable for --max-transfer
  10015. -M, --metadata
  10016. Setting this flag enables rclone to copy the metadata from the source to
  10017. the destination. For local backends this is ownership, permissions,
  10018. xattr etc. See the metadata section for more info.
  10019. --metadata-mapper SpaceSepList
  10020. If you supply the parameter --metadata-mapper /path/to/program then
  10021. rclone will use that program to map metadata from source object to
  10022. destination object.
  10023. The argument to this flag should be a command with an optional space
  10024. separated list of arguments. If one of the arguments has a space in then
  10025. enclose it in ", if you want a literal " in an argument then enclose the
  10026. argument in " and double the ". See CSV encoding for more info.
  10027. --metadata-mapper "python bin/test_metadata_mapper.py"
  10028. --metadata-mapper 'python bin/test_metadata_mapper.py "argument with a space"'
  10029. --metadata-mapper 'python bin/test_metadata_mapper.py "argument with ""two"" quotes"'
  10030. This uses a simple JSON based protocol with input on STDIN and output on
  10031. STDOUT. This will be called for every file and directory copied and may
  10032. be called concurrently.
  10033. The program's job is to take a metadata blob on the input and turn it
  10034. into a metadata blob on the output suitable for the destination backend.
  10035. Input to the program (via STDIN) might look like this. This provides
  10036. some context for the Metadata which may be important.
  10037. - SrcFs is the config string for the remote that the object is
  10038. currently on.
  10039. - SrcFsType is the name of the source backend.
  10040. - DstFs is the config string for the remote that the object is being
  10041. copied to
  10042. - DstFsType is the name of the destination backend.
  10043. - Remote is the path of the object relative to the root.
  10044. - Size, MimeType, ModTime are attributes of the object.
  10045. - IsDir is true if this is a directory (not yet implemented).
  10046. - ID is the source ID of the object if known.
  10047. - Metadata is the backend specific metadata as described in the
  10048. backend docs.
  10049. {
  10050. "SrcFs": "gdrive:",
  10051. "SrcFsType": "drive",
  10052. "DstFs": "newdrive:user",
  10053. "DstFsType": "onedrive",
  10054. "Remote": "test.txt",
  10055. "Size": 6,
  10056. "MimeType": "text/plain; charset=utf-8",
  10057. "ModTime": "2022-10-11T17:53:10.286745272+01:00",
  10058. "IsDir": false,
  10059. "ID": "xyz",
  10060. "Metadata": {
  10061. "btime": "2022-10-11T16:53:11Z",
  10062. "content-type": "text/plain; charset=utf-8",
  10063. "mtime": "2022-10-11T17:53:10.286745272+01:00",
  10064. "owner": "user1@domain1.com",
  10065. "permissions": "...",
  10066. "description": "my nice file",
  10067. "starred": "false"
  10068. }
  10069. }
  10070. The program should then modify the input as desired and send it to
  10071. STDOUT. The returned Metadata field will be used in its entirety for the
  10072. destination object. Any other fields will be ignored. Note in this
  10073. example we translate user names and permissions and add something to the
  10074. description:
  10075. {
  10076. "Metadata": {
  10077. "btime": "2022-10-11T16:53:11Z",
  10078. "content-type": "text/plain; charset=utf-8",
  10079. "mtime": "2022-10-11T17:53:10.286745272+01:00",
  10080. "owner": "user1@domain2.com",
  10081. "permissions": "...",
  10082. "description": "my nice file [migrated from domain1]",
  10083. "starred": "false"
  10084. }
  10085. }
  10086. Metadata can be removed here too.
  10087. An example python program might look something like this to implement
  10088. the above transformations.
  10089. import sys, json
  10090. i = json.load(sys.stdin)
  10091. metadata = i["Metadata"]
  10092. # Add tag to description
  10093. if "description" in metadata:
  10094. metadata["description"] += " [migrated from domain1]"
  10095. else:
  10096. metadata["description"] = "[migrated from domain1]"
  10097. # Modify owner
  10098. if "owner" in metadata:
  10099. metadata["owner"] = metadata["owner"].replace("domain1.com", "domain2.com")
  10100. o = { "Metadata": metadata }
  10101. json.dump(o, sys.stdout, indent="\t")
  10102. You can find this example (slightly expanded) in the rclone source code
  10103. at bin/test_metadata_mapper.py.
  10104. If you want to see the input to the metadata mapper and the output
  10105. returned from it in the log you can use -vv --dump mapper.
  10106. See the metadata section for more info.
  10107. --metadata-set key=value
  10108. Add metadata key = value when uploading. This can be repeated as many
  10109. times as required. See the metadata section for more info.
  10110. --modify-window=TIME
  10111. When checking whether a file has been modified, this is the maximum
  10112. allowed time difference that a file can have and still be considered
  10113. equivalent.
  10114. The default is 1ns unless this is overridden by a remote. For example OS
  10115. X only stores modification times to the nearest second so if you are
  10116. reading and writing to an OS X filing system this will be 1s by default.
  10117. This command line flag allows you to override that computed default.
  10118. --multi-thread-write-buffer-size=SIZE
  10119. When transferring with multiple threads, rclone will buffer SIZE bytes
  10120. in memory before writing to disk for each thread.
  10121. This can improve performance if the underlying filesystem does not deal
  10122. well with a lot of small writes in different positions of the file, so
  10123. if you see transfers being limited by disk write speed, you might want
  10124. to experiment with different values. Specially for magnetic drives and
  10125. remote file systems a higher value can be useful.
  10126. Nevertheless, the default of 128k should be fine for almost all use
  10127. cases, so before changing it ensure that network is not really your
  10128. bottleneck.
  10129. As a final hint, size is not the only factor: block size (or similar
  10130. concept) can have an impact. In one case, we observed that exact
  10131. multiples of 16k performed much better than other values.
  10132. --multi-thread-chunk-size=SizeSuffix
  10133. Normally the chunk size for multi thread transfers is set by the
  10134. backend. However some backends such as local and smb (which implement
  10135. OpenWriterAt but not OpenChunkWriter) don't have a natural chunk size.
  10136. In this case the value of this option is used (default 64Mi).
  10137. --multi-thread-cutoff=SIZE
  10138. When transferring files above SIZE to capable backends, rclone will use
  10139. multiple threads to transfer the file (default 256M).
  10140. Capable backends are marked in the overview as MultithreadUpload. (They
  10141. need to implement either the OpenWriterAt or OpenChunkWriter internal
  10142. interfaces). These include include, local, s3, azureblob, b2,
  10143. oracleobjectstorage and smb at the time of writing.
  10144. On the local disk, rclone preallocates the file (using
  10145. fallocate(FALLOC_FL_KEEP_SIZE) on unix or NTSetInformationFile on
  10146. Windows both of which takes no time) then each thread writes directly
  10147. into the file at the correct place. This means that rclone won't create
  10148. fragmented or sparse files and there won't be any assembly time at the
  10149. end of the transfer.
  10150. The number of threads used to transfer is controlled by
  10151. --multi-thread-streams.
  10152. Use -vv if you wish to see info about the threads.
  10153. This will work with the sync/copy/move commands and friends
  10154. copyto/moveto. Multi thread transfers will be used with rclone mount and
  10155. rclone serve if --vfs-cache-mode is set to writes or above.
  10156. NB that this only works with supported backends as the destination but
  10157. will work with any backend as the source.
  10158. NB that multi-thread copies are disabled for local to local copies as
  10159. they are faster without unless --multi-thread-streams is set explicitly.
  10160. NB on Windows using multi-thread transfers to the local disk will cause
  10161. the resulting files to be sparse. Use --local-no-sparse to disable
  10162. sparse files (which may cause long delays at the start of transfers) or
  10163. disable multi-thread transfers with --multi-thread-streams 0
  10164. --multi-thread-streams=N
  10165. When using multi thread transfers (see above --multi-thread-cutoff) this
  10166. sets the number of streams to use. Set to 0 to disable multi thread
  10167. transfers (Default 4).
  10168. If the backend has a --backend-upload-concurrency setting (eg
  10169. --s3-upload-concurrency) then this setting will be used as the number of
  10170. transfers instead if it is larger than the value of
  10171. --multi-thread-streams or --multi-thread-streams isn't set.
  10172. --no-check-dest
  10173. The --no-check-dest can be used with move or copy and it causes rclone
  10174. not to check the destination at all when copying files.
  10175. This means that:
  10176. - the destination is not listed minimising the API calls
  10177. - files are always transferred
  10178. - this can cause duplicates on remotes which allow it (e.g. Google
  10179. Drive)
  10180. - --retries 1 is recommended otherwise you'll transfer everything
  10181. again on a retry
  10182. This flag is useful to minimise the transactions if you know that none
  10183. of the files are on the destination.
  10184. This is a specialized flag which should be ignored by most users!
  10185. --no-gzip-encoding
  10186. Don't set Accept-Encoding: gzip. This means that rclone won't ask the
  10187. server for compressed files automatically. Useful if you've set the
  10188. server to return files with Content-Encoding: gzip but you uploaded
  10189. compressed files.
  10190. There is no need to set this in normal operation, and doing so will
  10191. decrease the network transfer efficiency of rclone.
  10192. --no-traverse
  10193. The --no-traverse flag controls whether the destination file system is
  10194. traversed when using the copy or move commands. --no-traverse is not
  10195. compatible with sync and will be ignored if you supply it with sync.
  10196. If you are only copying a small number of files (or are filtering most
  10197. of the files) and/or have a large number of files on the destination
  10198. then --no-traverse will stop rclone listing the destination and save
  10199. time.
  10200. However, if you are copying a large number of files, especially if you
  10201. are doing a copy where lots of the files under consideration haven't
  10202. changed and won't need copying then you shouldn't use --no-traverse.
  10203. See rclone copy for an example of how to use it.
  10204. --no-unicode-normalization
  10205. Don't normalize unicode characters in filenames during the sync routine.
  10206. Sometimes, an operating system will store filenames containing unicode
  10207. parts in their decomposed form (particularly macOS). Some cloud storage
  10208. systems will then recompose the unicode, resulting in duplicate files if
  10209. the data is ever copied back to a local filesystem.
  10210. Using this flag will disable that functionality, treating each unicode
  10211. character as unique. For example, by default é and é will be normalized
  10212. into the same character. With --no-unicode-normalization they will be
  10213. treated as unique characters.
  10214. --no-update-modtime
  10215. When using this flag, rclone won't update modification times of remote
  10216. files if they are incorrect as it would normally.
  10217. This can be used if the remote is being synced with another tool also
  10218. (e.g. the Google Drive client).
  10219. --no-update-dir-modtime
  10220. When using this flag, rclone won't update modification times of remote
  10221. directories if they are incorrect as it would normally.
  10222. --order-by string
  10223. The --order-by flag controls the order in which files in the backlog are
  10224. processed in rclone sync, rclone copy and rclone move.
  10225. The order by string is constructed like this. The first part describes
  10226. what aspect is being measured:
  10227. - size - order by the size of the files
  10228. - name - order by the full path of the files
  10229. - modtime - order by the modification date of the files
  10230. This can have a modifier appended with a comma:
  10231. - ascending or asc - order so that the smallest (or oldest) is
  10232. processed first
  10233. - descending or desc - order so that the largest (or newest) is
  10234. processed first
  10235. - mixed - order so that the smallest is processed first for some
  10236. threads and the largest for others
  10237. If the modifier is mixed then it can have an optional percentage (which
  10238. defaults to 50), e.g. size,mixed,25 which means that 25% of the threads
  10239. should be taking the smallest items and 75% the largest. The threads
  10240. which take the smallest first will always take the smallest first and
  10241. likewise the largest first threads. The mixed mode can be useful to
  10242. minimise the transfer time when you are transferring a mixture of large
  10243. and small files - the large files are guaranteed upload threads and
  10244. bandwidth and the small files will be processed continuously.
  10245. If no modifier is supplied then the order is ascending.
  10246. For example
  10247. - --order-by size,desc - send the largest files first
  10248. - --order-by modtime,ascending - send the oldest files first
  10249. - --order-by name - send the files with alphabetically by path first
  10250. If the --order-by flag is not supplied or it is supplied with an empty
  10251. string then the default ordering will be used which is as scanned. With
  10252. --checkers 1 this is mostly alphabetical, however with the default
  10253. --checkers 8 it is somewhat random.
  10254. Limitations
  10255. The --order-by flag does not do a separate pass over the data. This
  10256. means that it may transfer some files out of the order specified if
  10257. - there are no files in the backlog or the source has not been fully
  10258. scanned yet
  10259. - there are more than --max-backlog files in the backlog
  10260. Rclone will do its best to transfer the best file it has so in practice
  10261. this should not cause a problem. Think of --order-by as being more of a
  10262. best efforts flag rather than a perfect ordering.
  10263. If you want perfect ordering then you will need to specify --check-first
  10264. which will find all the files which need transferring first before
  10265. transferring any.
  10266. --partial-suffix
  10267. When --inplace is not used, it causes rclone to use the --partial-suffix
  10268. as suffix for temporary files.
  10269. Suffix length limit is 16 characters.
  10270. The default is .partial.
  10271. --password-command SpaceSepList
  10272. This flag supplies a program which should supply the config password
  10273. when run. This is an alternative to rclone prompting for the password or
  10274. setting the RCLONE_CONFIG_PASS variable.
  10275. The argument to this should be a command with a space separated list of
  10276. arguments. If one of the arguments has a space in then enclose it in ",
  10277. if you want a literal " in an argument then enclose the argument in "
  10278. and double the ". See CSV encoding for more info.
  10279. Eg
  10280. --password-command "echo hello"
  10281. --password-command 'echo "hello with space"'
  10282. --password-command 'echo "hello with ""quotes"" and space"'
  10283. See the Configuration Encryption for more info.
  10284. See a Windows PowerShell example on the Wiki.
  10285. -P, --progress
  10286. This flag makes rclone update the stats in a static block in the
  10287. terminal providing a realtime overview of the transfer.
  10288. Any log messages will scroll above the static block. Log messages will
  10289. push the static block down to the bottom of the terminal where it will
  10290. stay.
  10291. Normally this is updated every 500mS but this period can be overridden
  10292. with the --stats flag.
  10293. This can be used with the --stats-one-line flag for a simpler display.
  10294. Note: On Windows until this bug is fixed all non-ASCII characters will
  10295. be replaced with . when --progress is in use.
  10296. --progress-terminal-title
  10297. This flag, when used with -P/--progress, will print the string ETA: %s
  10298. to the terminal title.
  10299. -q, --quiet
  10300. This flag will limit rclone's output to error messages only.
  10301. --refresh-times
  10302. The --refresh-times flag can be used to update modification times of
  10303. existing files when they are out of sync on backends which don't support
  10304. hashes.
  10305. This is useful if you uploaded files with the incorrect timestamps and
  10306. you now wish to correct them.
  10307. This flag is only useful for destinations which don't support hashes
  10308. (e.g. crypt).
  10309. This can be used any of the sync commands sync, copy or move.
  10310. To use this flag you will need to be doing a modification time sync (so
  10311. not using --size-only or --checksum). The flag will have no effect when
  10312. using --size-only or --checksum.
  10313. If this flag is used when rclone comes to upload a file it will check to
  10314. see if there is an existing file on the destination. If this file
  10315. matches the source with size (and checksum if available) but has a
  10316. differing timestamp then instead of re-uploading it, rclone will update
  10317. the timestamp on the destination file. If the checksum does not match
  10318. rclone will upload the new file. If the checksum is absent (e.g. on a
  10319. crypt backend) then rclone will update the timestamp.
  10320. Note that some remotes can't set the modification time without
  10321. re-uploading the file so this flag is less useful on them.
  10322. Normally if you are doing a modification time sync rclone will update
  10323. modification times without --refresh-times provided that the remote
  10324. supports checksums and the checksums match on the file. However if the
  10325. checksums are absent then rclone will upload the file rather than
  10326. setting the timestamp as this is the safe behaviour.
  10327. --retries int
  10328. Retry the entire sync if it fails this many times it fails (default 3).
  10329. Some remotes can be unreliable and a few retries help pick up the files
  10330. which didn't get transferred because of errors.
  10331. Disable retries with --retries 1.
  10332. --retries-sleep=TIME
  10333. This sets the interval between each retry specified by --retries
  10334. The default is 0. Use 0 to disable.
  10335. --server-side-across-configs
  10336. Allow server-side operations (e.g. copy or move) to work across
  10337. different configurations.
  10338. This can be useful if you wish to do a server-side copy or move between
  10339. two remotes which use the same backend but are configured differently.
  10340. Note that this isn't enabled by default because it isn't easy for rclone
  10341. to tell if it will work between any two configurations.
  10342. --size-only
  10343. Normally rclone will look at modification time and size of files to see
  10344. if they are equal. If you set this flag then rclone will check only the
  10345. size.
  10346. This can be useful transferring files from Dropbox which have been
  10347. modified by the desktop sync client which doesn't set checksums of
  10348. modification times in the same way as rclone.
  10349. --stats=TIME
  10350. Commands which transfer data (sync, copy, copyto, move, moveto) will
  10351. print data transfer stats at regular intervals to show their progress.
  10352. This sets the interval.
  10353. The default is 1m. Use 0 to disable.
  10354. If you set the stats interval then all commands can show stats. This can
  10355. be useful when running other commands, check or mount for example.
  10356. Stats are logged at INFO level by default which means they won't show at
  10357. default log level NOTICE. Use --stats-log-level NOTICE or -v to make
  10358. them show. See the Logging section for more info on log levels.
  10359. Note that on macOS you can send a SIGINFO (which is normally ctrl-T in
  10360. the terminal) to make the stats print immediately.
  10361. --stats-file-name-length integer
  10362. By default, the --stats output will truncate file names and paths longer
  10363. than 40 characters. This is equivalent to providing
  10364. --stats-file-name-length 40. Use --stats-file-name-length 0 to disable
  10365. any truncation of file names printed by stats.
  10366. --stats-log-level string
  10367. Log level to show --stats output at. This can be DEBUG, INFO, NOTICE, or
  10368. ERROR. The default is INFO. This means at the default level of logging
  10369. which is NOTICE the stats won't show - if you want them to then use
  10370. --stats-log-level NOTICE. See the Logging section for more info on log
  10371. levels.
  10372. --stats-one-line
  10373. When this is specified, rclone condenses the stats into a single line
  10374. showing the most important stats only.
  10375. --stats-one-line-date
  10376. When this is specified, rclone enables the single-line stats and
  10377. prepends the display with a date string. The default is
  10378. 2006/01/02 15:04:05 -
  10379. --stats-one-line-date-format
  10380. When this is specified, rclone enables the single-line stats and
  10381. prepends the display with a user-supplied date string. The date string
  10382. MUST be enclosed in quotes. Follow golang specs for date formatting
  10383. syntax.
  10384. --stats-unit=bits|bytes
  10385. By default, data transfer rates will be printed in bytes per second.
  10386. This option allows the data rate to be printed in bits per second.
  10387. Data transfer volume will still be reported in bytes.
  10388. The rate is reported as a binary unit, not SI unit. So 1 Mbit/s equals
  10389. 1,048,576 bit/s and not 1,000,000 bit/s.
  10390. The default is bytes.
  10391. --suffix=SUFFIX
  10392. When using sync, copy or move any files which would have been
  10393. overwritten or deleted will have the suffix added to them. If there is a
  10394. file with the same path (after the suffix has been added), then it will
  10395. be overwritten.
  10396. The remote in use must support server-side move or copy and you must use
  10397. the same remote as the destination of the sync.
  10398. This is for use with files to add the suffix in the current directory or
  10399. with --backup-dir. See --backup-dir for more info.
  10400. For example
  10401. rclone copy --interactive /path/to/local/file remote:current --suffix .bak
  10402. will copy /path/to/local to remote:current, but for any files which
  10403. would have been updated or deleted have .bak added.
  10404. If using rclone sync with --suffix and without --backup-dir then it is
  10405. recommended to put a filter rule in excluding the suffix otherwise the
  10406. sync will delete the backup files.
  10407. rclone sync --interactive /path/to/local/file remote:current --suffix .bak --exclude "*.bak"
  10408. --suffix-keep-extension
  10409. When using --suffix, setting this causes rclone put the SUFFIX before
  10410. the extension of the files that it backs up rather than after.
  10411. So let's say we had --suffix -2019-01-01, without the flag file.txt
  10412. would be backed up to file.txt-2019-01-01 and with the flag it would be
  10413. backed up to file-2019-01-01.txt. This can be helpful to make sure the
  10414. suffixed files can still be opened.
  10415. If a file has two (or more) extensions and the second (or subsequent)
  10416. extension is recognised as a valid mime type, then the suffix will go
  10417. before that extension. So file.tar.gz would be backed up to
  10418. file-2019-01-01.tar.gz whereas file.badextension.gz would be backed up
  10419. to file.badextension-2019-01-01.gz.
  10420. --syslog
  10421. On capable OSes (not Windows or Plan9) send all log output to syslog.
  10422. This can be useful for running rclone in a script or rclone mount.
  10423. --syslog-facility string
  10424. If using --syslog this sets the syslog facility (e.g. KERN, USER). See
  10425. man syslog for a list of possible facilities. The default facility is
  10426. DAEMON.
  10427. --temp-dir=DIR
  10428. Specify the directory rclone will use for temporary files, to override
  10429. the default. Make sure the directory exists and have accessible
  10430. permissions.
  10431. By default the operating system's temp directory will be used: - On Unix
  10432. systems, $TMPDIR if non-empty, else /tmp. - On Windows, the first
  10433. non-empty value from %TMP%, %TEMP%, %USERPROFILE%, or the Windows
  10434. directory.
  10435. When overriding the default with this option, the specified path will be
  10436. set as value of environment variable TMPDIR on Unix systems and TMP and
  10437. TEMP on Windows.
  10438. You can use the config paths command to see the current value.
  10439. --tpslimit float
  10440. Limit transactions per second to this number. Default is 0 which is used
  10441. to mean unlimited transactions per second.
  10442. A transaction is roughly defined as an API call; its exact meaning will
  10443. depend on the backend. For HTTP based backends it is an HTTP
  10444. PUT/GET/POST/etc and its response. For FTP/SFTP it is a round trip
  10445. transaction over TCP.
  10446. For example, to limit rclone to 10 transactions per second use
  10447. --tpslimit 10, or to 1 transaction every 2 seconds use --tpslimit 0.5.
  10448. Use this when the number of transactions per second from rclone is
  10449. causing a problem with the cloud storage provider (e.g. getting you
  10450. banned or rate limited).
  10451. This can be very useful for rclone mount to control the behaviour of
  10452. applications using it.
  10453. This limit applies to all HTTP based backends and to the FTP and SFTP
  10454. backends. It does not apply to the local backend or the Storj backend.
  10455. See also --tpslimit-burst.
  10456. --tpslimit-burst int
  10457. Max burst of transactions for --tpslimit (default 1).
  10458. Normally --tpslimit will do exactly the number of transaction per second
  10459. specified. However if you supply --tps-burst then rclone can save up
  10460. some transactions from when it was idle giving a burst of up to the
  10461. parameter supplied.
  10462. For example if you provide --tpslimit-burst 10 then if rclone has been
  10463. idle for more than 10*--tpslimit then it can do 10 transactions very
  10464. quickly before they are limited again.
  10465. This may be used to increase performance of --tpslimit without changing
  10466. the long term average number of transactions per second.
  10467. --track-renames
  10468. By default, rclone doesn't keep track of renamed files, so if you rename
  10469. a file locally then sync it to a remote, rclone will delete the old file
  10470. on the remote and upload a new copy.
  10471. An rclone sync with --track-renames runs like a normal sync, but keeps
  10472. track of objects which exist in the destination but not in the source
  10473. (which would normally be deleted), and which objects exist in the source
  10474. but not the destination (which would normally be transferred). These
  10475. objects are then candidates for renaming.
  10476. After the sync, rclone matches up the source only and destination only
  10477. objects using the --track-renames-strategy specified and either renames
  10478. the destination object or transfers the source and deletes the
  10479. destination object. --track-renames is stateless like all of rclone's
  10480. syncs.
  10481. To use this flag the destination must support server-side copy or
  10482. server-side move, and to use a hash based --track-renames-strategy (the
  10483. default) the source and the destination must have a compatible hash.
  10484. If the destination does not support server-side copy or move, rclone
  10485. will fall back to the default behaviour and log an error level message
  10486. to the console.
  10487. Encrypted destinations are not currently supported by --track-renames if
  10488. --track-renames-strategy includes hash.
  10489. Note that --track-renames is incompatible with --no-traverse and that it
  10490. uses extra memory to keep track of all the rename candidates.
  10491. Note also that --track-renames is incompatible with --delete-before and
  10492. will select --delete-after instead of --delete-during.
  10493. --track-renames-strategy (hash,modtime,leaf,size)
  10494. This option changes the file matching criteria for --track-renames.
  10495. The matching is controlled by a comma separated selection of these
  10496. tokens:
  10497. - modtime - the modification time of the file - not supported on all
  10498. backends
  10499. - hash - the hash of the file contents - not supported on all backends
  10500. - leaf - the name of the file not including its directory name
  10501. - size - the size of the file (this is always enabled)
  10502. The default option is hash.
  10503. Using --track-renames-strategy modtime,leaf would match files based on
  10504. modification time, the leaf of the file name and the size only.
  10505. Using --track-renames-strategy modtime or leaf can enable
  10506. --track-renames support for encrypted destinations.
  10507. Note that the hash strategy is not supported with encrypted
  10508. destinations.
  10509. --delete-(before,during,after)
  10510. This option allows you to specify when files on your destination are
  10511. deleted when you sync folders.
  10512. Specifying the value --delete-before will delete all files present on
  10513. the destination, but not on the source before starting the transfer of
  10514. any new or updated files. This uses two passes through the file systems,
  10515. one for the deletions and one for the copies.
  10516. Specifying --delete-during will delete files while checking and
  10517. uploading files. This is the fastest option and uses the least memory.
  10518. Specifying --delete-after (the default value) will delay deletion of
  10519. files until all new/updated files have been successfully transferred.
  10520. The files to be deleted are collected in the copy pass then deleted
  10521. after the copy pass has completed successfully. The files to be deleted
  10522. are held in memory so this mode may use more memory. This is the safest
  10523. mode as it will only delete files if there have been no errors
  10524. subsequent to that. If there have been errors before the deletions start
  10525. then you will get the message
  10526. not deleting files as there were IO errors.
  10527. --fast-list
  10528. When doing anything which involves a directory listing (e.g. sync, copy,
  10529. ls - in fact nearly every command), rclone has different strategies to
  10530. choose from.
  10531. The basic strategy is to list one directory and processes it before
  10532. using more directory lists to process any subdirectories. This is a
  10533. mandatory backend feature, called List, which means it is supported by
  10534. all backends. This strategy uses small amount of memory, and because it
  10535. can be parallelised it is fast for operations involving processing of
  10536. the list results.
  10537. Some backends provide the support for an alternative strategy, where all
  10538. files beneath a directory can be listed in one (or a small number) of
  10539. transactions. Rclone supports this alternative strategy through an
  10540. optional backend feature called ListR. You can see in the storage system
  10541. overview documentation's optional features section which backends it is
  10542. enabled for (these tend to be the bucket-based ones, e.g. S3, B2, GCS,
  10543. Swift). This strategy requires fewer transactions for highly recursive
  10544. operations, which is important on backends where this is charged or
  10545. heavily rate limited. It may be faster (due to fewer transactions) or
  10546. slower (because it can't be parallelized) depending on different
  10547. parameters, and may require more memory if rclone has to keep the whole
  10548. listing in memory.
  10549. Which listing strategy rclone picks for a given operation is
  10550. complicated, but in general it tries to choose the best possible. It
  10551. will prefer ListR in situations where it doesn't need to store the
  10552. listed files in memory, e.g. for unlimited recursive ls command
  10553. variants. In other situations it will prefer List, e.g. for sync and
  10554. copy, where it needs to keep the listed files in memory, and is
  10555. performing operations on them where parallelization may be a huge
  10556. advantage.
  10557. Rclone is not able to take all relevant parameters into account for
  10558. deciding the best strategy, and therefore allows you to influence the
  10559. choice in two ways: You can stop rclone from using ListR by disabling
  10560. the feature, using the --disable option (--disable ListR), or you can
  10561. allow rclone to use ListR where it would normally choose not to do so
  10562. due to higher memory usage, using the --fast-list option. Rclone should
  10563. always produce identical results either way. Using --disable ListR or
  10564. --fast-list on a remote which doesn't support ListR does nothing, rclone
  10565. will just ignore it.
  10566. A rule of thumb is that if you pay for transactions and can fit your
  10567. entire sync listing into memory, then --fast-list is recommended. If you
  10568. have a very big sync to do, then don't use --fast-list, otherwise you
  10569. will run out of memory. Run some tests and compare before you decide,
  10570. and if in doubt then just leave the default, let rclone decide, i.e. not
  10571. use --fast-list.
  10572. --timeout=TIME
  10573. This sets the IO idle timeout. If a transfer has started but then
  10574. becomes idle for this long it is considered broken and disconnected.
  10575. The default is 5m. Set to 0 to disable.
  10576. --transfers=N
  10577. The number of file transfers to run in parallel. It can sometimes be
  10578. useful to set this to a smaller number if the remote is giving a lot of
  10579. timeouts or bigger if you have lots of bandwidth and a fast remote.
  10580. The default is to run 4 file transfers in parallel.
  10581. Look at --multi-thread-streams if you would like to control single file
  10582. transfers.
  10583. -u, --update
  10584. This forces rclone to skip any files which exist on the destination and
  10585. have a modified time that is newer than the source file.
  10586. This can be useful in avoiding needless transfers when transferring to a
  10587. remote which doesn't support modification times directly (or when using
  10588. --use-server-modtime to avoid extra API calls) as it is more accurate
  10589. than a --size-only check and faster than using --checksum. On such
  10590. remotes (or when using --use-server-modtime) the time checked will be
  10591. the uploaded time.
  10592. If an existing destination file has a modification time older than the
  10593. source file's, it will be updated if the sizes are different. If the
  10594. sizes are the same, it will be updated if the checksum is different or
  10595. not available.
  10596. If an existing destination file has a modification time equal (within
  10597. the computed modify window) to the source file's, it will be updated if
  10598. the sizes are different. The checksum will not be checked in this case
  10599. unless the --checksum flag is provided.
  10600. In all other cases the file will not be updated.
  10601. Consider using the --modify-window flag to compensate for time skews
  10602. between the source and the backend, for backends that do not support mod
  10603. times, and instead use uploaded times. However, if the backend does not
  10604. support checksums, note that syncing or copying within the time skew
  10605. window may still result in additional transfers for safety.
  10606. --use-mmap
  10607. If this flag is set then rclone will use anonymous memory allocated by
  10608. mmap on Unix based platforms and VirtualAlloc on Windows for its
  10609. transfer buffers (size controlled by --buffer-size). Memory allocated
  10610. like this does not go on the Go heap and can be returned to the OS
  10611. immediately when it is finished with.
  10612. If this flag is not set then rclone will allocate and free the buffers
  10613. using the Go memory allocator which may use more memory as memory pages
  10614. are returned less aggressively to the OS.
  10615. It is possible this does not work well on all platforms so it is
  10616. disabled by default; in the future it may be enabled by default.
  10617. --use-server-modtime
  10618. Some object-store backends (e.g, Swift, S3) do not preserve file
  10619. modification times (modtime). On these backends, rclone stores the
  10620. original modtime as additional metadata on the object. By default it
  10621. will make an API call to retrieve the metadata when the modtime is
  10622. needed by an operation.
  10623. Use this flag to disable the extra API call and rely instead on the
  10624. server's modified time. In cases such as a local to remote sync using
  10625. --update, knowing the local file is newer than the time it was last
  10626. uploaded to the remote is sufficient. In those cases, this flag can
  10627. speed up the process and reduce the number of API calls necessary.
  10628. Using this flag on a sync operation without also using --update would
  10629. cause all files modified at any time other than the last upload time to
  10630. be uploaded again, which is probably not what you want.
  10631. -v, -vv, --verbose
  10632. With -v rclone will tell you about each file that is transferred and a
  10633. small number of significant events.
  10634. With -vv rclone will become very verbose telling you about every file it
  10635. considers and transfers. Please send bug reports with a log with this
  10636. setting.
  10637. When setting verbosity as an environment variable, use RCLONE_VERBOSE=1
  10638. or RCLONE_VERBOSE=2 for -v and -vv respectively.
  10639. -V, --version
  10640. Prints the version number
  10641. SSL/TLS options
  10642. The outgoing SSL/TLS connections rclone makes can be controlled with
  10643. these options. For example this can be very useful with the HTTP or
  10644. WebDAV backends. Rclone HTTP servers have their own set of configuration
  10645. for SSL/TLS which you can find in their documentation.
  10646. --ca-cert stringArray
  10647. This loads the PEM encoded certificate authority certificates and uses
  10648. it to verify the certificates of the servers rclone connects to.
  10649. If you have generated certificates signed with a local CA then you will
  10650. need this flag to connect to servers using those certificates.
  10651. --client-cert string
  10652. This loads the PEM encoded client side certificate.
  10653. This is used for mutual TLS authentication.
  10654. The --client-key flag is required too when using this.
  10655. --client-key string
  10656. This loads the PEM encoded client side private key used for mutual TLS
  10657. authentication. Used in conjunction with --client-cert.
  10658. --no-check-certificate=true/false
  10659. --no-check-certificate controls whether a client verifies the server's
  10660. certificate chain and host name. If --no-check-certificate is true, TLS
  10661. accepts any certificate presented by the server and any host name in
  10662. that certificate. In this mode, TLS is susceptible to man-in-the-middle
  10663. attacks.
  10664. This option defaults to false.
  10665. This should be used only for testing.
  10666. Configuration Encryption
  10667. Your configuration file contains information for logging in to your
  10668. cloud services. This means that you should keep your rclone.conf file in
  10669. a secure location.
  10670. If you are in an environment where that isn't possible, you can add a
  10671. password to your configuration. This means that you will have to supply
  10672. the password every time you start rclone.
  10673. To add a password to your rclone configuration, execute rclone config.
  10674. >rclone config
  10675. Current remotes:
  10676. e) Edit existing remote
  10677. n) New remote
  10678. d) Delete remote
  10679. s) Set configuration password
  10680. q) Quit config
  10681. e/n/d/s/q>
  10682. Go into s, Set configuration password:
  10683. e/n/d/s/q> s
  10684. Your configuration is not encrypted.
  10685. If you add a password, you will protect your login information to cloud services.
  10686. a) Add Password
  10687. q) Quit to main menu
  10688. a/q> a
  10689. Enter NEW configuration password:
  10690. password:
  10691. Confirm NEW password:
  10692. password:
  10693. Password set
  10694. Your configuration is encrypted.
  10695. c) Change Password
  10696. u) Unencrypt configuration
  10697. q) Quit to main menu
  10698. c/u/q>
  10699. Your configuration is now encrypted, and every time you start rclone you
  10700. will have to supply the password. See below for details. In the same
  10701. menu, you can change the password or completely remove encryption from
  10702. your configuration.
  10703. There is no way to recover the configuration if you lose your password.
  10704. rclone uses nacl secretbox which in turn uses XSalsa20 and Poly1305 to
  10705. encrypt and authenticate your configuration with secret-key
  10706. cryptography. The password is SHA-256 hashed, which produces the key for
  10707. secretbox. The hashed password is not stored.
  10708. While this provides very good security, we do not recommend storing your
  10709. encrypted rclone configuration in public if it contains sensitive
  10710. information, maybe except if you use a very strong password.
  10711. If it is safe in your environment, you can set the RCLONE_CONFIG_PASS
  10712. environment variable to contain your password, in which case it will be
  10713. used for decrypting the configuration.
  10714. You can set this for a session from a script. For unix like systems save
  10715. this to a file called set-rclone-password:
  10716. #!/bin/echo Source this file don't run it
  10717. read -s RCLONE_CONFIG_PASS
  10718. export RCLONE_CONFIG_PASS
  10719. Then source the file when you want to use it. From the shell you would
  10720. do source set-rclone-password. It will then ask you for the password and
  10721. set it in the environment variable.
  10722. An alternate means of supplying the password is to provide a script
  10723. which will retrieve the password and print on standard output. This
  10724. script should have a fully specified path name and not rely on any
  10725. environment variables. The script is supplied either via
  10726. --password-command="..." command line argument or via the
  10727. RCLONE_PASSWORD_COMMAND environment variable.
  10728. One useful example of this is using the passwordstore application to
  10729. retrieve the password:
  10730. export RCLONE_PASSWORD_COMMAND="pass rclone/config"
  10731. If the passwordstore password manager holds the password for the rclone
  10732. configuration, using the script method means the password is primarily
  10733. protected by the passwordstore system, and is never embedded in the
  10734. clear in scripts, nor available for examination using the standard
  10735. commands available. It is quite possible with long running rclone
  10736. sessions for copies of passwords to be innocently captured in log files
  10737. or terminal scroll buffers, etc. Using the script method of supplying
  10738. the password enhances the security of the config password considerably.
  10739. If you are running rclone inside a script, unless you are using the
  10740. --password-command method, you might want to disable password prompts.
  10741. To do that, pass the parameter --ask-password=false to rclone. This will
  10742. make rclone fail instead of asking for a password if RCLONE_CONFIG_PASS
  10743. doesn't contain a valid password, and --password-command has not been
  10744. supplied.
  10745. Whenever running commands that may be affected by options in a
  10746. configuration file, rclone will look for an existing file according to
  10747. the rules described above, and load any it finds. If an encrypted file
  10748. is found, this includes decrypting it, with the possible consequence of
  10749. a password prompt. When executing a command line that you know are not
  10750. actually using anything from such a configuration file, you can avoid it
  10751. being loaded by overriding the location, e.g. with one of the documented
  10752. special values for memory-only configuration. Since only backend options
  10753. can be stored in configuration files, this is normally unnecessary for
  10754. commands that do not operate on backends, e.g. genautocomplete. However,
  10755. it will be relevant for commands that do operate on backends in general,
  10756. but are used without referencing a stored remote, e.g. listing local
  10757. filesystem paths, or connection strings: rclone --config="" ls .
  10758. Developer options
  10759. These options are useful when developing or debugging rclone. There are
  10760. also some more remote specific options which aren't documented here
  10761. which are used for testing. These start with remote name e.g.
  10762. --drive-test-option - see the docs for the remote in question.
  10763. --cpuprofile=FILE
  10764. Write CPU profile to file. This can be analysed with go tool pprof.
  10765. --dump flag,flag,flag
  10766. The --dump flag takes a comma separated list of flags to dump info
  10767. about.
  10768. Note that some headers including Accept-Encoding as shown may not be
  10769. correct in the request and the response may not show Content-Encoding if
  10770. the go standard libraries auto gzip encoding was in effect. In this case
  10771. the body of the request will be gunzipped before showing it.
  10772. The available flags are:
  10773. --dump headers
  10774. Dump HTTP headers with Authorization: lines removed. May still contain
  10775. sensitive info. Can be very verbose. Useful for debugging only.
  10776. Use --dump auth if you do want the Authorization: headers.
  10777. --dump bodies
  10778. Dump HTTP headers and bodies - may contain sensitive info. Can be very
  10779. verbose. Useful for debugging only.
  10780. Note that the bodies are buffered in memory so don't use this for
  10781. enormous files.
  10782. --dump requests
  10783. Like --dump bodies but dumps the request bodies and the response
  10784. headers. Useful for debugging download problems.
  10785. --dump responses
  10786. Like --dump bodies but dumps the response bodies and the request
  10787. headers. Useful for debugging upload problems.
  10788. --dump auth
  10789. Dump HTTP headers - will contain sensitive info such as Authorization:
  10790. headers - use --dump headers to dump without Authorization: headers. Can
  10791. be very verbose. Useful for debugging only.
  10792. --dump filters
  10793. Dump the filters to the output. Useful to see exactly what include and
  10794. exclude options are filtering on.
  10795. --dump goroutines
  10796. This dumps a list of the running go-routines at the end of the command
  10797. to standard output.
  10798. --dump openfiles
  10799. This dumps a list of the open files at the end of the command. It uses
  10800. the lsof command to do that so you'll need that installed to use it.
  10801. --dump mapper
  10802. This shows the JSON blobs being sent to the program supplied with
  10803. --metadata-mapper and received from it. It can be useful for debugging
  10804. the metadata mapper interface.
  10805. --memprofile=FILE
  10806. Write memory profile to file. This can be analysed with go tool pprof.
  10807. Filtering
  10808. For the filtering options
  10809. - --delete-excluded
  10810. - --filter
  10811. - --filter-from
  10812. - --exclude
  10813. - --exclude-from
  10814. - --exclude-if-present
  10815. - --include
  10816. - --include-from
  10817. - --files-from
  10818. - --files-from-raw
  10819. - --min-size
  10820. - --max-size
  10821. - --min-age
  10822. - --max-age
  10823. - --dump filters
  10824. - --metadata-include
  10825. - --metadata-include-from
  10826. - --metadata-exclude
  10827. - --metadata-exclude-from
  10828. - --metadata-filter
  10829. - --metadata-filter-from
  10830. See the filtering section.
  10831. Remote control
  10832. For the remote control options and for instructions on how to remote
  10833. control rclone
  10834. - --rc
  10835. - and anything starting with --rc-
  10836. See the remote control section.
  10837. Logging
  10838. rclone has 4 levels of logging, ERROR, NOTICE, INFO and DEBUG.
  10839. By default, rclone logs to standard error. This means you can redirect
  10840. standard error and still see the normal output of rclone commands (e.g.
  10841. rclone ls).
  10842. By default, rclone will produce Error and Notice level messages.
  10843. If you use the -q flag, rclone will only produce Error messages.
  10844. If you use the -v flag, rclone will produce Error, Notice and Info
  10845. messages.
  10846. If you use the -vv flag, rclone will produce Error, Notice, Info and
  10847. Debug messages.
  10848. You can also control the log levels with the --log-level flag.
  10849. If you use the --log-file=FILE option, rclone will redirect Error, Info
  10850. and Debug messages along with standard error to FILE.
  10851. If you use the --syslog flag then rclone will log to syslog and the
  10852. --syslog-facility control which facility it uses.
  10853. Rclone prefixes all log messages with their level in capitals, e.g. INFO
  10854. which makes it easy to grep the log file for different kinds of
  10855. information.
  10856. Exit Code
  10857. If any errors occur during the command execution, rclone will exit with
  10858. a non-zero exit code. This allows scripts to detect when rclone
  10859. operations have failed.
  10860. During the startup phase, rclone will exit immediately if an error is
  10861. detected in the configuration. There will always be a log message
  10862. immediately before exiting.
  10863. When rclone is running it will accumulate errors as it goes along, and
  10864. only exit with a non-zero exit code if (after retries) there were still
  10865. failed transfers. For every error counted there will be a high priority
  10866. log message (visible with -q) showing the message and which file caused
  10867. the problem. A high priority message is also shown when starting a retry
  10868. so the user can see that any previous error messages may not be valid
  10869. after the retry. If rclone has done a retry it will log a high priority
  10870. message if the retry was successful.
  10871. List of exit codes
  10872. - 0 - success
  10873. - 1 - Syntax or usage error
  10874. - 2 - Error not otherwise categorised
  10875. - 3 - Directory not found
  10876. - 4 - File not found
  10877. - 5 - Temporary error (one that more retries might fix) (Retry errors)
  10878. - 6 - Less serious errors (like 461 errors from dropbox) (NoRetry
  10879. errors)
  10880. - 7 - Fatal error (one that more retries won't fix, like account
  10881. suspended) (Fatal errors)
  10882. - 8 - Transfer exceeded - limit set by --max-transfer reached
  10883. - 9 - Operation successful, but no files transferred
  10884. - 10 - Duration exceeded - limit set by --max-duration reached
  10885. Environment Variables
  10886. Rclone can be configured entirely using environment variables. These can
  10887. be used to set defaults for options or config file entries.
  10888. Options
  10889. Every option in rclone can have its default set by environment variable.
  10890. To find the name of the environment variable, first, take the long
  10891. option name, strip the leading --, change - to _, make upper case and
  10892. prepend RCLONE_.
  10893. For example, to always set --stats 5s, set the environment variable
  10894. RCLONE_STATS=5s. If you set stats on the command line this will override
  10895. the environment variable setting.
  10896. Or to always use the trash in drive --drive-use-trash, set
  10897. RCLONE_DRIVE_USE_TRASH=true.
  10898. Verbosity is slightly different, the environment variable equivalent of
  10899. --verbose or -v is RCLONE_VERBOSE=1, or for -vv, RCLONE_VERBOSE=2.
  10900. The same parser is used for the options and the environment variables so
  10901. they take exactly the same form.
  10902. The options set by environment variables can be seen with the -vv flag,
  10903. e.g. rclone version -vv.
  10904. Config file
  10905. You can set defaults for values in the config file on an individual
  10906. remote basis. The names of the config items are documented in the page
  10907. for each backend.
  10908. To find the name of the environment variable, you need to set, take
  10909. RCLONE_CONFIG_ + name of remote + _ + name of config file option and
  10910. make it all uppercase. Note one implication here is the remote's name
  10911. must be convertible into a valid environment variable name, so it can
  10912. only contain letters, digits, or the _ (underscore) character.
  10913. For example, to configure an S3 remote named mys3: without a config file
  10914. (using unix ways of setting environment variables):
  10915. $ export RCLONE_CONFIG_MYS3_TYPE=s3
  10916. $ export RCLONE_CONFIG_MYS3_ACCESS_KEY_ID=XXX
  10917. $ export RCLONE_CONFIG_MYS3_SECRET_ACCESS_KEY=XXX
  10918. $ rclone lsd mys3:
  10919. -1 2016-09-21 12:54:21 -1 my-bucket
  10920. $ rclone listremotes | grep mys3
  10921. mys3:
  10922. Note that if you want to create a remote using environment variables you
  10923. must create the ..._TYPE variable as above.
  10924. Note that the name of a remote created using environment variable is
  10925. case insensitive, in contrast to regular remotes stored in config file
  10926. as documented above. You must write the name in uppercase in the
  10927. environment variable, but as seen from example above it will be listed
  10928. and can be accessed in lowercase, while you can also refer to the same
  10929. remote in uppercase:
  10930. $ rclone lsd mys3:
  10931. -1 2016-09-21 12:54:21 -1 my-bucket
  10932. $ rclone lsd MYS3:
  10933. -1 2016-09-21 12:54:21 -1 my-bucket
  10934. Note that you can only set the options of the immediate backend, so
  10935. RCLONE_CONFIG_MYS3CRYPT_ACCESS_KEY_ID has no effect, if myS3Crypt is a
  10936. crypt remote based on an S3 remote. However RCLONE_S3_ACCESS_KEY_ID will
  10937. set the access key of all remotes using S3, including myS3Crypt.
  10938. Note also that now rclone has connection strings, it is probably easier
  10939. to use those instead which makes the above example
  10940. rclone lsd :s3,access_key_id=XXX,secret_access_key=XXX:
  10941. Precedence
  10942. The various different methods of backend configuration are read in this
  10943. order and the first one with a value is used.
  10944. - Parameters in connection strings, e.g. myRemote,skip_links:
  10945. - Flag values as supplied on the command line, e.g. --skip-links
  10946. - Remote specific environment vars, e.g.
  10947. RCLONE_CONFIG_MYREMOTE_SKIP_LINKS (see above).
  10948. - Backend-specific environment vars, e.g. RCLONE_LOCAL_SKIP_LINKS.
  10949. - Backend generic environment vars, e.g. RCLONE_SKIP_LINKS.
  10950. - Config file, e.g. skip_links = true.
  10951. - Default values, e.g. false - these can't be changed.
  10952. So if both --skip-links is supplied on the command line and an
  10953. environment variable RCLONE_LOCAL_SKIP_LINKS is set, the command line
  10954. flag will take preference.
  10955. The backend configurations set by environment variables can be seen with
  10956. the -vv flag, e.g. rclone about myRemote: -vv.
  10957. For non backend configuration the order is as follows:
  10958. - Flag values as supplied on the command line, e.g. --stats 5s.
  10959. - Environment vars, e.g. RCLONE_STATS=5s.
  10960. - Default values, e.g. 1m - these can't be changed.
  10961. Other environment variables
  10962. - RCLONE_CONFIG_PASS set to contain your config file password (see
  10963. Configuration Encryption section)
  10964. - HTTP_PROXY, HTTPS_PROXY and NO_PROXY (or the lowercase versions
  10965. thereof).
  10966. - HTTPS_PROXY takes precedence over HTTP_PROXY for https requests.
  10967. - The environment values may be either a complete URL or a
  10968. "host[:port]" for, in which case the "http" scheme is assumed.
  10969. - USER and LOGNAME values are used as fallbacks for current username.
  10970. The primary method for looking up username is OS-specific: Windows
  10971. API on Windows, real user ID in /etc/passwd on Unix systems. In the
  10972. documentation the current username is simply referred to as $USER.
  10973. - RCLONE_CONFIG_DIR - rclone sets this variable for use in config
  10974. files and sub processes to point to the directory holding the config
  10975. file.
  10976. The options set by environment variables can be seen with the -vv and
  10977. --log-level=DEBUG flags, e.g. rclone version -vv.
  10978. Configuring rclone on a remote / headless machine
  10979. Some of the configurations (those involving oauth2) require an Internet
  10980. connected web browser.
  10981. If you are trying to set rclone up on a remote or headless box with no
  10982. browser available on it (e.g. a NAS or a server in a datacenter) then
  10983. you will need to use an alternative means of configuration. There are
  10984. two ways of doing it, described below.
  10985. Configuring using rclone authorize
  10986. On the headless box run rclone config but answer N to the
  10987. Use web browser to automatically authenticate? question.
  10988. ...
  10989. Remote config
  10990. Use web browser to automatically authenticate rclone with remote?
  10991. * Say Y if the machine running rclone has a web browser you can use
  10992. * Say N if running rclone on a (remote) machine without web browser access
  10993. If not sure try Y. If Y failed, try N.
  10994. y) Yes (default)
  10995. n) No
  10996. y/n> n
  10997. For this to work, you will need rclone available on a machine that has
  10998. a web browser available.
  10999. For more help and alternate methods see: https://rclone.org/remote_setup/
  11000. Execute the following on the machine with the web browser (same rclone
  11001. version recommended):
  11002. rclone authorize "dropbox"
  11003. Then paste the result below:
  11004. result>
  11005. Then on your main desktop machine
  11006. rclone authorize "dropbox"
  11007. If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
  11008. Log in and authorize rclone for access
  11009. Waiting for code...
  11010. Got code
  11011. Paste the following into your remote machine --->
  11012. SECRET_TOKEN
  11013. <---End paste
  11014. Then back to the headless box, paste in the code
  11015. result> SECRET_TOKEN
  11016. --------------------
  11017. [acd12]
  11018. client_id =
  11019. client_secret =
  11020. token = SECRET_TOKEN
  11021. --------------------
  11022. y) Yes this is OK
  11023. e) Edit this remote
  11024. d) Delete this remote
  11025. y/e/d>
  11026. Configuring by copying the config file
  11027. Rclone stores all of its config in a single configuration file. This can
  11028. easily be copied to configure a remote rclone.
  11029. So first configure rclone on your desktop machine with
  11030. rclone config
  11031. to set up the config file.
  11032. Find the config file by running rclone config file, for example
  11033. $ rclone config file
  11034. Configuration file is stored at:
  11035. /home/user/.rclone.conf
  11036. Now transfer it to the remote box (scp, cut paste, ftp, sftp, etc.) and
  11037. place it in the correct place (use rclone config file on the remote box
  11038. to find out where).
  11039. Configuring using SSH Tunnel
  11040. Linux and MacOS users can utilize SSH Tunnel to redirect the headless
  11041. box port 53682 to local machine by using the following command:
  11042. ssh -L localhost:53682:localhost:53682 username@remote_server
  11043. Then on the headless box run rclone config and answer Y to the
  11044. Use web browser to automatically authenticate? question.
  11045. ...
  11046. Remote config
  11047. Use web browser to automatically authenticate rclone with remote?
  11048. * Say Y if the machine running rclone has a web browser you can use
  11049. * Say N if running rclone on a (remote) machine without web browser access
  11050. If not sure try Y. If Y failed, try N.
  11051. y) Yes (default)
  11052. n) No
  11053. y/n> y
  11054. Then copy and paste the auth url
  11055. http://127.0.0.1:53682/auth?state=xxxxxxxxxxxx to the browser on your
  11056. local machine, complete the auth and it is done.
  11057. Filtering, includes and excludes
  11058. Filter flags determine which files rclone sync, move, ls, lsl, md5sum,
  11059. sha1sum, size, delete, check and similar commands apply to.
  11060. They are specified in terms of path/file name patterns; path/file lists;
  11061. file age and size, or presence of a file in a directory. Bucket based
  11062. remotes without the concept of directory apply filters to object key,
  11063. age and size in an analogous way.
  11064. Rclone purge does not obey filters.
  11065. To test filters without risk of damage to data, apply them to rclone ls,
  11066. or with the --dry-run and -vv flags.
  11067. Rclone filter patterns can only be used in filter command line options,
  11068. not in the specification of a remote.
  11069. E.g. rclone copy "remote:dir*.jpg" /path/to/dir does not have a filter
  11070. effect. rclone copy remote:dir /path/to/dir --include "*.jpg" does.
  11071. Important Avoid mixing any two of --include..., --exclude... or
  11072. --filter... flags in an rclone command. The results might not be what
  11073. you expect. Instead use a --filter... flag.
  11074. Patterns for matching path/file names
  11075. Pattern syntax
  11076. Here is a formal definition of the pattern syntax, examples are below.
  11077. Rclone matching rules follow a glob style:
  11078. * matches any sequence of non-separator (/) characters
  11079. ** matches any sequence of characters including / separators
  11080. ? matches any single non-separator (/) character
  11081. [ [ ! ] { character-range } ]
  11082. character class (must be non-empty)
  11083. { pattern-list }
  11084. pattern alternatives
  11085. {{ regexp }}
  11086. regular expression to match
  11087. c matches character c (c != *, **, ?, \, [, {, })
  11088. \c matches reserved character c (c = *, **, ?, \, [, {, }) or character class
  11089. character-range:
  11090. c matches character c (c != \, -, ])
  11091. \c matches reserved character c (c = \, -, ])
  11092. lo - hi matches character c for lo <= c <= hi
  11093. pattern-list:
  11094. pattern { , pattern }
  11095. comma-separated (without spaces) patterns
  11096. character classes (see Go regular expression reference) include:
  11097. Named character classes (e.g. [\d], [^\d], [\D], [^\D])
  11098. Perl character classes (e.g. \s, \S, \w, \W)
  11099. ASCII character classes (e.g. [[:alnum:]], [[:alpha:]], [[:punct:]], [[:xdigit:]])
  11100. regexp for advanced users to insert a regular expression - see below for
  11101. more info:
  11102. Any re2 regular expression not containing `}}`
  11103. If the filter pattern starts with a / then it only matches at the top
  11104. level of the directory tree, relative to the root of the remote (not
  11105. necessarily the root of the drive). If it does not start with / then it
  11106. is matched starting at the end of the path/file name but it only matches
  11107. a complete path element - it must match from a / separator or the
  11108. beginning of the path/file.
  11109. file.jpg - matches "file.jpg"
  11110. - matches "directory/file.jpg"
  11111. - doesn't match "afile.jpg"
  11112. - doesn't match "directory/afile.jpg"
  11113. /file.jpg - matches "file.jpg" in the root directory of the remote
  11114. - doesn't match "afile.jpg"
  11115. - doesn't match "directory/file.jpg"
  11116. The top level of the remote might not be the top level of the drive.
  11117. E.g. for a Microsoft Windows local directory structure
  11118. F:
  11119. ├── bkp
  11120. ├── data
  11121. │ ├── excl
  11122. │ │ ├── 123.jpg
  11123. │ │ └── 456.jpg
  11124. │ ├── incl
  11125. │ │ └── document.pdf
  11126. To copy the contents of folder data into folder bkp excluding the
  11127. contents of subfolder exclthe following command treats F:\data and
  11128. F:\bkp as top level for filtering.
  11129. rclone copy F:\data\ F:\bkp\ --exclude=/excl/**
  11130. Important Use / in path/file name patterns and not \ even if running on
  11131. Microsoft Windows.
  11132. Simple patterns are case sensitive unless the --ignore-case flag is
  11133. used.
  11134. Without --ignore-case (default)
  11135. potato - matches "potato"
  11136. - doesn't match "POTATO"
  11137. With --ignore-case
  11138. potato - matches "potato"
  11139. - matches "POTATO"
  11140. Using regular expressions in filter patterns
  11141. The syntax of filter patterns is glob style matching (like bash uses) to
  11142. make things easy for users. However this does not provide absolute
  11143. control over the matching, so for advanced users rclone also provides a
  11144. regular expression syntax.
  11145. The regular expressions used are as defined in the Go regular expression
  11146. reference. Regular expressions should be enclosed in {{ }}. They will
  11147. match only the last path segment if the glob doesn't start with / or the
  11148. whole path name if it does. Note that rclone does not attempt to parse
  11149. the supplied regular expression, meaning that using any regular
  11150. expression filter will prevent rclone from using directory filter rules,
  11151. as it will instead check every path against the supplied regular
  11152. expression(s).
  11153. Here is how the {{regexp}} is transformed into an full regular
  11154. expression to match the entire path:
  11155. {{regexp}} becomes (^|/)(regexp)$
  11156. /{{regexp}} becomes ^(regexp)$
  11157. Regexp syntax can be mixed with glob syntax, for example
  11158. *.{{jpe?g}} to match file.jpg, file.jpeg but not file.png
  11159. You can also use regexp flags - to set case insensitive, for example
  11160. *.{{(?i)jpg}} to match file.jpg, file.JPG but not file.png
  11161. Be careful with wildcards in regular expressions - you don't want them
  11162. to match path separators normally. To match any file name starting with
  11163. start and ending with end write
  11164. {{start[^/]*end\.jpg}}
  11165. Not
  11166. {{start.*end\.jpg}}
  11167. Which will match a directory called start with a file called end.jpg in
  11168. it as the .* will match / characters.
  11169. Note that you can use -vv --dump filters to show the filter patterns in
  11170. regexp format - rclone implements the glob patterns by transforming them
  11171. into regular expressions.
  11172. Filter pattern examples
  11173. Description Pattern Matches Does not match
  11174. --------------- ---------------- ------------------------------- ------------------
  11175. Wildcard *.jpg /file.jpg /file.png
  11176. /dir/file.jpg /dir/file.png
  11177. Rooted /*.jpg /file.jpg /file.png
  11178. /file2.jpg /dir/file.jpg
  11179. Alternates *.{jpg,png} /file.jpg /file.gif
  11180. /dir/file.png /dir/file.gif
  11181. Path Wildcard dir/** /dir/anyfile file.png
  11182. /subdir/dir/subsubdir/anyfile /subdir/file.png
  11183. Any Char *.t?t /file.txt /file.qxt
  11184. /dir/file.tzt /dir/file.png
  11185. Range *.[a-z] /file.a /file.0
  11186. /dir/file.b /dir/file.1
  11187. Escape *.\?\?\? /file.??? /file.abc
  11188. /dir/file.??? /dir/file.def
  11189. Class *.\d\d\d /file.012 /file.abc
  11190. /dir/file.345 /dir/file.def
  11191. Regexp *.{{jpe?g}} /file.jpeg /file.png
  11192. /dir/file.jpg /dir/file.jpeeg
  11193. Rooted Regexp /{{.*\.jpe?g}} /file.jpeg /file.png
  11194. /file.jpg /dir/file.jpg
  11195. How filter rules are applied to files
  11196. Rclone path/file name filters are made up of one or more of the
  11197. following flags:
  11198. - --include
  11199. - --include-from
  11200. - --exclude
  11201. - --exclude-from
  11202. - --filter
  11203. - --filter-from
  11204. There can be more than one instance of individual flags.
  11205. Rclone internally uses a combined list of all the include and exclude
  11206. rules. The order in which rules are processed can influence the result
  11207. of the filter.
  11208. All flags of the same type are processed together in the order above,
  11209. regardless of what order the different types of flags are included on
  11210. the command line.
  11211. Multiple instances of the same flag are processed from left to right
  11212. according to their position in the command line.
  11213. To mix up the order of processing includes and excludes use --filter...
  11214. flags.
  11215. Within --include-from, --exclude-from and --filter-from flags rules are
  11216. processed from top to bottom of the referenced file.
  11217. If there is an --include or --include-from flag specified, rclone
  11218. implies a - ** rule which it adds to the bottom of the internal rule
  11219. list. Specifying a + rule with a --filter... flag does not imply that
  11220. rule.
  11221. Each path/file name passed through rclone is matched against the
  11222. combined filter list. At first match to a rule the path/file name is
  11223. included or excluded and no further filter rules are processed for that
  11224. path/file.
  11225. If rclone does not find a match, after testing against all rules
  11226. (including the implied rule if appropriate), the path/file name is
  11227. included.
  11228. Any path/file included at that stage is processed by the rclone command.
  11229. --files-from and --files-from-raw flags over-ride and cannot be combined
  11230. with other filter options.
  11231. To see the internal combined rule list, in regular expression form, for
  11232. a command add the --dump filters flag. Running an rclone command with
  11233. --dump filters and -vv flags lists the internal filter elements and
  11234. shows how they are applied to each source path/file. There is not
  11235. currently a means provided to pass regular expression filter options
  11236. into rclone directly though character class filter rules contain
  11237. character classes. Go regular expression reference
  11238. How filter rules are applied to directories
  11239. Rclone commands are applied to path/file names not directories. The
  11240. entire contents of a directory can be matched to a filter by the pattern
  11241. directory/* or recursively by directory/**.
  11242. Directory filter rules are defined with a closing / separator.
  11243. E.g. /directory/subdirectory/ is an rclone directory filter rule.
  11244. Rclone commands can use directory filter rules to determine whether they
  11245. recurse into subdirectories. This potentially optimises access to a
  11246. remote by avoiding listing unnecessary directories. Whether optimisation
  11247. is desirable depends on the specific filter rules and source remote
  11248. content.
  11249. If any regular expression filters are in use, then no directory
  11250. recursion optimisation is possible, as rclone must check every path
  11251. against the supplied regular expression(s).
  11252. Directory recursion optimisation occurs if either:
  11253. - A source remote does not support the rclone ListR primitive. local,
  11254. sftp, Microsoft OneDrive and WebDAV do not support ListR. Google
  11255. Drive and most bucket type storage do. Full list
  11256. - On other remotes (those that support ListR), if the rclone command
  11257. is not naturally recursive, and provided it is not run with the
  11258. --fast-list flag. ls, lsf -R and size are naturally recursive but
  11259. sync, copy and move are not.
  11260. - Whenever the --disable ListR flag is applied to an rclone command.
  11261. Rclone commands imply directory filter rules from path/file filter
  11262. rules. To view the directory filter rules rclone has implied for a
  11263. command specify the --dump filters flag.
  11264. E.g. for an include rule
  11265. /a/*.jpg
  11266. Rclone implies the directory include rule
  11267. /a/
  11268. Directory filter rules specified in an rclone command can limit the
  11269. scope of an rclone command but path/file filters still have to be
  11270. specified.
  11271. E.g. rclone ls remote: --include /directory/ will not match any files.
  11272. Because it is an --include option the --exclude ** rule is implied, and
  11273. the /directory/ pattern serves only to optimise access to the remote by
  11274. ignoring everything outside of that directory.
  11275. E.g. rclone ls remote: --filter-from filter-list.txt with a file
  11276. filter-list.txt:
  11277. - /dir1/
  11278. - /dir2/
  11279. + *.pdf
  11280. - **
  11281. All files in directories dir1 or dir2 or their subdirectories are
  11282. completely excluded from the listing. Only files of suffix pdf in the
  11283. root of remote: or its subdirectories are listed. The - ** rule prevents
  11284. listing of any path/files not previously matched by the rules above.
  11285. Option exclude-if-present creates a directory exclude rule based on the
  11286. presence of a file in a directory and takes precedence over other rclone
  11287. directory filter rules.
  11288. When using pattern list syntax, if a pattern item contains either / or
  11289. **, then rclone will not able to imply a directory filter rule from this
  11290. pattern list.
  11291. E.g. for an include rule
  11292. {dir1/**,dir2/**}
  11293. Rclone will match files below directories dir1 or dir2 only, but will
  11294. not be able to use this filter to exclude a directory dir3 from being
  11295. traversed.
  11296. Directory recursion optimisation may affect performance, but normally
  11297. not the result. One exception to this is sync operations with option
  11298. --create-empty-src-dirs, where any traversed empty directories will be
  11299. created. With the pattern list example {dir1/**,dir2/**} above, this
  11300. would create an empty directory dir3 on destination (when it exists on
  11301. source). Changing the filter to {dir1,dir2}/**, or splitting it into two
  11302. include rules --include dir1/** --include dir2/**, will match the same
  11303. files while also filtering directories, with the result that an empty
  11304. directory dir3 will no longer be created.
  11305. --exclude - Exclude files matching pattern
  11306. Excludes path/file names from an rclone command based on a single
  11307. exclude rule.
  11308. This flag can be repeated. See above for the order filter flags are
  11309. processed in.
  11310. --exclude should not be used with --include, --include-from, --filter or
  11311. --filter-from flags.
  11312. --exclude has no effect when combined with --files-from or
  11313. --files-from-raw flags.
  11314. E.g. rclone ls remote: --exclude *.bak excludes all .bak files from
  11315. listing.
  11316. E.g. rclone size remote: "--exclude /dir/**" returns the total size of
  11317. all files on remote: excluding those in root directory dir and sub
  11318. directories.
  11319. E.g. on Microsoft Windows rclone ls remote: --exclude "*\[{JP,KR,HK}\]*"
  11320. lists the files in remote: without [JP] or [KR] or [HK] in their name.
  11321. Quotes prevent the shell from interpreting the \ characters.\ characters
  11322. escape the [ and ] so an rclone filter treats them literally rather than
  11323. as a character-range. The { and } define an rclone pattern list. For
  11324. other operating systems single quotes are required ie
  11325. rclone ls remote: --exclude '*\[{JP,KR,HK}\]*'
  11326. --exclude-from - Read exclude patterns from file
  11327. Excludes path/file names from an rclone command based on rules in a
  11328. named file. The file contains a list of remarks and pattern rules.
  11329. For an example exclude-file.txt:
  11330. # a sample exclude rule file
  11331. *.bak
  11332. file2.jpg
  11333. rclone ls remote: --exclude-from exclude-file.txt lists the files on
  11334. remote: except those named file2.jpg or with a suffix .bak. That is
  11335. equivalent to rclone ls remote: --exclude file2.jpg --exclude "*.bak".
  11336. This flag can be repeated. See above for the order filter flags are
  11337. processed in.
  11338. The --exclude-from flag is useful where multiple exclude filter rules
  11339. are applied to an rclone command.
  11340. --exclude-from should not be used with --include, --include-from,
  11341. --filter or --filter-from flags.
  11342. --exclude-from has no effect when combined with --files-from or
  11343. --files-from-raw flags.
  11344. --exclude-from followed by - reads filter rules from standard input.
  11345. --include - Include files matching pattern
  11346. Adds a single include rule based on path/file names to an rclone
  11347. command.
  11348. This flag can be repeated. See above for the order filter flags are
  11349. processed in.
  11350. --include has no effect when combined with --files-from or
  11351. --files-from-raw flags.
  11352. --include implies --exclude ** at the end of an rclone internal filter
  11353. list. Therefore if you mix --include and --include-from flags with
  11354. --exclude, --exclude-from, --filter or --filter-from, you must use
  11355. include rules for all the files you want in the include statement. For
  11356. more flexibility use the --filter-from flag.
  11357. E.g. rclone ls remote: --include "*.{png,jpg}" lists the files on
  11358. remote: with suffix .png and .jpg. All other files are excluded.
  11359. E.g. multiple rclone copy commands can be combined with --include and a
  11360. pattern-list.
  11361. rclone copy /vol1/A remote:A
  11362. rclone copy /vol1/B remote:B
  11363. is equivalent to:
  11364. rclone copy /vol1 remote: --include "{A,B}/**"
  11365. E.g. rclone ls remote:/wheat --include "??[^[:punct:]]*" lists the files
  11366. remote: directory wheat (and subdirectories) whose third character is
  11367. not punctuation. This example uses an ASCII character class.
  11368. --include-from - Read include patterns from file
  11369. Adds path/file names to an rclone command based on rules in a named
  11370. file. The file contains a list of remarks and pattern rules.
  11371. For an example include-file.txt:
  11372. # a sample include rule file
  11373. *.jpg
  11374. file2.avi
  11375. rclone ls remote: --include-from include-file.txt lists the files on
  11376. remote: with name file2.avi or suffix .jpg. That is equivalent to
  11377. rclone ls remote: --include file2.avi --include "*.jpg".
  11378. This flag can be repeated. See above for the order filter flags are
  11379. processed in.
  11380. The --include-from flag is useful where multiple include filter rules
  11381. are applied to an rclone command.
  11382. --include-from implies --exclude ** at the end of an rclone internal
  11383. filter list. Therefore if you mix --include and --include-from flags
  11384. with --exclude, --exclude-from, --filter or --filter-from, you must use
  11385. include rules for all the files you want in the include statement. For
  11386. more flexibility use the --filter-from flag.
  11387. --exclude-from has no effect when combined with --files-from or
  11388. --files-from-raw flags.
  11389. --exclude-from followed by - reads filter rules from standard input.
  11390. --filter - Add a file-filtering rule
  11391. Specifies path/file names to an rclone command, based on a single
  11392. include or exclude rule, in + or - format.
  11393. This flag can be repeated. See above for the order filter flags are
  11394. processed in.
  11395. --filter + differs from --include. In the case of --include rclone
  11396. implies an --exclude * rule which it adds to the bottom of the internal
  11397. rule list. --filter...+ does not imply that rule.
  11398. --filter has no effect when combined with --files-from or
  11399. --files-from-raw flags.
  11400. --filter should not be used with --include, --include-from, --exclude or
  11401. --exclude-from flags.
  11402. E.g. rclone ls remote: --filter "- *.bak" excludes all .bak files from a
  11403. list of remote:.
  11404. --filter-from - Read filtering patterns from a file
  11405. Adds path/file names to an rclone command based on rules in a named
  11406. file. The file contains a list of remarks and pattern rules. Include
  11407. rules start with + and exclude rules with -. ! clears existing rules.
  11408. Rules are processed in the order they are defined.
  11409. This flag can be repeated. See above for the order filter flags are
  11410. processed in.
  11411. Arrange the order of filter rules with the most restrictive first and
  11412. work down.
  11413. E.g. for filter-file.txt:
  11414. # a sample filter rule file
  11415. - secret*.jpg
  11416. + *.jpg
  11417. + *.png
  11418. + file2.avi
  11419. - /dir/Trash/**
  11420. + /dir/**
  11421. # exclude everything else
  11422. - *
  11423. rclone ls remote: --filter-from filter-file.txt lists the path/files on
  11424. remote: including all jpg and png files, excluding any matching
  11425. secret*.jpg and including file2.avi. It also includes everything in the
  11426. directory dir at the root of remote, except remote:dir/Trash which it
  11427. excludes. Everything else is excluded.
  11428. E.g. for an alternative filter-file.txt:
  11429. - secret*.jpg
  11430. + *.jpg
  11431. + *.png
  11432. + file2.avi
  11433. - *
  11434. Files file1.jpg, file3.png and file2.avi are listed whilst secret17.jpg
  11435. and files without the suffix .jpg or .png are excluded.
  11436. E.g. for an alternative filter-file.txt:
  11437. + *.jpg
  11438. + *.gif
  11439. !
  11440. + 42.doc
  11441. - *
  11442. Only file 42.doc is listed. Prior rules are cleared by the !.
  11443. --files-from - Read list of source-file names
  11444. Adds path/files to an rclone command from a list in a named file. Rclone
  11445. processes the path/file names in the order of the list, and no others.
  11446. Other filter flags (--include, --include-from, --exclude,
  11447. --exclude-from, --filter and --filter-from) are ignored when
  11448. --files-from is used.
  11449. --files-from expects a list of files as its input. Leading or trailing
  11450. whitespace is stripped from the input lines. Lines starting with # or ;
  11451. are ignored.
  11452. Rclone commands with a --files-from flag traverse the remote, treating
  11453. the names in --files-from as a set of filters.
  11454. If the --no-traverse and --files-from flags are used together an rclone
  11455. command does not traverse the remote. Instead it addresses each
  11456. path/file named in the file individually. For each path/file name, that
  11457. requires typically 1 API call. This can be efficient for a short
  11458. --files-from list and a remote containing many files.
  11459. Rclone commands do not error if any names in the --files-from file are
  11460. missing from the source remote.
  11461. The --files-from flag can be repeated in a single rclone command to read
  11462. path/file names from more than one file. The files are read from left to
  11463. right along the command line.
  11464. Paths within the --files-from file are interpreted as starting with the
  11465. root specified in the rclone command. Leading / separators are ignored.
  11466. See --files-from-raw if you need the input to be processed in a raw
  11467. manner.
  11468. E.g. for a file files-from.txt:
  11469. # comment
  11470. file1.jpg
  11471. subdir/file2.jpg
  11472. rclone copy --files-from files-from.txt /home/me/pics remote:pics copies
  11473. the following, if they exist, and only those files.
  11474. /home/me/pics/file1.jpg → remote:pics/file1.jpg
  11475. /home/me/pics/subdir/file2.jpg → remote:pics/subdir/file2.jpg
  11476. E.g. to copy the following files referenced by their absolute paths:
  11477. /home/user1/42
  11478. /home/user1/dir/ford
  11479. /home/user2/prefect
  11480. First find a common subdirectory - in this case /home and put the
  11481. remaining files in files-from.txt with or without leading /, e.g.
  11482. user1/42
  11483. user1/dir/ford
  11484. user2/prefect
  11485. Then copy these to a remote:
  11486. rclone copy --files-from files-from.txt /home remote:backup
  11487. The three files are transferred as follows:
  11488. /home/user1/42 → remote:backup/user1/important
  11489. /home/user1/dir/ford → remote:backup/user1/dir/file
  11490. /home/user2/prefect → remote:backup/user2/stuff
  11491. Alternatively if / is chosen as root files-from.txt will be:
  11492. /home/user1/42
  11493. /home/user1/dir/ford
  11494. /home/user2/prefect
  11495. The copy command will be:
  11496. rclone copy --files-from files-from.txt / remote:backup
  11497. Then there will be an extra home directory on the remote:
  11498. /home/user1/42 → remote:backup/home/user1/42
  11499. /home/user1/dir/ford → remote:backup/home/user1/dir/ford
  11500. /home/user2/prefect → remote:backup/home/user2/prefect
  11501. --files-from-raw - Read list of source-file names without any processing
  11502. This flag is the same as --files-from except that input is read in a raw
  11503. manner. Lines with leading / trailing whitespace, and lines starting
  11504. with ; or # are read without any processing. rclone lsf has a compatible
  11505. format that can be used to export file lists from remotes for input to
  11506. --files-from-raw.
  11507. --ignore-case - make searches case insensitive
  11508. By default, rclone filter patterns are case sensitive. The --ignore-case
  11509. flag makes all of the filters patterns on the command line case
  11510. insensitive.
  11511. E.g. --include "zaphod.txt" does not match a file Zaphod.txt. With
  11512. --ignore-case a match is made.
  11513. Quoting shell metacharacters
  11514. Rclone commands with filter patterns containing shell metacharacters may
  11515. not as work as expected in your shell and may require quoting.
  11516. E.g. linux, OSX (* metacharacter)
  11517. - --include \*.jpg
  11518. - --include '*.jpg'
  11519. - --include='*.jpg'
  11520. Microsoft Windows expansion is done by the command, not shell, so
  11521. --include *.jpg does not require quoting.
  11522. If the rclone error
  11523. Command .... needs .... arguments maximum: you provided .... non flag arguments:
  11524. is encountered, the cause is commonly spaces within the name of a remote
  11525. or flag value. The fix then is to quote values containing spaces.
  11526. Other filters
  11527. --min-size - Don't transfer any file smaller than this
  11528. Controls the minimum size file within the scope of an rclone command.
  11529. Default units are KiB but abbreviations K, M, G, T or P are valid.
  11530. E.g. rclone ls remote: --min-size 50k lists files on remote: of 50 KiB
  11531. size or larger.
  11532. See the size option docs for more info.
  11533. --max-size - Don't transfer any file larger than this
  11534. Controls the maximum size file within the scope of an rclone command.
  11535. Default units are KiB but abbreviations K, M, G, T or P are valid.
  11536. E.g. rclone ls remote: --max-size 1G lists files on remote: of 1 GiB
  11537. size or smaller.
  11538. See the size option docs for more info.
  11539. --max-age - Don't transfer any file older than this
  11540. Controls the maximum age of files within the scope of an rclone command.
  11541. --max-age applies only to files and not to directories.
  11542. E.g. rclone ls remote: --max-age 2d lists files on remote: of 2 days old
  11543. or less.
  11544. See the time option docs for valid formats.
  11545. --min-age - Don't transfer any file younger than this
  11546. Controls the minimum age of files within the scope of an rclone command.
  11547. (see --max-age for valid formats)
  11548. --min-age applies only to files and not to directories.
  11549. E.g. rclone ls remote: --min-age 2d lists files on remote: of 2 days old
  11550. or more.
  11551. See the time option docs for valid formats.
  11552. Other flags
  11553. --delete-excluded - Delete files on dest excluded from sync
  11554. Important this flag is dangerous to your data - use with --dry-run and
  11555. -v first.
  11556. In conjunction with rclone sync, --delete-excluded deletes any files on
  11557. the destination which are excluded from the command.
  11558. E.g. the scope of rclone sync --interactive A: B: can be restricted:
  11559. rclone --min-size 50k --delete-excluded sync A: B:
  11560. All files on B: which are less than 50 KiB are deleted because they are
  11561. excluded from the rclone sync command.
  11562. --dump filters - dump the filters to the output
  11563. Dumps the defined filters to standard output in regular expression
  11564. format.
  11565. Useful for debugging.
  11566. Exclude directory based on a file
  11567. The --exclude-if-present flag controls whether a directory is within the
  11568. scope of an rclone command based on the presence of a named file within
  11569. it. The flag can be repeated to check for multiple file names, presence
  11570. of any of them will exclude the directory.
  11571. This flag has a priority over other filter flags.
  11572. E.g. for the following directory structure:
  11573. dir1/file1
  11574. dir1/dir2/file2
  11575. dir1/dir2/dir3/file3
  11576. dir1/dir2/dir3/.ignore
  11577. The command rclone ls --exclude-if-present .ignore dir1 does not list
  11578. dir3, file3 or .ignore.
  11579. Metadata filters
  11580. The metadata filters work in a very similar way to the normal file name
  11581. filters, except they match metadata on the object.
  11582. The metadata should be specified as key=value patterns. This may be
  11583. wildcarded using the normal filter patterns or regular expressions.
  11584. For example if you wished to list only local files with a mode of 100664
  11585. you could do that with:
  11586. rclone lsf -M --files-only --metadata-include "mode=100664" .
  11587. Or if you wished to show files with an atime, mtime or btime at a given
  11588. date:
  11589. rclone lsf -M --files-only --metadata-include "[abm]time=2022-12-16*" .
  11590. Like file filtering, metadata filtering only applies to files not to
  11591. directories.
  11592. The filters can be applied using these flags.
  11593. - --metadata-include - Include metadatas matching pattern
  11594. - --metadata-include-from - Read metadata include patterns from file
  11595. (use - to read from stdin)
  11596. - --metadata-exclude - Exclude metadatas matching pattern
  11597. - --metadata-exclude-from - Read metadata exclude patterns from file
  11598. (use - to read from stdin)
  11599. - --metadata-filter - Add a metadata filtering rule
  11600. - --metadata-filter-from - Read metadata filtering patterns from a
  11601. file (use - to read from stdin)
  11602. Each flag can be repeated. See the section on how filter rules are
  11603. applied for more details - these flags work in an identical way to the
  11604. file name filtering flags, but instead of file name patterns have
  11605. metadata patterns.
  11606. Common pitfalls
  11607. The most frequent filter support issues on the rclone forum are:
  11608. - Not using paths relative to the root of the remote
  11609. - Not using / to match from the root of a remote
  11610. - Not using ** to match the contents of a directory
  11611. GUI (Experimental)
  11612. Rclone can serve a web based GUI (graphical user interface). This is
  11613. somewhat experimental at the moment so things may be subject to change.
  11614. Run this command in a terminal and rclone will download and then display
  11615. the GUI in a web browser.
  11616. rclone rcd --rc-web-gui
  11617. This will produce logs like this and rclone needs to continue to run to
  11618. serve the GUI:
  11619. 2019/08/25 11:40:14 NOTICE: A new release for gui is present at https://github.com/rclone/rclone-webui-react/releases/download/v0.0.6/currentbuild.zip
  11620. 2019/08/25 11:40:14 NOTICE: Downloading webgui binary. Please wait. [Size: 3813937, Path : /home/USER/.cache/rclone/webgui/v0.0.6.zip]
  11621. 2019/08/25 11:40:16 NOTICE: Unzipping
  11622. 2019/08/25 11:40:16 NOTICE: Serving remote control on http://127.0.0.1:5572/
  11623. This assumes you are running rclone locally on your machine. It is
  11624. possible to separate the rclone and the GUI - see below for details.
  11625. If you wish to check for updates then you can add --rc-web-gui-update to
  11626. the command line.
  11627. If you find your GUI broken, you may force it to update by add
  11628. --rc-web-gui-force-update.
  11629. By default, rclone will open your browser. Add
  11630. --rc-web-gui-no-open-browser to disable this feature.
  11631. Using the GUI
  11632. Once the GUI opens, you will be looking at the dashboard which has an
  11633. overall overview.
  11634. On the left hand side you will see a series of view buttons you can
  11635. click on:
  11636. - Dashboard - main overview
  11637. - Configs - examine and create new configurations
  11638. - Explorer - view, download and upload files to the cloud storage
  11639. systems
  11640. - Backend - view or alter the backend config
  11641. - Log out
  11642. (More docs and walkthrough video to come!)
  11643. How it works
  11644. When you run the rclone rcd --rc-web-gui this is what happens
  11645. - Rclone starts but only runs the remote control API ("rc").
  11646. - The API is bound to localhost with an auto-generated username and
  11647. password.
  11648. - If the API bundle is missing then rclone will download it.
  11649. - rclone will start serving the files from the API bundle over the
  11650. same port as the API
  11651. - rclone will open the browser with a login_token so it can log
  11652. straight in.
  11653. Advanced use
  11654. The rclone rcd may use any of the flags documented on the rc page.
  11655. The flag --rc-web-gui is shorthand for
  11656. - Download the web GUI if necessary
  11657. - Check we are using some authentication
  11658. - --rc-user gui
  11659. - --rc-pass <random password>
  11660. - --rc-serve
  11661. These flags can be overridden as desired.
  11662. See also the rclone rcd documentation.
  11663. Example: Running a public GUI
  11664. For example the GUI could be served on a public port over SSL using an
  11665. htpasswd file using the following flags:
  11666. - --rc-web-gui
  11667. - --rc-addr :443
  11668. - --rc-htpasswd /path/to/htpasswd
  11669. - --rc-cert /path/to/ssl.crt
  11670. - --rc-key /path/to/ssl.key
  11671. Example: Running a GUI behind a proxy
  11672. If you want to run the GUI behind a proxy at /rclone you could use these
  11673. flags:
  11674. - --rc-web-gui
  11675. - --rc-baseurl rclone
  11676. - --rc-htpasswd /path/to/htpasswd
  11677. Or instead of htpasswd if you just want a single user and password:
  11678. - --rc-user me
  11679. - --rc-pass mypassword
  11680. Project
  11681. The GUI is being developed in the: rclone/rclone-webui-react repository.
  11682. Bug reports and contributions are very welcome :-)
  11683. If you have questions then please ask them on the rclone forum.
  11684. Remote controlling rclone with its API
  11685. If rclone is run with the --rc flag then it starts an HTTP server which
  11686. can be used to remote control rclone using its API.
  11687. You can either use the rc command to access the API or use HTTP
  11688. directly.
  11689. If you just want to run a remote control then see the rcd command.
  11690. Supported parameters
  11691. --rc
  11692. Flag to start the http server listen on remote requests
  11693. --rc-addr=IP
  11694. IPaddress:Port or :Port to bind server to. (default "localhost:5572")
  11695. --rc-cert=KEY
  11696. SSL PEM key (concatenation of certificate and CA certificate)
  11697. --rc-client-ca=PATH
  11698. Client certificate authority to verify clients with
  11699. --rc-htpasswd=PATH
  11700. htpasswd file - if not provided no authentication is done
  11701. --rc-key=PATH
  11702. SSL PEM Private key
  11703. --rc-max-header-bytes=VALUE
  11704. Maximum size of request header (default 4096)
  11705. --rc-min-tls-version=VALUE
  11706. The minimum TLS version that is acceptable. Valid values are "tls1.0",
  11707. "tls1.1", "tls1.2" and "tls1.3" (default "tls1.0").
  11708. --rc-user=VALUE
  11709. User name for authentication.
  11710. --rc-pass=VALUE
  11711. Password for authentication.
  11712. --rc-realm=VALUE
  11713. Realm for authentication (default "rclone")
  11714. --rc-server-read-timeout=DURATION
  11715. Timeout for server reading data (default 1h0m0s)
  11716. --rc-server-write-timeout=DURATION
  11717. Timeout for server writing data (default 1h0m0s)
  11718. --rc-serve
  11719. Enable the serving of remote objects via the HTTP interface. This means
  11720. objects will be accessible at http://127.0.0.1:5572/ by default, so you
  11721. can browse to http://127.0.0.1:5572/ or http://127.0.0.1:5572/* to see a
  11722. listing of the remotes. Objects may be requested from remotes using this
  11723. syntax http://127.0.0.1:5572/[remote:path]/path/to/object
  11724. Default Off.
  11725. --rc-files /path/to/directory
  11726. Path to local files to serve on the HTTP server.
  11727. If this is set then rclone will serve the files in that directory. It
  11728. will also open the root in the web browser if specified. This is for
  11729. implementing browser based GUIs for rclone functions.
  11730. If --rc-user or --rc-pass is set then the URL that is opened will have
  11731. the authorization in the URL in the http://user:pass@localhost/ style.
  11732. Default Off.
  11733. --rc-enable-metrics
  11734. Enable OpenMetrics/Prometheus compatible endpoint at /metrics.
  11735. Default Off.
  11736. --rc-web-gui
  11737. Set this flag to serve the default web gui on the same port as rclone.
  11738. Default Off.
  11739. --rc-allow-origin
  11740. Set the allowed Access-Control-Allow-Origin for rc requests.
  11741. Can be used with --rc-web-gui if the rclone is running on different IP
  11742. than the web-gui.
  11743. Default is IP address on which rc is running.
  11744. --rc-web-fetch-url
  11745. Set the URL to fetch the rclone-web-gui files from.
  11746. Default
  11747. https://api.github.com/repos/rclone/rclone-webui-react/releases/latest.
  11748. --rc-web-gui-update
  11749. Set this flag to check and update rclone-webui-react from the
  11750. rc-web-fetch-url.
  11751. Default Off.
  11752. --rc-web-gui-force-update
  11753. Set this flag to force update rclone-webui-react from the
  11754. rc-web-fetch-url.
  11755. Default Off.
  11756. --rc-web-gui-no-open-browser
  11757. Set this flag to disable opening browser automatically when using
  11758. web-gui.
  11759. Default Off.
  11760. --rc-job-expire-duration=DURATION
  11761. Expire finished async jobs older than DURATION (default 60s).
  11762. --rc-job-expire-interval=DURATION
  11763. Interval duration to check for expired async jobs (default 10s).
  11764. --rc-no-auth
  11765. By default rclone will require authorisation to have been set up on the
  11766. rc interface in order to use any methods which access any rclone
  11767. remotes. Eg operations/list is denied as it involved creating a remote
  11768. as is sync/copy.
  11769. If this is set then no authorisation will be required on the server to
  11770. use these methods. The alternative is to use --rc-user and --rc-pass and
  11771. use these credentials in the request.
  11772. Default Off.
  11773. --rc-baseurl
  11774. Prefix for URLs.
  11775. Default is root
  11776. --rc-template
  11777. User-specified template.
  11778. Accessing the remote control via the rclone rc command
  11779. Rclone itself implements the remote control protocol in its rclone rc
  11780. command.
  11781. You can use it like this
  11782. $ rclone rc rc/noop param1=one param2=two
  11783. {
  11784. "param1": "one",
  11785. "param2": "two"
  11786. }
  11787. Run rclone rc on its own to see the help for the installed remote
  11788. control commands.
  11789. JSON input
  11790. rclone rc also supports a --json flag which can be used to send more
  11791. complicated input parameters.
  11792. $ rclone rc --json '{ "p1": [1,"2",null,4], "p2": { "a":1, "b":2 } }' rc/noop
  11793. {
  11794. "p1": [
  11795. 1,
  11796. "2",
  11797. null,
  11798. 4
  11799. ],
  11800. "p2": {
  11801. "a": 1,
  11802. "b": 2
  11803. }
  11804. }
  11805. If the parameter being passed is an object then it can be passed as a
  11806. JSON string rather than using the --json flag which simplifies the
  11807. command line.
  11808. rclone rc operations/list fs=/tmp remote=test opt='{"showHash": true}'
  11809. Rather than
  11810. rclone rc operations/list --json '{"fs": "/tmp", "remote": "test", "opt": {"showHash": true}}'
  11811. Special parameters
  11812. The rc interface supports some special parameters which apply to all
  11813. commands. These start with _ to show they are different.
  11814. Running asynchronous jobs with _async = true
  11815. Each rc call is classified as a job and it is assigned its own id. By
  11816. default jobs are executed immediately as they are created or
  11817. synchronously.
  11818. If _async has a true value when supplied to an rc call then it will
  11819. return immediately with a job id and the task will be run in the
  11820. background. The job/status call can be used to get information of the
  11821. background job. The job can be queried for up to 1 minute after it has
  11822. finished.
  11823. It is recommended that potentially long running jobs, e.g. sync/sync,
  11824. sync/copy, sync/move, operations/purge are run with the _async flag to
  11825. avoid any potential problems with the HTTP request and response timing
  11826. out.
  11827. Starting a job with the _async flag:
  11828. $ rclone rc --json '{ "p1": [1,"2",null,4], "p2": { "a":1, "b":2 }, "_async": true }' rc/noop
  11829. {
  11830. "jobid": 2
  11831. }
  11832. Query the status to see if the job has finished. For more information on
  11833. the meaning of these return parameters see the job/status call.
  11834. $ rclone rc --json '{ "jobid":2 }' job/status
  11835. {
  11836. "duration": 0.000124163,
  11837. "endTime": "2018-10-27T11:38:07.911245881+01:00",
  11838. "error": "",
  11839. "finished": true,
  11840. "id": 2,
  11841. "output": {
  11842. "_async": true,
  11843. "p1": [
  11844. 1,
  11845. "2",
  11846. null,
  11847. 4
  11848. ],
  11849. "p2": {
  11850. "a": 1,
  11851. "b": 2
  11852. }
  11853. },
  11854. "startTime": "2018-10-27T11:38:07.911121728+01:00",
  11855. "success": true
  11856. }
  11857. job/list can be used to show the running or recently completed jobs
  11858. $ rclone rc job/list
  11859. {
  11860. "jobids": [
  11861. 2
  11862. ]
  11863. }
  11864. Setting config flags with _config
  11865. If you wish to set config (the equivalent of the global flags) for the
  11866. duration of an rc call only then pass in the _config parameter.
  11867. This should be in the same format as the config key returned by
  11868. options/get.
  11869. For example, if you wished to run a sync with the --checksum parameter,
  11870. you would pass this parameter in your JSON blob.
  11871. "_config":{"CheckSum": true}
  11872. If using rclone rc this could be passed as
  11873. rclone rc sync/sync ... _config='{"CheckSum": true}'
  11874. Any config parameters you don't set will inherit the global defaults
  11875. which were set with command line flags or environment variables.
  11876. Note that it is possible to set some values as strings or integers - see
  11877. data types for more info. Here is an example setting the equivalent of
  11878. --buffer-size in string or integer format.
  11879. "_config":{"BufferSize": "42M"}
  11880. "_config":{"BufferSize": 44040192}
  11881. If you wish to check the _config assignment has worked properly then
  11882. calling options/local will show what the value got set to.
  11883. Setting filter flags with _filter
  11884. If you wish to set filters for the duration of an rc call only then pass
  11885. in the _filter parameter.
  11886. This should be in the same format as the filter key returned by
  11887. options/get.
  11888. For example, if you wished to run a sync with these flags
  11889. --max-size 1M --max-age 42s --include "a" --include "b"
  11890. you would pass this parameter in your JSON blob.
  11891. "_filter":{"MaxSize":"1M", "IncludeRule":["a","b"], "MaxAge":"42s"}
  11892. If using rclone rc this could be passed as
  11893. rclone rc ... _filter='{"MaxSize":"1M", "IncludeRule":["a","b"], "MaxAge":"42s"}'
  11894. Any filter parameters you don't set will inherit the global defaults
  11895. which were set with command line flags or environment variables.
  11896. Note that it is possible to set some values as strings or integers - see
  11897. data types for more info. Here is an example setting the equivalent of
  11898. --buffer-size in string or integer format.
  11899. "_filter":{"MinSize": "42M"}
  11900. "_filter":{"MinSize": 44040192}
  11901. If you wish to check the _filter assignment has worked properly then
  11902. calling options/local will show what the value got set to.
  11903. Assigning operations to groups with _group = value
  11904. Each rc call has its own stats group for tracking its metrics. By
  11905. default grouping is done by the composite group name from prefix job/
  11906. and id of the job like so job/1.
  11907. If _group has a value then stats for that request will be grouped under
  11908. that value. This allows caller to group stats under their own name.
  11909. Stats for specific group can be accessed by passing group to core/stats:
  11910. $ rclone rc --json '{ "group": "job/1" }' core/stats
  11911. {
  11912. "speed": 12345
  11913. ...
  11914. }
  11915. Data types
  11916. When the API returns types, these will mostly be straight forward
  11917. integer, string or boolean types.
  11918. However some of the types returned by the options/get call and taken by
  11919. the options/set calls as well as the vfsOpt, mountOpt and the _config
  11920. parameters.
  11921. - Duration - these are returned as an integer duration in nanoseconds.
  11922. They may be set as an integer, or they may be set with time string,
  11923. eg "5s". See the options section for more info.
  11924. - Size - these are returned as an integer number of bytes. They may be
  11925. set as an integer or they may be set with a size suffix string, eg
  11926. "10M". See the options section for more info.
  11927. - Enumerated type (such as CutoffMode, DumpFlags, LogLevel,
  11928. VfsCacheMode - these will be returned as an integer and may be set
  11929. as an integer but more conveniently they can be set as a string, eg
  11930. "HARD" for CutoffMode or DEBUG for LogLevel.
  11931. - BandwidthSpec - this will be set and returned as a string, eg "1M".
  11932. Specifying remotes to work on
  11933. Remotes are specified with the fs=, srcFs=, dstFs= parameters depending
  11934. on the command being used.
  11935. The parameters can be a string as per the rest of rclone, eg
  11936. s3:bucket/path or :sftp:/my/dir. They can also be specified as JSON
  11937. blobs.
  11938. If specifying a JSON blob it should be a object mapping strings to
  11939. strings. These values will be used to configure the remote. There are 3
  11940. special values which may be set:
  11941. - type - set to type to specify a remote called :type:
  11942. - _name - set to name to specify a remote called name:
  11943. - _root - sets the root of the remote - may be empty
  11944. One of _name or type should normally be set. If the local backend is
  11945. desired then type should be set to local. If _root isn't specified then
  11946. it defaults to the root of the remote.
  11947. For example this JSON is equivalent to remote:/tmp
  11948. {
  11949. "_name": "remote",
  11950. "_path": "/tmp"
  11951. }
  11952. And this is equivalent to :sftp,host='example.com':/tmp
  11953. {
  11954. "type": "sftp",
  11955. "host": "example.com",
  11956. "_path": "/tmp"
  11957. }
  11958. And this is equivalent to /tmp/dir
  11959. {
  11960. type = "local",
  11961. _ path = "/tmp/dir"
  11962. }
  11963. Supported commands
  11964. backend/command: Runs a backend command.
  11965. This takes the following parameters:
  11966. - command - a string with the command name
  11967. - fs - a remote name string e.g. "drive:"
  11968. - arg - a list of arguments for the backend command
  11969. - opt - a map of string to string of options
  11970. Returns:
  11971. - result - result from the backend command
  11972. Example:
  11973. rclone rc backend/command command=noop fs=. -o echo=yes -o blue -a path1 -a path2
  11974. Returns
  11975. {
  11976. "result": {
  11977. "arg": [
  11978. "path1",
  11979. "path2"
  11980. ],
  11981. "name": "noop",
  11982. "opt": {
  11983. "blue": "",
  11984. "echo": "yes"
  11985. }
  11986. }
  11987. }
  11988. Note that this is the direct equivalent of using this "backend" command:
  11989. rclone backend noop . -o echo=yes -o blue path1 path2
  11990. Note that arguments must be preceded by the "-a" flag
  11991. See the backend command for more information.
  11992. Authentication is required for this call.
  11993. cache/expire: Purge a remote from cache
  11994. Purge a remote from the cache backend. Supports either a directory or a
  11995. file. Params: - remote = path to remote (required) - withData =
  11996. true/false to delete cached data (chunks) as well (optional)
  11997. Eg
  11998. rclone rc cache/expire remote=path/to/sub/folder/
  11999. rclone rc cache/expire remote=/ withData=true
  12000. cache/fetch: Fetch file chunks
  12001. Ensure the specified file chunks are cached on disk.
  12002. The chunks= parameter specifies the file chunks to check. It takes a
  12003. comma separated list of array slice indices. The slice indices are
  12004. similar to Python slices: start[:end]
  12005. start is the 0 based chunk number from the beginning of the file to
  12006. fetch inclusive. end is 0 based chunk number from the beginning of the
  12007. file to fetch exclusive. Both values can be negative, in which case they
  12008. count from the back of the file. The value "-5:" represents the last 5
  12009. chunks of a file.
  12010. Some valid examples are: ":5,-5:" -> the first and last five chunks
  12011. "0,-2" -> the first and the second last chunk "0:10" -> the first ten
  12012. chunks
  12013. Any parameter with a key that starts with "file" can be used to specify
  12014. files to fetch, e.g.
  12015. rclone rc cache/fetch chunks=0 file=hello file2=home/goodbye
  12016. File names will automatically be encrypted when the a crypt remote is
  12017. used on top of the cache.
  12018. cache/stats: Get cache stats
  12019. Show statistics for the cache remote.
  12020. config/create: create the config for a remote.
  12021. This takes the following parameters:
  12022. - name - name of remote
  12023. - parameters - a map of { "key": "value" } pairs
  12024. - type - type of the new remote
  12025. - opt - a dictionary of options to control the configuration
  12026. - obscure - declare passwords are plain and need obscuring
  12027. - noObscure - declare passwords are already obscured and don't
  12028. need obscuring
  12029. - nonInteractive - don't interact with a user, return questions
  12030. - continue - continue the config process with an answer
  12031. - all - ask all the config questions not just the post config ones
  12032. - state - state to restart with - used with continue
  12033. - result - result to restart with - used with continue
  12034. See the config create command for more information on the above.
  12035. Authentication is required for this call.
  12036. config/delete: Delete a remote in the config file.
  12037. Parameters:
  12038. - name - name of remote to delete
  12039. See the config delete command for more information on the above.
  12040. Authentication is required for this call.
  12041. config/dump: Dumps the config file.
  12042. Returns a JSON object: - key: value
  12043. Where keys are remote names and values are the config parameters.
  12044. See the config dump command for more information on the above.
  12045. Authentication is required for this call.
  12046. config/get: Get a remote in the config file.
  12047. Parameters:
  12048. - name - name of remote to get
  12049. See the config dump command for more information on the above.
  12050. Authentication is required for this call.
  12051. config/listremotes: Lists the remotes in the config file and defined in environment variables.
  12052. Returns - remotes - array of remote names
  12053. See the listremotes command for more information on the above.
  12054. Authentication is required for this call.
  12055. config/password: password the config for a remote.
  12056. This takes the following parameters:
  12057. - name - name of remote
  12058. - parameters - a map of { "key": "value" } pairs
  12059. See the config password command for more information on the above.
  12060. Authentication is required for this call.
  12061. config/paths: Reads the config file path and other important paths.
  12062. Returns a JSON object with the following keys:
  12063. - config: path to config file
  12064. - cache: path to root of cache directory
  12065. - temp: path to root of temporary directory
  12066. Eg
  12067. {
  12068. "cache": "/home/USER/.cache/rclone",
  12069. "config": "/home/USER/.rclone.conf",
  12070. "temp": "/tmp"
  12071. }
  12072. See the config paths command for more information on the above.
  12073. Authentication is required for this call.
  12074. config/providers: Shows how providers are configured in the config file.
  12075. Returns a JSON object: - providers - array of objects
  12076. See the config providers command for more information on the above.
  12077. Authentication is required for this call.
  12078. config/setpath: Set the path of the config file
  12079. Parameters:
  12080. - path - path to the config file to use
  12081. Authentication is required for this call.
  12082. config/update: update the config for a remote.
  12083. This takes the following parameters:
  12084. - name - name of remote
  12085. - parameters - a map of { "key": "value" } pairs
  12086. - opt - a dictionary of options to control the configuration
  12087. - obscure - declare passwords are plain and need obscuring
  12088. - noObscure - declare passwords are already obscured and don't
  12089. need obscuring
  12090. - nonInteractive - don't interact with a user, return questions
  12091. - continue - continue the config process with an answer
  12092. - all - ask all the config questions not just the post config ones
  12093. - state - state to restart with - used with continue
  12094. - result - result to restart with - used with continue
  12095. See the config update command for more information on the above.
  12096. Authentication is required for this call.
  12097. core/bwlimit: Set the bandwidth limit.
  12098. This sets the bandwidth limit to the string passed in. This should be a
  12099. single bandwidth limit entry or a pair of upload:download bandwidth.
  12100. Eg
  12101. rclone rc core/bwlimit rate=off
  12102. {
  12103. "bytesPerSecond": -1,
  12104. "bytesPerSecondTx": -1,
  12105. "bytesPerSecondRx": -1,
  12106. "rate": "off"
  12107. }
  12108. rclone rc core/bwlimit rate=1M
  12109. {
  12110. "bytesPerSecond": 1048576,
  12111. "bytesPerSecondTx": 1048576,
  12112. "bytesPerSecondRx": 1048576,
  12113. "rate": "1M"
  12114. }
  12115. rclone rc core/bwlimit rate=1M:100k
  12116. {
  12117. "bytesPerSecond": 1048576,
  12118. "bytesPerSecondTx": 1048576,
  12119. "bytesPerSecondRx": 131072,
  12120. "rate": "1M"
  12121. }
  12122. If the rate parameter is not supplied then the bandwidth is queried
  12123. rclone rc core/bwlimit
  12124. {
  12125. "bytesPerSecond": 1048576,
  12126. "bytesPerSecondTx": 1048576,
  12127. "bytesPerSecondRx": 1048576,
  12128. "rate": "1M"
  12129. }
  12130. The format of the parameter is exactly the same as passed to --bwlimit
  12131. except only one bandwidth may be specified.
  12132. In either case "rate" is returned as a human-readable string, and
  12133. "bytesPerSecond" is returned as a number.
  12134. core/command: Run a rclone terminal command over rc.
  12135. This takes the following parameters:
  12136. - command - a string with the command name.
  12137. - arg - a list of arguments for the backend command.
  12138. - opt - a map of string to string of options.
  12139. - returnType - one of ("COMBINED_OUTPUT", "STREAM",
  12140. "STREAM_ONLY_STDOUT", "STREAM_ONLY_STDERR").
  12141. - Defaults to "COMBINED_OUTPUT" if not set.
  12142. - The STREAM returnTypes will write the output to the body of the
  12143. HTTP message.
  12144. - The COMBINED_OUTPUT will write the output to the "result"
  12145. parameter.
  12146. Returns:
  12147. - result - result from the backend command.
  12148. - Only set when using returnType "COMBINED_OUTPUT".
  12149. - error - set if rclone exits with an error code.
  12150. - returnType - one of ("COMBINED_OUTPUT", "STREAM",
  12151. "STREAM_ONLY_STDOUT", "STREAM_ONLY_STDERR").
  12152. Example:
  12153. rclone rc core/command command=ls -a mydrive:/ -o max-depth=1
  12154. rclone rc core/command -a ls -a mydrive:/ -o max-depth=1
  12155. Returns:
  12156. {
  12157. "error": false,
  12158. "result": "<Raw command line output>"
  12159. }
  12160. OR
  12161. {
  12162. "error": true,
  12163. "result": "<Raw command line output>"
  12164. }
  12165. Authentication is required for this call.
  12166. core/du: Returns disk usage of a locally attached disk.
  12167. This returns the disk usage for the local directory passed in as dir.
  12168. If the directory is not passed in, it defaults to the directory pointed
  12169. to by --cache-dir.
  12170. - dir - string (optional)
  12171. Returns:
  12172. {
  12173. "dir": "/",
  12174. "info": {
  12175. "Available": 361769115648,
  12176. "Free": 361785892864,
  12177. "Total": 982141468672
  12178. }
  12179. }
  12180. core/gc: Runs a garbage collection.
  12181. This tells the go runtime to do a garbage collection run. It isn't
  12182. necessary to call this normally, but it can be useful for debugging
  12183. memory problems.
  12184. core/group-list: Returns list of stats.
  12185. This returns list of stats groups currently in memory.
  12186. Returns the following values:
  12187. {
  12188. "groups": an array of group names:
  12189. [
  12190. "group1",
  12191. "group2",
  12192. ...
  12193. ]
  12194. }
  12195. core/memstats: Returns the memory statistics
  12196. This returns the memory statistics of the running program. What the
  12197. values mean are explained in the go docs:
  12198. https://golang.org/pkg/runtime/#MemStats
  12199. The most interesting values for most people are:
  12200. - HeapAlloc - this is the amount of memory rclone is actually using
  12201. - HeapSys - this is the amount of memory rclone has obtained from the
  12202. OS
  12203. - Sys - this is the total amount of memory requested from the OS
  12204. - It is virtual memory so may include unused memory
  12205. core/obscure: Obscures a string passed in.
  12206. Pass a clear string and rclone will obscure it for the config file: -
  12207. clear - string
  12208. Returns: - obscured - string
  12209. core/pid: Return PID of current process
  12210. This returns PID of current process. Useful for stopping rclone process.
  12211. core/quit: Terminates the app.
  12212. (Optional) Pass an exit code to be used for terminating the app: -
  12213. exitCode - int
  12214. core/stats: Returns stats about current transfers.
  12215. This returns all available stats:
  12216. rclone rc core/stats
  12217. If group is not provided then summed up stats for all groups will be
  12218. returned.
  12219. Parameters
  12220. - group - name of the stats group (string)
  12221. Returns the following values:
  12222. {
  12223. "bytes": total transferred bytes since the start of the group,
  12224. "checks": number of files checked,
  12225. "deletes" : number of files deleted,
  12226. "elapsedTime": time in floating point seconds since rclone was started,
  12227. "errors": number of errors,
  12228. "eta": estimated time in seconds until the group completes,
  12229. "fatalError": boolean whether there has been at least one fatal error,
  12230. "lastError": last error string,
  12231. "renames" : number of files renamed,
  12232. "retryError": boolean showing whether there has been at least one non-NoRetryError,
  12233. "serverSideCopies": number of server side copies done,
  12234. "serverSideCopyBytes": number bytes server side copied,
  12235. "serverSideMoves": number of server side moves done,
  12236. "serverSideMoveBytes": number bytes server side moved,
  12237. "speed": average speed in bytes per second since start of the group,
  12238. "totalBytes": total number of bytes in the group,
  12239. "totalChecks": total number of checks in the group,
  12240. "totalTransfers": total number of transfers in the group,
  12241. "transferTime" : total time spent on running jobs,
  12242. "transfers": number of transferred files,
  12243. "transferring": an array of currently active file transfers:
  12244. [
  12245. {
  12246. "bytes": total transferred bytes for this file,
  12247. "eta": estimated time in seconds until file transfer completion
  12248. "name": name of the file,
  12249. "percentage": progress of the file transfer in percent,
  12250. "speed": average speed over the whole transfer in bytes per second,
  12251. "speedAvg": current speed in bytes per second as an exponentially weighted moving average,
  12252. "size": size of the file in bytes
  12253. }
  12254. ],
  12255. "checking": an array of names of currently active file checks
  12256. []
  12257. }
  12258. Values for "transferring", "checking" and "lastError" are only assigned
  12259. if data is available. The value for "eta" is null if an eta cannot be
  12260. determined.
  12261. core/stats-delete: Delete stats group.
  12262. This deletes entire stats group.
  12263. Parameters
  12264. - group - name of the stats group (string)
  12265. core/stats-reset: Reset stats.
  12266. This clears counters, errors and finished transfers for all stats or
  12267. specific stats group if group is provided.
  12268. Parameters
  12269. - group - name of the stats group (string)
  12270. core/transferred: Returns stats about completed transfers.
  12271. This returns stats about completed transfers:
  12272. rclone rc core/transferred
  12273. If group is not provided then completed transfers for all groups will be
  12274. returned.
  12275. Note only the last 100 completed transfers are returned.
  12276. Parameters
  12277. - group - name of the stats group (string)
  12278. Returns the following values:
  12279. {
  12280. "transferred": an array of completed transfers (including failed ones):
  12281. [
  12282. {
  12283. "name": name of the file,
  12284. "size": size of the file in bytes,
  12285. "bytes": total transferred bytes for this file,
  12286. "checked": if the transfer is only checked (skipped, deleted),
  12287. "timestamp": integer representing millisecond unix epoch,
  12288. "error": string description of the error (empty if successful),
  12289. "jobid": id of the job that this transfer belongs to
  12290. }
  12291. ]
  12292. }
  12293. core/version: Shows the current version of rclone and the go runtime.
  12294. This shows the current version of go and the go runtime:
  12295. - version - rclone version, e.g. "v1.53.0"
  12296. - decomposed - version number as [major, minor, patch]
  12297. - isGit - boolean - true if this was compiled from the git version
  12298. - isBeta - boolean - true if this is a beta version
  12299. - os - OS in use as according to Go
  12300. - arch - cpu architecture in use according to Go
  12301. - goVersion - version of Go runtime in use
  12302. - linking - type of rclone executable (static or dynamic)
  12303. - goTags - space separated build tags or "none"
  12304. debug/set-block-profile-rate: Set runtime.SetBlockProfileRate for blocking profiling.
  12305. SetBlockProfileRate controls the fraction of goroutine blocking events
  12306. that are reported in the blocking profile. The profiler aims to sample
  12307. an average of one blocking event per rate nanoseconds spent blocked.
  12308. To include every blocking event in the profile, pass rate = 1. To turn
  12309. off profiling entirely, pass rate <= 0.
  12310. After calling this you can use this to see the blocking profile:
  12311. go tool pprof http://localhost:5572/debug/pprof/block
  12312. Parameters:
  12313. - rate - int
  12314. debug/set-gc-percent: Call runtime/debug.SetGCPercent for setting the garbage collection target percentage.
  12315. SetGCPercent sets the garbage collection target percentage: a collection
  12316. is triggered when the ratio of freshly allocated data to live data
  12317. remaining after the previous collection reaches this percentage.
  12318. SetGCPercent returns the previous setting. The initial setting is the
  12319. value of the GOGC environment variable at startup, or 100 if the
  12320. variable is not set.
  12321. This setting may be effectively reduced in order to maintain a memory
  12322. limit. A negative percentage effectively disables garbage collection,
  12323. unless the memory limit is reached.
  12324. See https://pkg.go.dev/runtime/debug#SetMemoryLimit for more details.
  12325. Parameters:
  12326. - gc-percent - int
  12327. debug/set-mutex-profile-fraction: Set runtime.SetMutexProfileFraction for mutex profiling.
  12328. SetMutexProfileFraction controls the fraction of mutex contention events
  12329. that are reported in the mutex profile. On average 1/rate events are
  12330. reported. The previous rate is returned.
  12331. To turn off profiling entirely, pass rate 0. To just read the current
  12332. rate, pass rate < 0. (For n>1 the details of sampling may change.)
  12333. Once this is set you can look use this to profile the mutex contention:
  12334. go tool pprof http://localhost:5572/debug/pprof/mutex
  12335. Parameters:
  12336. - rate - int
  12337. Results:
  12338. - previousRate - int
  12339. debug/set-soft-memory-limit: Call runtime/debug.SetMemoryLimit for setting a soft memory limit for the runtime.
  12340. SetMemoryLimit provides the runtime with a soft memory limit.
  12341. The runtime undertakes several processes to try to respect this memory
  12342. limit, including adjustments to the frequency of garbage collections and
  12343. returning memory to the underlying system more aggressively. This limit
  12344. will be respected even if GOGC=off (or, if SetGCPercent(-1) is
  12345. executed).
  12346. The input limit is provided as bytes, and includes all memory mapped,
  12347. managed, and not released by the Go runtime. Notably, it does not
  12348. account for space used by the Go binary and memory external to Go, such
  12349. as memory managed by the underlying system on behalf of the process, or
  12350. memory managed by non-Go code inside the same process. Examples of
  12351. excluded memory sources include: OS kernel memory held on behalf of the
  12352. process, memory allocated by C code, and memory mapped by syscall.Mmap
  12353. (because it is not managed by the Go runtime).
  12354. A zero limit or a limit that's lower than the amount of memory used by
  12355. the Go runtime may cause the garbage collector to run nearly
  12356. continuously. However, the application may still make progress.
  12357. The memory limit is always respected by the Go runtime, so to
  12358. effectively disable this behavior, set the limit very high.
  12359. math.MaxInt64 is the canonical value for disabling the limit, but values
  12360. much greater than the available memory on the underlying system work
  12361. just as well.
  12362. See https://go.dev/doc/gc-guide for a detailed guide explaining the soft
  12363. memory limit in more detail, as well as a variety of common use-cases
  12364. and scenarios.
  12365. SetMemoryLimit returns the previously set memory limit. A negative input
  12366. does not adjust the limit, and allows for retrieval of the currently set
  12367. memory limit.
  12368. Parameters:
  12369. - mem-limit - int
  12370. fscache/clear: Clear the Fs cache.
  12371. This clears the fs cache. This is where remotes created from backends
  12372. are cached for a short while to make repeated rc calls more efficient.
  12373. If you change the parameters of a backend then you may want to call this
  12374. to clear an existing remote out of the cache before re-creating it.
  12375. Authentication is required for this call.
  12376. fscache/entries: Returns the number of entries in the fs cache.
  12377. This returns the number of entries in the fs cache.
  12378. Returns - entries - number of items in the cache
  12379. Authentication is required for this call.
  12380. job/list: Lists the IDs of the running jobs
  12381. Parameters: None.
  12382. Results:
  12383. - executeId - string id of rclone executing (change after restart)
  12384. - jobids - array of integer job ids (starting at 1 on each restart)
  12385. job/status: Reads the status of the job ID
  12386. Parameters:
  12387. - jobid - id of the job (integer).
  12388. Results:
  12389. - finished - boolean
  12390. - duration - time in seconds that the job ran for
  12391. - endTime - time the job finished (e.g.
  12392. "2018-10-26T18:50:20.528746884+01:00")
  12393. - error - error from the job or empty string for no error
  12394. - finished - boolean whether the job has finished or not
  12395. - id - as passed in above
  12396. - startTime - time the job started (e.g.
  12397. "2018-10-26T18:50:20.528336039+01:00")
  12398. - success - boolean - true for success false otherwise
  12399. - output - output of the job as would have been returned if called
  12400. synchronously
  12401. - progress - output of the progress related to the underlying job
  12402. job/stop: Stop the running job
  12403. Parameters:
  12404. - jobid - id of the job (integer).
  12405. job/stopgroup: Stop all running jobs in a group
  12406. Parameters:
  12407. - group - name of the group (string).
  12408. mount/listmounts: Show current mount points
  12409. This shows currently mounted points, which can be used for performing an
  12410. unmount.
  12411. This takes no parameters and returns
  12412. - mountPoints: list of current mount points
  12413. Eg
  12414. rclone rc mount/listmounts
  12415. Authentication is required for this call.
  12416. mount/mount: Create a new mount point
  12417. rclone allows Linux, FreeBSD, macOS and Windows to mount any of Rclone's
  12418. cloud storage systems as a file system with FUSE.
  12419. If no mountType is provided, the priority is given as follows: 1. mount
  12420. 2.cmount 3.mount2
  12421. This takes the following parameters:
  12422. - fs - a remote path to be mounted (required)
  12423. - mountPoint: valid path on the local machine (required)
  12424. - mountType: one of the values (mount, cmount, mount2) specifies the
  12425. mount implementation to use
  12426. - mountOpt: a JSON object with Mount options in.
  12427. - vfsOpt: a JSON object with VFS options in.
  12428. Example:
  12429. rclone rc mount/mount fs=mydrive: mountPoint=/home/<user>/mountPoint
  12430. rclone rc mount/mount fs=mydrive: mountPoint=/home/<user>/mountPoint mountType=mount
  12431. rclone rc mount/mount fs=TestDrive: mountPoint=/mnt/tmp vfsOpt='{"CacheMode": 2}' mountOpt='{"AllowOther": true}'
  12432. The vfsOpt are as described in options/get and can be seen in the the
  12433. "vfs" section when running and the mountOpt can be seen in the "mount"
  12434. section:
  12435. rclone rc options/get
  12436. Authentication is required for this call.
  12437. mount/types: Show all possible mount types
  12438. This shows all possible mount types and returns them as a list.
  12439. This takes no parameters and returns
  12440. - mountTypes: list of mount types
  12441. The mount types are strings like "mount", "mount2", "cmount" and can be
  12442. passed to mount/mount as the mountType parameter.
  12443. Eg
  12444. rclone rc mount/types
  12445. Authentication is required for this call.
  12446. mount/unmount: Unmount selected active mount
  12447. rclone allows Linux, FreeBSD, macOS and Windows to mount any of Rclone's
  12448. cloud storage systems as a file system with FUSE.
  12449. This takes the following parameters:
  12450. - mountPoint: valid path on the local machine where the mount was
  12451. created (required)
  12452. Example:
  12453. rclone rc mount/unmount mountPoint=/home/<user>/mountPoint
  12454. Authentication is required for this call.
  12455. mount/unmountall: Unmount all active mounts
  12456. rclone allows Linux, FreeBSD, macOS and Windows to mount any of Rclone's
  12457. cloud storage systems as a file system with FUSE.
  12458. This takes no parameters and returns error if unmount does not succeed.
  12459. Eg
  12460. rclone rc mount/unmountall
  12461. Authentication is required for this call.
  12462. operations/about: Return the space used on the remote
  12463. This takes the following parameters:
  12464. - fs - a remote name string e.g. "drive:"
  12465. The result is as returned from rclone about --json
  12466. See the about command for more information on the above.
  12467. Authentication is required for this call.
  12468. operations/check: check the source and destination are the same
  12469. Checks the files in the source and destination match. It compares sizes
  12470. and hashes and logs a report of files that don't match. It doesn't alter
  12471. the source or destination.
  12472. This takes the following parameters:
  12473. - srcFs - a remote name string e.g. "drive:" for the source, "/" for
  12474. local filesystem
  12475. - dstFs - a remote name string e.g. "drive2:" for the destination, "/"
  12476. for local filesystem
  12477. - download - check by downloading rather than with hash
  12478. - checkFileHash - treat checkFileFs:checkFileRemote as a SUM file with
  12479. hashes of given type
  12480. - checkFileFs - treat checkFileFs:checkFileRemote as a SUM file with
  12481. hashes of given type
  12482. - checkFileRemote - treat checkFileFs:checkFileRemote as a SUM file
  12483. with hashes of given type
  12484. - oneWay - check one way only, source files must exist on remote
  12485. - combined - make a combined report of changes (default false)
  12486. - missingOnSrc - report all files missing from the source (default
  12487. true)
  12488. - missingOnDst - report all files missing from the destination
  12489. (default true)
  12490. - match - report all matching files (default false)
  12491. - differ - report all non-matching files (default true)
  12492. - error - report all files with errors (hashing or reading) (default
  12493. true)
  12494. If you supply the download flag, it will download the data from both
  12495. remotes and check them against each other on the fly. This can be useful
  12496. for remotes that don't support hashes or if you really want to check all
  12497. the data.
  12498. If you supply the size-only global flag, it will only compare the sizes
  12499. not the hashes as well. Use this for a quick check.
  12500. If you supply the checkFileHash option with a valid hash name, the
  12501. checkFileFs:checkFileRemote must point to a text file in the SUM format.
  12502. This treats the checksum file as the source and dstFs as the
  12503. destination. Note that srcFs is not used and should not be supplied in
  12504. this case.
  12505. Returns:
  12506. - success - true if no error, false otherwise
  12507. - status - textual summary of check, OK or text string
  12508. - hashType - hash used in check, may be missing
  12509. - combined - array of strings of combined report of changes
  12510. - missingOnSrc - array of strings of all files missing from the source
  12511. - missingOnDst - array of strings of all files missing from the
  12512. destination
  12513. - match - array of strings of all matching files
  12514. - differ - array of strings of all non-matching files
  12515. - error - array of strings of all files with errors (hashing or
  12516. reading)
  12517. Authentication is required for this call.
  12518. operations/cleanup: Remove trashed files in the remote or path
  12519. This takes the following parameters:
  12520. - fs - a remote name string e.g. "drive:"
  12521. See the cleanup command for more information on the above.
  12522. Authentication is required for this call.
  12523. operations/copyfile: Copy a file from source remote to destination remote
  12524. This takes the following parameters:
  12525. - srcFs - a remote name string e.g. "drive:" for the source, "/" for
  12526. local filesystem
  12527. - srcRemote - a path within that remote e.g. "file.txt" for the source
  12528. - dstFs - a remote name string e.g. "drive2:" for the destination, "/"
  12529. for local filesystem
  12530. - dstRemote - a path within that remote e.g. "file2.txt" for the
  12531. destination
  12532. Authentication is required for this call.
  12533. operations/copyurl: Copy the URL to the object
  12534. This takes the following parameters:
  12535. - fs - a remote name string e.g. "drive:"
  12536. - remote - a path within that remote e.g. "dir"
  12537. - url - string, URL to read from
  12538. - autoFilename - boolean, set to true to retrieve destination file
  12539. name from url
  12540. See the copyurl command for more information on the above.
  12541. Authentication is required for this call.
  12542. operations/delete: Remove files in the path
  12543. This takes the following parameters:
  12544. - fs - a remote name string e.g. "drive:"
  12545. See the delete command for more information on the above.
  12546. Authentication is required for this call.
  12547. operations/deletefile: Remove the single file pointed to
  12548. This takes the following parameters:
  12549. - fs - a remote name string e.g. "drive:"
  12550. - remote - a path within that remote e.g. "dir"
  12551. See the deletefile command for more information on the above.
  12552. Authentication is required for this call.
  12553. operations/fsinfo: Return information about the remote
  12554. This takes the following parameters:
  12555. - fs - a remote name string e.g. "drive:"
  12556. This returns info about the remote passed in;
  12557. {
  12558. // optional features and whether they are available or not
  12559. "Features": {
  12560. "About": true,
  12561. "BucketBased": false,
  12562. "BucketBasedRootOK": false,
  12563. "CanHaveEmptyDirectories": true,
  12564. "CaseInsensitive": false,
  12565. "ChangeNotify": false,
  12566. "CleanUp": false,
  12567. "Command": true,
  12568. "Copy": false,
  12569. "DirCacheFlush": false,
  12570. "DirMove": true,
  12571. "Disconnect": false,
  12572. "DuplicateFiles": false,
  12573. "GetTier": false,
  12574. "IsLocal": true,
  12575. "ListR": false,
  12576. "MergeDirs": false,
  12577. "MetadataInfo": true,
  12578. "Move": true,
  12579. "OpenWriterAt": true,
  12580. "PublicLink": false,
  12581. "Purge": true,
  12582. "PutStream": true,
  12583. "PutUnchecked": false,
  12584. "ReadMetadata": true,
  12585. "ReadMimeType": false,
  12586. "ServerSideAcrossConfigs": false,
  12587. "SetTier": false,
  12588. "SetWrapper": false,
  12589. "Shutdown": false,
  12590. "SlowHash": true,
  12591. "SlowModTime": false,
  12592. "UnWrap": false,
  12593. "UserInfo": false,
  12594. "UserMetadata": true,
  12595. "WrapFs": false,
  12596. "WriteMetadata": true,
  12597. "WriteMimeType": false
  12598. },
  12599. // Names of hashes available
  12600. "Hashes": [
  12601. "md5",
  12602. "sha1",
  12603. "whirlpool",
  12604. "crc32",
  12605. "sha256",
  12606. "dropbox",
  12607. "mailru",
  12608. "quickxor"
  12609. ],
  12610. "Name": "local", // Name as created
  12611. "Precision": 1, // Precision of timestamps in ns
  12612. "Root": "/", // Path as created
  12613. "String": "Local file system at /", // how the remote will appear in logs
  12614. // Information about the system metadata for this backend
  12615. "MetadataInfo": {
  12616. "System": {
  12617. "atime": {
  12618. "Help": "Time of last access",
  12619. "Type": "RFC 3339",
  12620. "Example": "2006-01-02T15:04:05.999999999Z07:00"
  12621. },
  12622. "btime": {
  12623. "Help": "Time of file birth (creation)",
  12624. "Type": "RFC 3339",
  12625. "Example": "2006-01-02T15:04:05.999999999Z07:00"
  12626. },
  12627. "gid": {
  12628. "Help": "Group ID of owner",
  12629. "Type": "decimal number",
  12630. "Example": "500"
  12631. },
  12632. "mode": {
  12633. "Help": "File type and mode",
  12634. "Type": "octal, unix style",
  12635. "Example": "0100664"
  12636. },
  12637. "mtime": {
  12638. "Help": "Time of last modification",
  12639. "Type": "RFC 3339",
  12640. "Example": "2006-01-02T15:04:05.999999999Z07:00"
  12641. },
  12642. "rdev": {
  12643. "Help": "Device ID (if special file)",
  12644. "Type": "hexadecimal",
  12645. "Example": "1abc"
  12646. },
  12647. "uid": {
  12648. "Help": "User ID of owner",
  12649. "Type": "decimal number",
  12650. "Example": "500"
  12651. }
  12652. },
  12653. "Help": "Textual help string\n"
  12654. }
  12655. }
  12656. This command does not have a command line equivalent so use this
  12657. instead:
  12658. rclone rc --loopback operations/fsinfo fs=remote:
  12659. operations/hashsum: Produces a hashsum file for all the objects in the path.
  12660. Produces a hash file for all the objects in the path using the hash
  12661. named. The output is in the same format as the standard md5sum/sha1sum
  12662. tool.
  12663. This takes the following parameters:
  12664. - fs - a remote name string e.g. "drive:" for the source, "/" for
  12665. local filesystem
  12666. - this can point to a file and just that file will be returned in
  12667. the listing.
  12668. - hashType - type of hash to be used
  12669. - download - check by downloading rather than with hash (boolean)
  12670. - base64 - output the hashes in base64 rather than hex (boolean)
  12671. If you supply the download flag, it will download the data from the
  12672. remote and create the hash on the fly. This can be useful for remotes
  12673. that don't support the given hash or if you really want to check all the
  12674. data.
  12675. Note that if you wish to supply a checkfile to check hashes against the
  12676. current files then you should use operations/check instead of
  12677. operations/hashsum.
  12678. Returns:
  12679. - hashsum - array of strings of the hashes
  12680. - hashType - type of hash used
  12681. Example:
  12682. $ rclone rc --loopback operations/hashsum fs=bin hashType=MD5 download=true base64=true
  12683. {
  12684. "hashType": "md5",
  12685. "hashsum": [
  12686. "WTSVLpuiXyJO_kGzJerRLg== backend-versions.sh",
  12687. "v1b_OlWCJO9LtNq3EIKkNQ== bisect-go-rclone.sh",
  12688. "VHbmHzHh4taXzgag8BAIKQ== bisect-rclone.sh",
  12689. ]
  12690. }
  12691. See the hashsum command for more information on the above.
  12692. Authentication is required for this call.
  12693. operations/list: List the given remote and path in JSON format
  12694. This takes the following parameters:
  12695. - fs - a remote name string e.g. "drive:"
  12696. - remote - a path within that remote e.g. "dir"
  12697. - opt - a dictionary of options to control the listing (optional)
  12698. - recurse - If set recurse directories
  12699. - noModTime - If set return modification time
  12700. - showEncrypted - If set show decrypted names
  12701. - showOrigIDs - If set show the IDs for each item if known
  12702. - showHash - If set return a dictionary of hashes
  12703. - noMimeType - If set don't show mime types
  12704. - dirsOnly - If set only show directories
  12705. - filesOnly - If set only show files
  12706. - metadata - If set return metadata of objects also
  12707. - hashTypes - array of strings of hash types to show if showHash
  12708. set
  12709. Returns:
  12710. - list
  12711. - This is an array of objects as described in the lsjson command
  12712. See the lsjson command for more information on the above and examples.
  12713. Authentication is required for this call.
  12714. operations/mkdir: Make a destination directory or container
  12715. This takes the following parameters:
  12716. - fs - a remote name string e.g. "drive:"
  12717. - remote - a path within that remote e.g. "dir"
  12718. See the mkdir command for more information on the above.
  12719. Authentication is required for this call.
  12720. operations/movefile: Move a file from source remote to destination remote
  12721. This takes the following parameters:
  12722. - srcFs - a remote name string e.g. "drive:" for the source, "/" for
  12723. local filesystem
  12724. - srcRemote - a path within that remote e.g. "file.txt" for the source
  12725. - dstFs - a remote name string e.g. "drive2:" for the destination, "/"
  12726. for local filesystem
  12727. - dstRemote - a path within that remote e.g. "file2.txt" for the
  12728. destination
  12729. Authentication is required for this call.
  12730. operations/publiclink: Create or retrieve a public link to the given file or folder.
  12731. This takes the following parameters:
  12732. - fs - a remote name string e.g. "drive:"
  12733. - remote - a path within that remote e.g. "dir"
  12734. - unlink - boolean - if set removes the link rather than adding it
  12735. (optional)
  12736. - expire - string - the expiry time of the link e.g. "1d" (optional)
  12737. Returns:
  12738. - url - URL of the resource
  12739. See the link command for more information on the above.
  12740. Authentication is required for this call.
  12741. operations/purge: Remove a directory or container and all of its contents
  12742. This takes the following parameters:
  12743. - fs - a remote name string e.g. "drive:"
  12744. - remote - a path within that remote e.g. "dir"
  12745. See the purge command for more information on the above.
  12746. Authentication is required for this call.
  12747. operations/rmdir: Remove an empty directory or container
  12748. This takes the following parameters:
  12749. - fs - a remote name string e.g. "drive:"
  12750. - remote - a path within that remote e.g. "dir"
  12751. See the rmdir command for more information on the above.
  12752. Authentication is required for this call.
  12753. operations/rmdirs: Remove all the empty directories in the path
  12754. This takes the following parameters:
  12755. - fs - a remote name string e.g. "drive:"
  12756. - remote - a path within that remote e.g. "dir"
  12757. - leaveRoot - boolean, set to true not to delete the root
  12758. See the rmdirs command for more information on the above.
  12759. Authentication is required for this call.
  12760. operations/settier: Changes storage tier or class on all files in the path
  12761. This takes the following parameters:
  12762. - fs - a remote name string e.g. "drive:"
  12763. See the settier command for more information on the above.
  12764. Authentication is required for this call.
  12765. operations/settierfile: Changes storage tier or class on the single file pointed to
  12766. This takes the following parameters:
  12767. - fs - a remote name string e.g. "drive:"
  12768. - remote - a path within that remote e.g. "dir"
  12769. See the settierfile command for more information on the above.
  12770. Authentication is required for this call.
  12771. operations/size: Count the number of bytes and files in remote
  12772. This takes the following parameters:
  12773. - fs - a remote name string e.g. "drive:path/to/dir"
  12774. Returns:
  12775. - count - number of files
  12776. - bytes - number of bytes in those files
  12777. See the size command for more information on the above.
  12778. Authentication is required for this call.
  12779. operations/stat: Give information about the supplied file or directory
  12780. This takes the following parameters
  12781. - fs - a remote name string eg "drive:"
  12782. - remote - a path within that remote eg "dir"
  12783. - opt - a dictionary of options to control the listing (optional)
  12784. - see operations/list for the options
  12785. The result is
  12786. - item - an object as described in the lsjson command. Will be null if
  12787. not found.
  12788. Note that if you are only interested in files then it is much more
  12789. efficient to set the filesOnly flag in the options.
  12790. See the lsjson command for more information on the above and examples.
  12791. Authentication is required for this call.
  12792. operations/uploadfile: Upload file using multiform/form-data
  12793. This takes the following parameters:
  12794. - fs - a remote name string e.g. "drive:"
  12795. - remote - a path within that remote e.g. "dir"
  12796. - each part in body represents a file to be uploaded
  12797. See the uploadfile command for more information on the above.
  12798. Authentication is required for this call.
  12799. options/blocks: List all the option blocks
  12800. Returns: - options - a list of the options block names
  12801. options/get: Get all the global options
  12802. Returns an object where keys are option block names and values are an
  12803. object with the current option values in.
  12804. Note that these are the global options which are unaffected by use of
  12805. the _config and _filter parameters. If you wish to read the parameters
  12806. set in _config then use options/config and for _filter use
  12807. options/filter.
  12808. This shows the internal names of the option within rclone which should
  12809. map to the external options very easily with a few exceptions.
  12810. options/local: Get the currently active config for this call
  12811. Returns an object with the keys "config" and "filter". The "config" key
  12812. contains the local config and the "filter" key contains the local
  12813. filters.
  12814. Note that these are the local options specific to this rc call. If
  12815. _config was not supplied then they will be the global options. Likewise
  12816. with "_filter".
  12817. This call is mostly useful for seeing if _config and _filter passing is
  12818. working.
  12819. This shows the internal names of the option within rclone which should
  12820. map to the external options very easily with a few exceptions.
  12821. options/set: Set an option
  12822. Parameters:
  12823. - option block name containing an object with
  12824. - key: value
  12825. Repeated as often as required.
  12826. Only supply the options you wish to change. If an option is unknown it
  12827. will be silently ignored. Not all options will have an effect when
  12828. changed like this.
  12829. For example:
  12830. This sets DEBUG level logs (-vv) (these can be set by number or string)
  12831. rclone rc options/set --json '{"main": {"LogLevel": "DEBUG"}}'
  12832. rclone rc options/set --json '{"main": {"LogLevel": 8}}'
  12833. And this sets INFO level logs (-v)
  12834. rclone rc options/set --json '{"main": {"LogLevel": "INFO"}}'
  12835. And this sets NOTICE level logs (normal without -v)
  12836. rclone rc options/set --json '{"main": {"LogLevel": "NOTICE"}}'
  12837. pluginsctl/addPlugin: Add a plugin using url
  12838. Used for adding a plugin to the webgui.
  12839. This takes the following parameters:
  12840. - url - http url of the github repo where the plugin is hosted
  12841. (http://github.com/rclone/rclone-webui-react).
  12842. Example:
  12843. rclone rc pluginsctl/addPlugin
  12844. Authentication is required for this call.
  12845. pluginsctl/getPluginsForType: Get plugins with type criteria
  12846. This shows all possible plugins by a mime type.
  12847. This takes the following parameters:
  12848. - type - supported mime type by a loaded plugin e.g. (video/mp4,
  12849. audio/mp3).
  12850. - pluginType - filter plugins based on their type e.g. (DASHBOARD,
  12851. FILE_HANDLER, TERMINAL).
  12852. Returns:
  12853. - loadedPlugins - list of current production plugins.
  12854. - testPlugins - list of temporarily loaded development plugins,
  12855. usually running on a different server.
  12856. Example:
  12857. rclone rc pluginsctl/getPluginsForType type=video/mp4
  12858. Authentication is required for this call.
  12859. pluginsctl/listPlugins: Get the list of currently loaded plugins
  12860. This allows you to get the currently enabled plugins and their details.
  12861. This takes no parameters and returns:
  12862. - loadedPlugins - list of current production plugins.
  12863. - testPlugins - list of temporarily loaded development plugins,
  12864. usually running on a different server.
  12865. E.g.
  12866. rclone rc pluginsctl/listPlugins
  12867. Authentication is required for this call.
  12868. pluginsctl/listTestPlugins: Show currently loaded test plugins
  12869. Allows listing of test plugins with the rclone.test set to true in
  12870. package.json of the plugin.
  12871. This takes no parameters and returns:
  12872. - loadedTestPlugins - list of currently available test plugins.
  12873. E.g.
  12874. rclone rc pluginsctl/listTestPlugins
  12875. Authentication is required for this call.
  12876. pluginsctl/removePlugin: Remove a loaded plugin
  12877. This allows you to remove a plugin using it's name.
  12878. This takes parameters:
  12879. - name - name of the plugin in the format author/plugin_name.
  12880. E.g.
  12881. rclone rc pluginsctl/removePlugin name=rclone/video-plugin
  12882. Authentication is required for this call.
  12883. pluginsctl/removeTestPlugin: Remove a test plugin
  12884. This allows you to remove a plugin using it's name.
  12885. This takes the following parameters:
  12886. - name - name of the plugin in the format author/plugin_name.
  12887. Example:
  12888. rclone rc pluginsctl/removeTestPlugin name=rclone/rclone-webui-react
  12889. Authentication is required for this call.
  12890. rc/error: This returns an error
  12891. This returns an error with the input as part of its error string. Useful
  12892. for testing error handling.
  12893. rc/list: List all the registered remote control commands
  12894. This lists all the registered remote control commands as a JSON map in
  12895. the commands response.
  12896. rc/noop: Echo the input to the output parameters
  12897. This echoes the input parameters to the output parameters for testing
  12898. purposes. It can be used to check that rclone is still alive and to
  12899. check that parameter passing is working properly.
  12900. rc/noopauth: Echo the input to the output parameters requiring auth
  12901. This echoes the input parameters to the output parameters for testing
  12902. purposes. It can be used to check that rclone is still alive and to
  12903. check that parameter passing is working properly.
  12904. Authentication is required for this call.
  12905. sync/bisync: Perform bidirectional synchronization between two paths.
  12906. This takes the following parameters
  12907. - path1 - a remote directory string e.g. drive:path1
  12908. - path2 - a remote directory string e.g. drive:path2
  12909. - dryRun - dry-run mode
  12910. - resync - performs the resync run
  12911. - checkAccess - abort if RCLONE_TEST files are not found on both
  12912. filesystems
  12913. - checkFilename - file name for checkAccess (default: RCLONE_TEST)
  12914. - maxDelete - abort sync if percentage of deleted files is above this
  12915. threshold (default: 50)
  12916. - force - Bypass maxDelete safety check and run the sync
  12917. - checkSync - true by default, false disables comparison of final
  12918. listings, only will skip sync, only compare listings from the last
  12919. run
  12920. - createEmptySrcDirs - Sync creation and deletion of empty
  12921. directories. (Not compatible with --remove-empty-dirs)
  12922. - removeEmptyDirs - remove empty directories at the final cleanup step
  12923. - filtersFile - read filtering patterns from a file
  12924. - ignoreListingChecksum - Do not use checksums for listings
  12925. - resilient - Allow future runs to retry after certain less-serious
  12926. errors, instead of requiring resync. Use at your own risk!
  12927. - workdir - server directory for history files (default:
  12928. ~/.cache/rclone/bisync)
  12929. - backupdir1 - --backup-dir for Path1. Must be a non-overlapping path
  12930. on the same remote.
  12931. - backupdir2 - --backup-dir for Path2. Must be a non-overlapping path
  12932. on the same remote.
  12933. - noCleanup - retain working files
  12934. See bisync command help and full bisync description for more
  12935. information.
  12936. Authentication is required for this call.
  12937. sync/copy: copy a directory from source remote to destination remote
  12938. This takes the following parameters:
  12939. - srcFs - a remote name string e.g. "drive:src" for the source
  12940. - dstFs - a remote name string e.g. "drive:dst" for the destination
  12941. - createEmptySrcDirs - create empty src directories on destination if
  12942. set
  12943. See the copy command for more information on the above.
  12944. Authentication is required for this call.
  12945. sync/move: move a directory from source remote to destination remote
  12946. This takes the following parameters:
  12947. - srcFs - a remote name string e.g. "drive:src" for the source
  12948. - dstFs - a remote name string e.g. "drive:dst" for the destination
  12949. - createEmptySrcDirs - create empty src directories on destination if
  12950. set
  12951. - deleteEmptySrcDirs - delete empty src directories if set
  12952. See the move command for more information on the above.
  12953. Authentication is required for this call.
  12954. sync/sync: sync a directory from source remote to destination remote
  12955. This takes the following parameters:
  12956. - srcFs - a remote name string e.g. "drive:src" for the source
  12957. - dstFs - a remote name string e.g. "drive:dst" for the destination
  12958. - createEmptySrcDirs - create empty src directories on destination if
  12959. set
  12960. See the sync command for more information on the above.
  12961. Authentication is required for this call.
  12962. vfs/forget: Forget files or directories in the directory cache.
  12963. This forgets the paths in the directory cache causing them to be re-read
  12964. from the remote when needed.
  12965. If no paths are passed in then it will forget all the paths in the
  12966. directory cache.
  12967. rclone rc vfs/forget
  12968. Otherwise pass files or dirs in as file=path or dir=path. Any parameter
  12969. key starting with file will forget that file and any starting with dir
  12970. will forget that dir, e.g.
  12971. rclone rc vfs/forget file=hello file2=goodbye dir=home/junk
  12972. This command takes an "fs" parameter. If this parameter is not supplied
  12973. and if there is only one VFS in use then that VFS will be used. If there
  12974. is more than one VFS in use then the "fs" parameter must be supplied.
  12975. vfs/list: List active VFSes.
  12976. This lists the active VFSes.
  12977. It returns a list under the key "vfses" where the values are the VFS
  12978. names that could be passed to the other VFS commands in the "fs"
  12979. parameter.
  12980. vfs/poll-interval: Get the status or update the value of the poll-interval option.
  12981. Without any parameter given this returns the current status of the
  12982. poll-interval setting.
  12983. When the interval=duration parameter is set, the poll-interval value is
  12984. updated and the polling function is notified. Setting interval=0
  12985. disables poll-interval.
  12986. rclone rc vfs/poll-interval interval=5m
  12987. The timeout=duration parameter can be used to specify a time to wait for
  12988. the current poll function to apply the new value. If timeout is less or
  12989. equal 0, which is the default, wait indefinitely.
  12990. The new poll-interval value will only be active when the timeout is not
  12991. reached.
  12992. If poll-interval is updated or disabled temporarily, some changes might
  12993. not get picked up by the polling function, depending on the used remote.
  12994. This command takes an "fs" parameter. If this parameter is not supplied
  12995. and if there is only one VFS in use then that VFS will be used. If there
  12996. is more than one VFS in use then the "fs" parameter must be supplied.
  12997. vfs/refresh: Refresh the directory cache.
  12998. This reads the directories for the specified paths and freshens the
  12999. directory cache.
  13000. If no paths are passed in then it will refresh the root directory.
  13001. rclone rc vfs/refresh
  13002. Otherwise pass directories in as dir=path. Any parameter key starting
  13003. with dir will refresh that directory, e.g.
  13004. rclone rc vfs/refresh dir=home/junk dir2=data/misc
  13005. If the parameter recursive=true is given the whole directory tree will
  13006. get refreshed. This refresh will use --fast-list if enabled.
  13007. This command takes an "fs" parameter. If this parameter is not supplied
  13008. and if there is only one VFS in use then that VFS will be used. If there
  13009. is more than one VFS in use then the "fs" parameter must be supplied.
  13010. vfs/stats: Stats for a VFS.
  13011. This returns stats for the selected VFS.
  13012. {
  13013. // Status of the disk cache - only present if --vfs-cache-mode > off
  13014. "diskCache": {
  13015. "bytesUsed": 0,
  13016. "erroredFiles": 0,
  13017. "files": 0,
  13018. "hashType": 1,
  13019. "outOfSpace": false,
  13020. "path": "/home/user/.cache/rclone/vfs/local/mnt/a",
  13021. "pathMeta": "/home/user/.cache/rclone/vfsMeta/local/mnt/a",
  13022. "uploadsInProgress": 0,
  13023. "uploadsQueued": 0
  13024. },
  13025. "fs": "/mnt/a",
  13026. "inUse": 1,
  13027. // Status of the in memory metadata cache
  13028. "metadataCache": {
  13029. "dirs": 1,
  13030. "files": 0
  13031. },
  13032. // Options as returned by options/get
  13033. "opt": {
  13034. "CacheMaxAge": 3600000000000,
  13035. // ...
  13036. "WriteWait": 1000000000
  13037. }
  13038. }
  13039. This command takes an "fs" parameter. If this parameter is not supplied
  13040. and if there is only one VFS in use then that VFS will be used. If there
  13041. is more than one VFS in use then the "fs" parameter must be supplied.
  13042. Accessing the remote control via HTTP
  13043. Rclone implements a simple HTTP based protocol.
  13044. Each endpoint takes an JSON object and returns a JSON object or an
  13045. error. The JSON objects are essentially a map of string names to values.
  13046. All calls must made using POST.
  13047. The input objects can be supplied using URL parameters, POST parameters
  13048. or by supplying "Content-Type: application/json" and a JSON blob in the
  13049. body. There are examples of these below using curl.
  13050. The response will be a JSON blob in the body of the response. This is
  13051. formatted to be reasonably human-readable.
  13052. Error returns
  13053. If an error occurs then there will be an HTTP error status (e.g. 500)
  13054. and the body of the response will contain a JSON encoded error object,
  13055. e.g.
  13056. {
  13057. "error": "Expecting string value for key \"remote\" (was float64)",
  13058. "input": {
  13059. "fs": "/tmp",
  13060. "remote": 3
  13061. },
  13062. "status": 400
  13063. "path": "operations/rmdir",
  13064. }
  13065. The keys in the error response are - error - error string - input - the
  13066. input parameters to the call - status - the HTTP status code - path -
  13067. the path of the call
  13068. CORS
  13069. The sever implements basic CORS support and allows all origins for that.
  13070. The response to a preflight OPTIONS request will echo the requested
  13071. "Access-Control-Request-Headers" back.
  13072. Using POST with URL parameters only
  13073. curl -X POST 'http://localhost:5572/rc/noop?potato=1&sausage=2'
  13074. Response
  13075. {
  13076. "potato": "1",
  13077. "sausage": "2"
  13078. }
  13079. Here is what an error response looks like:
  13080. curl -X POST 'http://localhost:5572/rc/error?potato=1&sausage=2'
  13081. {
  13082. "error": "arbitrary error on input map[potato:1 sausage:2]",
  13083. "input": {
  13084. "potato": "1",
  13085. "sausage": "2"
  13086. }
  13087. }
  13088. Note that curl doesn't return errors to the shell unless you use the -f
  13089. option
  13090. $ curl -f -X POST 'http://localhost:5572/rc/error?potato=1&sausage=2'
  13091. curl: (22) The requested URL returned error: 400 Bad Request
  13092. $ echo $?
  13093. 22
  13094. Using POST with a form
  13095. curl --data "potato=1" --data "sausage=2" http://localhost:5572/rc/noop
  13096. Response
  13097. {
  13098. "potato": "1",
  13099. "sausage": "2"
  13100. }
  13101. Note that you can combine these with URL parameters too with the POST
  13102. parameters taking precedence.
  13103. curl --data "potato=1" --data "sausage=2" "http://localhost:5572/rc/noop?rutabaga=3&sausage=4"
  13104. Response
  13105. {
  13106. "potato": "1",
  13107. "rutabaga": "3",
  13108. "sausage": "4"
  13109. }
  13110. Using POST with a JSON blob
  13111. curl -H "Content-Type: application/json" -X POST -d '{"potato":2,"sausage":1}' http://localhost:5572/rc/noop
  13112. response
  13113. {
  13114. "password": "xyz",
  13115. "username": "xyz"
  13116. }
  13117. This can be combined with URL parameters too if required. The JSON blob
  13118. takes precedence.
  13119. curl -H "Content-Type: application/json" -X POST -d '{"potato":2,"sausage":1}' 'http://localhost:5572/rc/noop?rutabaga=3&potato=4'
  13120. {
  13121. "potato": 2,
  13122. "rutabaga": "3",
  13123. "sausage": 1
  13124. }
  13125. Debugging rclone with pprof
  13126. If you use the --rc flag this will also enable the use of the go
  13127. profiling tools on the same port.
  13128. To use these, first install go.
  13129. Debugging memory use
  13130. To profile rclone's memory use you can run:
  13131. go tool pprof -web http://localhost:5572/debug/pprof/heap
  13132. This should open a page in your browser showing what is using what
  13133. memory.
  13134. You can also use the -text flag to produce a textual summary
  13135. $ go tool pprof -text http://localhost:5572/debug/pprof/heap
  13136. Showing nodes accounting for 1537.03kB, 100% of 1537.03kB total
  13137. flat flat% sum% cum cum%
  13138. 1024.03kB 66.62% 66.62% 1024.03kB 66.62% github.com/rclone/rclone/vendor/golang.org/x/net/http2/hpack.addDecoderNode
  13139. 513kB 33.38% 100% 513kB 33.38% net/http.newBufioWriterSize
  13140. 0 0% 100% 1024.03kB 66.62% github.com/rclone/rclone/cmd/all.init
  13141. 0 0% 100% 1024.03kB 66.62% github.com/rclone/rclone/cmd/serve.init
  13142. 0 0% 100% 1024.03kB 66.62% github.com/rclone/rclone/cmd/serve/restic.init
  13143. 0 0% 100% 1024.03kB 66.62% github.com/rclone/rclone/vendor/golang.org/x/net/http2.init
  13144. 0 0% 100% 1024.03kB 66.62% github.com/rclone/rclone/vendor/golang.org/x/net/http2/hpack.init
  13145. 0 0% 100% 1024.03kB 66.62% github.com/rclone/rclone/vendor/golang.org/x/net/http2/hpack.init.0
  13146. 0 0% 100% 1024.03kB 66.62% main.init
  13147. 0 0% 100% 513kB 33.38% net/http.(*conn).readRequest
  13148. 0 0% 100% 513kB 33.38% net/http.(*conn).serve
  13149. 0 0% 100% 1024.03kB 66.62% runtime.main
  13150. Debugging go routine leaks
  13151. Memory leaks are most often caused by go routine leaks keeping memory
  13152. alive which should have been garbage collected.
  13153. See all active go routines using
  13154. curl http://localhost:5572/debug/pprof/goroutine?debug=1
  13155. Or go to http://localhost:5572/debug/pprof/goroutine?debug=1 in your
  13156. browser.
  13157. Other profiles to look at
  13158. You can see a summary of profiles available at
  13159. http://localhost:5572/debug/pprof/
  13160. Here is how to use some of them:
  13161. - Memory: go tool pprof http://localhost:5572/debug/pprof/heap
  13162. - Go routines:
  13163. curl http://localhost:5572/debug/pprof/goroutine?debug=1
  13164. - 30-second CPU profile:
  13165. go tool pprof http://localhost:5572/debug/pprof/profile
  13166. - 5-second execution trace:
  13167. wget http://localhost:5572/debug/pprof/trace?seconds=5
  13168. - Goroutine blocking profile
  13169. - Enable first with: rclone rc debug/set-block-profile-rate rate=1
  13170. (docs)
  13171. - go tool pprof http://localhost:5572/debug/pprof/block
  13172. - Contended mutexes:
  13173. - Enable first with:
  13174. rclone rc debug/set-mutex-profile-fraction rate=1 (docs)
  13175. - go tool pprof http://localhost:5572/debug/pprof/mutex
  13176. See the net/http/pprof docs for more info on how to use the profiling
  13177. and for a general overview see the Go team's blog post on profiling go
  13178. programs.
  13179. The profiling hook is zero overhead unless it is used.
  13180. Overview of cloud storage systems
  13181. Each cloud storage system is slightly different. Rclone attempts to
  13182. provide a unified interface to them, but some underlying differences
  13183. show through.
  13184. Features
  13185. Here is an overview of the major features of each cloud storage system.
  13186. Name Hash ModTime Case Insensitive Duplicate Files MIME Type Metadata
  13187. ------------------------------- ------------------- --------- ------------------ ----------------- ----------- ----------
  13188. 1Fichier Whirlpool - No Yes R -
  13189. Akamai Netstorage MD5, SHA256 R/W No No R -
  13190. Amazon S3 (or S3 compatible) MD5 R/W No No R/W RWU
  13191. Backblaze B2 SHA1 R/W No No R/W -
  13192. Box SHA1 R/W Yes No - -
  13193. Citrix ShareFile MD5 R/W Yes No - -
  13194. Dropbox DBHASH ¹ R Yes No - -
  13195. Enterprise File Fabric - R/W Yes No R/W -
  13196. FTP - R/W ¹⁰ No No - -
  13197. Google Cloud Storage MD5 R/W No No R/W -
  13198. Google Drive MD5, SHA1, SHA256 DR/W No Yes R/W DRWU
  13199. Google Photos - - No Yes R -
  13200. HDFS - R/W No No - -
  13201. HiDrive HiDrive ¹² R/W No No - -
  13202. HTTP - R No No R -
  13203. Internet Archive MD5, SHA1, CRC32 R/W ¹¹ No No - RWU
  13204. Jottacloud MD5 R/W Yes No R RW
  13205. Koofr MD5 - Yes No - -
  13206. Linkbox - R No No - -
  13207. Mail.ru Cloud Mailru ⁶ R/W Yes No - -
  13208. Mega - - No Yes - -
  13209. Memory MD5 R/W No No - -
  13210. Microsoft Azure Blob Storage MD5 R/W No No R/W -
  13211. Microsoft Azure Files Storage MD5 R/W Yes No R/W -
  13212. Microsoft OneDrive QuickXorHash ⁵ DR/W Yes No R DRW
  13213. OpenDrive MD5 R/W Yes Partial ⁸ - -
  13214. OpenStack Swift MD5 R/W No No R/W -
  13215. Oracle Object Storage MD5 R/W No No R/W -
  13216. pCloud MD5, SHA1 ⁷ R No No W -
  13217. PikPak MD5 R No No R -
  13218. premiumize.me - - Yes No R -
  13219. put.io CRC-32 R/W No Yes R -
  13220. Proton Drive SHA1 R/W No No R -
  13221. QingStor MD5 - ⁹ No No R/W -
  13222. Quatrix by Maytech - R/W No No - -
  13223. Seafile - - No No - -
  13224. SFTP MD5, SHA1 ² DR/W Depends No - -
  13225. Sia - - No No - -
  13226. SMB - R/W Yes No - -
  13227. SugarSync - - No No - -
  13228. Storj - R No No - -
  13229. Uptobox - - No Yes - -
  13230. WebDAV MD5, SHA1 ³ R ⁴ Depends No - -
  13231. Yandex Disk MD5 R/W No No R -
  13232. Zoho WorkDrive - - No No - -
  13233. The local filesystem All DR/W Depends No - DRWU
  13234. ¹ Dropbox supports its own custom hash. This is an SHA256 sum of all the
  13235. 4 MiB block SHA256s.
  13236. ² SFTP supports checksums if the same login has shell access and md5sum
  13237. or sha1sum as well as echo are in the remote's PATH.
  13238. ³ WebDAV supports hashes when used with Fastmail Files, Owncloud and
  13239. Nextcloud only.
  13240. ⁴ WebDAV supports modtimes when used with Fastmail Files, Owncloud and
  13241. Nextcloud only.
  13242. ⁵ QuickXorHash is Microsoft's own hash.
  13243. ⁶ Mail.ru uses its own modified SHA1 hash
  13244. ⁷ pCloud only supports SHA1 (not MD5) in its EU region
  13245. ⁸ Opendrive does not support creation of duplicate files using their web
  13246. client interface or other stock clients, but the underlying storage
  13247. platform has been determined to allow duplicate files, and it is
  13248. possible to create them with rclone. It may be that this is a mistake or
  13249. an unsupported feature.
  13250. ⁹ QingStor does not support SetModTime for objects bigger than 5 GiB.
  13251. ¹⁰ FTP supports modtimes for the major FTP servers, and also others if
  13252. they advertised required protocol extensions. See this for more details.
  13253. ¹¹ Internet Archive requires option wait_archive to be set to a non-zero
  13254. value for full modtime support.
  13255. ¹² HiDrive supports its own custom hash. It combines SHA1 sums for each
  13256. 4 KiB block hierarchically to a single top-level sum.
  13257. Hash
  13258. The cloud storage system supports various hash types of the objects. The
  13259. hashes are used when transferring data as an integrity check and can be
  13260. specifically used with the --checksum flag in syncs and in the check
  13261. command.
  13262. To use the verify checksums when transferring between cloud storage
  13263. systems they must support a common hash type.
  13264. ModTime
  13265. Almost all cloud storage systems store some sort of timestamp on
  13266. objects, but several of them not something that is appropriate to use
  13267. for syncing. E.g. some backends will only write a timestamp that
  13268. represents the time of the upload. To be relevant for syncing it should
  13269. be able to store the modification time of the source object. If this is
  13270. not the case, rclone will only check the file size by default, though
  13271. can be configured to check the file hash (with the --checksum flag).
  13272. Ideally it should also be possible to change the timestamp of an
  13273. existing file without having to re-upload it.
  13274. -----------------------------------------------------------------------
  13275. Key Explanation
  13276. ------------------- ---------------------------------------------------
  13277. - ModTimes not supported - times likely the upload
  13278. time
  13279. R ModTimes supported on files but can't be changed
  13280. without re-upload
  13281. R/W Read and Write ModTimes fully supported on files
  13282. DR ModTimes supported on files and directories but
  13283. can't be changed without re-upload
  13284. DR/W Read and Write ModTimes fully supported on files
  13285. and directories
  13286. -----------------------------------------------------------------------
  13287. Storage systems with a - in the ModTime column, means the modification
  13288. read on objects is not the modification time of the file when uploaded.
  13289. It is most likely the time the file was uploaded, or possibly something
  13290. else (like the time the picture was taken in Google Photos).
  13291. Storage systems with a R (for read-only) in the ModTime column, means
  13292. the it keeps modification times on objects, and updates them when
  13293. uploading objects, but it does not support changing only the
  13294. modification time (SetModTime operation) without re-uploading, possibly
  13295. not even without deleting existing first. Some operations in rclone,
  13296. such as copy and sync commands, will automatically check for SetModTime
  13297. support and re-upload if necessary to keep the modification times in
  13298. sync. Other commands will not work without SetModTime support, e.g.
  13299. touch command on an existing file will fail, and changes to modification
  13300. time only on a files in a mount will be silently ignored.
  13301. Storage systems with R/W (for read/write) in the ModTime column, means
  13302. they do also support modtime-only operations.
  13303. Storage systems with D in the ModTime column means that the following
  13304. symbols apply to directories as well as files.
  13305. Case Insensitive
  13306. If a cloud storage systems is case sensitive then it is possible to have
  13307. two files which differ only in case, e.g. file.txt and FILE.txt. If a
  13308. cloud storage system is case insensitive then that isn't possible.
  13309. This can cause problems when syncing between a case insensitive system
  13310. and a case sensitive system. The symptom of this is that no matter how
  13311. many times you run the sync it never completes fully.
  13312. The local filesystem and SFTP may or may not be case sensitive depending
  13313. on OS.
  13314. - Windows - usually case insensitive, though case is preserved
  13315. - OSX - usually case insensitive, though it is possible to format case
  13316. sensitive
  13317. - Linux - usually case sensitive, but there are case insensitive file
  13318. systems (e.g. FAT formatted USB keys)
  13319. Most of the time this doesn't cause any problems as people tend to avoid
  13320. files whose name differs only by case even on case sensitive systems.
  13321. Duplicate files
  13322. If a cloud storage system allows duplicate files then it can have two
  13323. objects with the same name.
  13324. This confuses rclone greatly when syncing - use the rclone dedupe
  13325. command to rename or remove duplicates.
  13326. Restricted filenames
  13327. Some cloud storage systems might have restrictions on the characters
  13328. that are usable in file or directory names. When rclone detects such a
  13329. name during a file upload, it will transparently replace the restricted
  13330. characters with similar looking Unicode characters. To handle the
  13331. different sets of restricted characters for different backends, rclone
  13332. uses something it calls encoding.
  13333. This process is designed to avoid ambiguous file names as much as
  13334. possible and allow to move files between many cloud storage systems
  13335. transparently.
  13336. The name shown by rclone to the user or during log output will only
  13337. contain a minimal set of replaced characters to ensure correct
  13338. formatting and not necessarily the actual name used on the cloud
  13339. storage.
  13340. This transformation is reversed when downloading a file or parsing
  13341. rclone arguments. For example, when uploading a file named my file?.txt
  13342. to Onedrive, it will be displayed as my file?.txt on the console, but
  13343. stored as my file?.txt to Onedrive (the ? gets replaced by the similar
  13344. looking ? character, the so-called "fullwidth question mark"). The
  13345. reverse transformation allows to read a file unusual/name.txt from
  13346. Google Drive, by passing the name unusual/name.txt on the command line
  13347. (the / needs to be replaced by the similar looking / character).
  13348. Caveats
  13349. The filename encoding system works well in most cases, at least where
  13350. file names are written in English or similar languages. You might not
  13351. even notice it: It just works. In some cases it may lead to issues,
  13352. though. E.g. when file names are written in Chinese, or Japanese, where
  13353. it is always the Unicode fullwidth variants of the punctuation marks
  13354. that are used.
  13355. On Windows, the characters :, * and ? are examples of restricted
  13356. characters. If these are used in filenames on a remote that supports it,
  13357. Rclone will transparently convert them to their fullwidth Unicode
  13358. variants *, ? and : when downloading to Windows, and back again when
  13359. uploading. This way files with names that are not allowed on Windows can
  13360. still be stored.
  13361. However, if you have files on your Windows system originally with these
  13362. same Unicode characters in their names, they will be included in the
  13363. same conversion process. E.g. if you create a file in your Windows
  13364. filesystem with name Test:1.jpg, where : is the Unicode fullwidth
  13365. colon symbol, and use rclone to upload it to Google Drive, which
  13366. supports regular : (halfwidth question mark), rclone will replace the
  13367. fullwidth : with the halfwidth : and store the file as Test:1.jpg in
  13368. Google Drive. Since both Windows and Google Drive allows the name
  13369. Test:1.jpg, it would probably be better if rclone just kept the name as
  13370. is in this case.
  13371. With the opposite situation; if you have a file named Test:1.jpg, in
  13372. your Google Drive, e.g. uploaded from a Linux system where : is valid in
  13373. file names. Then later use rclone to copy this file to your Windows
  13374. computer you will notice that on your local disk it gets renamed to
  13375. Test:1.jpg. The original filename is not legal on Windows, due to the
  13376. :, and rclone therefore renames it to make the copy possible. That is
  13377. all good. However, this can also lead to an issue: If you already had a
  13378. different file named Test:1.jpg on Windows, and then use rclone to copy
  13379. either way. Rclone will then treat the file originally named Test:1.jpg
  13380. on Google Drive and the file originally named Test:1.jpg on Windows as
  13381. the same file, and replace the contents from one with the other.
  13382. Its virtually impossible to handle all cases like these correctly in all
  13383. situations, but by customizing the encoding option, changing the set of
  13384. characters that rclone should convert, you should be able to create a
  13385. configuration that works well for your specific situation. See also the
  13386. example below.
  13387. (Windows was used as an example of a file system with many restricted
  13388. characters, and Google drive a storage system with few.)
  13389. Default restricted characters
  13390. The table below shows the characters that are replaced by default.
  13391. When a replacement character is found in a filename, this character will
  13392. be escaped with the ‛ character to avoid ambiguous file names. (e.g. a
  13393. file named ␀.txt would shown as ‛␀.txt)
  13394. Each cloud storage backend can use a different set of characters, which
  13395. will be specified in the documentation for each backend.
  13396. Character Value Replacement
  13397. ----------- ------- -------------
  13398. NUL 0x00 ␀
  13399. SOH 0x01 ␁
  13400. STX 0x02 ␂
  13401. ETX 0x03 ␃
  13402. EOT 0x04 ␄
  13403. ENQ 0x05 ␅
  13404. ACK 0x06 ␆
  13405. BEL 0x07 ␇
  13406. BS 0x08 ␈
  13407. HT 0x09 ␉
  13408. LF 0x0A ␊
  13409. VT 0x0B ␋
  13410. FF 0x0C ␌
  13411. CR 0x0D ␍
  13412. SO 0x0E ␎
  13413. SI 0x0F ␏
  13414. DLE 0x10 ␐
  13415. DC1 0x11 ␑
  13416. DC2 0x12 ␒
  13417. DC3 0x13 ␓
  13418. DC4 0x14 ␔
  13419. NAK 0x15 ␕
  13420. SYN 0x16 ␖
  13421. ETB 0x17 ␗
  13422. CAN 0x18 ␘
  13423. EM 0x19 ␙
  13424. SUB 0x1A ␚
  13425. ESC 0x1B ␛
  13426. FS 0x1C ␜
  13427. GS 0x1D ␝
  13428. RS 0x1E ␞
  13429. US 0x1F ␟
  13430. / 0x2F /
  13431. DEL 0x7F ␡
  13432. The default encoding will also encode these file names as they are
  13433. problematic with many cloud storage systems.
  13434. File name Replacement
  13435. ----------- -------------
  13436. . .
  13437. .. ..
  13438. Invalid UTF-8 bytes
  13439. Some backends only support a sequence of well formed UTF-8 bytes as file
  13440. or directory names.
  13441. In this case all invalid UTF-8 bytes will be replaced with a quoted
  13442. representation of the byte value to allow uploading a file to such a
  13443. backend. For example, the invalid byte 0xFE will be encoded as ‛FE.
  13444. A common source of invalid UTF-8 bytes are local filesystems, that store
  13445. names in a different encoding than UTF-8 or UTF-16, like latin1. See the
  13446. local filenames section for details.
  13447. Encoding option
  13448. Most backends have an encoding option, specified as a flag
  13449. --backend-encoding where backend is the name of the backend, or as a
  13450. config parameter encoding (you'll need to select the Advanced config in
  13451. rclone config to see it).
  13452. This will have default value which encodes and decodes characters in
  13453. such a way as to preserve the maximum number of characters (see above).
  13454. However this can be incorrect in some scenarios, for example if you have
  13455. a Windows file system with Unicode fullwidth characters *, ? or :,
  13456. that you want to remain as those characters on the remote rather than
  13457. being translated to regular (halfwidth) *, ? and :.
  13458. The --backend-encoding flags allow you to change that. You can disable
  13459. the encoding completely with --backend-encoding None or set
  13460. encoding = None in the config file.
  13461. Encoding takes a comma separated list of encodings. You can see the list
  13462. of all possible values by passing an invalid value to this flag, e.g.
  13463. --local-encoding "help". The command rclone help flags encoding will
  13464. show you the defaults for the backends.
  13465. ----------------------------------------------------------------------------------
  13466. Encoding Characters Encoded as
  13467. ---------------------- ------------------------ ----------------------------------
  13468. Asterisk * *
  13469. BackQuote ` `
  13470. BackSlash \ \
  13471. Colon : :
  13472. CrLf CR 0x0D, LF 0x0A ␍, ␊
  13473. Ctl All control characters ␀␁␂␃␄␅␆␇␈␉␊␋␌␍␎␏␐␑␒␓␔␕␖␗␘␙␚␛␜␝␞␟
  13474. 0x00-0x1F
  13475. Del DEL 0x7F ␡
  13476. Dollar $ $
  13477. Dot . or .. as entire string ., ..
  13478. DoubleQuote " "
  13479. Hash # #
  13480. InvalidUtf8 An invalid UTF-8 �
  13481. character (e.g. latin1)
  13482. LeftCrLfHtVt CR 0x0D, LF 0x0A, HT ␍, ␊, ␉, ␋
  13483. 0x09, VT 0x0B on the
  13484. left of a string
  13485. LeftPeriod . on the left of a .
  13486. string
  13487. LeftSpace SPACE on the left of a ␠
  13488. string
  13489. LeftTilde ~ on the left of a ~
  13490. string
  13491. LtGt <, > <, >
  13492. None No characters are
  13493. encoded
  13494. Percent % %
  13495. Pipe | |
  13496. Question ? ?
  13497. RightCrLfHtVt CR 0x0D, LF 0x0A, HT ␍, ␊, ␉, ␋
  13498. 0x09, VT 0x0B on the
  13499. right of a string
  13500. RightPeriod . on the right of a .
  13501. string
  13502. RightSpace SPACE on the right of a ␠
  13503. string
  13504. Semicolon ; ;
  13505. SingleQuote ' '
  13506. Slash / /
  13507. SquareBracket [, ] [, ]
  13508. ----------------------------------------------------------------------------------
  13509. Encoding example: FTP
  13510. To take a specific example, the FTP backend's default encoding is
  13511. --ftp-encoding "Slash,Del,Ctl,RightSpace,Dot"
  13512. However, let's say the FTP server is running on Windows and can't have
  13513. any of the invalid Windows characters in file names. You are backing up
  13514. Linux servers to this FTP server which do have those characters in file
  13515. names. So you would add the Windows set which are
  13516. Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot
  13517. to the existing ones, giving:
  13518. Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot,Del,RightSpace
  13519. This can be specified using the --ftp-encoding flag or using an encoding
  13520. parameter in the config file.
  13521. Encoding example: Windows
  13522. As a nother example, take a Windows system where there is a file with
  13523. name Test:1.jpg, where : is the Unicode fullwidth colon symbol. When
  13524. using rclone to copy this to a remote which supports :, the regular
  13525. (halfwidth) colon (such as Google Drive), you will notice that the file
  13526. gets renamed to Test:1.jpg.
  13527. To avoid this you can change the set of characters rclone should convert
  13528. for the local filesystem, using command-line argument --local-encoding.
  13529. Rclone's default behavior on Windows corresponds to
  13530. --local-encoding "Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot"
  13531. If you want to use fullwidth characters :, * and ? in your filenames
  13532. without rclone changing them when uploading to a remote, then set the
  13533. same as the default value but without Colon,Question,Asterisk:
  13534. --local-encoding "Slash,LtGt,DoubleQuote,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot"
  13535. Alternatively, you can disable the conversion of any characters with
  13536. --local-encoding None.
  13537. Instead of using command-line argument --local-encoding, you may also
  13538. set it as environment variable RCLONE_LOCAL_ENCODING, or configure a
  13539. remote of type local in your config, and set the encoding option there.
  13540. The risk by doing this is that if you have a filename with the regular
  13541. (halfwidth) :, * and ? in your cloud storage, and you try to download it
  13542. to your Windows filesystem, this will fail. These characters are not
  13543. valid in filenames on Windows, and you have told rclone not to work
  13544. around this by converting them to valid fullwidth variants.
  13545. MIME Type
  13546. MIME types (also known as media types) classify types of documents using
  13547. a simple text classification, e.g. text/html or application/pdf.
  13548. Some cloud storage systems support reading (R) the MIME type of objects
  13549. and some support writing (W) the MIME type of objects.
  13550. The MIME type can be important if you are serving files directly to HTTP
  13551. from the storage system.
  13552. If you are copying from a remote which supports reading (R) to a remote
  13553. which supports writing (W) then rclone will preserve the MIME types.
  13554. Otherwise they will be guessed from the extension, or the remote itself
  13555. may assign the MIME type.
  13556. Metadata
  13557. Backends may or may support reading or writing metadata. They may
  13558. support reading and writing system metadata (metadata intrinsic to that
  13559. backend) and/or user metadata (general purpose metadata).
  13560. The levels of metadata support are
  13561. -----------------------------------------------------------------------
  13562. Key Explanation
  13563. ------------------- ---------------------------------------------------
  13564. R Read only System Metadata on files only
  13565. RW Read and write System Metadata on files only
  13566. RWU Read and write System Metadata and read and write
  13567. User Metadata on files only
  13568. DR Read only System Metadata on files and directories
  13569. DRW Read and write System Metadata on files and
  13570. directories
  13571. DRWU Read and write System Metadata and read and write
  13572. User Metadata on files and directories
  13573. -----------------------------------------------------------------------
  13574. See the metadata docs for more info.
  13575. Optional Features
  13576. All rclone remotes support a base command set. Other features depend
  13577. upon backend-specific capabilities.
  13578. -------------------------------------------------------------------------------------------------------------------------------------
  13579. Name Purge Copy Move DirMove CleanUp ListR StreamUpload MultithreadUpload LinkSharing About EmptyDir
  13580. --------------- ------- ------ ------ --------- --------- ------- -------------- ------------------- ------------- ------- ----------
  13581. 1Fichier No Yes Yes No No No No No Yes No Yes
  13582. Akamai Yes No No No No Yes Yes No No No Yes
  13583. Netstorage
  13584. Amazon S3 (or No Yes No No Yes Yes Yes Yes Yes No No
  13585. S3 compatible)
  13586. Backblaze B2 No Yes No No Yes Yes Yes Yes Yes No No
  13587. Box Yes Yes Yes Yes Yes No Yes No Yes Yes Yes
  13588. Citrix Yes Yes Yes Yes No No No No No No Yes
  13589. ShareFile
  13590. Dropbox Yes Yes Yes Yes No No Yes No Yes Yes Yes
  13591. Enterprise File Yes Yes Yes Yes Yes No No No No No Yes
  13592. Fabric
  13593. FTP No No Yes Yes No No Yes No No No Yes
  13594. Google Cloud Yes Yes No No No Yes Yes No No No No
  13595. Storage
  13596. Google Drive Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes
  13597. Google Photos No No No No No No No No No No No
  13598. HDFS Yes No Yes Yes No No Yes No No Yes Yes
  13599. HiDrive Yes Yes Yes Yes No No Yes No No No Yes
  13600. HTTP No No No No No No No No No No Yes
  13601. ImageKit Yes Yes Yes No No No No No No No Yes
  13602. Internet No Yes No No Yes Yes No No Yes Yes No
  13603. Archive
  13604. Jottacloud Yes Yes Yes Yes Yes Yes No No Yes Yes Yes
  13605. Koofr Yes Yes Yes Yes No No Yes No Yes Yes Yes
  13606. Mail.ru Cloud Yes Yes Yes Yes Yes No No No Yes Yes Yes
  13607. Mega Yes No Yes Yes Yes No No No Yes Yes Yes
  13608. Memory No Yes No No No Yes Yes No No No No
  13609. Microsoft Azure Yes Yes No No No Yes Yes Yes No No No
  13610. Blob Storage
  13611. Microsoft Azure No Yes Yes Yes No No Yes Yes No Yes Yes
  13612. Files Storage
  13613. Microsoft Yes Yes Yes Yes Yes Yes ⁵ No No Yes Yes Yes
  13614. OneDrive
  13615. OpenDrive Yes Yes Yes Yes No No No No No No Yes
  13616. OpenStack Swift Yes ¹ Yes No No No Yes Yes No No Yes No
  13617. Oracle Object No Yes No No Yes Yes Yes Yes No No No
  13618. Storage
  13619. pCloud Yes Yes Yes Yes Yes No No No Yes Yes Yes
  13620. PikPak Yes Yes Yes Yes Yes No No No Yes Yes Yes
  13621. premiumize.me Yes No Yes Yes No No No No Yes Yes Yes
  13622. put.io Yes No Yes Yes Yes No Yes No No Yes Yes
  13623. Proton Drive Yes No Yes Yes Yes No No No No Yes Yes
  13624. QingStor No Yes No No Yes Yes No No No No No
  13625. Quatrix by Yes Yes Yes Yes No No No No No Yes Yes
  13626. Maytech
  13627. Seafile Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes
  13628. SFTP No Yes ⁴ Yes Yes No No Yes No No Yes Yes
  13629. Sia No No No No No No Yes No No No Yes
  13630. SMB No No Yes Yes No No Yes Yes No No Yes
  13631. SugarSync Yes Yes Yes Yes No No Yes No Yes No Yes
  13632. Storj Yes ² Yes Yes No No Yes Yes No Yes No No
  13633. Uptobox No Yes Yes Yes No No No No No No No
  13634. WebDAV Yes Yes Yes Yes No No Yes ³ No No Yes Yes
  13635. Yandex Disk Yes Yes Yes Yes Yes No Yes No Yes Yes Yes
  13636. Zoho WorkDrive Yes Yes Yes Yes No No No No No Yes Yes
  13637. The local No No Yes Yes No No Yes Yes No Yes Yes
  13638. filesystem
  13639. -------------------------------------------------------------------------------------------------------------------------------------
  13640. ¹ Note Swift implements this in order to delete directory markers but it
  13641. doesn't actually have a quicker way of deleting files other than
  13642. deleting them individually.
  13643. ² Storj implements this efficiently only for entire buckets. If purging
  13644. a directory inside a bucket, files are deleted individually.
  13645. ³ StreamUpload is not supported with Nextcloud
  13646. ⁴ Use the --sftp-copy-is-hardlink flag to enable.
  13647. ⁵ Use the --onedrive-delta flag to enable.
  13648. Purge
  13649. This deletes a directory quicker than just deleting all the files in the
  13650. directory.
  13651. Copy
  13652. Used when copying an object to and from the same remote. This known as a
  13653. server-side copy so you can copy a file without downloading it and
  13654. uploading it again. It is used if you use rclone copy or rclone move if
  13655. the remote doesn't support Move directly.
  13656. If the server doesn't support Copy directly then for copy operations the
  13657. file is downloaded then re-uploaded.
  13658. Move
  13659. Used when moving/renaming an object on the same remote. This is known as
  13660. a server-side move of a file. This is used in rclone move if the server
  13661. doesn't support DirMove.
  13662. If the server isn't capable of Move then rclone simulates it with Copy
  13663. then delete. If the server doesn't support Copy then rclone will
  13664. download the file and re-upload it.
  13665. DirMove
  13666. This is used to implement rclone move to move a directory if possible.
  13667. If it isn't then it will use Move on each file (which falls back to Copy
  13668. then download and upload - see Move section).
  13669. CleanUp
  13670. This is used for emptying the trash for a remote by rclone cleanup.
  13671. If the server can't do CleanUp then rclone cleanup will return an error.
  13672. ‡‡ Note that while Box implements this it has to delete every file
  13673. individually so it will be slower than emptying the trash via the WebUI
  13674. ListR
  13675. The remote supports a recursive list to list all the contents beneath a
  13676. directory quickly. This enables the --fast-list flag to work. See the
  13677. rclone docs for more details.
  13678. StreamUpload
  13679. Some remotes allow files to be uploaded without knowing the file size in
  13680. advance. This allows certain operations to work without spooling the
  13681. file to local disk first, e.g. rclone rcat.
  13682. MultithreadUpload
  13683. Some remotes allow transfers to the remote to be sent as chunks in
  13684. parallel. If this is supported then rclone will use multi-thread copying
  13685. to transfer files much faster.
  13686. LinkSharing
  13687. Sets the necessary permissions on a file or folder and prints a link
  13688. that allows others to access them, even if they don't have an account on
  13689. the particular cloud provider.
  13690. About
  13691. Rclone about prints quota information for a remote. Typical output
  13692. includes bytes used, free, quota and in trash.
  13693. If a remote lacks about capability rclone about remote:returns an error.
  13694. Backends without about capability cannot determine free space for an
  13695. rclone mount, or use policy mfs (most free space) as a member of an
  13696. rclone union remote.
  13697. See rclone about command
  13698. EmptyDir
  13699. The remote supports empty directories. See Limitations for details. Most
  13700. Object/Bucket-based remotes do not support this.
  13701. Global Flags
  13702. This describes the global flags available to every rclone command split
  13703. into groups.
  13704. Copy
  13705. Flags for anything which can Copy a file.
  13706. --check-first Do all the checks before starting transfers
  13707. -c, --checksum Check for changes with size & checksum (if available, or fallback to size only).
  13708. --compare-dest stringArray Include additional comma separated server-side paths during comparison
  13709. --copy-dest stringArray Implies --compare-dest but also copies files from paths into destination
  13710. --cutoff-mode HARD|SOFT|CAUTIOUS Mode to stop transfers when reaching the max transfer limit HARD|SOFT|CAUTIOUS (default HARD)
  13711. --ignore-case-sync Ignore case when synchronizing
  13712. --ignore-checksum Skip post copy check of checksums
  13713. --ignore-existing Skip all files that exist on destination
  13714. --ignore-size Ignore size when skipping use modtime or checksum
  13715. -I, --ignore-times Don't skip items that match size and time - transfer all unconditionally
  13716. --immutable Do not modify files, fail if existing files have been modified
  13717. --inplace Download directly to destination file instead of atomic download to temp/rename
  13718. --max-backlog int Maximum number of objects in sync or check backlog (default 10000)
  13719. --max-duration Duration Maximum duration rclone will transfer data for (default 0s)
  13720. --max-transfer SizeSuffix Maximum size of data to transfer (default off)
  13721. -M, --metadata If set, preserve metadata when copying objects
  13722. --modify-window Duration Max time diff to be considered the same (default 1ns)
  13723. --multi-thread-chunk-size SizeSuffix Chunk size for multi-thread downloads / uploads, if not set by filesystem (default 64Mi)
  13724. --multi-thread-cutoff SizeSuffix Use multi-thread downloads for files above this size (default 256Mi)
  13725. --multi-thread-streams int Number of streams to use for multi-thread downloads (default 4)
  13726. --multi-thread-write-buffer-size SizeSuffix In memory buffer size for writing when in multi-thread mode (default 128Ki)
  13727. --no-check-dest Don't check the destination, copy regardless
  13728. --no-traverse Don't traverse destination file system on copy
  13729. --no-update-dir-modtime Don't update directory modification times
  13730. --no-update-modtime Don't update destination modtime if files identical
  13731. --order-by string Instructions on how to order the transfers, e.g. 'size,descending'
  13732. --partial-suffix string Add partial-suffix to temporary file name when --inplace is not used (default ".partial")
  13733. --refresh-times Refresh the modtime of remote files
  13734. --server-side-across-configs Allow server-side operations (e.g. copy) to work across different configs
  13735. --size-only Skip based on size only, not modtime or checksum
  13736. --streaming-upload-cutoff SizeSuffix Cutoff for switching to chunked upload if file size is unknown, upload starts after reaching cutoff or when file ends (default 100Ki)
  13737. -u, --update Skip files that are newer on the destination
  13738. Sync
  13739. Flags just used for rclone sync.
  13740. --backup-dir string Make backups into hierarchy based in DIR
  13741. --delete-after When synchronizing, delete files on destination after transferring (default)
  13742. --delete-before When synchronizing, delete files on destination before transferring
  13743. --delete-during When synchronizing, delete files during transfer
  13744. --fix-case Force rename of case insensitive dest to match source
  13745. --ignore-errors Delete even if there are I/O errors
  13746. --max-delete int When synchronizing, limit the number of deletes (default -1)
  13747. --max-delete-size SizeSuffix When synchronizing, limit the total size of deletes (default off)
  13748. --suffix string Suffix to add to changed files
  13749. --suffix-keep-extension Preserve the extension when using --suffix
  13750. --track-renames When synchronizing, track file renames and do a server-side move if possible
  13751. --track-renames-strategy string Strategies to use when synchronizing using track-renames hash|modtime|leaf (default "hash")
  13752. Important
  13753. Important flags useful for most commands.
  13754. -n, --dry-run Do a trial run with no permanent changes
  13755. -i, --interactive Enable interactive mode
  13756. -v, --verbose count Print lots more stuff (repeat for more)
  13757. Check
  13758. Flags used for rclone check.
  13759. --max-backlog int Maximum number of objects in sync or check backlog (default 10000)
  13760. Networking
  13761. General networking and HTTP stuff.
  13762. --bind string Local address to bind to for outgoing connections, IPv4, IPv6 or name
  13763. --bwlimit BwTimetable Bandwidth limit in KiB/s, or use suffix B|K|M|G|T|P or a full timetable
  13764. --bwlimit-file BwTimetable Bandwidth limit per file in KiB/s, or use suffix B|K|M|G|T|P or a full timetable
  13765. --ca-cert stringArray CA certificate used to verify servers
  13766. --client-cert string Client SSL certificate (PEM) for mutual TLS auth
  13767. --client-key string Client SSL private key (PEM) for mutual TLS auth
  13768. --contimeout Duration Connect timeout (default 1m0s)
  13769. --disable-http-keep-alives Disable HTTP keep-alives and use each connection once.
  13770. --disable-http2 Disable HTTP/2 in the global transport
  13771. --dscp string Set DSCP value to connections, value or name, e.g. CS1, LE, DF, AF21
  13772. --expect-continue-timeout Duration Timeout when using expect / 100-continue in HTTP (default 1s)
  13773. --header stringArray Set HTTP header for all transactions
  13774. --header-download stringArray Set HTTP header for download transactions
  13775. --header-upload stringArray Set HTTP header for upload transactions
  13776. --no-check-certificate Do not verify the server SSL certificate (insecure)
  13777. --no-gzip-encoding Don't set Accept-Encoding: gzip
  13778. --timeout Duration IO idle timeout (default 5m0s)
  13779. --tpslimit float Limit HTTP transactions per second to this
  13780. --tpslimit-burst int Max burst of transactions for --tpslimit (default 1)
  13781. --use-cookies Enable session cookiejar
  13782. --user-agent string Set the user-agent to a specified string (default "rclone/v1.66.0")
  13783. Performance
  13784. Flags helpful for increasing performance.
  13785. --buffer-size SizeSuffix In memory buffer size when reading files for each --transfer (default 16Mi)
  13786. --checkers int Number of checkers to run in parallel (default 8)
  13787. --transfers int Number of file transfers to run in parallel (default 4)
  13788. Config
  13789. General configuration of rclone.
  13790. --ask-password Allow prompt for password for encrypted configuration (default true)
  13791. --auto-confirm If enabled, do not request console confirmation
  13792. --cache-dir string Directory rclone will use for caching (default "$HOME/.cache/rclone")
  13793. --color AUTO|NEVER|ALWAYS When to show colors (and other ANSI codes) AUTO|NEVER|ALWAYS (default AUTO)
  13794. --config string Config file (default "$HOME/.config/rclone/rclone.conf")
  13795. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  13796. --disable string Disable a comma separated list of features (use --disable help to see a list)
  13797. -n, --dry-run Do a trial run with no permanent changes
  13798. --error-on-no-transfer Sets exit code 9 if no files are transferred, useful in scripts
  13799. --fs-cache-expire-duration Duration Cache remotes for this long (0 to disable caching) (default 5m0s)
  13800. --fs-cache-expire-interval Duration Interval to check for expired remotes (default 1m0s)
  13801. --human-readable Print numbers in a human-readable format, sizes with suffix Ki|Mi|Gi|Ti|Pi
  13802. -i, --interactive Enable interactive mode
  13803. --kv-lock-time Duration Maximum time to keep key-value database locked by process (default 1s)
  13804. --low-level-retries int Number of low level retries to do (default 10)
  13805. --no-console Hide console window (supported on Windows only)
  13806. --no-unicode-normalization Don't normalize unicode characters in filenames
  13807. --password-command SpaceSepList Command for supplying password for encrypted configuration
  13808. --retries int Retry operations this many times if they fail (default 3)
  13809. --retries-sleep Duration Interval between retrying operations if they fail, e.g. 500ms, 60s, 5m (0 to disable) (default 0s)
  13810. --temp-dir string Directory rclone will use for temporary files (default "/tmp")
  13811. --use-mmap Use mmap allocator (see docs)
  13812. --use-server-modtime Use server modified time instead of object metadata
  13813. Debugging
  13814. Flags for developers.
  13815. --cpuprofile string Write cpu profile to file
  13816. --dump DumpFlags List of items to dump from: headers, bodies, requests, responses, auth, filters, goroutines, openfiles, mapper
  13817. --dump-bodies Dump HTTP headers and bodies - may contain sensitive info
  13818. --dump-headers Dump HTTP headers - may contain sensitive info
  13819. --memprofile string Write memory profile to file
  13820. Filter
  13821. Flags for filtering directory listings.
  13822. --delete-excluded Delete files on dest excluded from sync
  13823. --exclude stringArray Exclude files matching pattern
  13824. --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin)
  13825. --exclude-if-present stringArray Exclude directories if filename is present
  13826. --files-from stringArray Read list of source-file names from file (use - to read from stdin)
  13827. --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin)
  13828. -f, --filter stringArray Add a file filtering rule
  13829. --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin)
  13830. --ignore-case Ignore case in filters (case insensitive)
  13831. --include stringArray Include files matching pattern
  13832. --include-from stringArray Read file include patterns from file (use - to read from stdin)
  13833. --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  13834. --max-depth int If set limits the recursion depth to this (default -1)
  13835. --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
  13836. --metadata-exclude stringArray Exclude metadatas matching pattern
  13837. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  13838. --metadata-filter stringArray Add a metadata filtering rule
  13839. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  13840. --metadata-include stringArray Include metadatas matching pattern
  13841. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  13842. --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
  13843. --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
  13844. Listing
  13845. Flags for listing directories.
  13846. --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
  13847. --fast-list Use recursive list if available; uses more memory but fewer transactions
  13848. Logging
  13849. Logging and statistics.
  13850. --log-file string Log everything to this file
  13851. --log-format string Comma separated list of log format options (default "date,time")
  13852. --log-level LogLevel Log level DEBUG|INFO|NOTICE|ERROR (default NOTICE)
  13853. --log-systemd Activate systemd integration for the logger
  13854. --max-stats-groups int Maximum number of stats groups to keep in memory, on max oldest is discarded (default 1000)
  13855. -P, --progress Show progress during transfer
  13856. --progress-terminal-title Show progress on the terminal title (requires -P/--progress)
  13857. -q, --quiet Print as little stuff as possible
  13858. --stats Duration Interval between printing stats, e.g. 500ms, 60s, 5m (0 to disable) (default 1m0s)
  13859. --stats-file-name-length int Max file name length in stats (0 for no limit) (default 45)
  13860. --stats-log-level LogLevel Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default INFO)
  13861. --stats-one-line Make the stats fit on one line
  13862. --stats-one-line-date Enable --stats-one-line and add current date/time prefix
  13863. --stats-one-line-date-format string Enable --stats-one-line-date and use custom formatted date: Enclose date string in double quotes ("), see https://golang.org/pkg/time/#Time.Format
  13864. --stats-unit string Show data rate in stats as either 'bits' or 'bytes' per second (default "bytes")
  13865. --syslog Use Syslog for logging
  13866. --syslog-facility string Facility for syslog, e.g. KERN,USER,... (default "DAEMON")
  13867. --use-json-log Use json log format
  13868. -v, --verbose count Print lots more stuff (repeat for more)
  13869. Metadata
  13870. Flags to control metadata.
  13871. -M, --metadata If set, preserve metadata when copying objects
  13872. --metadata-exclude stringArray Exclude metadatas matching pattern
  13873. --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin)
  13874. --metadata-filter stringArray Add a metadata filtering rule
  13875. --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin)
  13876. --metadata-include stringArray Include metadatas matching pattern
  13877. --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin)
  13878. --metadata-mapper SpaceSepList Program to run to transforming metadata before upload
  13879. --metadata-set stringArray Add metadata key=value when uploading
  13880. RC
  13881. Flags to control the Remote Control API.
  13882. --rc Enable the remote control server
  13883. --rc-addr stringArray IPaddress:Port or :Port to bind server to (default [localhost:5572])
  13884. --rc-allow-origin string Origin which cross-domain request (CORS) can be executed from
  13885. --rc-baseurl string Prefix for URLs - leave blank for root
  13886. --rc-cert string TLS PEM key (concatenation of certificate and CA certificate)
  13887. --rc-client-ca string Client certificate authority to verify clients with
  13888. --rc-enable-metrics Enable prometheus metrics on /metrics
  13889. --rc-files string Path to local files to serve on the HTTP server
  13890. --rc-htpasswd string A htpasswd file - if not provided no authentication is done
  13891. --rc-job-expire-duration Duration Expire finished async jobs older than this value (default 1m0s)
  13892. --rc-job-expire-interval Duration Interval to check for expired async jobs (default 10s)
  13893. --rc-key string TLS PEM Private key
  13894. --rc-max-header-bytes int Maximum size of request header (default 4096)
  13895. --rc-min-tls-version string Minimum TLS version that is acceptable (default "tls1.0")
  13896. --rc-no-auth Don't require auth for certain methods
  13897. --rc-pass string Password for authentication
  13898. --rc-realm string Realm for authentication
  13899. --rc-salt string Password hashing salt (default "dlPL2MqE")
  13900. --rc-serve Enable the serving of remote objects
  13901. --rc-server-read-timeout Duration Timeout for server reading data (default 1h0m0s)
  13902. --rc-server-write-timeout Duration Timeout for server writing data (default 1h0m0s)
  13903. --rc-template string User-specified template
  13904. --rc-user string User name for authentication
  13905. --rc-web-fetch-url string URL to fetch the releases for webgui (default "https://api.github.com/repos/rclone/rclone-webui-react/releases/latest")
  13906. --rc-web-gui Launch WebGUI on localhost
  13907. --rc-web-gui-force-update Force update to latest version of web gui
  13908. --rc-web-gui-no-open-browser Don't open the browser automatically
  13909. --rc-web-gui-update Check and update to latest version of web gui
  13910. Backend
  13911. Backend only flags. These can be set in the config file also.
  13912. --alias-description string Description of the remote
  13913. --alias-remote string Remote or path to alias
  13914. --azureblob-access-tier string Access tier of blob: hot, cool, cold or archive
  13915. --azureblob-account string Azure Storage Account Name
  13916. --azureblob-archive-tier-delete Delete archive tier blobs before overwriting
  13917. --azureblob-chunk-size SizeSuffix Upload chunk size (default 4Mi)
  13918. --azureblob-client-certificate-password string Password for the certificate file (optional) (obscured)
  13919. --azureblob-client-certificate-path string Path to a PEM or PKCS12 certificate file including the private key
  13920. --azureblob-client-id string The ID of the client in use
  13921. --azureblob-client-secret string One of the service principal's client secrets
  13922. --azureblob-client-send-certificate-chain Send the certificate chain when using certificate auth
  13923. --azureblob-delete-snapshots string Set to specify how to deal with snapshots on blob deletion
  13924. --azureblob-description string Description of the remote
  13925. --azureblob-directory-markers Upload an empty object with a trailing slash when a new directory is created
  13926. --azureblob-disable-checksum Don't store MD5 checksum with object metadata
  13927. --azureblob-encoding Encoding The encoding for the backend (default Slash,BackSlash,Del,Ctl,RightPeriod,InvalidUtf8)
  13928. --azureblob-endpoint string Endpoint for the service
  13929. --azureblob-env-auth Read credentials from runtime (environment variables, CLI or MSI)
  13930. --azureblob-key string Storage Account Shared Key
  13931. --azureblob-list-chunk int Size of blob list (default 5000)
  13932. --azureblob-msi-client-id string Object ID of the user-assigned MSI to use, if any
  13933. --azureblob-msi-mi-res-id string Azure resource ID of the user-assigned MSI to use, if any
  13934. --azureblob-msi-object-id string Object ID of the user-assigned MSI to use, if any
  13935. --azureblob-no-check-container If set, don't attempt to check the container exists or create it
  13936. --azureblob-no-head-object If set, do not do HEAD before GET when getting objects
  13937. --azureblob-password string The user's password (obscured)
  13938. --azureblob-public-access string Public access level of a container: blob or container
  13939. --azureblob-sas-url string SAS URL for container level access only
  13940. --azureblob-service-principal-file string Path to file containing credentials for use with a service principal
  13941. --azureblob-tenant string ID of the service principal's tenant. Also called its directory ID
  13942. --azureblob-upload-concurrency int Concurrency for multipart uploads (default 16)
  13943. --azureblob-upload-cutoff string Cutoff for switching to chunked upload (<= 256 MiB) (deprecated)
  13944. --azureblob-use-emulator Uses local storage emulator if provided as 'true'
  13945. --azureblob-use-msi Use a managed service identity to authenticate (only works in Azure)
  13946. --azureblob-username string User name (usually an email address)
  13947. --azurefiles-account string Azure Storage Account Name
  13948. --azurefiles-chunk-size SizeSuffix Upload chunk size (default 4Mi)
  13949. --azurefiles-client-certificate-password string Password for the certificate file (optional) (obscured)
  13950. --azurefiles-client-certificate-path string Path to a PEM or PKCS12 certificate file including the private key
  13951. --azurefiles-client-id string The ID of the client in use
  13952. --azurefiles-client-secret string One of the service principal's client secrets
  13953. --azurefiles-client-send-certificate-chain Send the certificate chain when using certificate auth
  13954. --azurefiles-connection-string string Azure Files Connection String
  13955. --azurefiles-description string Description of the remote
  13956. --azurefiles-encoding Encoding The encoding for the backend (default Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Del,Ctl,RightPeriod,InvalidUtf8,Dot)
  13957. --azurefiles-endpoint string Endpoint for the service
  13958. --azurefiles-env-auth Read credentials from runtime (environment variables, CLI or MSI)
  13959. --azurefiles-key string Storage Account Shared Key
  13960. --azurefiles-max-stream-size SizeSuffix Max size for streamed files (default 10Gi)
  13961. --azurefiles-msi-client-id string Object ID of the user-assigned MSI to use, if any
  13962. --azurefiles-msi-mi-res-id string Azure resource ID of the user-assigned MSI to use, if any
  13963. --azurefiles-msi-object-id string Object ID of the user-assigned MSI to use, if any
  13964. --azurefiles-password string The user's password (obscured)
  13965. --azurefiles-sas-url string SAS URL
  13966. --azurefiles-service-principal-file string Path to file containing credentials for use with a service principal
  13967. --azurefiles-share-name string Azure Files Share Name
  13968. --azurefiles-tenant string ID of the service principal's tenant. Also called its directory ID
  13969. --azurefiles-upload-concurrency int Concurrency for multipart uploads (default 16)
  13970. --azurefiles-use-msi Use a managed service identity to authenticate (only works in Azure)
  13971. --azurefiles-username string User name (usually an email address)
  13972. --b2-account string Account ID or Application Key ID
  13973. --b2-chunk-size SizeSuffix Upload chunk size (default 96Mi)
  13974. --b2-copy-cutoff SizeSuffix Cutoff for switching to multipart copy (default 4Gi)
  13975. --b2-description string Description of the remote
  13976. --b2-disable-checksum Disable checksums for large (> upload cutoff) files
  13977. --b2-download-auth-duration Duration Time before the public link authorization token will expire in s or suffix ms|s|m|h|d (default 1w)
  13978. --b2-download-url string Custom endpoint for downloads
  13979. --b2-encoding Encoding The encoding for the backend (default Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot)
  13980. --b2-endpoint string Endpoint for the service
  13981. --b2-hard-delete Permanently delete files on remote removal, otherwise hide files
  13982. --b2-key string Application Key
  13983. --b2-lifecycle int Set the number of days deleted files should be kept when creating a bucket
  13984. --b2-test-mode string A flag string for X-Bz-Test-Mode header for debugging
  13985. --b2-upload-concurrency int Concurrency for multipart uploads (default 4)
  13986. --b2-upload-cutoff SizeSuffix Cutoff for switching to chunked upload (default 200Mi)
  13987. --b2-version-at Time Show file versions as they were at the specified time (default off)
  13988. --b2-versions Include old versions in directory listings
  13989. --box-access-token string Box App Primary Access Token
  13990. --box-auth-url string Auth server URL
  13991. --box-box-config-file string Box App config.json location
  13992. --box-box-sub-type string (default "user")
  13993. --box-client-id string OAuth Client Id
  13994. --box-client-secret string OAuth Client Secret
  13995. --box-commit-retries int Max number of times to try committing a multipart file (default 100)
  13996. --box-description string Description of the remote
  13997. --box-encoding Encoding The encoding for the backend (default Slash,BackSlash,Del,Ctl,RightSpace,InvalidUtf8,Dot)
  13998. --box-impersonate string Impersonate this user ID when using a service account
  13999. --box-list-chunk int Size of listing chunk 1-1000 (default 1000)
  14000. --box-owned-by string Only show items owned by the login (email address) passed in
  14001. --box-root-folder-id string Fill in for rclone to use a non root folder as its starting point
  14002. --box-token string OAuth Access Token as a JSON blob
  14003. --box-token-url string Token server url
  14004. --box-upload-cutoff SizeSuffix Cutoff for switching to multipart upload (>= 50 MiB) (default 50Mi)
  14005. --cache-chunk-clean-interval Duration How often should the cache perform cleanups of the chunk storage (default 1m0s)
  14006. --cache-chunk-no-memory Disable the in-memory cache for storing chunks during streaming
  14007. --cache-chunk-path string Directory to cache chunk files (default "$HOME/.cache/rclone/cache-backend")
  14008. --cache-chunk-size SizeSuffix The size of a chunk (partial file data) (default 5Mi)
  14009. --cache-chunk-total-size SizeSuffix The total size that the chunks can take up on the local disk (default 10Gi)
  14010. --cache-db-path string Directory to store file structure metadata DB (default "$HOME/.cache/rclone/cache-backend")
  14011. --cache-db-purge Clear all the cached data for this remote on start
  14012. --cache-db-wait-time Duration How long to wait for the DB to be available - 0 is unlimited (default 1s)
  14013. --cache-description string Description of the remote
  14014. --cache-info-age Duration How long to cache file structure information (directory listings, file size, times, etc.) (default 6h0m0s)
  14015. --cache-plex-insecure string Skip all certificate verification when connecting to the Plex server
  14016. --cache-plex-password string The password of the Plex user (obscured)
  14017. --cache-plex-url string The URL of the Plex server
  14018. --cache-plex-username string The username of the Plex user
  14019. --cache-read-retries int How many times to retry a read from a cache storage (default 10)
  14020. --cache-remote string Remote to cache
  14021. --cache-rps int Limits the number of requests per second to the source FS (-1 to disable) (default -1)
  14022. --cache-tmp-upload-path string Directory to keep temporary files until they are uploaded
  14023. --cache-tmp-wait-time Duration How long should files be stored in local cache before being uploaded (default 15s)
  14024. --cache-workers int How many workers should run in parallel to download chunks (default 4)
  14025. --cache-writes Cache file data on writes through the FS
  14026. --chunker-chunk-size SizeSuffix Files larger than chunk size will be split in chunks (default 2Gi)
  14027. --chunker-description string Description of the remote
  14028. --chunker-fail-hard Choose how chunker should handle files with missing or invalid chunks
  14029. --chunker-hash-type string Choose how chunker handles hash sums (default "md5")
  14030. --chunker-remote string Remote to chunk/unchunk
  14031. --combine-description string Description of the remote
  14032. --combine-upstreams SpaceSepList Upstreams for combining
  14033. --compress-description string Description of the remote
  14034. --compress-level int GZIP compression level (-2 to 9) (default -1)
  14035. --compress-mode string Compression mode (default "gzip")
  14036. --compress-ram-cache-limit SizeSuffix Some remotes don't allow the upload of files with unknown size (default 20Mi)
  14037. --compress-remote string Remote to compress
  14038. -L, --copy-links Follow symlinks and copy the pointed to item
  14039. --crypt-description string Description of the remote
  14040. --crypt-directory-name-encryption Option to either encrypt directory names or leave them intact (default true)
  14041. --crypt-filename-encoding string How to encode the encrypted filename to text string (default "base32")
  14042. --crypt-filename-encryption string How to encrypt the filenames (default "standard")
  14043. --crypt-no-data-encryption Option to either encrypt file data or leave it unencrypted
  14044. --crypt-pass-bad-blocks If set this will pass bad blocks through as all 0
  14045. --crypt-password string Password or pass phrase for encryption (obscured)
  14046. --crypt-password2 string Password or pass phrase for salt (obscured)
  14047. --crypt-remote string Remote to encrypt/decrypt
  14048. --crypt-server-side-across-configs Deprecated: use --server-side-across-configs instead
  14049. --crypt-show-mapping For all files listed show how the names encrypt
  14050. --crypt-strict-names If set, this will raise an error when crypt comes across a filename that can't be decrypted
  14051. --crypt-suffix string If this is set it will override the default suffix of ".bin" (default ".bin")
  14052. --drive-acknowledge-abuse Set to allow files which return cannotDownloadAbusiveFile to be downloaded
  14053. --drive-allow-import-name-change Allow the filetype to change when uploading Google docs
  14054. --drive-auth-owner-only Only consider files owned by the authenticated user
  14055. --drive-auth-url string Auth server URL
  14056. --drive-chunk-size SizeSuffix Upload chunk size (default 8Mi)
  14057. --drive-client-id string Google Application Client Id
  14058. --drive-client-secret string OAuth Client Secret
  14059. --drive-copy-shortcut-content Server side copy contents of shortcuts instead of the shortcut
  14060. --drive-description string Description of the remote
  14061. --drive-disable-http2 Disable drive using http2 (default true)
  14062. --drive-encoding Encoding The encoding for the backend (default InvalidUtf8)
  14063. --drive-env-auth Get IAM credentials from runtime (environment variables or instance meta data if no env vars)
  14064. --drive-export-formats string Comma separated list of preferred formats for downloading Google docs (default "docx,xlsx,pptx,svg")
  14065. --drive-fast-list-bug-fix Work around a bug in Google Drive listing (default true)
  14066. --drive-formats string Deprecated: See export_formats
  14067. --drive-impersonate string Impersonate this user when using a service account
  14068. --drive-import-formats string Comma separated list of preferred formats for uploading Google docs
  14069. --drive-keep-revision-forever Keep new head revision of each file forever
  14070. --drive-list-chunk int Size of listing chunk 100-1000, 0 to disable (default 1000)
  14071. --drive-metadata-labels Bits Control whether labels should be read or written in metadata (default off)
  14072. --drive-metadata-owner Bits Control whether owner should be read or written in metadata (default read)
  14073. --drive-metadata-permissions Bits Control whether permissions should be read or written in metadata (default off)
  14074. --drive-pacer-burst int Number of API calls to allow without sleeping (default 100)
  14075. --drive-pacer-min-sleep Duration Minimum time to sleep between API calls (default 100ms)
  14076. --drive-resource-key string Resource key for accessing a link-shared file
  14077. --drive-root-folder-id string ID of the root folder
  14078. --drive-scope string Comma separated list of scopes that rclone should use when requesting access from drive
  14079. --drive-server-side-across-configs Deprecated: use --server-side-across-configs instead
  14080. --drive-service-account-credentials string Service Account Credentials JSON blob
  14081. --drive-service-account-file string Service Account Credentials JSON file path
  14082. --drive-shared-with-me Only show files that are shared with me
  14083. --drive-show-all-gdocs Show all Google Docs including non-exportable ones in listings
  14084. --drive-size-as-quota Show sizes as storage quota usage, not actual size
  14085. --drive-skip-checksum-gphotos Skip checksums on Google photos and videos only
  14086. --drive-skip-dangling-shortcuts If set skip dangling shortcut files
  14087. --drive-skip-gdocs Skip google documents in all listings
  14088. --drive-skip-shortcuts If set skip shortcut files
  14089. --drive-starred-only Only show files that are starred
  14090. --drive-stop-on-download-limit Make download limit errors be fatal
  14091. --drive-stop-on-upload-limit Make upload limit errors be fatal
  14092. --drive-team-drive string ID of the Shared Drive (Team Drive)
  14093. --drive-token string OAuth Access Token as a JSON blob
  14094. --drive-token-url string Token server url
  14095. --drive-trashed-only Only show files that are in the trash
  14096. --drive-upload-cutoff SizeSuffix Cutoff for switching to chunked upload (default 8Mi)
  14097. --drive-use-created-date Use file created date instead of modified date
  14098. --drive-use-shared-date Use date file was shared instead of modified date
  14099. --drive-use-trash Send files to the trash instead of deleting permanently (default true)
  14100. --drive-v2-download-min-size SizeSuffix If Object's are greater, use drive v2 API to download (default off)
  14101. --dropbox-auth-url string Auth server URL
  14102. --dropbox-batch-commit-timeout Duration Max time to wait for a batch to finish committing (default 10m0s)
  14103. --dropbox-batch-mode string Upload file batching sync|async|off (default "sync")
  14104. --dropbox-batch-size int Max number of files in upload batch
  14105. --dropbox-batch-timeout Duration Max time to allow an idle upload batch before uploading (default 0s)
  14106. --dropbox-chunk-size SizeSuffix Upload chunk size (< 150Mi) (default 48Mi)
  14107. --dropbox-client-id string OAuth Client Id
  14108. --dropbox-client-secret string OAuth Client Secret
  14109. --dropbox-description string Description of the remote
  14110. --dropbox-encoding Encoding The encoding for the backend (default Slash,BackSlash,Del,RightSpace,InvalidUtf8,Dot)
  14111. --dropbox-impersonate string Impersonate this user when using a business account
  14112. --dropbox-pacer-min-sleep Duration Minimum time to sleep between API calls (default 10ms)
  14113. --dropbox-shared-files Instructs rclone to work on individual shared files
  14114. --dropbox-shared-folders Instructs rclone to work on shared folders
  14115. --dropbox-token string OAuth Access Token as a JSON blob
  14116. --dropbox-token-url string Token server url
  14117. --fichier-api-key string Your API Key, get it from https://1fichier.com/console/params.pl
  14118. --fichier-cdn Set if you wish to use CDN download links
  14119. --fichier-description string Description of the remote
  14120. --fichier-encoding Encoding The encoding for the backend (default Slash,LtGt,DoubleQuote,SingleQuote,BackQuote,Dollar,BackSlash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot)
  14121. --fichier-file-password string If you want to download a shared file that is password protected, add this parameter (obscured)
  14122. --fichier-folder-password string If you want to list the files in a shared folder that is password protected, add this parameter (obscured)
  14123. --fichier-shared-folder string If you want to download a shared folder, add this parameter
  14124. --filefabric-description string Description of the remote
  14125. --filefabric-encoding Encoding The encoding for the backend (default Slash,Del,Ctl,InvalidUtf8,Dot)
  14126. --filefabric-permanent-token string Permanent Authentication Token
  14127. --filefabric-root-folder-id string ID of the root folder
  14128. --filefabric-token string Session Token
  14129. --filefabric-token-expiry string Token expiry time
  14130. --filefabric-url string URL of the Enterprise File Fabric to connect to
  14131. --filefabric-version string Version read from the file fabric
  14132. --ftp-ask-password Allow asking for FTP password when needed
  14133. --ftp-close-timeout Duration Maximum time to wait for a response to close (default 1m0s)
  14134. --ftp-concurrency int Maximum number of FTP simultaneous connections, 0 for unlimited
  14135. --ftp-description string Description of the remote
  14136. --ftp-disable-epsv Disable using EPSV even if server advertises support
  14137. --ftp-disable-mlsd Disable using MLSD even if server advertises support
  14138. --ftp-disable-tls13 Disable TLS 1.3 (workaround for FTP servers with buggy TLS)
  14139. --ftp-disable-utf8 Disable using UTF-8 even if server advertises support
  14140. --ftp-encoding Encoding The encoding for the backend (default Slash,Del,Ctl,RightSpace,Dot)
  14141. --ftp-explicit-tls Use Explicit FTPS (FTP over TLS)
  14142. --ftp-force-list-hidden Use LIST -a to force listing of hidden files and folders. This will disable the use of MLSD
  14143. --ftp-host string FTP host to connect to
  14144. --ftp-idle-timeout Duration Max time before closing idle connections (default 1m0s)
  14145. --ftp-no-check-certificate Do not verify the TLS certificate of the server
  14146. --ftp-pass string FTP password (obscured)
  14147. --ftp-port int FTP port number (default 21)
  14148. --ftp-shut-timeout Duration Maximum time to wait for data connection closing status (default 1m0s)
  14149. --ftp-socks-proxy string Socks 5 proxy host
  14150. --ftp-tls Use Implicit FTPS (FTP over TLS)
  14151. --ftp-tls-cache-size int Size of TLS session cache for all control and data connections (default 32)
  14152. --ftp-user string FTP username (default "$USER")
  14153. --ftp-writing-mdtm Use MDTM to set modification time (VsFtpd quirk)
  14154. --gcs-anonymous Access public buckets and objects without credentials
  14155. --gcs-auth-url string Auth server URL
  14156. --gcs-bucket-acl string Access Control List for new buckets
  14157. --gcs-bucket-policy-only Access checks should use bucket-level IAM policies
  14158. --gcs-client-id string OAuth Client Id
  14159. --gcs-client-secret string OAuth Client Secret
  14160. --gcs-decompress If set this will decompress gzip encoded objects
  14161. --gcs-description string Description of the remote
  14162. --gcs-directory-markers Upload an empty object with a trailing slash when a new directory is created
  14163. --gcs-encoding Encoding The encoding for the backend (default Slash,CrLf,InvalidUtf8,Dot)
  14164. --gcs-endpoint string Endpoint for the service
  14165. --gcs-env-auth Get GCP IAM credentials from runtime (environment variables or instance meta data if no env vars)
  14166. --gcs-location string Location for the newly created buckets
  14167. --gcs-no-check-bucket If set, don't attempt to check the bucket exists or create it
  14168. --gcs-object-acl string Access Control List for new objects
  14169. --gcs-project-number string Project number
  14170. --gcs-service-account-file string Service Account Credentials JSON file path
  14171. --gcs-storage-class string The storage class to use when storing objects in Google Cloud Storage
  14172. --gcs-token string OAuth Access Token as a JSON blob
  14173. --gcs-token-url string Token server url
  14174. --gcs-user-project string User project
  14175. --gphotos-auth-url string Auth server URL
  14176. --gphotos-batch-commit-timeout Duration Max time to wait for a batch to finish committing (default 10m0s)
  14177. --gphotos-batch-mode string Upload file batching sync|async|off (default "sync")
  14178. --gphotos-batch-size int Max number of files in upload batch
  14179. --gphotos-batch-timeout Duration Max time to allow an idle upload batch before uploading (default 0s)
  14180. --gphotos-client-id string OAuth Client Id
  14181. --gphotos-client-secret string OAuth Client Secret
  14182. --gphotos-description string Description of the remote
  14183. --gphotos-encoding Encoding The encoding for the backend (default Slash,CrLf,InvalidUtf8,Dot)
  14184. --gphotos-include-archived Also view and download archived media
  14185. --gphotos-read-only Set to make the Google Photos backend read only
  14186. --gphotos-read-size Set to read the size of media items
  14187. --gphotos-start-year int Year limits the photos to be downloaded to those which are uploaded after the given year (default 2000)
  14188. --gphotos-token string OAuth Access Token as a JSON blob
  14189. --gphotos-token-url string Token server url
  14190. --hasher-auto-size SizeSuffix Auto-update checksum for files smaller than this size (disabled by default)
  14191. --hasher-description string Description of the remote
  14192. --hasher-hashes CommaSepList Comma separated list of supported checksum types (default md5,sha1)
  14193. --hasher-max-age Duration Maximum time to keep checksums in cache (0 = no cache, off = cache forever) (default off)
  14194. --hasher-remote string Remote to cache checksums for (e.g. myRemote:path)
  14195. --hdfs-data-transfer-protection string Kerberos data transfer protection: authentication|integrity|privacy
  14196. --hdfs-description string Description of the remote
  14197. --hdfs-encoding Encoding The encoding for the backend (default Slash,Colon,Del,Ctl,InvalidUtf8,Dot)
  14198. --hdfs-namenode CommaSepList Hadoop name nodes and ports
  14199. --hdfs-service-principal-name string Kerberos service principal name for the namenode
  14200. --hdfs-username string Hadoop user name
  14201. --hidrive-auth-url string Auth server URL
  14202. --hidrive-chunk-size SizeSuffix Chunksize for chunked uploads (default 48Mi)
  14203. --hidrive-client-id string OAuth Client Id
  14204. --hidrive-client-secret string OAuth Client Secret
  14205. --hidrive-description string Description of the remote
  14206. --hidrive-disable-fetching-member-count Do not fetch number of objects in directories unless it is absolutely necessary
  14207. --hidrive-encoding Encoding The encoding for the backend (default Slash,Dot)
  14208. --hidrive-endpoint string Endpoint for the service (default "https://api.hidrive.strato.com/2.1")
  14209. --hidrive-root-prefix string The root/parent folder for all paths (default "/")
  14210. --hidrive-scope-access string Access permissions that rclone should use when requesting access from HiDrive (default "rw")
  14211. --hidrive-scope-role string User-level that rclone should use when requesting access from HiDrive (default "user")
  14212. --hidrive-token string OAuth Access Token as a JSON blob
  14213. --hidrive-token-url string Token server url
  14214. --hidrive-upload-concurrency int Concurrency for chunked uploads (default 4)
  14215. --hidrive-upload-cutoff SizeSuffix Cutoff/Threshold for chunked uploads (default 96Mi)
  14216. --http-description string Description of the remote
  14217. --http-headers CommaSepList Set HTTP headers for all transactions
  14218. --http-no-head Don't use HEAD requests
  14219. --http-no-slash Set this if the site doesn't end directories with /
  14220. --http-url string URL of HTTP host to connect to
  14221. --imagekit-description string Description of the remote
  14222. --imagekit-encoding Encoding The encoding for the backend (default Slash,LtGt,DoubleQuote,Dollar,Question,Hash,Percent,BackSlash,Del,Ctl,InvalidUtf8,Dot,SquareBracket)
  14223. --imagekit-endpoint string You can find your ImageKit.io URL endpoint in your [dashboard](https://imagekit.io/dashboard/developer/api-keys)
  14224. --imagekit-only-signed Restrict unsigned image URLs If you have configured Restrict unsigned image URLs in your dashboard settings, set this to true
  14225. --imagekit-private-key string You can find your ImageKit.io private key in your [dashboard](https://imagekit.io/dashboard/developer/api-keys)
  14226. --imagekit-public-key string You can find your ImageKit.io public key in your [dashboard](https://imagekit.io/dashboard/developer/api-keys)
  14227. --imagekit-upload-tags string Tags to add to the uploaded files, e.g. "tag1,tag2"
  14228. --imagekit-versions Include old versions in directory listings
  14229. --internetarchive-access-key-id string IAS3 Access Key
  14230. --internetarchive-description string Description of the remote
  14231. --internetarchive-disable-checksum Don't ask the server to test against MD5 checksum calculated by rclone (default true)
  14232. --internetarchive-encoding Encoding The encoding for the backend (default Slash,LtGt,CrLf,Del,Ctl,InvalidUtf8,Dot)
  14233. --internetarchive-endpoint string IAS3 Endpoint (default "https://s3.us.archive.org")
  14234. --internetarchive-front-endpoint string Host of InternetArchive Frontend (default "https://archive.org")
  14235. --internetarchive-secret-access-key string IAS3 Secret Key (password)
  14236. --internetarchive-wait-archive Duration Timeout for waiting the server's processing tasks (specifically archive and book_op) to finish (default 0s)
  14237. --jottacloud-auth-url string Auth server URL
  14238. --jottacloud-client-id string OAuth Client Id
  14239. --jottacloud-client-secret string OAuth Client Secret
  14240. --jottacloud-description string Description of the remote
  14241. --jottacloud-encoding Encoding The encoding for the backend (default Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,Del,Ctl,InvalidUtf8,Dot)
  14242. --jottacloud-hard-delete Delete files permanently rather than putting them into the trash
  14243. --jottacloud-md5-memory-limit SizeSuffix Files bigger than this will be cached on disk to calculate the MD5 if required (default 10Mi)
  14244. --jottacloud-no-versions Avoid server side versioning by deleting files and recreating files instead of overwriting them
  14245. --jottacloud-token string OAuth Access Token as a JSON blob
  14246. --jottacloud-token-url string Token server url
  14247. --jottacloud-trashed-only Only show files that are in the trash
  14248. --jottacloud-upload-resume-limit SizeSuffix Files bigger than this can be resumed if the upload fail's (default 10Mi)
  14249. --koofr-description string Description of the remote
  14250. --koofr-encoding Encoding The encoding for the backend (default Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot)
  14251. --koofr-endpoint string The Koofr API endpoint to use
  14252. --koofr-mountid string Mount ID of the mount to use
  14253. --koofr-password string Your password for rclone (generate one at https://app.koofr.net/app/admin/preferences/password) (obscured)
  14254. --koofr-provider string Choose your storage provider
  14255. --koofr-setmtime Does the backend support setting modification time (default true)
  14256. --koofr-user string Your user name
  14257. --linkbox-description string Description of the remote
  14258. --linkbox-token string Token from https://www.linkbox.to/admin/account
  14259. -l, --links Translate symlinks to/from regular files with a '.rclonelink' extension
  14260. --local-case-insensitive Force the filesystem to report itself as case insensitive
  14261. --local-case-sensitive Force the filesystem to report itself as case sensitive
  14262. --local-description string Description of the remote
  14263. --local-encoding Encoding The encoding for the backend (default Slash,Dot)
  14264. --local-no-check-updated Don't check to see if the files change during upload
  14265. --local-no-preallocate Disable preallocation of disk space for transferred files
  14266. --local-no-set-modtime Disable setting modtime
  14267. --local-no-sparse Disable sparse files for multi-thread downloads
  14268. --local-nounc Disable UNC (long path names) conversion on Windows
  14269. --local-unicode-normalization Apply unicode NFC normalization to paths and filenames
  14270. --local-zero-size-links Assume the Stat size of links is zero (and read them instead) (deprecated)
  14271. --mailru-auth-url string Auth server URL
  14272. --mailru-check-hash What should copy do if file checksum is mismatched or invalid (default true)
  14273. --mailru-client-id string OAuth Client Id
  14274. --mailru-client-secret string OAuth Client Secret
  14275. --mailru-description string Description of the remote
  14276. --mailru-encoding Encoding The encoding for the backend (default Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Del,Ctl,InvalidUtf8,Dot)
  14277. --mailru-pass string Password (obscured)
  14278. --mailru-speedup-enable Skip full upload if there is another file with same data hash (default true)
  14279. --mailru-speedup-file-patterns string Comma separated list of file name patterns eligible for speedup (put by hash) (default "*.mkv,*.avi,*.mp4,*.mp3,*.zip,*.gz,*.rar,*.pdf")
  14280. --mailru-speedup-max-disk SizeSuffix This option allows you to disable speedup (put by hash) for large files (default 3Gi)
  14281. --mailru-speedup-max-memory SizeSuffix Files larger than the size given below will always be hashed on disk (default 32Mi)
  14282. --mailru-token string OAuth Access Token as a JSON blob
  14283. --mailru-token-url string Token server url
  14284. --mailru-user string User name (usually email)
  14285. --mega-debug Output more debug from Mega
  14286. --mega-description string Description of the remote
  14287. --mega-encoding Encoding The encoding for the backend (default Slash,InvalidUtf8,Dot)
  14288. --mega-hard-delete Delete files permanently rather than putting them into the trash
  14289. --mega-pass string Password (obscured)
  14290. --mega-use-https Use HTTPS for transfers
  14291. --mega-user string User name
  14292. --memory-description string Description of the remote
  14293. --netstorage-account string Set the NetStorage account name
  14294. --netstorage-description string Description of the remote
  14295. --netstorage-host string Domain+path of NetStorage host to connect to
  14296. --netstorage-protocol string Select between HTTP or HTTPS protocol (default "https")
  14297. --netstorage-secret string Set the NetStorage account secret/G2O key for authentication (obscured)
  14298. -x, --one-file-system Don't cross filesystem boundaries (unix/macOS only)
  14299. --onedrive-access-scopes SpaceSepList Set scopes to be requested by rclone (default Files.Read Files.ReadWrite Files.Read.All Files.ReadWrite.All Sites.Read.All offline_access)
  14300. --onedrive-auth-url string Auth server URL
  14301. --onedrive-av-override Allows download of files the server thinks has a virus
  14302. --onedrive-chunk-size SizeSuffix Chunk size to upload files with - must be multiple of 320k (327,680 bytes) (default 10Mi)
  14303. --onedrive-client-id string OAuth Client Id
  14304. --onedrive-client-secret string OAuth Client Secret
  14305. --onedrive-delta If set rclone will use delta listing to implement recursive listings
  14306. --onedrive-description string Description of the remote
  14307. --onedrive-drive-id string The ID of the drive to use
  14308. --onedrive-drive-type string The type of the drive (personal | business | documentLibrary)
  14309. --onedrive-encoding Encoding The encoding for the backend (default Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Del,Ctl,LeftSpace,LeftTilde,RightSpace,RightPeriod,InvalidUtf8,Dot)
  14310. --onedrive-expose-onenote-files Set to make OneNote files show up in directory listings
  14311. --onedrive-hash-type string Specify the hash in use for the backend (default "auto")
  14312. --onedrive-link-password string Set the password for links created by the link command
  14313. --onedrive-link-scope string Set the scope of the links created by the link command (default "anonymous")
  14314. --onedrive-link-type string Set the type of the links created by the link command (default "view")
  14315. --onedrive-list-chunk int Size of listing chunk (default 1000)
  14316. --onedrive-metadata-permissions Bits Control whether permissions should be read or written in metadata (default off)
  14317. --onedrive-no-versions Remove all versions on modifying operations
  14318. --onedrive-region string Choose national cloud region for OneDrive (default "global")
  14319. --onedrive-root-folder-id string ID of the root folder
  14320. --onedrive-server-side-across-configs Deprecated: use --server-side-across-configs instead
  14321. --onedrive-token string OAuth Access Token as a JSON blob
  14322. --onedrive-token-url string Token server url
  14323. --oos-attempt-resume-upload If true attempt to resume previously started multipart upload for the object
  14324. --oos-chunk-size SizeSuffix Chunk size to use for uploading (default 5Mi)
  14325. --oos-compartment string Object storage compartment OCID
  14326. --oos-config-file string Path to OCI config file (default "~/.oci/config")
  14327. --oos-config-profile string Profile name inside the oci config file (default "Default")
  14328. --oos-copy-cutoff SizeSuffix Cutoff for switching to multipart copy (default 4.656Gi)
  14329. --oos-copy-timeout Duration Timeout for copy (default 1m0s)
  14330. --oos-description string Description of the remote
  14331. --oos-disable-checksum Don't store MD5 checksum with object metadata
  14332. --oos-encoding Encoding The encoding for the backend (default Slash,InvalidUtf8,Dot)
  14333. --oos-endpoint string Endpoint for Object storage API
  14334. --oos-leave-parts-on-error If true avoid calling abort upload on a failure, leaving all successfully uploaded parts for manual recovery
  14335. --oos-max-upload-parts int Maximum number of parts in a multipart upload (default 10000)
  14336. --oos-namespace string Object storage namespace
  14337. --oos-no-check-bucket If set, don't attempt to check the bucket exists or create it
  14338. --oos-provider string Choose your Auth Provider (default "env_auth")
  14339. --oos-region string Object storage Region
  14340. --oos-sse-customer-algorithm string If using SSE-C, the optional header that specifies "AES256" as the encryption algorithm
  14341. --oos-sse-customer-key string To use SSE-C, the optional header that specifies the base64-encoded 256-bit encryption key to use to
  14342. --oos-sse-customer-key-file string To use SSE-C, a file containing the base64-encoded string of the AES-256 encryption key associated
  14343. --oos-sse-customer-key-sha256 string If using SSE-C, The optional header that specifies the base64-encoded SHA256 hash of the encryption
  14344. --oos-sse-kms-key-id string if using your own master key in vault, this header specifies the
  14345. --oos-storage-tier string The storage class to use when storing new objects in storage. https://docs.oracle.com/en-us/iaas/Content/Object/Concepts/understandingstoragetiers.htm (default "Standard")
  14346. --oos-upload-concurrency int Concurrency for multipart uploads (default 10)
  14347. --oos-upload-cutoff SizeSuffix Cutoff for switching to chunked upload (default 200Mi)
  14348. --opendrive-chunk-size SizeSuffix Files will be uploaded in chunks this size (default 10Mi)
  14349. --opendrive-description string Description of the remote
  14350. --opendrive-encoding Encoding The encoding for the backend (default Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,LeftSpace,LeftCrLfHtVt,RightSpace,RightCrLfHtVt,InvalidUtf8,Dot)
  14351. --opendrive-password string Password (obscured)
  14352. --opendrive-username string Username
  14353. --pcloud-auth-url string Auth server URL
  14354. --pcloud-client-id string OAuth Client Id
  14355. --pcloud-client-secret string OAuth Client Secret
  14356. --pcloud-description string Description of the remote
  14357. --pcloud-encoding Encoding The encoding for the backend (default Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot)
  14358. --pcloud-hostname string Hostname to connect to (default "api.pcloud.com")
  14359. --pcloud-password string Your pcloud password (obscured)
  14360. --pcloud-root-folder-id string Fill in for rclone to use a non root folder as its starting point (default "d0")
  14361. --pcloud-token string OAuth Access Token as a JSON blob
  14362. --pcloud-token-url string Token server url
  14363. --pcloud-username string Your pcloud username
  14364. --pikpak-auth-url string Auth server URL
  14365. --pikpak-client-id string OAuth Client Id
  14366. --pikpak-client-secret string OAuth Client Secret
  14367. --pikpak-description string Description of the remote
  14368. --pikpak-encoding Encoding The encoding for the backend (default Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,LeftSpace,RightSpace,RightPeriod,InvalidUtf8,Dot)
  14369. --pikpak-hash-memory-limit SizeSuffix Files bigger than this will be cached on disk to calculate hash if required (default 10Mi)
  14370. --pikpak-pass string Pikpak password (obscured)
  14371. --pikpak-root-folder-id string ID of the root folder
  14372. --pikpak-token string OAuth Access Token as a JSON blob
  14373. --pikpak-token-url string Token server url
  14374. --pikpak-trashed-only Only show files that are in the trash
  14375. --pikpak-use-trash Send files to the trash instead of deleting permanently (default true)
  14376. --pikpak-user string Pikpak username
  14377. --premiumizeme-auth-url string Auth server URL
  14378. --premiumizeme-client-id string OAuth Client Id
  14379. --premiumizeme-client-secret string OAuth Client Secret
  14380. --premiumizeme-description string Description of the remote
  14381. --premiumizeme-encoding Encoding The encoding for the backend (default Slash,DoubleQuote,BackSlash,Del,Ctl,InvalidUtf8,Dot)
  14382. --premiumizeme-token string OAuth Access Token as a JSON blob
  14383. --premiumizeme-token-url string Token server url
  14384. --protondrive-2fa string The 2FA code
  14385. --protondrive-app-version string The app version string (default "macos-drive@1.0.0-alpha.1+rclone")
  14386. --protondrive-description string Description of the remote
  14387. --protondrive-enable-caching Caches the files and folders metadata to reduce API calls (default true)
  14388. --protondrive-encoding Encoding The encoding for the backend (default Slash,LeftSpace,RightSpace,InvalidUtf8,Dot)
  14389. --protondrive-mailbox-password string The mailbox password of your two-password proton account (obscured)
  14390. --protondrive-original-file-size Return the file size before encryption (default true)
  14391. --protondrive-password string The password of your proton account (obscured)
  14392. --protondrive-replace-existing-draft Create a new revision when filename conflict is detected
  14393. --protondrive-username string The username of your proton account
  14394. --putio-auth-url string Auth server URL
  14395. --putio-client-id string OAuth Client Id
  14396. --putio-client-secret string OAuth Client Secret
  14397. --putio-description string Description of the remote
  14398. --putio-encoding Encoding The encoding for the backend (default Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot)
  14399. --putio-token string OAuth Access Token as a JSON blob
  14400. --putio-token-url string Token server url
  14401. --qingstor-access-key-id string QingStor Access Key ID
  14402. --qingstor-chunk-size SizeSuffix Chunk size to use for uploading (default 4Mi)
  14403. --qingstor-connection-retries int Number of connection retries (default 3)
  14404. --qingstor-description string Description of the remote
  14405. --qingstor-encoding Encoding The encoding for the backend (default Slash,Ctl,InvalidUtf8)
  14406. --qingstor-endpoint string Enter an endpoint URL to connection QingStor API
  14407. --qingstor-env-auth Get QingStor credentials from runtime
  14408. --qingstor-secret-access-key string QingStor Secret Access Key (password)
  14409. --qingstor-upload-concurrency int Concurrency for multipart uploads (default 1)
  14410. --qingstor-upload-cutoff SizeSuffix Cutoff for switching to chunked upload (default 200Mi)
  14411. --qingstor-zone string Zone to connect to
  14412. --quatrix-api-key string API key for accessing Quatrix account
  14413. --quatrix-description string Description of the remote
  14414. --quatrix-effective-upload-time string Wanted upload time for one chunk (default "4s")
  14415. --quatrix-encoding Encoding The encoding for the backend (default Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot)
  14416. --quatrix-hard-delete Delete files permanently rather than putting them into the trash
  14417. --quatrix-host string Host name of Quatrix account
  14418. --quatrix-maximal-summary-chunk-size SizeSuffix The maximal summary for all chunks. It should not be less than 'transfers'*'minimal_chunk_size' (default 95.367Mi)
  14419. --quatrix-minimal-chunk-size SizeSuffix The minimal size for one chunk (default 9.537Mi)
  14420. --quatrix-skip-project-folders Skip project folders in operations
  14421. --s3-access-key-id string AWS Access Key ID
  14422. --s3-acl string Canned ACL used when creating buckets and storing or copying objects
  14423. --s3-bucket-acl string Canned ACL used when creating buckets
  14424. --s3-chunk-size SizeSuffix Chunk size to use for uploading (default 5Mi)
  14425. --s3-copy-cutoff SizeSuffix Cutoff for switching to multipart copy (default 4.656Gi)
  14426. --s3-decompress If set this will decompress gzip encoded objects
  14427. --s3-description string Description of the remote
  14428. --s3-directory-markers Upload an empty object with a trailing slash when a new directory is created
  14429. --s3-disable-checksum Don't store MD5 checksum with object metadata
  14430. --s3-disable-http2 Disable usage of http2 for S3 backends
  14431. --s3-download-url string Custom endpoint for downloads
  14432. --s3-encoding Encoding The encoding for the backend (default Slash,InvalidUtf8,Dot)
  14433. --s3-endpoint string Endpoint for S3 API
  14434. --s3-env-auth Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars)
  14435. --s3-force-path-style If true use path style access if false use virtual hosted style (default true)
  14436. --s3-leave-parts-on-error If true avoid calling abort upload on a failure, leaving all successfully uploaded parts on S3 for manual recovery
  14437. --s3-list-chunk int Size of listing chunk (response list for each ListObject S3 request) (default 1000)
  14438. --s3-list-url-encode Tristate Whether to url encode listings: true/false/unset (default unset)
  14439. --s3-list-version int Version of ListObjects to use: 1,2 or 0 for auto
  14440. --s3-location-constraint string Location constraint - must be set to match the Region
  14441. --s3-max-upload-parts int Maximum number of parts in a multipart upload (default 10000)
  14442. --s3-might-gzip Tristate Set this if the backend might gzip objects (default unset)
  14443. --s3-no-check-bucket If set, don't attempt to check the bucket exists or create it
  14444. --s3-no-head If set, don't HEAD uploaded objects to check integrity
  14445. --s3-no-head-object If set, do not do HEAD before GET when getting objects
  14446. --s3-no-system-metadata Suppress setting and reading of system metadata
  14447. --s3-profile string Profile to use in the shared credentials file
  14448. --s3-provider string Choose your S3 provider
  14449. --s3-region string Region to connect to
  14450. --s3-requester-pays Enables requester pays option when interacting with S3 bucket
  14451. --s3-secret-access-key string AWS Secret Access Key (password)
  14452. --s3-server-side-encryption string The server-side encryption algorithm used when storing this object in S3
  14453. --s3-session-token string An AWS session token
  14454. --s3-shared-credentials-file string Path to the shared credentials file
  14455. --s3-sse-customer-algorithm string If using SSE-C, the server-side encryption algorithm used when storing this object in S3
  14456. --s3-sse-customer-key string To use SSE-C you may provide the secret encryption key used to encrypt/decrypt your data
  14457. --s3-sse-customer-key-base64 string If using SSE-C you must provide the secret encryption key encoded in base64 format to encrypt/decrypt your data
  14458. --s3-sse-customer-key-md5 string If using SSE-C you may provide the secret encryption key MD5 checksum (optional)
  14459. --s3-sse-kms-key-id string If using KMS ID you must provide the ARN of Key
  14460. --s3-storage-class string The storage class to use when storing new objects in S3
  14461. --s3-sts-endpoint string Endpoint for STS
  14462. --s3-upload-concurrency int Concurrency for multipart uploads and copies (default 4)
  14463. --s3-upload-cutoff SizeSuffix Cutoff for switching to chunked upload (default 200Mi)
  14464. --s3-use-accelerate-endpoint If true use the AWS S3 accelerated endpoint
  14465. --s3-use-accept-encoding-gzip Accept-Encoding: gzip Whether to send Accept-Encoding: gzip header (default unset)
  14466. --s3-use-already-exists Tristate Set if rclone should report BucketAlreadyExists errors on bucket creation (default unset)
  14467. --s3-use-dual-stack If true use AWS S3 dual-stack endpoint (IPv6 support)
  14468. --s3-use-multipart-etag Tristate Whether to use ETag in multipart uploads for verification (default unset)
  14469. --s3-use-multipart-uploads Tristate Set if rclone should use multipart uploads (default unset)
  14470. --s3-use-presigned-request Whether to use a presigned request or PutObject for single part uploads
  14471. --s3-v2-auth If true use v2 authentication
  14472. --s3-version-at Time Show file versions as they were at the specified time (default off)
  14473. --s3-version-deleted Show deleted file markers when using versions
  14474. --s3-versions Include old versions in directory listings
  14475. --seafile-2fa Two-factor authentication ('true' if the account has 2FA enabled)
  14476. --seafile-create-library Should rclone create a library if it doesn't exist
  14477. --seafile-description string Description of the remote
  14478. --seafile-encoding Encoding The encoding for the backend (default Slash,DoubleQuote,BackSlash,Ctl,InvalidUtf8)
  14479. --seafile-library string Name of the library
  14480. --seafile-library-key string Library password (for encrypted libraries only) (obscured)
  14481. --seafile-pass string Password (obscured)
  14482. --seafile-url string URL of seafile host to connect to
  14483. --seafile-user string User name (usually email address)
  14484. --sftp-ask-password Allow asking for SFTP password when needed
  14485. --sftp-chunk-size SizeSuffix Upload and download chunk size (default 32Ki)
  14486. --sftp-ciphers SpaceSepList Space separated list of ciphers to be used for session encryption, ordered by preference
  14487. --sftp-concurrency int The maximum number of outstanding requests for one file (default 64)
  14488. --sftp-copy-is-hardlink Set to enable server side copies using hardlinks
  14489. --sftp-description string Description of the remote
  14490. --sftp-disable-concurrent-reads If set don't use concurrent reads
  14491. --sftp-disable-concurrent-writes If set don't use concurrent writes
  14492. --sftp-disable-hashcheck Disable the execution of SSH commands to determine if remote file hashing is available
  14493. --sftp-host string SSH host to connect to
  14494. --sftp-host-key-algorithms SpaceSepList Space separated list of host key algorithms, ordered by preference
  14495. --sftp-idle-timeout Duration Max time before closing idle connections (default 1m0s)
  14496. --sftp-key-exchange SpaceSepList Space separated list of key exchange algorithms, ordered by preference
  14497. --sftp-key-file string Path to PEM-encoded private key file
  14498. --sftp-key-file-pass string The passphrase to decrypt the PEM-encoded private key file (obscured)
  14499. --sftp-key-pem string Raw PEM-encoded private key
  14500. --sftp-key-use-agent When set forces the usage of the ssh-agent
  14501. --sftp-known-hosts-file string Optional path to known_hosts file
  14502. --sftp-macs SpaceSepList Space separated list of MACs (message authentication code) algorithms, ordered by preference
  14503. --sftp-md5sum-command string The command used to read md5 hashes
  14504. --sftp-pass string SSH password, leave blank to use ssh-agent (obscured)
  14505. --sftp-path-override string Override path used by SSH shell commands
  14506. --sftp-port int SSH port number (default 22)
  14507. --sftp-pubkey-file string Optional path to public key file
  14508. --sftp-server-command string Specifies the path or command to run a sftp server on the remote host
  14509. --sftp-set-env SpaceSepList Environment variables to pass to sftp and commands
  14510. --sftp-set-modtime Set the modified time on the remote if set (default true)
  14511. --sftp-sha1sum-command string The command used to read sha1 hashes
  14512. --sftp-shell-type string The type of SSH shell on remote server, if any
  14513. --sftp-skip-links Set to skip any symlinks and any other non regular files
  14514. --sftp-socks-proxy string Socks 5 proxy host
  14515. --sftp-ssh SpaceSepList Path and arguments to external ssh binary
  14516. --sftp-subsystem string Specifies the SSH2 subsystem on the remote host (default "sftp")
  14517. --sftp-use-fstat If set use fstat instead of stat
  14518. --sftp-use-insecure-cipher Enable the use of insecure ciphers and key exchange methods
  14519. --sftp-user string SSH username (default "$USER")
  14520. --sharefile-auth-url string Auth server URL
  14521. --sharefile-chunk-size SizeSuffix Upload chunk size (default 64Mi)
  14522. --sharefile-client-id string OAuth Client Id
  14523. --sharefile-client-secret string OAuth Client Secret
  14524. --sharefile-description string Description of the remote
  14525. --sharefile-encoding Encoding The encoding for the backend (default Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,LeftSpace,LeftPeriod,RightSpace,RightPeriod,InvalidUtf8,Dot)
  14526. --sharefile-endpoint string Endpoint for API calls
  14527. --sharefile-root-folder-id string ID of the root folder
  14528. --sharefile-token string OAuth Access Token as a JSON blob
  14529. --sharefile-token-url string Token server url
  14530. --sharefile-upload-cutoff SizeSuffix Cutoff for switching to multipart upload (default 128Mi)
  14531. --sia-api-password string Sia Daemon API Password (obscured)
  14532. --sia-api-url string Sia daemon API URL, like http://sia.daemon.host:9980 (default "http://127.0.0.1:9980")
  14533. --sia-description string Description of the remote
  14534. --sia-encoding Encoding The encoding for the backend (default Slash,Question,Hash,Percent,Del,Ctl,InvalidUtf8,Dot)
  14535. --sia-user-agent string Siad User Agent (default "Sia-Agent")
  14536. --skip-links Don't warn about skipped symlinks
  14537. --smb-case-insensitive Whether the server is configured to be case-insensitive (default true)
  14538. --smb-description string Description of the remote
  14539. --smb-domain string Domain name for NTLM authentication (default "WORKGROUP")
  14540. --smb-encoding Encoding The encoding for the backend (default Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot)
  14541. --smb-hide-special-share Hide special shares (e.g. print$) which users aren't supposed to access (default true)
  14542. --smb-host string SMB server hostname to connect to
  14543. --smb-idle-timeout Duration Max time before closing idle connections (default 1m0s)
  14544. --smb-pass string SMB password (obscured)
  14545. --smb-port int SMB port number (default 445)
  14546. --smb-spn string Service principal name
  14547. --smb-user string SMB username (default "$USER")
  14548. --storj-access-grant string Access grant
  14549. --storj-api-key string API key
  14550. --storj-description string Description of the remote
  14551. --storj-passphrase string Encryption passphrase
  14552. --storj-provider string Choose an authentication method (default "existing")
  14553. --storj-satellite-address string Satellite address (default "us1.storj.io")
  14554. --sugarsync-access-key-id string Sugarsync Access Key ID
  14555. --sugarsync-app-id string Sugarsync App ID
  14556. --sugarsync-authorization string Sugarsync authorization
  14557. --sugarsync-authorization-expiry string Sugarsync authorization expiry
  14558. --sugarsync-deleted-id string Sugarsync deleted folder id
  14559. --sugarsync-description string Description of the remote
  14560. --sugarsync-encoding Encoding The encoding for the backend (default Slash,Ctl,InvalidUtf8,Dot)
  14561. --sugarsync-hard-delete Permanently delete files if true
  14562. --sugarsync-private-access-key string Sugarsync Private Access Key
  14563. --sugarsync-refresh-token string Sugarsync refresh token
  14564. --sugarsync-root-id string Sugarsync root id
  14565. --sugarsync-user string Sugarsync user
  14566. --swift-application-credential-id string Application Credential ID (OS_APPLICATION_CREDENTIAL_ID)
  14567. --swift-application-credential-name string Application Credential Name (OS_APPLICATION_CREDENTIAL_NAME)
  14568. --swift-application-credential-secret string Application Credential Secret (OS_APPLICATION_CREDENTIAL_SECRET)
  14569. --swift-auth string Authentication URL for server (OS_AUTH_URL)
  14570. --swift-auth-token string Auth Token from alternate authentication - optional (OS_AUTH_TOKEN)
  14571. --swift-auth-version int AuthVersion - optional - set to (1,2,3) if your auth URL has no version (ST_AUTH_VERSION)
  14572. --swift-chunk-size SizeSuffix Above this size files will be chunked into a _segments container (default 5Gi)
  14573. --swift-description string Description of the remote
  14574. --swift-domain string User domain - optional (v3 auth) (OS_USER_DOMAIN_NAME)
  14575. --swift-encoding Encoding The encoding for the backend (default Slash,InvalidUtf8)
  14576. --swift-endpoint-type string Endpoint type to choose from the service catalogue (OS_ENDPOINT_TYPE) (default "public")
  14577. --swift-env-auth Get swift credentials from environment variables in standard OpenStack form
  14578. --swift-key string API key or password (OS_PASSWORD)
  14579. --swift-leave-parts-on-error If true avoid calling abort upload on a failure
  14580. --swift-no-chunk Don't chunk files during streaming upload
  14581. --swift-no-large-objects Disable support for static and dynamic large objects
  14582. --swift-region string Region name - optional (OS_REGION_NAME)
  14583. --swift-storage-policy string The storage policy to use when creating a new container
  14584. --swift-storage-url string Storage URL - optional (OS_STORAGE_URL)
  14585. --swift-tenant string Tenant name - optional for v1 auth, this or tenant_id required otherwise (OS_TENANT_NAME or OS_PROJECT_NAME)
  14586. --swift-tenant-domain string Tenant domain - optional (v3 auth) (OS_PROJECT_DOMAIN_NAME)
  14587. --swift-tenant-id string Tenant ID - optional for v1 auth, this or tenant required otherwise (OS_TENANT_ID)
  14588. --swift-user string User name to log in (OS_USERNAME)
  14589. --swift-user-id string User ID to log in - optional - most swift systems use user and leave this blank (v3 auth) (OS_USER_ID)
  14590. --union-action-policy string Policy to choose upstream on ACTION category (default "epall")
  14591. --union-cache-time int Cache time of usage and free space (in seconds) (default 120)
  14592. --union-create-policy string Policy to choose upstream on CREATE category (default "epmfs")
  14593. --union-description string Description of the remote
  14594. --union-min-free-space SizeSuffix Minimum viable free space for lfs/eplfs policies (default 1Gi)
  14595. --union-search-policy string Policy to choose upstream on SEARCH category (default "ff")
  14596. --union-upstreams string List of space separated upstreams
  14597. --uptobox-access-token string Your access token
  14598. --uptobox-description string Description of the remote
  14599. --uptobox-encoding Encoding The encoding for the backend (default Slash,LtGt,DoubleQuote,BackQuote,Del,Ctl,LeftSpace,InvalidUtf8,Dot)
  14600. --uptobox-private Set to make uploaded files private
  14601. --webdav-bearer-token string Bearer token instead of user/pass (e.g. a Macaroon)
  14602. --webdav-bearer-token-command string Command to run to get a bearer token
  14603. --webdav-description string Description of the remote
  14604. --webdav-encoding string The encoding for the backend
  14605. --webdav-headers CommaSepList Set HTTP headers for all transactions
  14606. --webdav-nextcloud-chunk-size SizeSuffix Nextcloud upload chunk size (default 10Mi)
  14607. --webdav-owncloud-exclude-shares Exclude ownCloud shares
  14608. --webdav-pacer-min-sleep Duration Minimum time to sleep between API calls (default 10ms)
  14609. --webdav-pass string Password (obscured)
  14610. --webdav-url string URL of http host to connect to
  14611. --webdav-user string User name
  14612. --webdav-vendor string Name of the WebDAV site/service/software you are using
  14613. --yandex-auth-url string Auth server URL
  14614. --yandex-client-id string OAuth Client Id
  14615. --yandex-client-secret string OAuth Client Secret
  14616. --yandex-description string Description of the remote
  14617. --yandex-encoding Encoding The encoding for the backend (default Slash,Del,Ctl,InvalidUtf8,Dot)
  14618. --yandex-hard-delete Delete files permanently rather than putting them into the trash
  14619. --yandex-token string OAuth Access Token as a JSON blob
  14620. --yandex-token-url string Token server url
  14621. --zoho-auth-url string Auth server URL
  14622. --zoho-client-id string OAuth Client Id
  14623. --zoho-client-secret string OAuth Client Secret
  14624. --zoho-description string Description of the remote
  14625. --zoho-encoding Encoding The encoding for the backend (default Del,Ctl,InvalidUtf8)
  14626. --zoho-region string Zoho region to connect to
  14627. --zoho-token string OAuth Access Token as a JSON blob
  14628. --zoho-token-url string Token server url
  14629. Docker Volume Plugin
  14630. Introduction
  14631. Docker 1.9 has added support for creating named volumes via command-line
  14632. interface and mounting them in containers as a way to share data between
  14633. them. Since Docker 1.10 you can create named volumes with Docker Compose
  14634. by descriptions in docker-compose.yml files for use by container groups
  14635. on a single host. As of Docker 1.12 volumes are supported by Docker
  14636. Swarm included with Docker Engine and created from descriptions in swarm
  14637. compose v3 files for use with swarm stacks across multiple cluster
  14638. nodes.
  14639. Docker Volume Plugins augment the default local volume driver included
  14640. in Docker with stateful volumes shared across containers and hosts.
  14641. Unlike local volumes, your data will not be deleted when such volume is
  14642. removed. Plugins can run managed by the docker daemon, as a native
  14643. system service (under systemd, sysv or upstart) or as a standalone
  14644. executable. Rclone can run as docker volume plugin in all these modes.
  14645. It interacts with the local docker daemon via plugin API and handles
  14646. mounting of remote file systems into docker containers so it must run on
  14647. the same host as the docker daemon or on every Swarm node.
  14648. Getting started
  14649. In the first example we will use the SFTP rclone volume with Docker
  14650. engine on a standalone Ubuntu machine.
  14651. Start from installing Docker on the host.
  14652. The FUSE driver is a prerequisite for rclone mounting and should be
  14653. installed on host:
  14654. sudo apt-get -y install fuse
  14655. Create two directories required by rclone docker plugin:
  14656. sudo mkdir -p /var/lib/docker-plugins/rclone/config
  14657. sudo mkdir -p /var/lib/docker-plugins/rclone/cache
  14658. Install the managed rclone docker plugin for your architecture (here
  14659. amd64):
  14660. docker plugin install rclone/docker-volume-rclone:amd64 args="-v" --alias rclone --grant-all-permissions
  14661. docker plugin list
  14662. Create your SFTP volume:
  14663. docker volume create firstvolume -d rclone -o type=sftp -o sftp-host=_hostname_ -o sftp-user=_username_ -o sftp-pass=_password_ -o allow-other=true
  14664. Note that since all options are static, you don't even have to run
  14665. rclone config or create the rclone.conf file (but the config directory
  14666. should still be present). In the simplest case you can use localhost as
  14667. hostname and your SSH credentials as username and password. You can also
  14668. change the remote path to your home directory on the host, for example
  14669. -o path=/home/username.
  14670. Time to create a test container and mount the volume into it:
  14671. docker run --rm -it -v firstvolume:/mnt --workdir /mnt ubuntu:latest bash
  14672. If all goes well, you will enter the new container and change right to
  14673. the mounted SFTP remote. You can type ls to list the mounted directory
  14674. or otherwise play with it. Type exit when you are done. The container
  14675. will stop but the volume will stay, ready to be reused. When it's not
  14676. needed anymore, remove it:
  14677. docker volume list
  14678. docker volume remove firstvolume
  14679. Now let us try something more elaborate: Google Drive volume on
  14680. multi-node Docker Swarm.
  14681. You should start from installing Docker and FUSE, creating plugin
  14682. directories and installing rclone plugin on every swarm node. Then setup
  14683. the Swarm.
  14684. Google Drive volumes need an access token which can be setup via web
  14685. browser and will be periodically renewed by rclone. The managed plugin
  14686. cannot run a browser so we will use a technique similar to the rclone
  14687. setup on a headless box.
  14688. Run rclone config on another machine equipped with web browser and
  14689. graphical user interface. Create the Google Drive remote. When done,
  14690. transfer the resulting rclone.conf to the Swarm cluster and save as
  14691. /var/lib/docker-plugins/rclone/config/rclone.conf on every node. By
  14692. default this location is accessible only to the root user so you will
  14693. need appropriate privileges. The resulting config will look like this:
  14694. [gdrive]
  14695. type = drive
  14696. scope = drive
  14697. drive_id = 1234567...
  14698. root_folder_id = 0Abcd...
  14699. token = {"access_token":...}
  14700. Now create the file named example.yml with a swarm stack description
  14701. like this:
  14702. version: '3'
  14703. services:
  14704. heimdall:
  14705. image: linuxserver/heimdall:latest
  14706. ports: [8080:80]
  14707. volumes: [configdata:/config]
  14708. volumes:
  14709. configdata:
  14710. driver: rclone
  14711. driver_opts:
  14712. remote: 'gdrive:heimdall'
  14713. allow_other: 'true'
  14714. vfs_cache_mode: full
  14715. poll_interval: 0
  14716. and run the stack:
  14717. docker stack deploy example -c ./example.yml
  14718. After a few seconds docker will spread the parsed stack description over
  14719. cluster, create the example_heimdall service on port 8080, run service
  14720. containers on one or more cluster nodes and request the
  14721. example_configdata volume from rclone plugins on the node hosts. You can
  14722. use the following commands to confirm results:
  14723. docker service ls
  14724. docker service ps example_heimdall
  14725. docker volume ls
  14726. Point your browser to http://cluster.host.address:8080 and play with the
  14727. service. Stop it with docker stack remove example when you are done.
  14728. Note that the example_configdata volume(s) created on demand at the
  14729. cluster nodes will not be automatically removed together with the stack
  14730. but stay for future reuse. You can remove them manually by invoking the
  14731. docker volume remove example_configdata command on every node.
  14732. Creating Volumes via CLI
  14733. Volumes can be created with docker volume create. Here are a few
  14734. examples:
  14735. docker volume create vol1 -d rclone -o remote=storj: -o vfs-cache-mode=full
  14736. docker volume create vol2 -d rclone -o remote=:storj,access_grant=xxx:heimdall
  14737. docker volume create vol3 -d rclone -o type=storj -o path=heimdall -o storj-access-grant=xxx -o poll-interval=0
  14738. Note the -d rclone flag that tells docker to request volume from the
  14739. rclone driver. This works even if you installed managed driver by its
  14740. full name rclone/docker-volume-rclone because you provided the
  14741. --alias rclone option.
  14742. Volumes can be inspected as follows:
  14743. docker volume list
  14744. docker volume inspect vol1
  14745. Volume Configuration
  14746. Rclone flags and volume options are set via the -o flag to the
  14747. docker volume create command. They include backend-specific parameters
  14748. as well as mount and VFS options. Also there are a few special -o
  14749. options: remote, fs, type, path, mount-type and persist.
  14750. remote determines an existing remote name from the config file, with
  14751. trailing colon and optionally with a remote path. See the full syntax in
  14752. the rclone documentation. This option can be aliased as fs to prevent
  14753. confusion with the remote parameter of such backends as crypt or alias.
  14754. The remote=:backend:dir/subdir syntax can be used to create on-the-fly
  14755. (config-less) remotes, while the type and path options provide a simpler
  14756. alternative for this. Using two split options
  14757. -o type=backend -o path=dir/subdir
  14758. is equivalent to the combined syntax
  14759. -o remote=:backend:dir/subdir
  14760. but is arguably easier to parameterize in scripts. The path part is
  14761. optional.
  14762. Mount and VFS options as well as backend parameters are named like their
  14763. twin command-line flags without the -- CLI prefix. Optionally you can
  14764. use underscores instead of dashes in option names. For example,
  14765. --vfs-cache-mode full becomes -o vfs-cache-mode=full or
  14766. -o vfs_cache_mode=full. Boolean CLI flags without value will gain the
  14767. true value, e.g. --allow-other becomes -o allow-other=true or
  14768. -o allow_other=true.
  14769. Please note that you can provide parameters only for the backend
  14770. immediately referenced by the backend type of mounted remote. If this is
  14771. a wrapping backend like alias, chunker or crypt, you cannot provide
  14772. options for the referred to remote or backend. This limitation is
  14773. imposed by the rclone connection string parser. The only workaround is
  14774. to feed plugin with rclone.conf or configure plugin arguments (see
  14775. below).
  14776. Special Volume Options
  14777. mount-type determines the mount method and in general can be one of:
  14778. mount, cmount, or mount2. This can be aliased as mount_type. It should
  14779. be noted that the managed rclone docker plugin currently does not
  14780. support the cmount method and mount2 is rarely needed. This option
  14781. defaults to the first found method, which is usually mount so you
  14782. generally won't need it.
  14783. persist is a reserved boolean (true/false) option. In future it will
  14784. allow to persist on-the-fly remotes in the plugin rclone.conf file.
  14785. Connection Strings
  14786. The remote value can be extended with connection strings as an
  14787. alternative way to supply backend parameters. This is equivalent to the
  14788. -o backend options with one syntactic difference. Inside connection
  14789. string the backend prefix must be dropped from parameter names but in
  14790. the -o param=value array it must be present. For instance, compare the
  14791. following option array
  14792. -o remote=:sftp:/home -o sftp-host=localhost
  14793. with equivalent connection string:
  14794. -o remote=:sftp,host=localhost:/home
  14795. This difference exists because flag options -o key=val include not only
  14796. backend parameters but also mount/VFS flags and possibly other settings.
  14797. Also it allows to discriminate the remote option from the crypt-remote
  14798. (or similarly named backend parameters) and arguably simplifies
  14799. scripting due to clearer value substitution.
  14800. Using with Swarm or Compose
  14801. Both Docker Swarm and Docker Compose use YAML-formatted text files to
  14802. describe groups (stacks) of containers, their properties, networks and
  14803. volumes. Compose uses the compose v2 format, Swarm uses the compose v3
  14804. format. They are mostly similar, differences are explained in the docker
  14805. documentation.
  14806. Volumes are described by the children of the top-level volumes: node.
  14807. Each of them should be named after its volume and have at least two
  14808. elements, the self-explanatory driver: rclone value and the driver_opts:
  14809. structure playing the same role as -o key=val CLI flags:
  14810. volumes:
  14811. volume_name_1:
  14812. driver: rclone
  14813. driver_opts:
  14814. remote: 'gdrive:'
  14815. allow_other: 'true'
  14816. vfs_cache_mode: full
  14817. token: '{"type": "borrower", "expires": "2021-12-31"}'
  14818. poll_interval: 0
  14819. Notice a few important details: - YAML prefers _ in option names instead
  14820. of -. - YAML treats single and double quotes interchangeably. Simple
  14821. strings and integers can be left unquoted. - Boolean values must be
  14822. quoted like 'true' or "false" because these two words are reserved by
  14823. YAML. - The filesystem string is keyed with remote (or with fs).
  14824. Normally you can omit quotes here, but if the string ends with colon,
  14825. you must quote it like remote: "storage_box:". - YAML is picky about
  14826. surrounding braces in values as this is in fact another syntax for
  14827. key/value mappings. For example, JSON access tokens usually contain
  14828. double quotes and surrounding braces, so you must put them in single
  14829. quotes.
  14830. Installing as Managed Plugin
  14831. Docker daemon can install plugins from an image registry and run them
  14832. managed. We maintain the docker-volume-rclone plugin image on Docker
  14833. Hub.
  14834. Rclone volume plugin requires Docker Engine >= 19.03.15
  14835. The plugin requires presence of two directories on the host before it
  14836. can be installed. Note that plugin will not create them automatically.
  14837. By default they must exist on host at the following locations (though
  14838. you can tweak the paths): - /var/lib/docker-plugins/rclone/config is
  14839. reserved for the rclone.conf config file and must exist even if it's
  14840. empty and the config file is not present. -
  14841. /var/lib/docker-plugins/rclone/cache holds the plugin state file as well
  14842. as optional VFS caches.
  14843. You can install managed plugin with default settings as follows:
  14844. docker plugin install rclone/docker-volume-rclone:amd64 --grant-all-permissions --alias rclone
  14845. The :amd64 part of the image specification after colon is called a tag.
  14846. Usually you will want to install the latest plugin for your
  14847. architecture. In this case the tag will just name it, like amd64 above.
  14848. The following plugin architectures are currently available: - amd64 -
  14849. arm64 - arm-v7
  14850. Sometimes you might want a concrete plugin version, not the latest one.
  14851. Then you should use image tag in the form :ARCHITECTURE-VERSION. For
  14852. example, to install plugin version v1.56.2 on architecture arm64 you
  14853. will use tag arm64-1.56.2 (note the removed v) so the full image
  14854. specification becomes rclone/docker-volume-rclone:arm64-1.56.2.
  14855. We also provide the latest plugin tag, but since docker does not support
  14856. multi-architecture plugins as of the time of this writing, this tag is
  14857. currently an alias for amd64. By convention the latest tag is the
  14858. default one and can be omitted, thus both
  14859. rclone/docker-volume-rclone:latest and just rclone/docker-volume-rclone
  14860. will refer to the latest plugin release for the amd64 platform.
  14861. Also the amd64 part can be omitted from the versioned rclone plugin
  14862. tags. For example, rclone image reference
  14863. rclone/docker-volume-rclone:amd64-1.56.2 can be abbreviated as
  14864. rclone/docker-volume-rclone:1.56.2 for convenience. However, for
  14865. non-intel architectures you still have to use the full tag as amd64 or
  14866. latest will fail to start.
  14867. Managed plugin is in fact a special container running in a namespace
  14868. separate from normal docker containers. Inside it runs the
  14869. rclone serve docker command. The config and cache directories are
  14870. bind-mounted into the container at start. The docker daemon connects to
  14871. a unix socket created by the command inside the container. The command
  14872. creates on-demand remote mounts right inside, then docker machinery
  14873. propagates them through kernel mount namespaces and bind-mounts into
  14874. requesting user containers.
  14875. You can tweak a few plugin settings after installation when it's
  14876. disabled (not in use), for instance:
  14877. docker plugin disable rclone
  14878. docker plugin set rclone RCLONE_VERBOSE=2 config=/etc/rclone args="--vfs-cache-mode=writes --allow-other"
  14879. docker plugin enable rclone
  14880. docker plugin inspect rclone
  14881. Note that if docker refuses to disable the plugin, you should find and
  14882. remove all active volumes connected with it as well as containers and
  14883. swarm services that use them. This is rather tedious so please carefully
  14884. plan in advance.
  14885. You can tweak the following settings: args, config, cache, HTTP_PROXY,
  14886. HTTPS_PROXY, NO_PROXY and RCLONE_VERBOSE. It's your task to keep plugin
  14887. settings in sync across swarm cluster nodes.
  14888. args sets command-line arguments for the rclone serve docker command
  14889. (none by default). Arguments should be separated by space so you will
  14890. normally want to put them in quotes on the docker plugin set command
  14891. line. Both serve docker flags and generic rclone flags are supported,
  14892. including backend parameters that will be used as defaults for volume
  14893. creation. Note that plugin will fail (due to this docker bug) if the
  14894. args value is empty. Use e.g. args="-v" as a workaround.
  14895. config=/host/dir sets alternative host location for the config
  14896. directory. Plugin will look for rclone.conf here. It's not an error if
  14897. the config file is not present but the directory must exist. Please note
  14898. that plugin can periodically rewrite the config file, for example when
  14899. it renews storage access tokens. Keep this in mind and try to avoid
  14900. races between the plugin and other instances of rclone on the host that
  14901. might try to change the config simultaneously resulting in corrupted
  14902. rclone.conf. You can also put stuff like private key files for SFTP
  14903. remotes in this directory. Just note that it's bind-mounted inside the
  14904. plugin container at the predefined path /data/config. For example, if
  14905. your key file is named sftp-box1.key on the host, the corresponding
  14906. volume config option should read
  14907. -o sftp-key-file=/data/config/sftp-box1.key.
  14908. cache=/host/dir sets alternative host location for the cache directory.
  14909. The plugin will keep VFS caches here. Also it will create and maintain
  14910. the docker-plugin.state file in this directory. When the plugin is
  14911. restarted or reinstalled, it will look in this file to recreate any
  14912. volumes that existed previously. However, they will not be re-mounted
  14913. into consuming containers after restart. Usually this is not a problem
  14914. as the docker daemon normally will restart affected user containers
  14915. after failures, daemon restarts or host reboots.
  14916. RCLONE_VERBOSE sets plugin verbosity from 0 (errors only, by default) to
  14917. 2 (debugging). Verbosity can be also tweaked via args="-v [-v] ...".
  14918. Since arguments are more generic, you will rarely need this setting. The
  14919. plugin output by default feeds the docker daemon log on local host. Log
  14920. entries are reflected as errors in the docker log but retain their
  14921. actual level assigned by rclone in the encapsulated message string.
  14922. HTTP_PROXY, HTTPS_PROXY, NO_PROXY customize the plugin proxy settings.
  14923. You can set custom plugin options right when you install it, in one go:
  14924. docker plugin remove rclone
  14925. docker plugin install rclone/docker-volume-rclone:amd64 \
  14926. --alias rclone --grant-all-permissions \
  14927. args="-v --allow-other" config=/etc/rclone
  14928. docker plugin inspect rclone
  14929. Healthchecks
  14930. The docker plugin volume protocol doesn't provide a way for plugins to
  14931. inform the docker daemon that a volume is (un-)available. As a
  14932. workaround you can setup a healthcheck to verify that the mount is
  14933. responding, for example:
  14934. services:
  14935. my_service:
  14936. image: my_image
  14937. healthcheck:
  14938. test: ls /path/to/rclone/mount || exit 1
  14939. interval: 1m
  14940. timeout: 15s
  14941. retries: 3
  14942. start_period: 15s
  14943. Running Plugin under Systemd
  14944. In most cases you should prefer managed mode. Moreover, MacOS and
  14945. Windows do not support native Docker plugins. Please use managed mode on
  14946. these systems. Proceed further only if you are on Linux.
  14947. First, install rclone. You can just run it (type rclone serve docker and
  14948. hit enter) for the test.
  14949. Install FUSE:
  14950. sudo apt-get -y install fuse
  14951. Download two systemd configuration files: docker-volume-rclone.service
  14952. and docker-volume-rclone.socket.
  14953. Put them to the /etc/systemd/system/ directory:
  14954. cp docker-volume-plugin.service /etc/systemd/system/
  14955. cp docker-volume-plugin.socket /etc/systemd/system/
  14956. Please note that all commands in this section must be run as root but we
  14957. omit sudo prefix for brevity. Now create directories required by the
  14958. service:
  14959. mkdir -p /var/lib/docker-volumes/rclone
  14960. mkdir -p /var/lib/docker-plugins/rclone/config
  14961. mkdir -p /var/lib/docker-plugins/rclone/cache
  14962. Run the docker plugin service in the socket activated mode:
  14963. systemctl daemon-reload
  14964. systemctl start docker-volume-rclone.service
  14965. systemctl enable docker-volume-rclone.socket
  14966. systemctl start docker-volume-rclone.socket
  14967. systemctl restart docker
  14968. Or run the service directly: - run systemctl daemon-reload to let
  14969. systemd pick up new config - run
  14970. systemctl enable docker-volume-rclone.service to make the new service
  14971. start automatically when you power on your machine. - run
  14972. systemctl start docker-volume-rclone.service to start the service now. -
  14973. run systemctl restart docker to restart docker daemon and let it detect
  14974. the new plugin socket. Note that this step is not needed in managed mode
  14975. where docker knows about plugin state changes.
  14976. The two methods are equivalent from the user perspective, but I
  14977. personally prefer socket activation.
  14978. Troubleshooting
  14979. You can see managed plugin settings with
  14980. docker plugin list
  14981. docker plugin inspect rclone
  14982. Note that docker (including latest 20.10.7) will not show actual values
  14983. of args, just the defaults.
  14984. Use journalctl --unit docker to see managed plugin output as part of the
  14985. docker daemon log. Note that docker reflects plugin lines as errors but
  14986. their actual level can be seen from encapsulated message string.
  14987. You will usually install the latest version of managed plugin for your
  14988. platform. Use the following commands to print the actual installed
  14989. version:
  14990. PLUGID=$(docker plugin list --no-trunc | awk '/rclone/{print$1}')
  14991. sudo runc --root /run/docker/runtime-runc/plugins.moby exec $PLUGID rclone version
  14992. You can even use runc to run shell inside the plugin container:
  14993. sudo runc --root /run/docker/runtime-runc/plugins.moby exec --tty $PLUGID bash
  14994. Also you can use curl to check the plugin socket connectivity:
  14995. docker plugin list --no-trunc
  14996. PLUGID=123abc...
  14997. sudo curl -H Content-Type:application/json -XPOST -d {} --unix-socket /run/docker/plugins/$PLUGID/rclone.sock http://localhost/Plugin.Activate
  14998. though this is rarely needed.
  14999. Caveats
  15000. Finally I'd like to mention a caveat with updating volume settings.
  15001. Docker CLI does not have a dedicated command like docker volume update.
  15002. It may be tempting to invoke docker volume create with updated options
  15003. on existing volume, but there is a gotcha. The command will do nothing,
  15004. it won't even return an error. I hope that docker maintainers will fix
  15005. this some day. In the meantime be aware that you must remove your volume
  15006. before recreating it with new settings:
  15007. docker volume remove my_vol
  15008. docker volume create my_vol -d rclone -o opt1=new_val1 ...
  15009. and verify that settings did update:
  15010. docker volume list
  15011. docker volume inspect my_vol
  15012. If docker refuses to remove the volume, you should find containers or
  15013. swarm services that use it and stop them first.
  15014. Bisync
  15015. bisync is in beta and is considered an advanced command, so use with
  15016. care. Make sure you have read and understood the entire manual
  15017. (especially the Limitations section) before using, or data loss can
  15018. result. Questions can be asked in the Rclone Forum.
  15019. Getting started
  15020. - Install rclone and setup your remotes.
  15021. - Bisync will create its working directory at ~/.cache/rclone/bisync
  15022. on Linux, /Users/yourusername/Library/Caches/rclone/bisync on Mac,
  15023. or C:\Users\MyLogin\AppData\Local\rclone\bisync on Windows. Make
  15024. sure that this location is writable.
  15025. - Run bisync with the --resync flag, specifying the paths to the local
  15026. and remote sync directory roots.
  15027. - For successive sync runs, leave off the --resync flag. (Important!)
  15028. - Consider using a filters file for excluding unnecessary files and
  15029. directories from the sync.
  15030. - Consider setting up the --check-access feature for safety.
  15031. - On Linux or Mac, consider setting up a crontab entry. bisync can
  15032. safely run in concurrent cron jobs thanks to lock files it
  15033. maintains.
  15034. For example, your first command might look like this:
  15035. rclone bisync remote1:path1 remote2:path2 --create-empty-src-dirs --compare size,modtime,checksum --slow-hash-sync-only --resilient -MvP --drive-skip-gdocs --fix-case --resync --dry-run
  15036. If all looks good, run it again without --dry-run. After that, remove
  15037. --resync as well.
  15038. Here is a typical run log (with timestamps removed for clarity):
  15039. rclone bisync /testdir/path1/ /testdir/path2/ --verbose
  15040. INFO : Synching Path1 "/testdir/path1/" with Path2 "/testdir/path2/"
  15041. INFO : Path1 checking for diffs
  15042. INFO : - Path1 File is new - file11.txt
  15043. INFO : - Path1 File is newer - file2.txt
  15044. INFO : - Path1 File is newer - file5.txt
  15045. INFO : - Path1 File is newer - file7.txt
  15046. INFO : - Path1 File was deleted - file4.txt
  15047. INFO : - Path1 File was deleted - file6.txt
  15048. INFO : - Path1 File was deleted - file8.txt
  15049. INFO : Path1: 7 changes: 1 new, 3 newer, 0 older, 3 deleted
  15050. INFO : Path2 checking for diffs
  15051. INFO : - Path2 File is new - file10.txt
  15052. INFO : - Path2 File is newer - file1.txt
  15053. INFO : - Path2 File is newer - file5.txt
  15054. INFO : - Path2 File is newer - file6.txt
  15055. INFO : - Path2 File was deleted - file3.txt
  15056. INFO : - Path2 File was deleted - file7.txt
  15057. INFO : - Path2 File was deleted - file8.txt
  15058. INFO : Path2: 7 changes: 1 new, 3 newer, 0 older, 3 deleted
  15059. INFO : Applying changes
  15060. INFO : - Path1 Queue copy to Path2 - /testdir/path2/file11.txt
  15061. INFO : - Path1 Queue copy to Path2 - /testdir/path2/file2.txt
  15062. INFO : - Path2 Queue delete - /testdir/path2/file4.txt
  15063. NOTICE: - WARNING New or changed in both paths - file5.txt
  15064. NOTICE: - Path1 Renaming Path1 copy - /testdir/path1/file5.txt..path1
  15065. NOTICE: - Path1 Queue copy to Path2 - /testdir/path2/file5.txt..path1
  15066. NOTICE: - Path2 Renaming Path2 copy - /testdir/path2/file5.txt..path2
  15067. NOTICE: - Path2 Queue copy to Path1 - /testdir/path1/file5.txt..path2
  15068. INFO : - Path2 Queue copy to Path1 - /testdir/path1/file6.txt
  15069. INFO : - Path1 Queue copy to Path2 - /testdir/path2/file7.txt
  15070. INFO : - Path2 Queue copy to Path1 - /testdir/path1/file1.txt
  15071. INFO : - Path2 Queue copy to Path1 - /testdir/path1/file10.txt
  15072. INFO : - Path1 Queue delete - /testdir/path1/file3.txt
  15073. INFO : - Path2 Do queued copies to - Path1
  15074. INFO : - Path1 Do queued copies to - Path2
  15075. INFO : - Do queued deletes on - Path1
  15076. INFO : - Do queued deletes on - Path2
  15077. INFO : Updating listings
  15078. INFO : Validating listings for Path1 "/testdir/path1/" vs Path2 "/testdir/path2/"
  15079. INFO : Bisync successful
  15080. Command line syntax
  15081. $ rclone bisync --help
  15082. Usage:
  15083. rclone bisync remote1:path1 remote2:path2 [flags]
  15084. Positional arguments:
  15085. Path1, Path2 Local path, or remote storage with ':' plus optional path.
  15086. Type 'rclone listremotes' for list of configured remotes.
  15087. Optional Flags:
  15088. --backup-dir1 string --backup-dir for Path1. Must be a non-overlapping path on the same remote.
  15089. --backup-dir2 string --backup-dir for Path2. Must be a non-overlapping path on the same remote.
  15090. --check-access Ensure expected RCLONE_TEST files are found on both Path1 and Path2 filesystems, else abort.
  15091. --check-filename string Filename for --check-access (default: RCLONE_TEST)
  15092. --check-sync string Controls comparison of final listings: true|false|only (default: true) (default "true")
  15093. --compare string Comma-separated list of bisync-specific compare options ex. 'size,modtime,checksum' (default: 'size,modtime')
  15094. --conflict-loser ConflictLoserAction Action to take on the loser of a sync conflict (when there is a winner) or on both files (when there is no winner): , num, pathname, delete (default: num)
  15095. --conflict-resolve string Automatically resolve conflicts by preferring the version that is: none, path1, path2, newer, older, larger, smaller (default: none) (default "none")
  15096. --conflict-suffix string Suffix to use when renaming a --conflict-loser. Can be either one string or two comma-separated strings to assign different suffixes to Path1/Path2. (default: 'conflict')
  15097. --create-empty-src-dirs Sync creation and deletion of empty directories. (Not compatible with --remove-empty-dirs)
  15098. --download-hash Compute hash by downloading when otherwise unavailable. (warning: may be slow and use lots of data!)
  15099. --filters-file string Read filtering patterns from a file
  15100. --force Bypass --max-delete safety check and run the sync. Consider using with --verbose
  15101. -h, --help help for bisync
  15102. --ignore-listing-checksum Do not use checksums for listings (add --ignore-checksum to additionally skip post-copy checksum checks)
  15103. --max-lock Duration Consider lock files older than this to be expired (default: 0 (never expire)) (minimum: 2m) (default 0s)
  15104. --no-cleanup Retain working files (useful for troubleshooting and testing).
  15105. --no-slow-hash Ignore listing checksums only on backends where they are slow
  15106. --recover Automatically recover from interruptions without requiring --resync.
  15107. --remove-empty-dirs Remove ALL empty directories at the final cleanup step.
  15108. --resilient Allow future runs to retry after certain less-serious errors, instead of requiring --resync. Use at your own risk!
  15109. -1, --resync Performs the resync run. Equivalent to --resync-mode path1. Consider using --verbose or --dry-run first.
  15110. --resync-mode string During resync, prefer the version that is: path1, path2, newer, older, larger, smaller (default: path1 if --resync, otherwise none for no resync.) (default "none")
  15111. --retries int Retry operations this many times if they fail (requires --resilient). (default 3)
  15112. --retries-sleep Duration Interval between retrying operations if they fail, e.g. 500ms, 60s, 5m (0 to disable) (default 0s)
  15113. --slow-hash-sync-only Ignore slow checksums for listings and deltas, but still consider them during sync calls.
  15114. --workdir string Use custom working dir - useful for testing. (default: {WORKDIR})
  15115. --max-delete PERCENT Safety check on maximum percentage of deleted files allowed. If exceeded, the bisync run will abort. (default: 50%)
  15116. -n, --dry-run Go through the motions - No files are copied/deleted.
  15117. -v, --verbose Increases logging verbosity. May be specified more than once for more details.
  15118. Arbitrary rclone flags may be specified on the bisync command line, for
  15119. example
  15120. rclone bisync ./testdir/path1/ gdrive:testdir/path2/ --drive-skip-gdocs -v -v --timeout 10s
  15121. Note that interactions of various rclone flags with bisync process flow
  15122. has not been fully tested yet.
  15123. Paths
  15124. Path1 and Path2 arguments may be references to any mix of local
  15125. directory paths (absolute or relative), UNC paths (//server/share/path),
  15126. Windows drive paths (with a drive letter and :) or configured remotes
  15127. with optional subdirectory paths. Cloud references are distinguished by
  15128. having a : in the argument (see Windows support below).
  15129. Path1 and Path2 are treated equally, in that neither has priority for
  15130. file changes (except during --resync), and access efficiency does not
  15131. change whether a remote is on Path1 or Path2.
  15132. The listings in bisync working directory (default:
  15133. ~/.cache/rclone/bisync) are named based on the Path1 and Path2 arguments
  15134. so that separate syncs to individual directories within the tree may be
  15135. set up, e.g.: path_to_local_tree..dropbox_subdir.lst.
  15136. Any empty directories after the sync on both the Path1 and Path2
  15137. filesystems are not deleted by default, unless --create-empty-src-dirs
  15138. is specified. If the --remove-empty-dirs flag is specified, then both
  15139. paths will have ALL empty directories purged as the last step in the
  15140. process.
  15141. Command-line flags
  15142. --resync
  15143. This will effectively make both Path1 and Path2 filesystems contain a
  15144. matching superset of all files. By default, Path2 files that do not
  15145. exist in Path1 will be copied to Path1, and the process will then copy
  15146. the Path1 tree to Path2.
  15147. The --resync sequence is roughly equivalent to the following (but see
  15148. --resync-mode for other options):
  15149. rclone copy Path2 Path1 --ignore-existing [--create-empty-src-dirs]
  15150. rclone copy Path1 Path2 [--create-empty-src-dirs]
  15151. The base directories on both Path1 and Path2 filesystems must exist or
  15152. bisync will fail. This is required for safety - that bisync can verify
  15153. that both paths are valid.
  15154. When using --resync, a newer version of a file on the Path2 filesystem
  15155. will (by default) be overwritten by the Path1 filesystem version. (Note
  15156. that this is NOT entirely symmetrical, and more symmetrical options can
  15157. be specified with the --resync-mode flag.) Carefully evaluate deltas
  15158. using --dry-run.
  15159. For a resync run, one of the paths may be empty (no files in the path
  15160. tree). The resync run should result in files on both paths, else a
  15161. normal non-resync run will fail.
  15162. For a non-resync run, either path being empty (no files in the tree)
  15163. fails with
  15164. Empty current PathN listing. Cannot sync to an empty directory: X.pathN.lst
  15165. This is a safety check that an unexpected empty path does not result in
  15166. deleting everything in the other path.
  15167. Note that --resync implies --resync-mode path1 unless a different
  15168. --resync-mode is explicitly specified. It is not necessary to use both
  15169. the --resync and --resync-mode flags -- either one is sufficient without
  15170. the other.
  15171. Note: --resync (including --resync-mode) should only be used under three
  15172. specific (rare) circumstances: 1. It is your first bisync run (between
  15173. these two paths) 2. You've just made changes to your bisync settings
  15174. (such as editing the contents of your --filters-file) 3. There was an
  15175. error on the prior run, and as a result, bisync now requires --resync to
  15176. recover
  15177. The rest of the time, you should omit --resync. The reason is because
  15178. --resync will only copy (not sync) each side to the other. Therefore, if
  15179. you included --resync for every bisync run, it would never be possible
  15180. to delete a file -- the deleted file would always keep reappearing at
  15181. the end of every run (because it's being copied from the other side
  15182. where it still exists). Similarly, renaming a file would always result
  15183. in a duplicate copy (both old and new name) on both sides.
  15184. If you find that frequent interruptions from #3 are an issue, rather
  15185. than automatically running --resync, the recommended alternative is to
  15186. use the --resilient, --recover, and --conflict-resolve flags, (along
  15187. with Graceful Shutdown mode, when needed) for a very robust
  15188. "set-it-and-forget-it" bisync setup that can automatically bounce back
  15189. from almost any interruption it might encounter. Consider adding
  15190. something like the following:
  15191. --resilient --recover --max-lock 2m --conflict-resolve newer
  15192. --resync-mode CHOICE
  15193. In the event that a file differs on both sides during a --resync,
  15194. --resync-mode controls which version will overwrite the other. The
  15195. supported options are similar to --conflict-resolve. For all of the
  15196. following options, the version that is kept is referred to as the
  15197. "winner", and the version that is overwritten (deleted) is referred to
  15198. as the "loser". The options are named after the "winner":
  15199. - path1 - (the default) - the version from Path1 is unconditionally
  15200. considered the winner (regardless of modtime and size, if any). This
  15201. can be useful if one side is more trusted or up-to-date than the
  15202. other, at the time of the --resync.
  15203. - path2 - same as path1, except the path2 version is considered the
  15204. winner.
  15205. - newer - the newer file (by modtime) is considered the winner,
  15206. regardless of which side it came from. This may result in having a
  15207. mix of some winners from Path1, and some winners from Path2. (The
  15208. implementation is analogous to running rclone copy --update in both
  15209. directions.)
  15210. - older - same as newer, except the older file is considered the
  15211. winner, and the newer file is considered the loser.
  15212. - larger - the larger file (by size) is considered the winner
  15213. (regardless of modtime, if any). This can be a useful option for
  15214. remotes without modtime support, or with the kinds of files (such as
  15215. logs) that tend to grow but not shrink, over time.
  15216. - smaller - the smaller file (by size) is considered the winner
  15217. (regardless of modtime, if any).
  15218. For all of the above options, note the following: - If either of the
  15219. underlying remotes lacks support for the chosen method, it will be
  15220. ignored and will fall back to the default of path1. (For example, if
  15221. --resync-mode newer is set, but one of the paths uses a remote that
  15222. doesn't support modtime.) - If a winner can't be determined because the
  15223. chosen method's attribute is missing or equal, it will be ignored, and
  15224. bisync will instead try to determine whether the files differ by looking
  15225. at the other --compare methods in effect. (For example, if
  15226. --resync-mode newer is set, but the Path1 and Path2 modtimes are
  15227. identical, bisync will compare the sizes.) If bisync concludes that they
  15228. differ, preference is given to whichever is the "source" at that moment.
  15229. (In practice, this gives a slight advantage to Path2, as the 2to1 copy
  15230. comes before the 1to2 copy.) If the files do not differ, nothing is
  15231. copied (as both sides are already correct). - These options apply only
  15232. to files that exist on both sides (with the same name and relative
  15233. path). Files that exist only on one side and not the other are always
  15234. copied to the other, during --resync (this is one of the main
  15235. differences between resync and non-resync runs.). - --conflict-resolve,
  15236. --conflict-loser, and --conflict-suffix do not apply during --resync,
  15237. and unlike these flags, nothing is renamed during --resync. When a file
  15238. differs on both sides during --resync, one version always overwrites the
  15239. other (much like in rclone copy.) (Consider using --backup-dir to retain
  15240. a backup of the losing version.) - Unlike for --conflict-resolve,
  15241. --resync-mode none is not a valid option (or rather, it will be
  15242. interpreted as "no resync", unless --resync has also been specified, in
  15243. which case it will be ignored.) - Winners and losers are decided at the
  15244. individual file-level only (there is not currently an option to pick an
  15245. entire winning directory atomically, although the path1 and path2
  15246. options typically produce a similar result.) - To maintain
  15247. backward-compatibility, the --resync flag implies --resync-mode path1
  15248. unless a different --resync-mode is explicitly specified. Similarly, all
  15249. --resync-mode options (except none) imply --resync, so it is not
  15250. necessary to use both the --resync and --resync-mode flags
  15251. simultaneously -- either one is sufficient without the other.
  15252. --check-access
  15253. Access check files are an additional safety measure against data loss.
  15254. bisync will ensure it can find matching RCLONE_TEST files in the same
  15255. places in the Path1 and Path2 filesystems. RCLONE_TEST files are not
  15256. generated automatically. For --check-access to succeed, you must first
  15257. either: A) Place one or more RCLONE_TEST files in both systems, or B)
  15258. Set --check-filename to a filename already in use in various locations
  15259. throughout your sync'd fileset. Recommended methods for A) include: *
  15260. rclone touch Path1/RCLONE_TEST (create a new file) *
  15261. rclone copyto Path1/RCLONE_TEST Path2/RCLONE_TEST (copy an existing
  15262. file) *
  15263. rclone copy Path1/RCLONE_TEST Path2/RCLONE_TEST --include "RCLONE_TEST"
  15264. (copy multiple files at once, recursively) * create the files manually
  15265. (outside of rclone) * run bisync once without --check-access to set
  15266. matching files on both filesystems will also work, but is not preferred,
  15267. due to potential for user error (you are temporarily disabling the
  15268. safety feature).
  15269. Note that --check-access is still enforced on --resync, so
  15270. bisync --resync --check-access will not work as a method of initially
  15271. setting the files (this is to ensure that bisync can't inadvertently
  15272. circumvent its own safety switch.)
  15273. Time stamps and file contents for RCLONE_TEST files are not important,
  15274. just the names and locations. If you have symbolic links in your sync
  15275. tree it is recommended to place RCLONE_TEST files in the linked-to
  15276. directory tree to protect against bisync assuming a bunch of deleted
  15277. files if the linked-to tree should not be accessible. See also the
  15278. --check-filename flag.
  15279. --check-filename
  15280. Name of the file(s) used in access health validation. The default
  15281. --check-filename is RCLONE_TEST. One or more files having this filename
  15282. must exist, synchronized between your source and destination filesets,
  15283. in order for --check-access to succeed. See --check-access for
  15284. additional details.
  15285. --compare
  15286. As of v1.66, bisync fully supports comparing based on any combination of
  15287. size, modtime, and checksum (lifting the prior restriction on backends
  15288. without modtime support.)
  15289. By default (without the --compare flag), bisync inherits the same
  15290. comparison options as sync (that is: size and modtime by default, unless
  15291. modified with flags such as --checksum or --size-only.)
  15292. If the --compare flag is set, it will override these defaults. This can
  15293. be useful if you wish to compare based on combinations not currently
  15294. supported in sync, such as comparing all three of size AND modtime AND
  15295. checksum simultaneously (or just modtime AND checksum).
  15296. --compare takes a comma-separated list, with the currently supported
  15297. values being size, modtime, and checksum. For example, if you want to
  15298. compare size and checksum, but not modtime, you would do:
  15299. --compare size,checksum
  15300. Or if you want to compare all three:
  15301. --compare size,modtime,checksum
  15302. --compare overrides any conflicting flags. For example, if you set the
  15303. conflicting flags --compare checksum --size-only, --size-only will be
  15304. ignored, and bisync will compare checksum and not size. To avoid
  15305. confusion, it is recommended to use either --compare or the normal sync
  15306. flags, but not both.
  15307. If --compare includes checksum and both remotes support checksums but
  15308. have no hash types in common with each other, checksums will be
  15309. considered only for comparisons within the same side (to determine what
  15310. has changed since the prior sync), but not for comparisons against the
  15311. opposite side. If one side supports checksums and the other does not,
  15312. checksums will only be considered on the side that supports them.
  15313. When comparing with checksum and/or size without modtime, bisync cannot
  15314. determine whether a file is newer or older -- only whether it is changed
  15315. or unchanged. (If it is changed on both sides, bisync still does the
  15316. standard equality-check to avoid declaring a sync conflict unless it
  15317. absolutely has to.)
  15318. It is recommended to do a --resync when changing --compare settings, as
  15319. otherwise your prior listing files may not contain the attributes you
  15320. wish to compare (for example, they will not have stored checksums if you
  15321. were not previously comparing checksums.)
  15322. --ignore-listing-checksum
  15323. When --checksum or --compare checksum is set, bisync will retrieve (or
  15324. generate) checksums (for backends that support them) when creating the
  15325. listings for both paths, and store the checksums in the listing files.
  15326. --ignore-listing-checksum will disable this behavior, which may speed
  15327. things up considerably, especially on backends (such as local) where
  15328. hashes must be computed on the fly instead of retrieved. Please note the
  15329. following:
  15330. - As of v1.66, --ignore-listing-checksum is now automatically set when
  15331. neither --checksum nor --compare checksum are in use (as the
  15332. checksums would not be used for anything.)
  15333. - --ignore-listing-checksum is NOT the same as --ignore-checksum, and
  15334. you may wish to use one or the other, or both. In a nutshell:
  15335. --ignore-listing-checksum controls whether checksums are considered
  15336. when scanning for diffs, while --ignore-checksum controls whether
  15337. checksums are considered during the copy/sync operations that
  15338. follow, if there ARE diffs.
  15339. - Unless --ignore-listing-checksum is passed, bisync currently
  15340. computes hashes for one path even when there's no common hash with
  15341. the other path (for example, a crypt remote.) This can still be
  15342. beneficial, as the hashes will still be used to detect changes
  15343. within the same side (if --checksum or --compare checksum is set),
  15344. even if they can't be used to compare against the opposite side.
  15345. - If you wish to ignore listing checksums only on remotes where they
  15346. are slow to compute, consider using --no-slow-hash (or
  15347. --slow-hash-sync-only) instead of --ignore-listing-checksum.
  15348. - If --ignore-listing-checksum is used simultaneously with
  15349. --compare checksum (or --checksum), checksums will be ignored for
  15350. bisync deltas, but still considered during the sync operations that
  15351. follow (if deltas are detected based on modtime and/or size.)
  15352. --no-slow-hash
  15353. On some remotes (notably local), checksums can dramatically slow down a
  15354. bisync run, because hashes cannot be stored and need to be computed in
  15355. real-time when they are requested. On other remotes (such as drive),
  15356. they add practically no time at all. The --no-slow-hash flag will
  15357. automatically skip checksums on remotes where they are slow, while still
  15358. comparing them on others (assuming --compare includes checksum.) This
  15359. can be useful when one of your bisync paths is slow but you still want
  15360. to check checksums on the other, for a more robust sync.
  15361. --slow-hash-sync-only
  15362. Same as --no-slow-hash, except slow hashes are still considered during
  15363. sync calls. They are still NOT considered for determining deltas, nor or
  15364. they included in listings. They are also skipped during --resync. The
  15365. main use case for this flag is when you have a large number of files,
  15366. but relatively few of them change from run to run -- so you don't want
  15367. to check your entire tree every time (it would take too long), but you
  15368. still want to consider checksums for the smaller group of files for
  15369. which a modtime or size change was detected. Keep in mind that this
  15370. speed savings comes with a safety trade-off: if a file's content were to
  15371. change without a change to its modtime or size, bisync would not detect
  15372. it, and it would not be synced.
  15373. --slow-hash-sync-only is only useful if both remotes share a common hash
  15374. type (if they don't, bisync will automatically fall back to
  15375. --no-slow-hash.) Both --no-slow-hash and --slow-hash-sync-only have no
  15376. effect without --compare checksum (or --checksum).
  15377. --download-hash
  15378. If --download-hash is set, bisync will use best efforts to obtain an MD5
  15379. checksum by downloading and computing on-the-fly, when checksums are not
  15380. otherwise available (for example, a remote that doesn't support them.)
  15381. Note that since rclone has to download the entire file, this may
  15382. dramatically slow down your bisync runs, and is also likely to use a lot
  15383. of data, so it is probably not practical for bisync paths with a large
  15384. total file size. However, it can be a good option for syncing
  15385. small-but-important files with maximum accuracy (for example, a source
  15386. code repo on a crypt remote.) An additional advantage over methods like
  15387. cryptcheck is that the original file is not required for comparison (for
  15388. example, --download-hash can be used to bisync two different crypt
  15389. remotes with different passwords.)
  15390. When --download-hash is set, bisync still looks for more efficient
  15391. checksums first, and falls back to downloading only when none are found.
  15392. It takes priority over conflicting flags such as --no-slow-hash.
  15393. --download-hash is not suitable for Google Docs and other files of
  15394. unknown size, as their checksums would change from run to run (due to
  15395. small variances in the internals of the generated export file.)
  15396. Therefore, bisync automatically skips --download-hash for files with a
  15397. size less than 0.
  15398. See also: Hasher backend, cryptcheck command, rclone check --download
  15399. option, md5sum command
  15400. --max-delete
  15401. As a safety check, if greater than the --max-delete percent of files
  15402. were deleted on either the Path1 or Path2 filesystem, then bisync will
  15403. abort with a warning message, without making any changes. The default
  15404. --max-delete is 50%. One way to trigger this limit is to rename a
  15405. directory that contains more than half of your files. This will appear
  15406. to bisync as a bunch of deleted files and a bunch of new files. This
  15407. safety check is intended to block bisync from deleting all of the files
  15408. on both filesystems due to a temporary network access issue, or if the
  15409. user had inadvertently deleted the files on one side or the other. To
  15410. force the sync, either set a different delete percentage limit, e.g.
  15411. --max-delete 75 (allows up to 75% deletion), or use --force to bypass
  15412. the check.
  15413. Also see the all files changed check.
  15414. --filters-file
  15415. By using rclone filter features you can exclude file types or directory
  15416. sub-trees from the sync. See the bisync filters section and generic
  15417. --filter-from documentation. An example filters file contains filters
  15418. for non-allowed files for synching with Dropbox.
  15419. If you make changes to your filters file then bisync requires a run with
  15420. --resync. This is a safety feature, which prevents existing files on the
  15421. Path1 and/or Path2 side from seeming to disappear from view (since they
  15422. are excluded in the new listings), which would fool bisync into seeing
  15423. them as deleted (as compared to the prior run listings), and then bisync
  15424. would proceed to delete them for real.
  15425. To block this from happening, bisync calculates an MD5 hash of the
  15426. filters file and stores the hash in a .md5 file in the same place as
  15427. your filters file. On the next run with --filters-file set, bisync
  15428. re-calculates the MD5 hash of the current filters file and compares it
  15429. to the hash stored in the .md5 file. If they don't match, the run aborts
  15430. with a critical error and thus forces you to do a --resync, likely
  15431. avoiding a disaster.
  15432. --conflict-resolve CHOICE
  15433. In bisync, a "conflict" is a file that is new or changed on both sides
  15434. (relative to the prior run) AND is not currently identical on both
  15435. sides. --conflict-resolve controls how bisync handles such a scenario.
  15436. The currently supported options are:
  15437. - none - (the default) - do not attempt to pick a winner, keep and
  15438. rename both files according to --conflict-loser and
  15439. --conflict-suffix settings. For example, with the default settings,
  15440. file.txt on Path1 is renamed file.txt.conflict1 and file.txt on
  15441. Path2 is renamed file.txt.conflict2. Both are copied to the opposite
  15442. path during the run, so both sides end up with a copy of both files.
  15443. (As none is the default, it is not necessary to specify
  15444. --conflict-resolve none -- you can just omit the flag.)
  15445. - newer - the newer file (by modtime) is considered the winner and is
  15446. copied without renaming. The older file (the "loser") is handled
  15447. according to --conflict-loser and --conflict-suffix settings (either
  15448. renamed or deleted.) For example, if file.txt on Path1 is newer than
  15449. file.txt on Path2, the result on both sides (with other default
  15450. settings) will be file.txt (winner from Path1) and
  15451. file.txt.conflict1 (loser from Path2).
  15452. - older - same as newer, except the older file is considered the
  15453. winner, and the newer file is considered the loser.
  15454. - larger - the larger file (by size) is considered the winner
  15455. (regardless of modtime, if any).
  15456. - smaller - the smaller file (by size) is considered the winner
  15457. (regardless of modtime, if any).
  15458. - path1 - the version from Path1 is unconditionally considered the
  15459. winner (regardless of modtime and size, if any). This can be useful
  15460. if one side is usually more trusted or up-to-date than the other.
  15461. - path2 - same as path1, except the path2 version is considered the
  15462. winner.
  15463. For all of the above options, note the following: - If either of the
  15464. underlying remotes lacks support for the chosen method, it will be
  15465. ignored and fall back to none. (For example, if --conflict-resolve newer
  15466. is set, but one of the paths uses a remote that doesn't support
  15467. modtime.) - If a winner can't be determined because the chosen method's
  15468. attribute is missing or equal, it will be ignored and fall back to none.
  15469. (For example, if --conflict-resolve newer is set, but the Path1 and
  15470. Path2 modtimes are identical, even if the sizes may differ.) - If the
  15471. file's content is currently identical on both sides, it is not
  15472. considered a "conflict", even if new or changed on both sides since the
  15473. prior sync. (For example, if you made a change on one side and then
  15474. synced it to the other side by other means.) Therefore, none of the
  15475. conflict resolution flags apply in this scenario. - The conflict
  15476. resolution flags do not apply during a --resync, as there is no "prior
  15477. run" to speak of (but see --resync-mode for similar options.)
  15478. --conflict-loser CHOICE
  15479. --conflict-loser determines what happens to the "loser" of a sync
  15480. conflict (when --conflict-resolve determines a winner) or to both files
  15481. (when there is no winner.) The currently supported options are:
  15482. - num - (the default) - auto-number the conflicts by automatically
  15483. appending the next available number to the --conflict-suffix, in
  15484. chronological order. For example, with the default settings, the
  15485. first conflict for file.txt will be renamed file.txt.conflict1. If
  15486. file.txt.conflict1 already exists, file.txt.conflict2 will be used
  15487. instead (etc., up to a maximum of 9223372036854775807 conflicts.)
  15488. - pathname - rename the conflicts according to which side they came
  15489. from, which was the default behavior prior to v1.66. For example,
  15490. with --conflict-suffix path, file.txt from Path1 will be renamed
  15491. file.txt.path1, and file.txt from Path2 will be renamed
  15492. file.txt.path2. If two non-identical suffixes are provided (ex.
  15493. --conflict-suffix cloud,local), the trailing digit is omitted.
  15494. Importantly, note that with pathname, there is no auto-numbering
  15495. beyond 2, so if file.txt.path2 somehow already exists, it will be
  15496. overwritten. Using a dynamic date variable in your --conflict-suffix
  15497. (see below) is one possible way to avoid this. Note also that
  15498. conflicts-of-conflicts are possible, if the original conflict is not
  15499. manually resolved -- for example, if for some reason you edited
  15500. file.txt.path1 on both sides, and those edits were different, the
  15501. result would be file.txt.path1.path1 and file.txt.path1.path2 (in
  15502. addition to file.txt.path2.)
  15503. - delete - keep the winner only and delete the loser, instead of
  15504. renaming it. If a winner cannot be determined (see
  15505. --conflict-resolve for details on how this could happen), delete is
  15506. ignored and the default num is used instead (i.e. both versions are
  15507. kept and renamed, and neither is deleted.) delete is inherently the
  15508. most destructive option, so use it only with care.
  15509. For all of the above options, note that if a winner cannot be determined
  15510. (see --conflict-resolve for details on how this could happen), or if
  15511. --conflict-resolve is not in use, both files will be renamed.
  15512. --conflict-suffix STRING[,STRING]
  15513. --conflict-suffix controls the suffix that is appended when bisync
  15514. renames a --conflict-loser (default: conflict). --conflict-suffix will
  15515. accept either one string or two comma-separated strings to assign
  15516. different suffixes to Path1 vs. Path2. This may be helpful later in
  15517. identifying the source of the conflict. (For example,
  15518. --conflict-suffix dropboxconflict,laptopconflict)
  15519. With --conflict-loser num, a number is always appended to the suffix.
  15520. With --conflict-loser pathname, a number is appended only when one
  15521. suffix is specified (or when two identical suffixes are specified.) i.e.
  15522. with --conflict-loser pathname, all of the following would produce
  15523. exactly the same result:
  15524. --conflict-suffix path
  15525. --conflict-suffix path,path
  15526. --conflict-suffix path1,path2
  15527. Suffixes may be as short as 1 character. By default, the suffix is
  15528. appended after any other extensions (ex. file.jpg.conflict1), however,
  15529. this can be changed with the --suffix-keep-extension flag (i.e. to
  15530. instead result in file.conflict1.jpg).
  15531. --conflict-suffix supports several dynamic date variables when enclosed
  15532. in curly braces as globs. This can be helpful to track the date and/or
  15533. time that each conflict was handled by bisync. For example:
  15534. --conflict-suffix {DateOnly}-conflict
  15535. // result: myfile.txt.2006-01-02-conflict1
  15536. All of the formats described here and here are supported, but take care
  15537. to ensure that your chosen format does not use any characters that are
  15538. illegal on your remotes (for example, macOS does not allow colons in
  15539. filenames, and slashes are also best avoided as they are often
  15540. interpreted as directory separators.) To address this particular issue,
  15541. an additional {MacFriendlyTime} (or just {mac}) option is supported,
  15542. which results in 2006-01-02 0304PM.
  15543. Note that --conflict-suffix is entirely separate from rclone's main
  15544. --sufix flag. This is intentional, as users may wish to use both flags
  15545. simultaneously, if also using --backup-dir.
  15546. Finally, note that the default in bisync prior to v1.66 was to rename
  15547. conflicts with ..path1 and ..path2 (with two periods, and path instead
  15548. of conflict.) Bisync now defaults to a single dot instead of a double
  15549. dot, but additional dots can be added by including them in the specified
  15550. suffix string. For example, for behavior equivalent to the previous
  15551. default, use:
  15552. [--conflict-resolve none] --conflict-loser pathname --conflict-suffix .path
  15553. --check-sync
  15554. Enabled by default, the check-sync function checks that all of the same
  15555. files exist in both the Path1 and Path2 history listings. This
  15556. check-sync integrity check is performed at the end of the sync run by
  15557. default. Any untrapped failing copy/deletes between the two paths might
  15558. result in differences between the two listings and in the untracked file
  15559. content differences between the two paths. A resync run would correct
  15560. the error.
  15561. Note that the default-enabled integrity check locally executes a load of
  15562. both the final Path1 and Path2 listings, and thus adds to the run time
  15563. of a sync. Using --check-sync=false will disable it and may
  15564. significantly reduce the sync run times for very large numbers of files.
  15565. The check may be run manually with --check-sync=only. It runs only the
  15566. integrity check and terminates without actually synching.
  15567. Note that currently, --check-sync only checks listing snapshots and NOT
  15568. the actual files on the remotes. Note also that the listing snapshots
  15569. will not know about any changes that happened during or after the latest
  15570. bisync run, as those will be discovered on the next run. Therefore,
  15571. while listings should always match each other at the end of a bisync
  15572. run, it is expected that they will not match the underlying remotes, nor
  15573. will the remotes match each other, if there were changes during or after
  15574. the run. This is normal, and any differences will be detected and synced
  15575. on the next run.
  15576. For a robust integrity check of the current state of the remotes (as
  15577. opposed to just their listing snapshots), consider using check (or
  15578. cryptcheck, if at least one path is a crypt remote) instead of
  15579. --check-sync, keeping in mind that differences are expected if files
  15580. changed during or after your last bisync run.
  15581. For example, a possible sequence could look like this:
  15582. 1. Normally scheduled bisync run:
  15583. rclone bisync Path1 Path2 -MPc --check-access --max-delete 10 --filters-file /path/to/filters.txt -v --no-cleanup --ignore-listing-checksum --disable ListR --checkers=16 --drive-pacer-min-sleep=10ms --create-empty-src-dirs --resilient
  15584. 2. Periodic independent integrity check (perhaps scheduled nightly or
  15585. weekly):
  15586. rclone check -MvPc Path1 Path2 --filter-from /path/to/filters.txt
  15587. 3. If diffs are found, you have some choices to correct them. If one
  15588. side is more up-to-date and you want to make the other side match
  15589. it, you could run:
  15590. rclone sync Path1 Path2 --filter-from /path/to/filters.txt --create-empty-src-dirs -MPc -v
  15591. (or switch Path1 and Path2 to make Path2 the source-of-truth)
  15592. Or, if neither side is totally up-to-date, you could run a --resync to
  15593. bring them back into agreement (but remember that this could cause
  15594. deleted files to re-appear.)
  15595. *Note also that rclone check does not currently include empty
  15596. directories, so if you want to know if any empty directories are out of
  15597. sync, consider alternatively running the above rclone sync command with
  15598. --dry-run added.
  15599. See also: Concurrent modifications, --resilient
  15600. --resilient
  15601. Caution: this is an experimental feature. Use at your own risk!
  15602. By default, most errors or interruptions will cause bisync to abort and
  15603. require --resync to recover. This is a safety feature, to prevent bisync
  15604. from running again until a user checks things out. However, in some
  15605. cases, bisync can go too far and enforce a lockout when one isn't
  15606. actually necessary, like for certain less-serious errors that might
  15607. resolve themselves on the next run. When --resilient is specified,
  15608. bisync tries its best to recover and self-correct, and only requires
  15609. --resync as a last resort when a human's involvement is absolutely
  15610. necessary. The intended use case is for running bisync as a background
  15611. process (such as via scheduled cron).
  15612. When using --resilient mode, bisync will still report the error and
  15613. abort, however it will not lock out future runs -- allowing the
  15614. possibility of retrying at the next normally scheduled time, without
  15615. requiring a --resync first. Examples of such retryable errors include
  15616. access test failures, missing listing files, and filter change
  15617. detections. These safety features will still prevent the current run
  15618. from proceeding -- the difference is that if conditions have improved by
  15619. the time of the next run, that next run will be allowed to proceed.
  15620. Certain more serious errors will still enforce a --resync lockout, even
  15621. in --resilient mode, to prevent data loss.
  15622. Behavior of --resilient may change in a future version. (See also:
  15623. --recover, --max-lock, Graceful Shutdown)
  15624. --recover
  15625. If --recover is set, in the event of a sudden interruption or other
  15626. un-graceful shutdown, bisync will attempt to automatically recover on
  15627. the next run, instead of requiring --resync. Bisync is able to recover
  15628. robustly by keeping one "backup" listing at all times, representing the
  15629. state of both paths after the last known successful sync. Bisync can
  15630. then compare the current state with this snapshot to determine which
  15631. changes it needs to retry. Changes that were synced after this snapshot
  15632. (during the run that was later interrupted) will appear to bisync as if
  15633. they are "new or changed on both sides", but in most cases this is not a
  15634. problem, as bisync will simply do its usual "equality check" and learn
  15635. that no action needs to be taken on these files, since they are already
  15636. identical on both sides.
  15637. In the rare event that a file is synced successfully during a run that
  15638. later aborts, and then that same file changes AGAIN before the next run,
  15639. bisync will think it is a sync conflict, and handle it accordingly.
  15640. (From bisync's perspective, the file has changed on both sides since the
  15641. last trusted sync, and the files on either side are not currently
  15642. identical.) Therefore, --recover carries with it a slightly increased
  15643. chance of having conflicts -- though in practice this is pretty rare, as
  15644. the conditions required to cause it are quite specific. This risk can be
  15645. reduced by using bisync's "Graceful Shutdown" mode (triggered by sending
  15646. SIGINT or Ctrl+C), when you have the choice, instead of forcing a sudden
  15647. termination.
  15648. --recover and --resilient are similar, but distinct -- the main
  15649. difference is that --resilient is about retrying, while --recover is
  15650. about recovering. Most users will probably want both. --resilient allows
  15651. retrying when bisync has chosen to abort itself due to safety features
  15652. such as failing --check-access or detecting a filter change. --resilient
  15653. does not cover external interruptions such as a user shutting down their
  15654. computer in the middle of a sync -- that is what --recover is for.
  15655. --max-lock
  15656. Bisync uses lock files as a safety feature to prevent interference from
  15657. other bisync runs while it is running. Bisync normally removes these
  15658. lock files at the end of a run, but if bisync is abruptly interrupted,
  15659. these files will be left behind. By default, they will lock out all
  15660. future runs, until the user has a chance to manually check things out
  15661. and remove the lock. As an alternative, --max-lock can be used to make
  15662. them automatically expire after a certain period of time, so that future
  15663. runs are not locked out forever, and auto-recovery is possible.
  15664. --max-lock can be any duration 2m or greater (or 0 to disable). If set,
  15665. lock files older than this will be considered "expired", and future runs
  15666. will be allowed to disregard them and proceed. (Note that the --max-lock
  15667. duration must be set by the process that left the lock file -- not the
  15668. later one interpreting it.)
  15669. If set, bisync will also "renew" these lock files every
  15670. --max-lock minus one minute throughout a run, for extra safety. (For
  15671. example, with --max-lock 5m, bisync would renew the lock file (for
  15672. another 5 minutes) every 4 minutes until the run has completed.) In
  15673. other words, it should not be possible for a lock file to pass its
  15674. expiration time while the process that created it is still running --
  15675. and you can therefore be reasonably sure that any expired lock file you
  15676. may find was left there by an interrupted run, not one that is still
  15677. running and just taking awhile.
  15678. If --max-lock is 0 or not set, the default is that lock files will never
  15679. expire, and will block future runs (of these same two bisync paths)
  15680. indefinitely.
  15681. For maximum resilience from disruptions, consider setting a relatively
  15682. short duration like --max-lock 2m along with --resilient and --recover,
  15683. and a relatively frequent cron schedule. The result will be a very
  15684. robust "set-it-and-forget-it" bisync run that can automatically bounce
  15685. back from almost any interruption it might encounter, without requiring
  15686. the user to get involved and run a --resync. (See also: Graceful
  15687. Shutdown mode)
  15688. --backup-dir1 and --backup-dir2
  15689. As of v1.66, --backup-dir is supported in bisync. Because --backup-dir
  15690. must be a non-overlapping path on the same remote, Bisync has introduced
  15691. new --backup-dir1 and --backup-dir2 flags to support separate
  15692. backup-dirs for Path1 and Path2 (bisyncing between different remotes
  15693. with --backup-dir would not otherwise be possible.) --backup-dir1 and
  15694. --backup-dir2 can use different remotes from each other, but
  15695. --backup-dir1 must use the same remote as Path1, and --backup-dir2 must
  15696. use the same remote as Path2. Each backup directory must not overlap its
  15697. respective bisync Path without being excluded by a filter rule.
  15698. The standard --backup-dir will also work, if both paths use the same
  15699. remote (but note that deleted files from both paths would be mixed
  15700. together in the same dir). If either --backup-dir1 and --backup-dir2 are
  15701. set, they will override --backup-dir.
  15702. Example:
  15703. rclone bisync /Users/someuser/some/local/path/Bisync gdrive:Bisync --backup-dir1 /Users/someuser/some/local/path/BackupDir --backup-dir2 gdrive:BackupDir --suffix -2023-08-26 --suffix-keep-extension --check-access --max-delete 10 --filters-file /Users/someuser/some/local/path/bisync_filters.txt --no-cleanup --ignore-listing-checksum --checkers=16 --drive-pacer-min-sleep=10ms --create-empty-src-dirs --resilient -MvP --drive-skip-gdocs --fix-case
  15704. In this example, if the user deletes a file in
  15705. /Users/someuser/some/local/path/Bisync, bisync will propagate the delete
  15706. to the other side by moving the corresponding file from gdrive:Bisync to
  15707. gdrive:BackupDir. If the user deletes a file from gdrive:Bisync, bisync
  15708. moves it from /Users/someuser/some/local/path/Bisync to
  15709. /Users/someuser/some/local/path/BackupDir.
  15710. In the event of a rename due to a sync conflict, the rename is not
  15711. considered a delete, unless a previous conflict with the same name
  15712. already exists and would get overwritten.
  15713. See also: --suffix, --suffix-keep-extension
  15714. Operation
  15715. Runtime flow details
  15716. bisync retains the listings of the Path1 and Path2 filesystems from the
  15717. prior run. On each successive run it will:
  15718. - list files on path1 and path2, and check for changes on each side.
  15719. Changes include New, Newer, Older, and Deleted files.
  15720. - Propagate changes on path1 to path2, and vice-versa.
  15721. Safety measures
  15722. - Lock file prevents multiple simultaneous runs when taking a while.
  15723. This can be particularly useful if bisync is run by cron scheduler.
  15724. - Handle change conflicts non-destructively by creating .conflict1,
  15725. .conflict2, etc. file versions, according to --conflict-resolve,
  15726. --conflict-loser, and --conflict-suffix settings.
  15727. - File system access health check using RCLONE_TEST files (see the
  15728. --check-access flag).
  15729. - Abort on excessive deletes - protects against a failed listing being
  15730. interpreted as all the files were deleted. See the --max-delete and
  15731. --force flags.
  15732. - If something evil happens, bisync goes into a safe state to block
  15733. damage by later runs. (See Error Handling)
  15734. Normal sync checks
  15735. ------------------------------------------------------------------------
  15736. Type Description Result Implementation
  15737. --------- ---------------------------- --------------- -----------------
  15738. Path2 new File is new on Path2, does Path2 version rclone copy Path2
  15739. not exist on Path1 survives to Path1
  15740. Path2 File is newer on Path2, Path2 version rclone copy Path2
  15741. newer unchanged on Path1 survives to Path1
  15742. Path2 File is deleted on Path2, File is deleted rclone delete
  15743. deleted unchanged on Path1 Path1
  15744. Path1 new File is new on Path1, does Path1 version rclone copy Path1
  15745. not exist on Path2 survives to Path2
  15746. Path1 File is newer on Path1, Path1 version rclone copy Path1
  15747. newer unchanged on Path2 survives to Path2
  15748. Path1 File is older on Path1, Path1 version rclone copy Path1
  15749. older unchanged on Path2 survives to Path2
  15750. Path2 File is older on Path2, Path2 version rclone copy Path2
  15751. older unchanged on Path1 survives to Path1
  15752. Path1 File no longer exists on File is deleted rclone delete
  15753. deleted Path1 Path2
  15754. ------------------------------------------------------------------------
  15755. Unusual sync checks
  15756. ------------------------------------------------------------------------------
  15757. Type Description Result Implementation
  15758. ----------------- --------------------- -------------------- -----------------
  15759. Path1 new/changed File is new/changed No change None
  15760. AND Path2 on Path1 AND
  15761. new/changed AND new/changed on Path2
  15762. Path1 == Path2 AND Path1 version is
  15763. currently identical
  15764. to Path2
  15765. Path1 new AND File is new on Path1 Conflicts handled default:
  15766. Path2 new AND new on Path2 (and according to rclone copy
  15767. Path1 version is NOT --conflict-resolve & renamed
  15768. identical to Path2) --conflict-loser Path2.conflict2
  15769. settings file to Path1,
  15770. rclone copy
  15771. renamed
  15772. Path1.conflict1
  15773. file to Path2
  15774. Path2 newer AND File is newer on Conflicts handled default:
  15775. Path1 changed Path2 AND also according to rclone copy
  15776. changed --conflict-resolve & renamed
  15777. (newer/older/size) on --conflict-loser Path2.conflict2
  15778. Path1 (and Path1 settings file to Path1,
  15779. version is NOT rclone copy
  15780. identical to Path2) renamed
  15781. Path1.conflict1
  15782. file to Path2
  15783. Path2 newer AND File is newer on Path2 version rclone copy Path2
  15784. Path1 deleted Path2 AND also survives to Path1
  15785. deleted on Path1
  15786. Path2 deleted AND File is deleted on Path1 version rclone copy Path1
  15787. Path1 changed Path2 AND changed survives to Path2
  15788. (newer/older/size) on
  15789. Path1
  15790. Path1 deleted AND File is deleted on Path2 version rclone copy Path2
  15791. Path2 changed Path1 AND changed survives to Path1
  15792. (newer/older/size) on
  15793. Path2
  15794. ------------------------------------------------------------------------------
  15795. As of rclone v1.64, bisync is now better at detecting false positive
  15796. sync conflicts, which would previously have resulted in unnecessary
  15797. renames and duplicates. Now, when bisync comes to a file that it wants
  15798. to rename (because it is new/changed on both sides), it first checks
  15799. whether the Path1 and Path2 versions are currently identical (using the
  15800. same underlying function as check.) If bisync concludes that the files
  15801. are identical, it will skip them and move on. Otherwise, it will create
  15802. renamed duplicates, as before. This behavior also improves the
  15803. experience of renaming directories, as a --resync is no longer required,
  15804. so long as the same change has been made on both sides.
  15805. All files changed check
  15806. If all prior existing files on either of the filesystems have changed
  15807. (e.g. timestamps have changed due to changing the system's timezone)
  15808. then bisync will abort without making any changes. Any new files are not
  15809. considered for this check. You could use --force to force the sync
  15810. (whichever side has the changed timestamp files wins). Alternately, a
  15811. --resync may be used (Path1 versions will be pushed to Path2). Consider
  15812. the situation carefully and perhaps use --dry-run before you commit to
  15813. the changes.
  15814. Modification times
  15815. By default, bisync compares files by modification time and size. If you
  15816. or your application should change the content of a file without changing
  15817. the modification time and size, then bisync will not notice the change,
  15818. and thus will not copy it to the other side. As an alternative, consider
  15819. comparing by checksum (if your remotes support it). See --compare for
  15820. details.
  15821. Error handling
  15822. Certain bisync critical errors, such as file copy/move failing, will
  15823. result in a bisync lockout of following runs. The lockout is asserted
  15824. because the sync status and history of the Path1 and Path2 filesystems
  15825. cannot be trusted, so it is safer to block any further changes until
  15826. someone checks things out. The recovery is to do a --resync again.
  15827. It is recommended to use --resync --dry-run --verbose initially and
  15828. carefully review what changes will be made before running the --resync
  15829. without --dry-run.
  15830. Most of these events come up due to an error status from an internal
  15831. call. On such a critical error the {...}.path1.lst and {...}.path2.lst
  15832. listing files are renamed to extension .lst-err, which blocks any future
  15833. bisync runs (since the normal .lst files are not found). Bisync keeps
  15834. them under bisync subdirectory of the rclone cache directory, typically
  15835. at ${HOME}/.cache/rclone/bisync/ on Linux.
  15836. Some errors are considered temporary and re-running the bisync is not
  15837. blocked. The critical return blocks further bisync runs.
  15838. See also: --resilient, --recover, --max-lock, Graceful Shutdown
  15839. Lock file
  15840. When bisync is running, a lock file is created in the bisync working
  15841. directory, typically at ~/.cache/rclone/bisync/PATH1..PATH2.lck on
  15842. Linux. If bisync should crash or hang, the lock file will remain in
  15843. place and block any further runs of bisync for the same paths. Delete
  15844. the lock file as part of debugging the situation. The lock file
  15845. effectively blocks follow-on (e.g., scheduled by cron) runs when the
  15846. prior invocation is taking a long time. The lock file contains PID of
  15847. the blocking process, which may help in debug. Lock files can be set to
  15848. automatically expire after a certain amount of time, using the
  15849. --max-lock flag.
  15850. Note that while concurrent bisync runs are allowed, be very cautious
  15851. that there is no overlap in the trees being synched between concurrent
  15852. runs, lest there be replicated files, deleted files and general mayhem.
  15853. Return codes
  15854. rclone bisync returns the following codes to calling program: - 0 on a
  15855. successful run, - 1 for a non-critical failing run (a rerun may be
  15856. successful), - 2 for a critically aborted run (requires a --resync to
  15857. recover).
  15858. Graceful Shutdown
  15859. Bisync has a "Graceful Shutdown" mode which is activated by sending
  15860. SIGINT or pressing Ctrl+C during a run. Once triggered, bisync will use
  15861. best efforts to exit cleanly before the timer runs out. If bisync is in
  15862. the middle of transferring files, it will attempt to cleanly empty its
  15863. queue by finishing what it has started but not taking more. If it cannot
  15864. do so within 30 seconds, it will cancel the in-progress transfers at
  15865. that point and then give itself a maximum of 60 seconds to wrap up, save
  15866. its state for next time, and exit. With the -vP flags you will see
  15867. constant status updates and a final confirmation of whether or not the
  15868. graceful shutdown was successful.
  15869. At any point during the "Graceful Shutdown" sequence, a second SIGINT or
  15870. Ctrl+C will trigger an immediate, un-graceful exit, which will leave
  15871. things in a messier state. Usually a robust recovery will still be
  15872. possible if using --recover mode, otherwise you will need to do a
  15873. --resync.
  15874. If you plan to use Graceful Shutdown mode, it is recommended to use
  15875. --resilient and --recover, and it is important to NOT use --inplace,
  15876. otherwise you risk leaving partially-written files on one side, which
  15877. may be confused for real files on the next run. Note also that in the
  15878. event of an abrupt interruption, a lock file will be left behind to
  15879. block concurrent runs. You will need to delete it before you can proceed
  15880. with the next run (or wait for it to expire on its own, if using
  15881. --max-lock.)
  15882. Limitations
  15883. Supported backends
  15884. Bisync is considered BETA and has been tested with the following
  15885. backends: - Local filesystem - Google Drive - Dropbox - OneDrive - S3 -
  15886. SFTP - Yandex Disk - Crypt
  15887. It has not been fully tested with other services yet. If it works, or
  15888. sorta works, please let us know and we'll update the list. Run the test
  15889. suite to check for proper operation as described below.
  15890. The first release of rclone bisync required both underlying backends to
  15891. support modification times, and refused to run otherwise. This
  15892. limitation has been lifted as of v1.66, as bisync now supports comparing
  15893. checksum and/or size instead of (or in addition to) modtime. See
  15894. --compare for details.
  15895. Concurrent modifications
  15896. When using Local, FTP or SFTP remotes with --inplace, rclone does not
  15897. create temporary files at the destination when copying, and thus if the
  15898. connection is lost the created file may be corrupt, which will likely
  15899. propagate back to the original path on the next sync, resulting in data
  15900. loss. It is therefore recommended to omit --inplace.
  15901. Files that change during a bisync run may result in data loss. Prior to
  15902. rclone v1.66, this was commonly seen in highly dynamic environments,
  15903. where the filesystem was getting hammered by running processes during
  15904. the sync. As of rclone v1.66, bisync was redesigned to use a "snapshot"
  15905. model, greatly reducing the risks from changes during a sync. Changes
  15906. that are not detected during the current sync will now be detected
  15907. during the following sync, and will no longer cause the entire run to
  15908. throw a critical error. There is additionally a mechanism to mark files
  15909. as needing to be internally rechecked next time, for added safety. It
  15910. should therefore no longer be necessary to sync only at quiet times --
  15911. however, note that an error can still occur if a file happens to change
  15912. at the exact moment it's being read/written by bisync (same as would
  15913. happen in rclone sync.) (See also: --ignore-checksum,
  15914. --local-no-check-updated)
  15915. Empty directories
  15916. By default, new/deleted empty directories on one path are not propagated
  15917. to the other side. This is because bisync (and rclone) natively works on
  15918. files, not directories. However, this can be changed with the
  15919. --create-empty-src-dirs flag, which works in much the same way as in
  15920. sync and copy. When used, empty directories created or deleted on one
  15921. side will also be created or deleted on the other side. The following
  15922. should be noted: * --create-empty-src-dirs is not compatible with
  15923. --remove-empty-dirs. Use only one or the other (or neither). * It is not
  15924. recommended to switch back and forth between --create-empty-src-dirs and
  15925. the default (no --create-empty-src-dirs) without running --resync. This
  15926. is because it may appear as though all directories (not just the empty
  15927. ones) were created/deleted, when actually you've just toggled between
  15928. making them visible/invisible to bisync. It looks scarier than it is,
  15929. but it's still probably best to stick to one or the other, and use
  15930. --resync when you need to switch.
  15931. Renamed directories
  15932. By default, renaming a folder on the Path1 side results in deleting all
  15933. files on the Path2 side and then copying all files again from Path1 to
  15934. Path2. Bisync sees this as all files in the old directory name as
  15935. deleted and all files in the new directory name as new.
  15936. A recommended solution is to use --track-renames, which is now supported
  15937. in bisync as of rclone v1.66. Note that --track-renames is not available
  15938. during --resync, as --resync does not delete anything (--track-renames
  15939. only supports sync, not copy.)
  15940. Otherwise, the most effective and efficient method of renaming a
  15941. directory is to rename it to the same name on both sides. (As of
  15942. rclone v1.64, a --resync is no longer required after doing so, as bisync
  15943. will automatically detect that Path1 and Path2 are in agreement.)
  15944. --fast-list used by default
  15945. Unlike most other rclone commands, bisync uses --fast-list by default,
  15946. for backends that support it. In many cases this is desirable, however,
  15947. there are some scenarios in which bisync could be faster without
  15948. --fast-list, and there is also a known issue concerning Google Drive
  15949. users with many empty directories. For now, the recommended way to avoid
  15950. using --fast-list is to add --disable ListR to all bisync commands. The
  15951. default behavior may change in a future version.
  15952. Case (and unicode) sensitivity
  15953. As of v1.66, case and unicode form differences no longer cause critical
  15954. errors, and normalization (when comparing between filesystems) is
  15955. handled according to the same flags and defaults as rclone sync. See the
  15956. following options (all of which are supported by bisync) to control this
  15957. behavior more granularly: - --fix-case - --ignore-case-sync -
  15958. --no-unicode-normalization - --local-unicode-normalization and
  15959. --local-case-sensitive (caution: these are normally not what you want.)
  15960. Note that in the (probably rare) event that --fix-case is used AND a
  15961. file is new/changed on both sides AND the checksums match AND the
  15962. filename case does not match, the Path1 filename is considered the
  15963. winner, for the purposes of --fix-case (Path2 will be renamed to match
  15964. it).
  15965. Windows support
  15966. Bisync has been tested on Windows 8.1, Windows 10 Pro 64-bit and on
  15967. Windows GitHub runners.
  15968. Drive letters are allowed, including drive letters mapped to network
  15969. drives (rclone bisync J:\localsync GDrive:). If a drive letter is
  15970. omitted, the shell current drive is the default. Drive letters are a
  15971. single character follows by :, so cloud names must be more than one
  15972. character long.
  15973. Absolute paths (with or without a drive letter), and relative paths
  15974. (with or without a drive letter) are supported.
  15975. Working directory is created at
  15976. C:\Users\MyLogin\AppData\Local\rclone\bisync.
  15977. Note that bisync output may show a mix of forward / and back \ slashes.
  15978. Be careful of case independent directory and file naming on Windows vs.
  15979. case dependent Linux
  15980. Filtering
  15981. See filtering documentation for how filter rules are written and
  15982. interpreted.
  15983. Bisync's --filters-file flag slightly extends the rclone's --filter-from
  15984. filtering mechanism. For a given bisync run you may provide only one
  15985. --filters-file. The --include*, --exclude*, and --filter flags are also
  15986. supported.
  15987. How to filter directories
  15988. Filtering portions of the directory tree is a critical feature for
  15989. synching.
  15990. Examples of directory trees (always beneath the Path1/Path2 root level)
  15991. you may want to exclude from your sync: - Directory trees containing
  15992. only software build intermediate files. - Directory trees containing
  15993. application temporary files and data such as the Windows
  15994. C:\Users\MyLogin\AppData\ tree. - Directory trees containing files that
  15995. are large, less important, or are getting thrashed continuously by
  15996. ongoing processes.
  15997. On the other hand, there may be only select directories that you
  15998. actually want to sync, and exclude all others. See the Example
  15999. include-style filters for Windows user directories below.
  16000. Filters file writing guidelines
  16001. 1. Begin with excluding directory trees:
  16002. - e.g. `- /AppData/`
  16003. - ** on the end is not necessary. Once a given directory level is
  16004. excluded then everything beneath it won't be looked at by
  16005. rclone.
  16006. - Exclude such directories that are unneeded, are big, dynamically
  16007. thrashed, or where there may be access permission issues.
  16008. - Excluding such dirs first will make rclone operations (much)
  16009. faster.
  16010. - Specific files may also be excluded, as with the Dropbox
  16011. exclusions example below.
  16012. 2. Decide if it's easier (or cleaner) to:
  16013. - Include select directories and therefore exclude everything else
  16014. -- or --
  16015. - Exclude select directories and therefore include everything else
  16016. 3. Include select directories:
  16017. - Add lines like: `+ /Documents/PersonalFiles/**` to select which
  16018. directories to include in the sync.
  16019. - ** on the end specifies to include the full depth of the
  16020. specified tree.
  16021. - With Include-style filters, files at the Path1/Path2 root are
  16022. not included. They may be included with `+ /*`.
  16023. - Place RCLONE_TEST files within these included directory trees.
  16024. They will only be looked for in these directory trees.
  16025. - Finish by excluding everything else by adding `- **` at the end
  16026. of the filters file.
  16027. - Disregard step 4.
  16028. 4. Exclude select directories:
  16029. - Add more lines like in step 1. For example:
  16030. -/Desktop/tempfiles/, or `- /testdir/. Again, a**` on the end
  16031. is not necessary.
  16032. - Do not add a `- **` in the file. Without this line, everything
  16033. will be included that has not been explicitly excluded.
  16034. - Disregard step 3.
  16035. A few rules for the syntax of a filter file expanding on filtering
  16036. documentation:
  16037. - Lines may start with spaces and tabs - rclone strips leading
  16038. whitespace.
  16039. - If the first non-whitespace character is a # then the line is a
  16040. comment and will be ignored.
  16041. - Blank lines are ignored.
  16042. - The first non-whitespace character on a filter line must be a + or
  16043. -.
  16044. - Exactly 1 space is allowed between the +/- and the path term.
  16045. - Only forward slashes (/) are used in path terms, even on Windows.
  16046. - The rest of the line is taken as the path term. Trailing whitespace
  16047. is taken literally, and probably is an error.
  16048. Example include-style filters for Windows user directories
  16049. This Windows include-style example is based on the sync root (Path1) set
  16050. to C:\Users\MyLogin. The strategy is to select specific directories to
  16051. be synched with a network drive (Path2).
  16052. - `- /AppData/` excludes an entire tree of Windows stored stuff that
  16053. need not be synched. In my case, AppData has >11 GB of stuff I don't
  16054. care about, and there are some subdirectories beneath AppData that
  16055. are not accessible to my user login, resulting in bisync critical
  16056. aborts.
  16057. - Windows creates cache files starting with both upper and lowercase
  16058. NTUSER at C:\Users\MyLogin. These files may be dynamic, locked, and
  16059. are generally don't care.
  16060. - There are just a few directories with my data that I do want
  16061. synched, in the form of `+
  16062. /. By selecting only the directory trees I want to avoid the dozen plus directories that various apps make atC:`.
  16063. - Include files in the root of the sync point, C:\Users\MyLogin, by
  16064. adding the `+ /*` line.
  16065. - This is an Include-style filters file, therefore it ends with `- **`
  16066. which excludes everything not explicitly included.
  16067. - /AppData/
  16068. - NTUSER*
  16069. - ntuser*
  16070. + /Documents/Family/**
  16071. + /Documents/Sketchup/**
  16072. + /Documents/Microcapture_Photo/**
  16073. + /Documents/Microcapture_Video/**
  16074. + /Desktop/**
  16075. + /Pictures/**
  16076. + /*
  16077. - **
  16078. Note also that Windows implements several "library" links such as
  16079. C:\Users\MyLogin\My Documents\My Music pointing to
  16080. C:\Users\MyLogin\Music. rclone sees these as links, so you must add
  16081. --links to the bisync command line if you which to follow these links. I
  16082. find that I get permission errors in trying to follow the links, so I
  16083. don't include the rclone --links flag, but then you get lots of
  16084. Can't follow symlink… noise from rclone about not following the links.
  16085. This noise can be quashed by adding --quiet to the bisync command line.
  16086. Example exclude-style filters files for use with Dropbox
  16087. - Dropbox disallows synching the listed temporary and
  16088. configuration/data files. The `- ` filters exclude these files where
  16089. ever they may occur in the sync tree. Consider adding similar
  16090. exclusions for file types you don't need to sync, such as core dump
  16091. and software build files.
  16092. - bisync testing creates /testdir/ at the top level of the sync tree,
  16093. and usually deletes the tree after the test. If a normal sync should
  16094. run while the /testdir/ tree exists the --check-access phase may
  16095. fail due to unbalanced RCLONE_TEST files. The `- /testdir/` filter
  16096. blocks this tree from being synched. You don't need this exclusion
  16097. if you are not doing bisync development testing.
  16098. - Everything else beneath the Path1/Path2 root will be synched.
  16099. - RCLONE_TEST files may be placed anywhere within the tree, including
  16100. the root.
  16101. Example filters file for Dropbox
  16102. # Filter file for use with bisync
  16103. # See https://rclone.org/filtering/ for filtering rules
  16104. # NOTICE: If you make changes to this file you MUST do a --resync run.
  16105. # Run with --dry-run to see what changes will be made.
  16106. # Dropbox won't sync some files so filter them away here.
  16107. # See https://help.dropbox.com/installs-integrations/sync-uploads/files-not-syncing
  16108. - .dropbox.attr
  16109. - ~*.tmp
  16110. - ~$*
  16111. - .~*
  16112. - desktop.ini
  16113. - .dropbox
  16114. # Used for bisync testing, so excluded from normal runs
  16115. - /testdir/
  16116. # Other example filters
  16117. #- /TiBU/
  16118. #- /Photos/
  16119. How --check-access handles filters
  16120. At the start of a bisync run, listings are gathered for Path1 and Path2
  16121. while using the user's --filters-file. During the check access phase,
  16122. bisync scans these listings for RCLONE_TEST files. Any RCLONE_TEST files
  16123. hidden by the --filters-file are not in the listings and thus not
  16124. checked during the check access phase.
  16125. Troubleshooting
  16126. Reading bisync logs
  16127. Here are two normal runs. The first one has a newer file on the remote.
  16128. The second has no deltas between local and remote.
  16129. 2021/05/16 00:24:38 INFO : Synching Path1 "/path/to/local/tree/" with Path2 "dropbox:/"
  16130. 2021/05/16 00:24:38 INFO : Path1 checking for diffs
  16131. 2021/05/16 00:24:38 INFO : - Path1 File is new - file.txt
  16132. 2021/05/16 00:24:38 INFO : Path1: 1 changes: 1 new, 0 newer, 0 older, 0 deleted
  16133. 2021/05/16 00:24:38 INFO : Path2 checking for diffs
  16134. 2021/05/16 00:24:38 INFO : Applying changes
  16135. 2021/05/16 00:24:38 INFO : - Path1 Queue copy to Path2 - dropbox:/file.txt
  16136. 2021/05/16 00:24:38 INFO : - Path1 Do queued copies to - Path2
  16137. 2021/05/16 00:24:38 INFO : Updating listings
  16138. 2021/05/16 00:24:38 INFO : Validating listings for Path1 "/path/to/local/tree/" vs Path2 "dropbox:/"
  16139. 2021/05/16 00:24:38 INFO : Bisync successful
  16140. 2021/05/16 00:36:52 INFO : Synching Path1 "/path/to/local/tree/" with Path2 "dropbox:/"
  16141. 2021/05/16 00:36:52 INFO : Path1 checking for diffs
  16142. 2021/05/16 00:36:52 INFO : Path2 checking for diffs
  16143. 2021/05/16 00:36:52 INFO : No changes found
  16144. 2021/05/16 00:36:52 INFO : Updating listings
  16145. 2021/05/16 00:36:52 INFO : Validating listings for Path1 "/path/to/local/tree/" vs Path2 "dropbox:/"
  16146. 2021/05/16 00:36:52 INFO : Bisync successful
  16147. Dry run oddity
  16148. The --dry-run messages may indicate that it would try to delete some
  16149. files. For example, if a file is new on Path2 and does not exist on
  16150. Path1 then it would normally be copied to Path1, but with --dry-run
  16151. enabled those copies don't happen, which leads to the attempted delete
  16152. on Path2, blocked again by --dry-run: ... Not deleting as --dry-run.
  16153. This whole confusing situation is an artifact of the --dry-run flag.
  16154. Scrutinize the proposed deletes carefully, and if the files would have
  16155. been copied to Path1 then the threatened deletes on Path2 may be
  16156. disregarded.
  16157. Retries
  16158. Rclone has built-in retries. If you run with --verbose you'll see error
  16159. and retry messages such as shown below. This is usually not a bug. If at
  16160. the end of the run, you see Bisync successful and not
  16161. Bisync critical error or Bisync aborted then the run was successful, and
  16162. you can ignore the error messages.
  16163. The following run shows an intermittent fail. Lines 5 and _6- are
  16164. low-level messages. Line 6 is a bubbled-up warning message, conveying
  16165. the error. Rclone normally retries failing commands, so there may be
  16166. numerous such messages in the log.
  16167. Since there are no final error/warning messages on line 7, rclone has
  16168. recovered from failure after a retry, and the overall sync was
  16169. successful.
  16170. 1: 2021/05/14 00:44:12 INFO : Synching Path1 "/path/to/local/tree" with Path2 "dropbox:"
  16171. 2: 2021/05/14 00:44:12 INFO : Path1 checking for diffs
  16172. 3: 2021/05/14 00:44:12 INFO : Path2 checking for diffs
  16173. 4: 2021/05/14 00:44:12 INFO : Path2: 113 changes: 22 new, 0 newer, 0 older, 91 deleted
  16174. 5: 2021/05/14 00:44:12 ERROR : /path/to/local/tree/objects/af: error listing: unexpected end of JSON input
  16175. 6: 2021/05/14 00:44:12 NOTICE: WARNING listing try 1 failed. - dropbox:
  16176. 7: 2021/05/14 00:44:12 INFO : Bisync successful
  16177. This log shows a Critical failure which requires a --resync to recover
  16178. from. See the Runtime Error Handling section.
  16179. 2021/05/12 00:49:40 INFO : Google drive root '': Waiting for checks to finish
  16180. 2021/05/12 00:49:40 INFO : Google drive root '': Waiting for transfers to finish
  16181. 2021/05/12 00:49:40 INFO : Google drive root '': not deleting files as there were IO errors
  16182. 2021/05/12 00:49:40 ERROR : Attempt 3/3 failed with 3 errors and: not deleting files as there were IO errors
  16183. 2021/05/12 00:49:40 ERROR : Failed to sync: not deleting files as there were IO errors
  16184. 2021/05/12 00:49:40 NOTICE: WARNING rclone sync try 3 failed. - /path/to/local/tree/
  16185. 2021/05/12 00:49:40 ERROR : Bisync aborted. Must run --resync to recover.
  16186. Denied downloads of "infected" or "abusive" files
  16187. Google Drive has a filter for certain file types (.exe, .apk, et cetera)
  16188. that by default cannot be copied from Google Drive to the local
  16189. filesystem. If you are having problems, run with --verbose to see
  16190. specifically which files are generating complaints. If the error is
  16191. This file has been identified as malware or spam and cannot be downloaded,
  16192. consider using the flag --drive-acknowledge-abuse.
  16193. Google Docs (and other files of unknown size)
  16194. As of v1.66, Google Docs (including Google Sheets, Slides, etc.) are now
  16195. supported in bisync, subject to the same options, defaults, and
  16196. limitations as in rclone sync. When bisyncing drive with non-drive
  16197. backends, the drive -> non-drive direction is controlled by
  16198. --drive-export-formats (default "docx,xlsx,pptx,svg") and the non-drive
  16199. -> drive direction is controlled by --drive-import-formats (default
  16200. none.)
  16201. For example, with the default export/import formats, a Google Sheet on
  16202. the drive side will be synced to an .xlsx file on the non-drive side. In
  16203. the reverse direction, .xlsx files with filenames that match an existing
  16204. Google Sheet will be synced to that Google Sheet, while .xlsx files that
  16205. do NOT match an existing Google Sheet will be copied to drive as normal
  16206. .xlsx files (without conversion to Sheets, although the Google Drive web
  16207. browser UI may still give you the option to open it as one.)
  16208. If --drive-import-formats is set (it's not, by default), then all of the
  16209. specified formats will be converted to Google Docs, if there is no
  16210. existing Google Doc with a matching name. Caution: such conversion can
  16211. be quite lossy, and in most cases it's probably not what you want!
  16212. To bisync Google Docs as URL shortcut links (in a manner similar to
  16213. "Drive for Desktop"), use: --drive-export-formats url (or alternatives.)
  16214. Note that these link files cannot be edited on the non-drive side -- you
  16215. will get errors if you try to sync an edited link file back to drive.
  16216. They CAN be deleted (it will result in deleting the corresponding Google
  16217. Doc.) If you create a .url file on the non-drive side that does not
  16218. match an existing Google Doc, bisyncing it will just result in copying
  16219. the literal .url file over to drive (no Google Doc will be created.) So,
  16220. as a general rule of thumb, think of them as read-only placeholders on
  16221. the non-drive side, and make all your changes on the drive side.
  16222. Likewise, even with other export-formats, it is best to only move/rename
  16223. Google Docs on the drive side. This is because otherwise, bisync will
  16224. interpret this as a file deleted and another created, and accordingly,
  16225. it will delete the Google Doc and create a new file at the new path.
  16226. (Whether or not that new file is a Google Doc depends on
  16227. --drive-import-formats.)
  16228. Lastly, take note that all Google Docs on the drive side have a size of
  16229. -1 and no checksum. Therefore, they cannot be reliably synced with the
  16230. --checksum or --size-only flags. (To be exact: they will still get
  16231. created/deleted, and bisync's delta engine will notice changes and queue
  16232. them for syncing, but the underlying sync function will consider them
  16233. identical and skip them.) To work around this, use the default (modtime
  16234. and size) instead of --checksum or --size-only.
  16235. To ignore Google Docs entirely, use --drive-skip-gdocs.
  16236. Usage examples
  16237. Cron
  16238. Rclone does not yet have a built-in capability to monitor the local file
  16239. system for changes and must be blindly run periodically. On Windows this
  16240. can be done using a Task Scheduler, on Linux you can use Cron which is
  16241. described below.
  16242. The 1st example runs a sync every 5 minutes between a local directory
  16243. and an OwnCloud server, with output logged to a runlog file:
  16244. # Minute (0-59)
  16245. # Hour (0-23)
  16246. # Day of Month (1-31)
  16247. # Month (1-12 or Jan-Dec)
  16248. # Day of Week (0-6 or Sun-Sat)
  16249. # Command
  16250. */5 * * * * /path/to/rclone bisync /local/files MyCloud: --check-access --filters-file /path/to/bysync-filters.txt --log-file /path/to//bisync.log
  16251. See crontab syntax for the details of crontab time interval expressions.
  16252. If you run rclone bisync as a cron job, redirect stdout/stderr to a
  16253. file. The 2nd example runs a sync to Dropbox every hour and logs all
  16254. stdout (via the >>) and stderr (via 2>&1) to a log file.
  16255. 0 * * * * /path/to/rclone bisync /path/to/local/dropbox Dropbox: --check-access --filters-file /home/user/filters.txt >> /path/to/logs/dropbox-run.log 2>&1
  16256. Sharing an encrypted folder tree between hosts
  16257. bisync can keep a local folder in sync with a cloud service, but what if
  16258. you have some highly sensitive files to be synched?
  16259. Usage of a cloud service is for exchanging both routine and sensitive
  16260. personal files between one's home network, one's personal notebook when
  16261. on the road, and with one's work computer. The routine data is not
  16262. sensitive. For the sensitive data, configure an rclone crypt remote to
  16263. point to a subdirectory within the local disk tree that is bisync'd to
  16264. Dropbox, and then set up an bisync for this local crypt directory to a
  16265. directory outside of the main sync tree.
  16266. Linux server setup
  16267. - /path/to/DBoxroot is the root of my local sync tree. There are
  16268. numerous subdirectories.
  16269. - /path/to/DBoxroot/crypt is the root subdirectory for files that are
  16270. encrypted. This local directory target is setup as an rclone crypt
  16271. remote named Dropcrypt:. See rclone.conf snippet below.
  16272. - /path/to/my/unencrypted/files is the root of my sensitive files -
  16273. not encrypted, not within the tree synched to Dropbox.
  16274. - To sync my local unencrypted files with the encrypted Dropbox
  16275. versions I manually run
  16276. bisync /path/to/my/unencrypted/files DropCrypt:. This step could be
  16277. bundled into a script to run before and after the full Dropbox tree
  16278. sync in the last step, thus actively keeping the sensitive files in
  16279. sync.
  16280. - bisync /path/to/DBoxroot Dropbox: runs periodically via cron,
  16281. keeping my full local sync tree in sync with Dropbox.
  16282. Windows notebook setup
  16283. - The Dropbox client runs keeping the local tree
  16284. C:\Users\MyLogin\Dropbox always in sync with Dropbox. I could have
  16285. used rclone bisync instead.
  16286. - A separate directory tree at C:\Users\MyLogin\Documents\DropLocal
  16287. hosts the tree of unencrypted files/folders.
  16288. - To sync my local unencrypted files with the encrypted Dropbox
  16289. versions I manually run the following command:
  16290. rclone bisync C:\Users\MyLogin\Documents\DropLocal Dropcrypt:.
  16291. - The Dropbox client then syncs the changes with Dropbox.
  16292. rclone.conf snippet
  16293. [Dropbox]
  16294. type = dropbox
  16295. ...
  16296. [Dropcrypt]
  16297. type = crypt
  16298. remote = /path/to/DBoxroot/crypt # on the Linux server
  16299. remote = C:\Users\MyLogin\Dropbox\crypt # on the Windows notebook
  16300. filename_encryption = standard
  16301. directory_name_encryption = true
  16302. password = ...
  16303. ...
  16304. Testing
  16305. You should read this section only if you are developing for rclone. You
  16306. need to have rclone source code locally to work with bisync tests.
  16307. Bisync has a dedicated test framework implemented in the bisync_test.go
  16308. file located in the rclone source tree. The test suite is based on the
  16309. go test command. Series of tests are stored in subdirectories below the
  16310. cmd/bisync/testdata directory. Individual tests can be invoked by their
  16311. directory name, e.g.
  16312. go test . -case basic -remote local -remote2 gdrive: -v
  16313. Tests will make a temporary folder on remote and purge it afterwards. If
  16314. during test run there are intermittent errors and rclone retries, these
  16315. errors will be captured and flagged as invalid MISCOMPAREs. Rerunning
  16316. the test will let it pass. Consider such failures as noise.
  16317. Test command syntax
  16318. usage: go test ./cmd/bisync [options...]
  16319. Options:
  16320. -case NAME Name(s) of the test case(s) to run. Multiple names should
  16321. be separated by commas. You can remove the `test_` prefix
  16322. and replace `_` by `-` in test name for convenience.
  16323. If not `all`, the name(s) should map to a directory under
  16324. `./cmd/bisync/testdata`.
  16325. Use `all` to run all tests (default: all)
  16326. -remote PATH1 `local` or name of cloud service with `:` (default: local)
  16327. -remote2 PATH2 `local` or name of cloud service with `:` (default: local)
  16328. -no-compare Disable comparing test results with the golden directory
  16329. (default: compare)
  16330. -no-cleanup Disable cleanup of Path1 and Path2 testdirs.
  16331. Useful for troubleshooting. (default: cleanup)
  16332. -golden Store results in the golden directory (default: false)
  16333. This flag can be used with multiple tests.
  16334. -debug Print debug messages
  16335. -stop-at NUM Stop test after given step number. (default: run to the end)
  16336. Implies `-no-compare` and `-no-cleanup`, if the test really
  16337. ends prematurely. Only meaningful for a single test case.
  16338. -refresh-times Force refreshing the target modtime, useful for Dropbox
  16339. (default: false)
  16340. -verbose Run tests verbosely
  16341. Note: unlike rclone flags which must be prefixed by double dash (--),
  16342. the test command flags can be equally prefixed by a single - or double
  16343. dash.
  16344. Running tests
  16345. - go test . -case basic -remote local -remote2 local runs the
  16346. test_basic test case using only the local filesystem, synching one
  16347. local directory with another local directory. Test script output is
  16348. to the console, while commands within scenario.txt have their output
  16349. sent to the .../workdir/test.log file, which is finally compared to
  16350. the golden copy.
  16351. - The first argument after go test should be a relative name of the
  16352. directory containing bisync source code. If you run tests right from
  16353. there, the argument will be . (current directory) as in most
  16354. examples below. If you run bisync tests from the rclone source
  16355. directory, the command should be go test ./cmd/bisync ....
  16356. - The test engine will mangle rclone output to ensure comparability
  16357. with golden listings and logs.
  16358. - Test scenarios are located in ./cmd/bisync/testdata. The test -case
  16359. argument should match the full name of a subdirectory under that
  16360. directory. Every test subdirectory name on disk must start with
  16361. test_, this prefix can be omitted on command line for brevity. Also,
  16362. underscores in the name can be replaced by dashes for convenience.
  16363. - go test . -remote local -remote2 local -case all runs all tests.
  16364. - Path1 and Path2 may either be the keyword local or may be names of
  16365. configured cloud services.
  16366. go test . -remote gdrive: -remote2 dropbox: -case basic will run the
  16367. test between these two services, without transferring any files to
  16368. the local filesystem.
  16369. - Test run stdout and stderr console output may be directed to a file,
  16370. e.g.
  16371. go test . -remote gdrive: -remote2 local -case all > runlog.txt 2>&1
  16372. Test execution flow
  16373. 1. The base setup in the initial directory of the testcase is applied
  16374. on the Path1 and Path2 filesystems (via rclone copy the initial
  16375. directory to Path1, then rclone sync Path1 to Path2).
  16376. 2. The commands in the scenario.txt file are applied, with output
  16377. directed to the test.log file in the test working directory.
  16378. Typically, the first actual command in the scenario.txt file is to
  16379. do a --resync, which establishes the baseline {...}.path1.lst and
  16380. {...}.path2.lst files in the test working directory (.../workdir/
  16381. relative to the temporary test directory). Various commands and
  16382. listing snapshots are done within the test.
  16383. 3. Finally, the contents of the test working directory are compared to
  16384. the contents of the testcase's golden directory.
  16385. Notes about testing
  16386. - Test cases are in individual directories beneath
  16387. ./cmd/bisync/testdata. A command line reference to a test is
  16388. understood to reference a directory beneath testdata. For example,
  16389. go test ./cmd/bisync -case dry-run -remote gdrive: -remote2 local
  16390. refers to the test case in ./cmd/bisync/testdata/test_dry_run.
  16391. - The test working directory is located at .../workdir relative to a
  16392. temporary test directory, usually under /tmp on Linux.
  16393. - The local test sync tree is created at a temporary directory named
  16394. like bisync.XXX under system temporary directory.
  16395. - The remote test sync tree is located at a temporary directory under
  16396. <remote:>/bisync.XXX/.
  16397. - path1 and/or path2 subdirectories are created in a temporary
  16398. directory under the respective local or cloud test remote.
  16399. - By default, the Path1 and Path2 test dirs and workdir will be
  16400. deleted after each test run. The -no-cleanup flag disables purging
  16401. these directories when validating and debugging a given test. These
  16402. directories will be flushed before running another test, independent
  16403. of the -no-cleanup usage.
  16404. - You will likely want to add `-
  16405. /testdir/to your normal bisync--filters-fileso that normal syncs do not attempt to sync the test temporary directories, which may haveRCLONE_TESTmiscompares in some testcases which would otherwise trip the--check-accesssystem. The--check-accessmechanism is hard-coded to ignoreRCLONE_TESTfiles beneathbisync/testdata`,
  16406. so the test cases may reside on the synched tree even if there are
  16407. check file mismatches in the test tree.
  16408. - Some Dropbox tests can fail, notably printing the following message:
  16409. src and dst identical but can't set mod time without deleting and re-uploading
  16410. This is expected and happens due to the way Dropbox handles
  16411. modification times. You should use the -refresh-times test flag to
  16412. make up for this.
  16413. - If Dropbox tests hit request limit for you and print error message
  16414. too_many_requests/...: Too many requests or write operations. then
  16415. follow the Dropbox App ID instructions.
  16416. Updating golden results
  16417. Sometimes even a slight change in the bisync source can cause little
  16418. changes spread around many log files. Updating them manually would be a
  16419. nightmare.
  16420. The -golden flag will store the test.log and *.lst listings from each
  16421. test case into respective golden directories. Golden results will
  16422. automatically contain generic strings instead of local or cloud paths
  16423. which means that they should match when run with a different cloud
  16424. service.
  16425. Your normal workflow might be as follows: 1. Git-clone the rclone
  16426. sources locally 2. Modify bisync source and check that it builds 3. Run
  16427. the whole test suite go test ./cmd/bisync -remote local 4. If some tests
  16428. show log difference, recheck them individually, e.g.:
  16429. go test ./cmd/bisync -remote local -case basic 5. If you are convinced
  16430. with the difference, goldenize all tests at once:
  16431. go test ./cmd/bisync -remote local -golden 6. Use word diff:
  16432. git diff --word-diff ./cmd/bisync/testdata/. Please note that normal
  16433. line-level diff is generally useless here. 7. Check the difference
  16434. carefully! 8. Commit the change (git commit) only if you are sure. If
  16435. unsure, save your code changes then wipe the log diffs from git:
  16436. git reset [--hard].
  16437. Structure of test scenarios
  16438. - <testname>/initial/ contains a tree of files that will be set as the
  16439. initial condition on both Path1 and Path2 testdirs.
  16440. - <testname>/modfiles/ contains files that will be used to modify the
  16441. Path1 and/or Path2 filesystems.
  16442. - <testname>/golden/ contains the expected content of the test working
  16443. directory (workdir) at the completion of the testcase.
  16444. - <testname>/scenario.txt contains the body of the test, in the form
  16445. of various commands to modify files, run bisync, and snapshot
  16446. listings. Output from these commands is captured to
  16447. .../workdir/test.log for comparison to the golden files.
  16448. Supported test commands
  16449. - test <some message> Print the line to the console and to the
  16450. test.log: test sync is working correctly with options x, y, z
  16451. - copy-listings <prefix> Save a copy of all .lst listings in the test
  16452. working directory with the specified prefix:
  16453. save-listings exclude-pass-run
  16454. - move-listings <prefix> Similar to copy-listings but removes the
  16455. source
  16456. - purge-children <dir> This will delete all child files and purge all
  16457. child subdirs under given directory but keep the parent intact. This
  16458. behavior is important for tests with Google Drive because removing
  16459. and re-creating the parent would change its ID.
  16460. - delete-file <file> Delete a single file.
  16461. - delete-glob <dir> <pattern> Delete a group of files located one
  16462. level deep in the given directory with names matching a given glob
  16463. pattern.
  16464. - touch-glob YYYY-MM-DD <dir> <pattern> Change modification time on a
  16465. group of files.
  16466. - touch-copy YYYY-MM-DD <source-file> <dest-dir> Change file
  16467. modification time then copy it to destination.
  16468. - copy-file <source-file> <dest-dir> Copy a single file to given
  16469. directory.
  16470. - copy-as <source-file> <dest-file> Similar to above but destination
  16471. must include both directory and the new file name at destination.
  16472. - copy-dir <src> <dst> and sync-dir <src> <dst> Copy/sync a directory.
  16473. Equivalent of rclone copy and rclone sync.
  16474. - list-dirs <dir> Equivalent to rclone lsf -R --dirs-only <dir>
  16475. - bisync [options] Runs bisync against -remote and -remote2.
  16476. Supported substitution terms
  16477. - {testdir/} - the root dir of the testcase
  16478. - {datadir/} - the modfiles dir under the testcase root
  16479. - {workdir/} - the temporary test working directory
  16480. - {path1/} - the root of the Path1 test directory tree
  16481. - {path2/} - the root of the Path2 test directory tree
  16482. - {session} - base name of the test listings
  16483. - {/} - OS-specific path separator
  16484. - {spc}, {tab}, {eol} - whitespace
  16485. - {chr:HH} - raw byte with given hexadecimal code
  16486. Substitution results of the terms named like {dir/} will end with / (or
  16487. backslash on Windows), so it is not necessary to include slash in the
  16488. usage, for example delete-file {path1/}file1.txt.
  16489. Benchmarks
  16490. This section is work in progress.
  16491. Here are a few data points for scale, execution times, and memory usage.
  16492. The first set of data was taken between a local disk to Dropbox. The
  16493. speedtest.net download speed was ~170 Mbps, and upload speed was ~10
  16494. Mbps. 500 files (~9.5 MB each) had been already synched. 50 files were
  16495. added in a new directory, each ~9.5 MB, ~475 MB total.
  16496. ------------------------------------------------------------------------
  16497. Change Operations and times Overall run
  16498. time
  16499. ------------------------ ----------------------------------- -----------
  16500. 500 files synched 1x listings for Path1 & Path2 1.5 sec
  16501. (nothing to move)
  16502. 500 files synched with 1x listings for Path1 & Path2 1.5 sec
  16503. --check-access
  16504. 50 new files on remote Queued 50 copies down: 27 sec 29 sec
  16505. Moved local dir Queued 50 copies up: 410 sec, 50 421 sec
  16506. deletes up: 9 sec
  16507. Moved remote dir Queued 50 copies down: 31 sec, 50 33 sec
  16508. deletes down: <1 sec
  16509. Delete local dir Queued 50 deletes up: 9 sec 13 sec
  16510. ------------------------------------------------------------------------
  16511. This next data is from a user's application. They had ~400GB of data
  16512. over 1.96 million files being sync'ed between a Windows local disk and
  16513. some remote cloud. The file full path length was on average 35
  16514. characters (which factors into load time and RAM required).
  16515. - Loading the prior listing into memory (1.96 million files, listing
  16516. file size 140 MB) took ~30 sec and occupied about 1 GB of RAM.
  16517. - Getting a fresh listing of the local file system (producing the 140
  16518. MB output file) took about XXX sec.
  16519. - Getting a fresh listing of the remote file system (producing the 140
  16520. MB output file) took about XXX sec. The network download speed was
  16521. measured at XXX Mb/s.
  16522. - Once the prior and current Path1 and Path2 listings were loaded (a
  16523. total of four to be loaded, two at a time), determining the deltas
  16524. was pretty quick (a few seconds for this test case), and the
  16525. transfer time for any files to be copied was dominated by the
  16526. network bandwidth.
  16527. References
  16528. rclone's bisync implementation was derived from the rclonesync-V2
  16529. project, including documentation and test mechanisms, with
  16530. [@cjnaz](https://github.com/cjnaz)'s full support and encouragement.
  16531. rclone bisync is similar in nature to a range of other projects:
  16532. - unison
  16533. - syncthing
  16534. - cjnaz/rclonesync
  16535. - ConorWilliams/rsinc
  16536. - jwink3101/syncrclone
  16537. - DavideRossi/upback
  16538. Bisync adopts the differential synchronization technique, which is based
  16539. on keeping history of changes performed by both synchronizing sides. See
  16540. the Dual Shadow Method section in Neil Fraser's article.
  16541. Also note a number of academic publications by Benjamin Pierce about
  16542. Unison and synchronization in general.
  16543. Changelog
  16544. v1.66
  16545. - Copies and deletes are now handled in one operation instead of two
  16546. - --track-renames and --backup-dir are now supported
  16547. - Partial uploads known issue on local/ftp/sftp has been resolved
  16548. (unless using --inplace)
  16549. - Final listings are now generated from sync results, to avoid needing
  16550. to re-list
  16551. - Bisync is now much more resilient to changes that happen during a
  16552. bisync run, and far less prone to critical errors / undetected
  16553. changes
  16554. - Bisync is now capable of rolling a file listing back in cases of
  16555. uncertainty, essentially marking the file as needing to be rechecked
  16556. next time.
  16557. - A few basic terminal colors are now supported, controllable with
  16558. --color (AUTO|NEVER|ALWAYS)
  16559. - Initial listing snapshots of Path1 and Path2 are now generated
  16560. concurrently, using the same "march" infrastructure as check and
  16561. sync, for performance improvements and less risk of error.
  16562. - Fixed handling of unicode normalization and case insensitivity,
  16563. support for --fix-case, --ignore-case-sync,
  16564. --no-unicode-normalization
  16565. - --resync is now much more efficient (especially for users of
  16566. --create-empty-src-dirs)
  16567. - Google Docs (and other files of unknown size) are now supported
  16568. (with the same options as in sync)
  16569. - Equality checks before a sync conflict rename now fall back to
  16570. cryptcheck (when possible) or --download, instead of of --size-only,
  16571. when check is not available.
  16572. - Bisync no longer fails to find the correct listing file when configs
  16573. are overridden with backend-specific flags.
  16574. - Bisync now fully supports comparing based on any combination of
  16575. size, modtime, and checksum, lifting the prior restriction on
  16576. backends without modtime support.
  16577. - Bisync now supports a "Graceful Shutdown" mode to cleanly cancel a
  16578. run early without requiring --resync.
  16579. - New --recover flag allows robust recovery in the event of
  16580. interruptions, without requiring --resync.
  16581. - A new --max-lock setting allows lock files to automatically renew
  16582. and expire, for better automatic recovery when a run is interrupted.
  16583. - Bisync now supports auto-resolving sync conflicts and customizing
  16584. rename behavior with new --conflict-resolve, --conflict-loser, and
  16585. --conflict-suffix flags.
  16586. - A new --resync-mode flag allows more control over which version of a
  16587. file gets kept during a --resync.
  16588. - Bisync now supports --retries and --retries-sleep (when --resilient
  16589. is set.)
  16590. v1.64
  16591. - Fixed an issue causing dry runs to inadvertently commit filter
  16592. changes
  16593. - Fixed an issue causing --resync to erroneously delete empty folders
  16594. and duplicate files unique to Path2
  16595. - --check-access is now enforced during --resync, preventing data loss
  16596. in certain user error scenarios
  16597. - Fixed an issue causing bisync to consider more files than necessary
  16598. due to overbroad filters during delete operations
  16599. - Improved detection of false positive change conflicts (identical
  16600. files are now left alone instead of renamed)
  16601. - Added support for --create-empty-src-dirs
  16602. - Added experimental --resilient mode to allow recovery from
  16603. self-correctable errors
  16604. - Added new --ignore-listing-checksum flag to distinguish from
  16605. --ignore-checksum
  16606. - Performance improvements for large remotes
  16607. - Documentation and testing improvements
  16608. Release signing
  16609. The hashes of the binary artefacts of the rclone release are signed with
  16610. a public PGP/GPG key. This can be verified manually as described below.
  16611. The same mechanism is also used by rclone selfupdate to verify that the
  16612. release has not been tampered with before the new update is installed.
  16613. This checks the SHA256 hash and the signature with a public key compiled
  16614. into the rclone binary.
  16615. Release signing key
  16616. You may obtain the release signing key from:
  16617. - From KEYS on this website - this file contains all past signing keys
  16618. also.
  16619. - The git repository hosted on GitHub -
  16620. https://github.com/rclone/rclone/blob/master/docs/content/KEYS
  16621. - gpg --keyserver hkps://keys.openpgp.org --search nick@craig-wood.com
  16622. - gpg --keyserver hkps://keyserver.ubuntu.com --search nick@craig-wood.com
  16623. - https://www.craig-wood.com/nick/pub/pgp-key.txt
  16624. After importing the key, verify that the fingerprint of one of the keys
  16625. matches: FBF737ECE9F8AB18604BD2AC93935E02FF3B54FA as this key is used
  16626. for signing.
  16627. We recommend that you cross-check the fingerprint shown above through
  16628. the domains listed below. By cross-checking the integrity of the
  16629. fingerprint across multiple domains you can be confident that you
  16630. obtained the correct key.
  16631. - The source for this page on GitHub.
  16632. - Through DNS dig key.rclone.org txt
  16633. If you find anything that doesn't not match, please contact the
  16634. developers at once.
  16635. How to verify the release
  16636. In the release directory you will see the release files and some files
  16637. called MD5SUMS, SHA1SUMS and SHA256SUMS.
  16638. $ rclone lsf --http-url https://downloads.rclone.org/v1.63.1 :http:
  16639. MD5SUMS
  16640. SHA1SUMS
  16641. SHA256SUMS
  16642. rclone-v1.63.1-freebsd-386.zip
  16643. rclone-v1.63.1-freebsd-amd64.zip
  16644. ...
  16645. rclone-v1.63.1-windows-arm64.zip
  16646. rclone-v1.63.1.tar.gz
  16647. version.txt
  16648. The MD5SUMS, SHA1SUMS and SHA256SUMS contain hashes of the binary files
  16649. in the release directory along with a signature.
  16650. For example:
  16651. $ rclone cat --http-url https://downloads.rclone.org/v1.63.1 :http:SHA256SUMS
  16652. -----BEGIN PGP SIGNED MESSAGE-----
  16653. Hash: SHA1
  16654. f6d1b2d7477475ce681bdce8cb56f7870f174cb6b2a9ac5d7b3764296ea4a113 rclone-v1.63.1-freebsd-386.zip
  16655. 7266febec1f01a25d6575de51c44ddf749071a4950a6384e4164954dff7ac37e rclone-v1.63.1-freebsd-amd64.zip
  16656. ...
  16657. 66ca083757fb22198309b73879831ed2b42309892394bf193ff95c75dff69c73 rclone-v1.63.1-windows-amd64.zip
  16658. bbb47c16882b6c5f2e8c1b04229378e28f68734c613321ef0ea2263760f74cd0 rclone-v1.63.1-windows-arm64.zip
  16659. -----BEGIN PGP SIGNATURE-----
  16660. iF0EARECAB0WIQT79zfs6firGGBL0qyTk14C/ztU+gUCZLVKJQAKCRCTk14C/ztU
  16661. +pZuAJ0XJ+QWLP/3jCtkmgcgc4KAwd/rrwCcCRZQ7E+oye1FPY46HOVzCFU3L7g=
  16662. =8qrL
  16663. -----END PGP SIGNATURE-----
  16664. Download the files
  16665. The first step is to download the binary and SUMs file and verify that
  16666. the SUMs you have downloaded match. Here we download
  16667. rclone-v1.63.1-windows-amd64.zip - choose the binary (or binaries)
  16668. appropriate to your architecture. We've also chosen the SHA256SUMS as
  16669. these are the most secure. You could verify the other types of hash also
  16670. for extra security. rclone selfupdate verifies just the SHA256SUMS.
  16671. $ mkdir /tmp/check
  16672. $ cd /tmp/check
  16673. $ rclone copy --http-url https://downloads.rclone.org/v1.63.1 :http:SHA256SUMS .
  16674. $ rclone copy --http-url https://downloads.rclone.org/v1.63.1 :http:rclone-v1.63.1-windows-amd64.zip .
  16675. Verify the signatures
  16676. First verify the signatures on the SHA256 file.
  16677. Import the key. See above for ways to verify this key is correct.
  16678. $ gpg --keyserver keyserver.ubuntu.com --receive-keys FBF737ECE9F8AB18604BD2AC93935E02FF3B54FA
  16679. gpg: key 93935E02FF3B54FA: public key "Nick Craig-Wood <nick@craig-wood.com>" imported
  16680. gpg: Total number processed: 1
  16681. gpg: imported: 1
  16682. Then check the signature:
  16683. $ gpg --verify SHA256SUMS
  16684. gpg: Signature made Mon 17 Jul 2023 15:03:17 BST
  16685. gpg: using DSA key FBF737ECE9F8AB18604BD2AC93935E02FF3B54FA
  16686. gpg: Good signature from "Nick Craig-Wood <nick@craig-wood.com>" [ultimate]
  16687. Verify the signature was good and is using the fingerprint shown above.
  16688. Repeat for MD5SUMS and SHA1SUMS if desired.
  16689. Verify the hashes
  16690. Now that we know the signatures on the hashes are OK we can verify the
  16691. binaries match the hashes, completing the verification.
  16692. $ sha256sum -c SHA256SUMS 2>&1 | grep OK
  16693. rclone-v1.63.1-windows-amd64.zip: OK
  16694. Or do the check with rclone
  16695. $ rclone hashsum sha256 -C SHA256SUMS rclone-v1.63.1-windows-amd64.zip
  16696. 2023/09/11 10:53:58 NOTICE: SHA256SUMS: improperly formatted checksum line 0
  16697. 2023/09/11 10:53:58 NOTICE: SHA256SUMS: improperly formatted checksum line 1
  16698. 2023/09/11 10:53:58 NOTICE: SHA256SUMS: improperly formatted checksum line 49
  16699. 2023/09/11 10:53:58 NOTICE: SHA256SUMS: 4 warning(s) suppressed...
  16700. = rclone-v1.63.1-windows-amd64.zip
  16701. 2023/09/11 10:53:58 NOTICE: Local file system at /tmp/check: 0 differences found
  16702. 2023/09/11 10:53:58 NOTICE: Local file system at /tmp/check: 1 matching files
  16703. Verify signatures and hashes together
  16704. You can verify the signatures and hashes in one command line like this:
  16705. $ gpg --decrypt SHA256SUMS | sha256sum -c --ignore-missing
  16706. gpg: Signature made Mon 17 Jul 2023 15:03:17 BST
  16707. gpg: using DSA key FBF737ECE9F8AB18604BD2AC93935E02FF3B54FA
  16708. gpg: Good signature from "Nick Craig-Wood <nick@craig-wood.com>" [ultimate]
  16709. gpg: aka "Nick Craig-Wood <nick@memset.com>" [unknown]
  16710. rclone-v1.63.1-windows-amd64.zip: OK
  16711. 1Fichier
  16712. This is a backend for the 1fichier cloud storage service. Note that a
  16713. Premium subscription is required to use the API.
  16714. Paths are specified as remote:path
  16715. Paths may be as deep as required, e.g. remote:directory/subdirectory.
  16716. Configuration
  16717. The initial setup for 1Fichier involves getting the API key from the
  16718. website which you need to do in your browser.
  16719. Here is an example of how to make a remote called remote. First run:
  16720. rclone config
  16721. This will guide you through an interactive setup process:
  16722. No remotes found, make a new one?
  16723. n) New remote
  16724. s) Set configuration password
  16725. q) Quit config
  16726. n/s/q> n
  16727. name> remote
  16728. Type of storage to configure.
  16729. Enter a string value. Press Enter for the default ("").
  16730. Choose a number from below, or type in your own value
  16731. [snip]
  16732. XX / 1Fichier
  16733. \ "fichier"
  16734. [snip]
  16735. Storage> fichier
  16736. ** See help for fichier backend at: https://rclone.org/fichier/ **
  16737. Your API Key, get it from https://1fichier.com/console/params.pl
  16738. Enter a string value. Press Enter for the default ("").
  16739. api_key> example_key
  16740. Edit advanced config? (y/n)
  16741. y) Yes
  16742. n) No
  16743. y/n>
  16744. Remote config
  16745. --------------------
  16746. [remote]
  16747. type = fichier
  16748. api_key = example_key
  16749. --------------------
  16750. y) Yes this is OK
  16751. e) Edit this remote
  16752. d) Delete this remote
  16753. y/e/d> y
  16754. Once configured you can then use rclone like this,
  16755. List directories in top level of your 1Fichier account
  16756. rclone lsd remote:
  16757. List all the files in your 1Fichier account
  16758. rclone ls remote:
  16759. To copy a local directory to a 1Fichier directory called backup
  16760. rclone copy /home/source remote:backup
  16761. Modification times and hashes
  16762. 1Fichier does not support modification times. It supports the Whirlpool
  16763. hash algorithm.
  16764. Duplicated files
  16765. 1Fichier can have two files with exactly the same name and path (unlike
  16766. a normal file system).
  16767. Duplicated files cause problems with the syncing and you will see
  16768. messages in the log about duplicates.
  16769. Restricted filename characters
  16770. In addition to the default restricted characters set the following
  16771. characters are also replaced:
  16772. Character Value Replacement
  16773. ----------- ------- -------------
  16774. \ 0x5C \
  16775. < 0x3C <
  16776. > 0x3E >
  16777. " 0x22 "
  16778. $ 0x24 $
  16779. ` 0x60 `
  16780. ' 0x27 '
  16781. File names can also not start or end with the following characters.
  16782. These only get replaced if they are the first or last character in the
  16783. name:
  16784. Character Value Replacement
  16785. ----------- ------- -------------
  16786. SP 0x20 ␠
  16787. Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
  16788. strings.
  16789. Standard options
  16790. Here are the Standard options specific to fichier (1Fichier).
  16791. --fichier-api-key
  16792. Your API Key, get it from https://1fichier.com/console/params.pl.
  16793. Properties:
  16794. - Config: api_key
  16795. - Env Var: RCLONE_FICHIER_API_KEY
  16796. - Type: string
  16797. - Required: false
  16798. Advanced options
  16799. Here are the Advanced options specific to fichier (1Fichier).
  16800. --fichier-shared-folder
  16801. If you want to download a shared folder, add this parameter.
  16802. Properties:
  16803. - Config: shared_folder
  16804. - Env Var: RCLONE_FICHIER_SHARED_FOLDER
  16805. - Type: string
  16806. - Required: false
  16807. --fichier-file-password
  16808. If you want to download a shared file that is password protected, add
  16809. this parameter.
  16810. NB Input to this must be obscured - see rclone obscure.
  16811. Properties:
  16812. - Config: file_password
  16813. - Env Var: RCLONE_FICHIER_FILE_PASSWORD
  16814. - Type: string
  16815. - Required: false
  16816. --fichier-folder-password
  16817. If you want to list the files in a shared folder that is password
  16818. protected, add this parameter.
  16819. NB Input to this must be obscured - see rclone obscure.
  16820. Properties:
  16821. - Config: folder_password
  16822. - Env Var: RCLONE_FICHIER_FOLDER_PASSWORD
  16823. - Type: string
  16824. - Required: false
  16825. --fichier-cdn
  16826. Set if you wish to use CDN download links.
  16827. Properties:
  16828. - Config: cdn
  16829. - Env Var: RCLONE_FICHIER_CDN
  16830. - Type: bool
  16831. - Default: false
  16832. --fichier-encoding
  16833. The encoding for the backend.
  16834. See the encoding section in the overview for more info.
  16835. Properties:
  16836. - Config: encoding
  16837. - Env Var: RCLONE_FICHIER_ENCODING
  16838. - Type: Encoding
  16839. - Default:
  16840. Slash,LtGt,DoubleQuote,SingleQuote,BackQuote,Dollar,BackSlash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot
  16841. --fichier-description
  16842. Description of the remote
  16843. Properties:
  16844. - Config: description
  16845. - Env Var: RCLONE_FICHIER_DESCRIPTION
  16846. - Type: string
  16847. - Required: false
  16848. Limitations
  16849. rclone about is not supported by the 1Fichier backend. Backends without
  16850. this capability cannot determine free space for an rclone mount or use
  16851. policy mfs (most free space) as a member of an rclone union remote.
  16852. See List of backends that do not support rclone about and rclone about
  16853. Alias
  16854. The alias remote provides a new name for another remote.
  16855. Paths may be as deep as required or a local path, e.g.
  16856. remote:directory/subdirectory or /directory/subdirectory.
  16857. During the initial setup with rclone config you will specify the target
  16858. remote. The target remote can either be a local path or another remote.
  16859. Subfolders can be used in target remote. Assume an alias remote named
  16860. backup with the target mydrive:private/backup. Invoking
  16861. rclone mkdir backup:desktop is exactly the same as invoking
  16862. rclone mkdir mydrive:private/backup/desktop.
  16863. There will be no special handling of paths containing .. segments.
  16864. Invoking rclone mkdir backup:../desktop is exactly the same as invoking
  16865. rclone mkdir mydrive:private/backup/../desktop. The empty path is not
  16866. allowed as a remote. To alias the current directory use . instead.
  16867. The target remote can also be a connection string. This can be used to
  16868. modify the config of a remote for different uses, e.g. the alias
  16869. myDriveTrash with the target remote myDrive,trashed_only: can be used to
  16870. only show the trashed files in myDrive.
  16871. Configuration
  16872. Here is an example of how to make an alias called remote for local
  16873. folder. First run:
  16874. rclone config
  16875. This will guide you through an interactive setup process:
  16876. No remotes found, make a new one?
  16877. n) New remote
  16878. s) Set configuration password
  16879. q) Quit config
  16880. n/s/q> n
  16881. name> remote
  16882. Type of storage to configure.
  16883. Choose a number from below, or type in your own value
  16884. [snip]
  16885. XX / Alias for an existing remote
  16886. \ "alias"
  16887. [snip]
  16888. Storage> alias
  16889. Remote or path to alias.
  16890. Can be "myremote:path/to/dir", "myremote:bucket", "myremote:" or "/local/path".
  16891. remote> /mnt/storage/backup
  16892. Remote config
  16893. --------------------
  16894. [remote]
  16895. remote = /mnt/storage/backup
  16896. --------------------
  16897. y) Yes this is OK
  16898. e) Edit this remote
  16899. d) Delete this remote
  16900. y/e/d> y
  16901. Current remotes:
  16902. Name Type
  16903. ==== ====
  16904. remote alias
  16905. e) Edit existing remote
  16906. n) New remote
  16907. d) Delete remote
  16908. r) Rename remote
  16909. c) Copy remote
  16910. s) Set configuration password
  16911. q) Quit config
  16912. e/n/d/r/c/s/q> q
  16913. Once configured you can then use rclone like this,
  16914. List directories in top level in /mnt/storage/backup
  16915. rclone lsd remote:
  16916. List all the files in /mnt/storage/backup
  16917. rclone ls remote:
  16918. Copy another local directory to the alias directory called source
  16919. rclone copy /home/source remote:source
  16920. Standard options
  16921. Here are the Standard options specific to alias (Alias for an existing
  16922. remote).
  16923. --alias-remote
  16924. Remote or path to alias.
  16925. Can be "myremote:path/to/dir", "myremote:bucket", "myremote:" or
  16926. "/local/path".
  16927. Properties:
  16928. - Config: remote
  16929. - Env Var: RCLONE_ALIAS_REMOTE
  16930. - Type: string
  16931. - Required: true
  16932. Advanced options
  16933. Here are the Advanced options specific to alias (Alias for an existing
  16934. remote).
  16935. --alias-description
  16936. Description of the remote
  16937. Properties:
  16938. - Config: description
  16939. - Env Var: RCLONE_ALIAS_DESCRIPTION
  16940. - Type: string
  16941. - Required: false
  16942. Amazon S3 Storage Providers
  16943. The S3 backend can be used with a number of different providers:
  16944. - AWS S3
  16945. - Alibaba Cloud (Aliyun) Object Storage System (OSS)
  16946. - Ceph
  16947. - China Mobile Ecloud Elastic Object Storage (EOS)
  16948. - Cloudflare R2
  16949. - Arvan Cloud Object Storage (AOS)
  16950. - DigitalOcean Spaces
  16951. - Dreamhost
  16952. - GCS
  16953. - Huawei OBS
  16954. - IBM COS S3
  16955. - IDrive e2
  16956. - IONOS Cloud
  16957. - Leviia Object Storage
  16958. - Liara Object Storage
  16959. - Linode Object Storage
  16960. - Minio
  16961. - Petabox
  16962. - Qiniu Cloud Object Storage (Kodo)
  16963. - RackCorp Object Storage
  16964. - Rclone Serve S3
  16965. - Scaleway
  16966. - Seagate Lyve Cloud
  16967. - SeaweedFS
  16968. - StackPath
  16969. - Storj
  16970. - Synology C2 Object Storage
  16971. - Tencent Cloud Object Storage (COS)
  16972. - Wasabi
  16973. Paths are specified as remote:bucket (or remote: for the lsd command.)
  16974. You may put subdirectories in too, e.g. remote:bucket/path/to/dir.
  16975. Once you have made a remote (see the provider specific section above)
  16976. you can use it like this:
  16977. See all buckets
  16978. rclone lsd remote:
  16979. Make a new bucket
  16980. rclone mkdir remote:bucket
  16981. List the contents of a bucket
  16982. rclone ls remote:bucket
  16983. Sync /home/local/directory to the remote bucket, deleting any excess
  16984. files in the bucket.
  16985. rclone sync --interactive /home/local/directory remote:bucket
  16986. Configuration
  16987. Here is an example of making an s3 configuration for the AWS S3
  16988. provider. Most applies to the other providers as well, any differences
  16989. are described below.
  16990. First run
  16991. rclone config
  16992. This will guide you through an interactive setup process.
  16993. No remotes found, make a new one?
  16994. n) New remote
  16995. s) Set configuration password
  16996. q) Quit config
  16997. n/s/q> n
  16998. name> remote
  16999. Type of storage to configure.
  17000. Choose a number from below, or type in your own value
  17001. [snip]
  17002. XX / Amazon S3 Compliant Storage Providers including AWS, ...
  17003. \ "s3"
  17004. [snip]
  17005. Storage> s3
  17006. Choose your S3 provider.
  17007. Choose a number from below, or type in your own value
  17008. 1 / Amazon Web Services (AWS) S3
  17009. \ "AWS"
  17010. 2 / Ceph Object Storage
  17011. \ "Ceph"
  17012. 3 / DigitalOcean Spaces
  17013. \ "DigitalOcean"
  17014. 4 / Dreamhost DreamObjects
  17015. \ "Dreamhost"
  17016. 5 / IBM COS S3
  17017. \ "IBMCOS"
  17018. 6 / Minio Object Storage
  17019. \ "Minio"
  17020. 7 / Wasabi Object Storage
  17021. \ "Wasabi"
  17022. 8 / Any other S3 compatible provider
  17023. \ "Other"
  17024. provider> 1
  17025. Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars). Only applies if access_key_id and secret_access_key is blank.
  17026. Choose a number from below, or type in your own value
  17027. 1 / Enter AWS credentials in the next step
  17028. \ "false"
  17029. 2 / Get AWS credentials from the environment (env vars or IAM)
  17030. \ "true"
  17031. env_auth> 1
  17032. AWS Access Key ID - leave blank for anonymous access or runtime credentials.
  17033. access_key_id> XXX
  17034. AWS Secret Access Key (password) - leave blank for anonymous access or runtime credentials.
  17035. secret_access_key> YYY
  17036. Region to connect to.
  17037. Choose a number from below, or type in your own value
  17038. / The default endpoint - a good choice if you are unsure.
  17039. 1 | US Region, Northern Virginia, or Pacific Northwest.
  17040. | Leave location constraint empty.
  17041. \ "us-east-1"
  17042. / US East (Ohio) Region
  17043. 2 | Needs location constraint us-east-2.
  17044. \ "us-east-2"
  17045. / US West (Oregon) Region
  17046. 3 | Needs location constraint us-west-2.
  17047. \ "us-west-2"
  17048. / US West (Northern California) Region
  17049. 4 | Needs location constraint us-west-1.
  17050. \ "us-west-1"
  17051. / Canada (Central) Region
  17052. 5 | Needs location constraint ca-central-1.
  17053. \ "ca-central-1"
  17054. / EU (Ireland) Region
  17055. 6 | Needs location constraint EU or eu-west-1.
  17056. \ "eu-west-1"
  17057. / EU (London) Region
  17058. 7 | Needs location constraint eu-west-2.
  17059. \ "eu-west-2"
  17060. / EU (Frankfurt) Region
  17061. 8 | Needs location constraint eu-central-1.
  17062. \ "eu-central-1"
  17063. / Asia Pacific (Singapore) Region
  17064. 9 | Needs location constraint ap-southeast-1.
  17065. \ "ap-southeast-1"
  17066. / Asia Pacific (Sydney) Region
  17067. 10 | Needs location constraint ap-southeast-2.
  17068. \ "ap-southeast-2"
  17069. / Asia Pacific (Tokyo) Region
  17070. 11 | Needs location constraint ap-northeast-1.
  17071. \ "ap-northeast-1"
  17072. / Asia Pacific (Seoul)
  17073. 12 | Needs location constraint ap-northeast-2.
  17074. \ "ap-northeast-2"
  17075. / Asia Pacific (Mumbai)
  17076. 13 | Needs location constraint ap-south-1.
  17077. \ "ap-south-1"
  17078. / Asia Pacific (Hong Kong) Region
  17079. 14 | Needs location constraint ap-east-1.
  17080. \ "ap-east-1"
  17081. / South America (Sao Paulo) Region
  17082. 15 | Needs location constraint sa-east-1.
  17083. \ "sa-east-1"
  17084. region> 1
  17085. Endpoint for S3 API.
  17086. Leave blank if using AWS to use the default endpoint for the region.
  17087. endpoint>
  17088. Location constraint - must be set to match the Region. Used when creating buckets only.
  17089. Choose a number from below, or type in your own value
  17090. 1 / Empty for US Region, Northern Virginia, or Pacific Northwest.
  17091. \ ""
  17092. 2 / US East (Ohio) Region.
  17093. \ "us-east-2"
  17094. 3 / US West (Oregon) Region.
  17095. \ "us-west-2"
  17096. 4 / US West (Northern California) Region.
  17097. \ "us-west-1"
  17098. 5 / Canada (Central) Region.
  17099. \ "ca-central-1"
  17100. 6 / EU (Ireland) Region.
  17101. \ "eu-west-1"
  17102. 7 / EU (London) Region.
  17103. \ "eu-west-2"
  17104. 8 / EU Region.
  17105. \ "EU"
  17106. 9 / Asia Pacific (Singapore) Region.
  17107. \ "ap-southeast-1"
  17108. 10 / Asia Pacific (Sydney) Region.
  17109. \ "ap-southeast-2"
  17110. 11 / Asia Pacific (Tokyo) Region.
  17111. \ "ap-northeast-1"
  17112. 12 / Asia Pacific (Seoul)
  17113. \ "ap-northeast-2"
  17114. 13 / Asia Pacific (Mumbai)
  17115. \ "ap-south-1"
  17116. 14 / Asia Pacific (Hong Kong)
  17117. \ "ap-east-1"
  17118. 15 / South America (Sao Paulo) Region.
  17119. \ "sa-east-1"
  17120. location_constraint> 1
  17121. Canned ACL used when creating buckets and/or storing objects in S3.
  17122. For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
  17123. Choose a number from below, or type in your own value
  17124. 1 / Owner gets FULL_CONTROL. No one else has access rights (default).
  17125. \ "private"
  17126. 2 / Owner gets FULL_CONTROL. The AllUsers group gets READ access.
  17127. \ "public-read"
  17128. / Owner gets FULL_CONTROL. The AllUsers group gets READ and WRITE access.
  17129. 3 | Granting this on a bucket is generally not recommended.
  17130. \ "public-read-write"
  17131. 4 / Owner gets FULL_CONTROL. The AuthenticatedUsers group gets READ access.
  17132. \ "authenticated-read"
  17133. / Object owner gets FULL_CONTROL. Bucket owner gets READ access.
  17134. 5 | If you specify this canned ACL when creating a bucket, Amazon S3 ignores it.
  17135. \ "bucket-owner-read"
  17136. / Both the object owner and the bucket owner get FULL_CONTROL over the object.
  17137. 6 | If you specify this canned ACL when creating a bucket, Amazon S3 ignores it.
  17138. \ "bucket-owner-full-control"
  17139. acl> 1
  17140. The server-side encryption algorithm used when storing this object in S3.
  17141. Choose a number from below, or type in your own value
  17142. 1 / None
  17143. \ ""
  17144. 2 / AES256
  17145. \ "AES256"
  17146. server_side_encryption> 1
  17147. The storage class to use when storing objects in S3.
  17148. Choose a number from below, or type in your own value
  17149. 1 / Default
  17150. \ ""
  17151. 2 / Standard storage class
  17152. \ "STANDARD"
  17153. 3 / Reduced redundancy storage class
  17154. \ "REDUCED_REDUNDANCY"
  17155. 4 / Standard Infrequent Access storage class
  17156. \ "STANDARD_IA"
  17157. 5 / One Zone Infrequent Access storage class
  17158. \ "ONEZONE_IA"
  17159. 6 / Glacier storage class
  17160. \ "GLACIER"
  17161. 7 / Glacier Deep Archive storage class
  17162. \ "DEEP_ARCHIVE"
  17163. 8 / Intelligent-Tiering storage class
  17164. \ "INTELLIGENT_TIERING"
  17165. 9 / Glacier Instant Retrieval storage class
  17166. \ "GLACIER_IR"
  17167. storage_class> 1
  17168. Remote config
  17169. --------------------
  17170. [remote]
  17171. type = s3
  17172. provider = AWS
  17173. env_auth = false
  17174. access_key_id = XXX
  17175. secret_access_key = YYY
  17176. region = us-east-1
  17177. endpoint =
  17178. location_constraint =
  17179. acl = private
  17180. server_side_encryption =
  17181. storage_class =
  17182. --------------------
  17183. y) Yes this is OK
  17184. e) Edit this remote
  17185. d) Delete this remote
  17186. y/e/d>
  17187. Modification times and hashes
  17188. Modification times
  17189. The modified time is stored as metadata on the object as
  17190. X-Amz-Meta-Mtime as floating point since the epoch, accurate to 1 ns.
  17191. If the modification time needs to be updated rclone will attempt to
  17192. perform a server side copy to update the modification if the object can
  17193. be copied in a single part. In the case the object is larger than 5Gb or
  17194. is in Glacier or Glacier Deep Archive storage the object will be
  17195. uploaded rather than copied.
  17196. Note that reading this from the object takes an additional HEAD request
  17197. as the metadata isn't returned in object listings.
  17198. Hashes
  17199. For small objects which weren't uploaded as multipart uploads (objects
  17200. sized below --s3-upload-cutoff if uploaded with rclone) rclone uses the
  17201. ETag: header as an MD5 checksum.
  17202. However for objects which were uploaded as multipart uploads or with
  17203. server side encryption (SSE-AWS or SSE-C) the ETag header is no longer
  17204. the MD5 sum of the data, so rclone adds an additional piece of metadata
  17205. X-Amz-Meta-Md5chksum which is a base64 encoded MD5 hash (in the same
  17206. format as is required for Content-MD5). You can use base64 -d and
  17207. hexdump to check this value manually:
  17208. echo 'VWTGdNx3LyXQDfA0e2Edxw==' | base64 -d | hexdump
  17209. or you can use rclone check to verify the hashes are OK.
  17210. For large objects, calculating this hash can take some time so the
  17211. addition of this hash can be disabled with --s3-disable-checksum. This
  17212. will mean that these objects do not have an MD5 checksum.
  17213. Note that reading this from the object takes an additional HEAD request
  17214. as the metadata isn't returned in object listings.
  17215. Reducing costs
  17216. Avoiding HEAD requests to read the modification time
  17217. By default, rclone will use the modification time of objects stored in
  17218. S3 for syncing. This is stored in object metadata which unfortunately
  17219. takes an extra HEAD request to read which can be expensive (in time and
  17220. money).
  17221. The modification time is used by default for all operations that require
  17222. checking the time a file was last updated. It allows rclone to treat the
  17223. remote more like a true filesystem, but it is inefficient on S3 because
  17224. it requires an extra API call to retrieve the metadata.
  17225. The extra API calls can be avoided when syncing (using rclone sync or
  17226. rclone copy) in a few different ways, each with its own tradeoffs.
  17227. - --size-only
  17228. - Only checks the size of files.
  17229. - Uses no extra transactions.
  17230. - If the file doesn't change size then rclone won't detect it has
  17231. changed.
  17232. - rclone sync --size-only /path/to/source s3:bucket
  17233. - --checksum
  17234. - Checks the size and MD5 checksum of files.
  17235. - Uses no extra transactions.
  17236. - The most accurate detection of changes possible.
  17237. - Will cause the source to read an MD5 checksum which, if it is a
  17238. local disk, will cause lots of disk activity.
  17239. - If the source and destination are both S3 this is the
  17240. recommended flag to use for maximum efficiency.
  17241. - rclone sync --checksum /path/to/source s3:bucket
  17242. - --update --use-server-modtime
  17243. - Uses no extra transactions.
  17244. - Modification time becomes the time the object was uploaded.
  17245. - For many operations this is sufficient to determine if it needs
  17246. uploading.
  17247. - Using --update along with --use-server-modtime, avoids the extra
  17248. API call and uploads files whose local modification time is
  17249. newer than the time it was last uploaded.
  17250. - Files created with timestamps in the past will be missed by the
  17251. sync.
  17252. - rclone sync --update --use-server-modtime /path/to/source s3:bucket
  17253. These flags can and should be used in combination with --fast-list - see
  17254. below.
  17255. If using rclone mount or any command using the VFS (eg rclone serve)
  17256. commands then you might want to consider using the VFS flag --no-modtime
  17257. which will stop rclone reading the modification time for every object.
  17258. You could also use --use-server-modtime if you are happy with the
  17259. modification times of the objects being the time of upload.
  17260. Avoiding GET requests to read directory listings
  17261. Rclone's default directory traversal is to process each directory
  17262. individually. This takes one API call per directory. Using the
  17263. --fast-list flag will read all info about the objects into memory first
  17264. using a smaller number of API calls (one per 1000 objects). See the
  17265. rclone docs for more details.
  17266. rclone sync --fast-list --checksum /path/to/source s3:bucket
  17267. --fast-list trades off API transactions for memory use. As a rough guide
  17268. rclone uses 1k of memory per object stored, so using --fast-list on a
  17269. sync of a million objects will use roughly 1 GiB of RAM.
  17270. If you are only copying a small number of files into a big repository
  17271. then using --no-traverse is a good idea. This finds objects directly
  17272. instead of through directory listings. You can do a "top-up" sync very
  17273. cheaply by using --max-age and --no-traverse to copy only recent files,
  17274. eg
  17275. rclone copy --max-age 24h --no-traverse /path/to/source s3:bucket
  17276. You'd then do a full rclone sync less often.
  17277. Note that --fast-list isn't required in the top-up sync.
  17278. Avoiding HEAD requests after PUT
  17279. By default, rclone will HEAD every object it uploads. It does this to
  17280. check the object got uploaded correctly.
  17281. You can disable this with the --s3-no-head option - see there for more
  17282. details.
  17283. Setting this flag increases the chance for undetected upload failures.
  17284. Versions
  17285. When bucket versioning is enabled (this can be done with rclone with the
  17286. rclone backend versioning command) when rclone uploads a new version of
  17287. a file it creates a new version of it Likewise when you delete a file,
  17288. the old version will be marked hidden and still be available.
  17289. Old versions of files, where available, are visible using the
  17290. --s3-versions flag.
  17291. It is also possible to view a bucket as it was at a certain point in
  17292. time, using the --s3-version-at flag. This will show the file versions
  17293. as they were at that time, showing files that have been deleted
  17294. afterwards, and hiding files that were created since.
  17295. If you wish to remove all the old versions then you can use the
  17296. rclone backend cleanup-hidden remote:bucket command which will delete
  17297. all the old hidden versions of files, leaving the current ones intact.
  17298. You can also supply a path and only old versions under that path will be
  17299. deleted, e.g. rclone backend cleanup-hidden remote:bucket/path/to/stuff.
  17300. When you purge a bucket, the current and the old versions will be
  17301. deleted then the bucket will be deleted.
  17302. However delete will cause the current versions of the files to become
  17303. hidden old versions.
  17304. Here is a session showing the listing and retrieval of an old version
  17305. followed by a cleanup of the old versions.
  17306. Show current version and all the versions with --s3-versions flag.
  17307. $ rclone -q ls s3:cleanup-test
  17308. 9 one.txt
  17309. $ rclone -q --s3-versions ls s3:cleanup-test
  17310. 9 one.txt
  17311. 8 one-v2016-07-04-141032-000.txt
  17312. 16 one-v2016-07-04-141003-000.txt
  17313. 15 one-v2016-07-02-155621-000.txt
  17314. Retrieve an old version
  17315. $ rclone -q --s3-versions copy s3:cleanup-test/one-v2016-07-04-141003-000.txt /tmp
  17316. $ ls -l /tmp/one-v2016-07-04-141003-000.txt
  17317. -rw-rw-r-- 1 ncw ncw 16 Jul 2 17:46 /tmp/one-v2016-07-04-141003-000.txt
  17318. Clean up all the old versions and show that they've gone.
  17319. $ rclone -q backend cleanup-hidden s3:cleanup-test
  17320. $ rclone -q ls s3:cleanup-test
  17321. 9 one.txt
  17322. $ rclone -q --s3-versions ls s3:cleanup-test
  17323. 9 one.txt
  17324. Versions naming caveat
  17325. When using --s3-versions flag rclone is relying on the file name to work
  17326. out whether the objects are versions or not. Versions' names are created
  17327. by inserting timestamp between file name and its extension.
  17328. 9 file.txt
  17329. 8 file-v2023-07-17-161032-000.txt
  17330. 16 file-v2023-06-15-141003-000.txt
  17331. If there are real files present with the same names as versions, then
  17332. behaviour of --s3-versions can be unpredictable.
  17333. Cleanup
  17334. If you run rclone cleanup s3:bucket then it will remove all pending
  17335. multipart uploads older than 24 hours. You can use the --interactive/i
  17336. or --dry-run flag to see exactly what it will do. If you want more
  17337. control over the expiry date then run
  17338. rclone backend cleanup s3:bucket -o max-age=1h to expire all uploads
  17339. older than one hour. You can use
  17340. rclone backend list-multipart-uploads s3:bucket to see the pending
  17341. multipart uploads.
  17342. Restricted filename characters
  17343. S3 allows any valid UTF-8 string as a key.
  17344. Invalid UTF-8 bytes will be replaced, as they can't be used in XML.
  17345. The following characters are replaced since these are problematic when
  17346. dealing with the REST API:
  17347. Character Value Replacement
  17348. ----------- ------- -------------
  17349. NUL 0x00 ␀
  17350. / 0x2F /
  17351. The encoding will also encode these file names as they don't seem to
  17352. work with the SDK properly:
  17353. File name Replacement
  17354. ----------- -------------
  17355. . .
  17356. .. ..
  17357. Multipart uploads
  17358. rclone supports multipart uploads with S3 which means that it can upload
  17359. files bigger than 5 GiB.
  17360. Note that files uploaded both with multipart upload and through crypt
  17361. remotes do not have MD5 sums.
  17362. rclone switches from single part uploads to multipart uploads at the
  17363. point specified by --s3-upload-cutoff. This can be a maximum of 5 GiB
  17364. and a minimum of 0 (ie always upload multipart files).
  17365. The chunk sizes used in the multipart upload are specified by
  17366. --s3-chunk-size and the number of chunks uploaded concurrently is
  17367. specified by --s3-upload-concurrency.
  17368. Multipart uploads will use --transfers * --s3-upload-concurrency *
  17369. --s3-chunk-size extra memory. Single part uploads to not use extra
  17370. memory.
  17371. Single part transfers can be faster than multipart transfers or slower
  17372. depending on your latency from S3 - the more latency, the more likely
  17373. single part transfers will be faster.
  17374. Increasing --s3-upload-concurrency will increase throughput (8 would be
  17375. a sensible value) and increasing --s3-chunk-size also increases
  17376. throughput (16M would be sensible). Increasing either of these will use
  17377. more memory. The default values are high enough to gain most of the
  17378. possible performance without using too much memory.
  17379. Buckets and Regions
  17380. With Amazon S3 you can list buckets (rclone lsd) using any region, but
  17381. you can only access the content of a bucket from the region it was
  17382. created in. If you attempt to access a bucket from the wrong region, you
  17383. will get an error, incorrect region, the bucket is not in 'XXX' region.
  17384. Authentication
  17385. There are a number of ways to supply rclone with a set of AWS
  17386. credentials, with and without using the environment.
  17387. The different authentication methods are tried in this order:
  17388. - Directly in the rclone configuration file (env_auth = false in the
  17389. config file):
  17390. - access_key_id and secret_access_key are required.
  17391. - session_token can be optionally set when using AWS STS.
  17392. - Runtime configuration (env_auth = true in the config file):
  17393. - Export the following environment variables before running
  17394. rclone:
  17395. - Access Key ID: AWS_ACCESS_KEY_ID or AWS_ACCESS_KEY
  17396. - Secret Access Key: AWS_SECRET_ACCESS_KEY or AWS_SECRET_KEY
  17397. - Session Token: AWS_SESSION_TOKEN (optional)
  17398. - Or, use a named profile:
  17399. - Profile files are standard files used by AWS CLI tools
  17400. - By default it will use the profile in your home directory
  17401. (e.g. ~/.aws/credentials on unix based systems) file and the
  17402. "default" profile, to change set these environment
  17403. variables:
  17404. - AWS_SHARED_CREDENTIALS_FILE to control which file.
  17405. - AWS_PROFILE to control which profile to use.
  17406. - Or, run rclone in an ECS task with an IAM role (AWS only).
  17407. - Or, run rclone on an EC2 instance with an IAM role (AWS only).
  17408. - Or, run rclone in an EKS pod with an IAM role that is associated
  17409. with a service account (AWS only).
  17410. If none of these option actually end up providing rclone with AWS
  17411. credentials then S3 interaction will be non-authenticated (see below).
  17412. S3 Permissions
  17413. When using the sync subcommand of rclone the following minimum
  17414. permissions are required to be available on the bucket being written to:
  17415. - ListBucket
  17416. - DeleteObject
  17417. - GetObject
  17418. - PutObject
  17419. - PutObjectACL
  17420. - CreateBucket (unless using s3-no-check-bucket)
  17421. When using the lsd subcommand, the ListAllMyBuckets permission is
  17422. required.
  17423. Example policy:
  17424. {
  17425. "Version": "2012-10-17",
  17426. "Statement": [
  17427. {
  17428. "Effect": "Allow",
  17429. "Principal": {
  17430. "AWS": "arn:aws:iam::USER_SID:user/USER_NAME"
  17431. },
  17432. "Action": [
  17433. "s3:ListBucket",
  17434. "s3:DeleteObject",
  17435. "s3:GetObject",
  17436. "s3:PutObject",
  17437. "s3:PutObjectAcl"
  17438. ],
  17439. "Resource": [
  17440. "arn:aws:s3:::BUCKET_NAME/*",
  17441. "arn:aws:s3:::BUCKET_NAME"
  17442. ]
  17443. },
  17444. {
  17445. "Effect": "Allow",
  17446. "Action": "s3:ListAllMyBuckets",
  17447. "Resource": "arn:aws:s3:::*"
  17448. }
  17449. ]
  17450. }
  17451. Notes on above:
  17452. 1. This is a policy that can be used when creating bucket. It assumes
  17453. that USER_NAME has been created.
  17454. 2. The Resource entry must include both resource ARNs, as one implies
  17455. the bucket and the other implies the bucket's objects.
  17456. 3. When using s3-no-check-bucket and the bucket already exsits, the
  17457. "arn:aws:s3:::BUCKET_NAME" doesn't have to be included.
  17458. For reference, here's an Ansible script that will generate one or more
  17459. buckets that will work with rclone sync.
  17460. Key Management System (KMS)
  17461. If you are using server-side encryption with KMS then you must make sure
  17462. rclone is configured with server_side_encryption = aws:kms otherwise you
  17463. will find you can't transfer small objects - these will create checksum
  17464. errors.
  17465. Glacier and Glacier Deep Archive
  17466. You can upload objects using the glacier storage class or transition
  17467. them to glacier using a lifecycle policy. The bucket can still be synced
  17468. or copied into normally, but if rclone tries to access data from the
  17469. glacier storage class you will see an error like below.
  17470. 2017/09/11 19:07:43 Failed to sync: failed to open source object: Object in GLACIER, restore first: path/to/file
  17471. In this case you need to restore the object(s) in question before using
  17472. rclone.
  17473. Note that rclone only speaks the S3 API it does not speak the Glacier
  17474. Vault API, so rclone cannot directly access Glacier Vaults.
  17475. Object-lock enabled S3 bucket
  17476. According to AWS's documentation on S3 Object Lock:
  17477. If you configure a default retention period on a bucket, requests to
  17478. upload objects in such a bucket must include the Content-MD5 header.
  17479. As mentioned in the Modification times and hashes section, small files
  17480. that are not uploaded as multipart, use a different tag, causing the
  17481. upload to fail. A simple solution is to set the --s3-upload-cutoff 0 and
  17482. force all the files to be uploaded as multipart.
  17483. Standard options
  17484. Here are the Standard options specific to s3 (Amazon S3 Compliant
  17485. Storage Providers including AWS, Alibaba, ArvanCloud, Ceph, ChinaMobile,
  17486. Cloudflare, DigitalOcean, Dreamhost, GCS, HuaweiOBS, IBMCOS, IDrive,
  17487. IONOS, LyveCloud, Leviia, Liara, Linode, Minio, Netease, Petabox,
  17488. RackCorp, Rclone, Scaleway, SeaweedFS, StackPath, Storj, Synology,
  17489. TencentCOS, Wasabi, Qiniu and others).
  17490. --s3-provider
  17491. Choose your S3 provider.
  17492. Properties:
  17493. - Config: provider
  17494. - Env Var: RCLONE_S3_PROVIDER
  17495. - Type: string
  17496. - Required: false
  17497. - Examples:
  17498. - "AWS"
  17499. - Amazon Web Services (AWS) S3
  17500. - "Alibaba"
  17501. - Alibaba Cloud Object Storage System (OSS) formerly Aliyun
  17502. - "ArvanCloud"
  17503. - Arvan Cloud Object Storage (AOS)
  17504. - "Ceph"
  17505. - Ceph Object Storage
  17506. - "ChinaMobile"
  17507. - China Mobile Ecloud Elastic Object Storage (EOS)
  17508. - "Cloudflare"
  17509. - Cloudflare R2 Storage
  17510. - "DigitalOcean"
  17511. - DigitalOcean Spaces
  17512. - "Dreamhost"
  17513. - Dreamhost DreamObjects
  17514. - "GCS"
  17515. - Google Cloud Storage
  17516. - "HuaweiOBS"
  17517. - Huawei Object Storage Service
  17518. - "IBMCOS"
  17519. - IBM COS S3
  17520. - "IDrive"
  17521. - IDrive e2
  17522. - "IONOS"
  17523. - IONOS Cloud
  17524. - "LyveCloud"
  17525. - Seagate Lyve Cloud
  17526. - "Leviia"
  17527. - Leviia Object Storage
  17528. - "Liara"
  17529. - Liara Object Storage
  17530. - "Linode"
  17531. - Linode Object Storage
  17532. - "Minio"
  17533. - Minio Object Storage
  17534. - "Netease"
  17535. - Netease Object Storage (NOS)
  17536. - "Petabox"
  17537. - Petabox Object Storage
  17538. - "RackCorp"
  17539. - RackCorp Object Storage
  17540. - "Rclone"
  17541. - Rclone S3 Server
  17542. - "Scaleway"
  17543. - Scaleway Object Storage
  17544. - "SeaweedFS"
  17545. - SeaweedFS S3
  17546. - "StackPath"
  17547. - StackPath Object Storage
  17548. - "Storj"
  17549. - Storj (S3 Compatible Gateway)
  17550. - "Synology"
  17551. - Synology C2 Object Storage
  17552. - "TencentCOS"
  17553. - Tencent Cloud Object Storage (COS)
  17554. - "Wasabi"
  17555. - Wasabi Object Storage
  17556. - "Qiniu"
  17557. - Qiniu Object Storage (Kodo)
  17558. - "Other"
  17559. - Any other S3 compatible provider
  17560. --s3-env-auth
  17561. Get AWS credentials from runtime (environment variables or EC2/ECS meta
  17562. data if no env vars).
  17563. Only applies if access_key_id and secret_access_key is blank.
  17564. Properties:
  17565. - Config: env_auth
  17566. - Env Var: RCLONE_S3_ENV_AUTH
  17567. - Type: bool
  17568. - Default: false
  17569. - Examples:
  17570. - "false"
  17571. - Enter AWS credentials in the next step.
  17572. - "true"
  17573. - Get AWS credentials from the environment (env vars or IAM).
  17574. --s3-access-key-id
  17575. AWS Access Key ID.
  17576. Leave blank for anonymous access or runtime credentials.
  17577. Properties:
  17578. - Config: access_key_id
  17579. - Env Var: RCLONE_S3_ACCESS_KEY_ID
  17580. - Type: string
  17581. - Required: false
  17582. --s3-secret-access-key
  17583. AWS Secret Access Key (password).
  17584. Leave blank for anonymous access or runtime credentials.
  17585. Properties:
  17586. - Config: secret_access_key
  17587. - Env Var: RCLONE_S3_SECRET_ACCESS_KEY
  17588. - Type: string
  17589. - Required: false
  17590. --s3-region
  17591. Region to connect to.
  17592. Properties:
  17593. - Config: region
  17594. - Env Var: RCLONE_S3_REGION
  17595. - Provider: AWS
  17596. - Type: string
  17597. - Required: false
  17598. - Examples:
  17599. - "us-east-1"
  17600. - The default endpoint - a good choice if you are unsure.
  17601. - US Region, Northern Virginia, or Pacific Northwest.
  17602. - Leave location constraint empty.
  17603. - "us-east-2"
  17604. - US East (Ohio) Region.
  17605. - Needs location constraint us-east-2.
  17606. - "us-west-1"
  17607. - US West (Northern California) Region.
  17608. - Needs location constraint us-west-1.
  17609. - "us-west-2"
  17610. - US West (Oregon) Region.
  17611. - Needs location constraint us-west-2.
  17612. - "ca-central-1"
  17613. - Canada (Central) Region.
  17614. - Needs location constraint ca-central-1.
  17615. - "eu-west-1"
  17616. - EU (Ireland) Region.
  17617. - Needs location constraint EU or eu-west-1.
  17618. - "eu-west-2"
  17619. - EU (London) Region.
  17620. - Needs location constraint eu-west-2.
  17621. - "eu-west-3"
  17622. - EU (Paris) Region.
  17623. - Needs location constraint eu-west-3.
  17624. - "eu-north-1"
  17625. - EU (Stockholm) Region.
  17626. - Needs location constraint eu-north-1.
  17627. - "eu-south-1"
  17628. - EU (Milan) Region.
  17629. - Needs location constraint eu-south-1.
  17630. - "eu-central-1"
  17631. - EU (Frankfurt) Region.
  17632. - Needs location constraint eu-central-1.
  17633. - "ap-southeast-1"
  17634. - Asia Pacific (Singapore) Region.
  17635. - Needs location constraint ap-southeast-1.
  17636. - "ap-southeast-2"
  17637. - Asia Pacific (Sydney) Region.
  17638. - Needs location constraint ap-southeast-2.
  17639. - "ap-northeast-1"
  17640. - Asia Pacific (Tokyo) Region.
  17641. - Needs location constraint ap-northeast-1.
  17642. - "ap-northeast-2"
  17643. - Asia Pacific (Seoul).
  17644. - Needs location constraint ap-northeast-2.
  17645. - "ap-northeast-3"
  17646. - Asia Pacific (Osaka-Local).
  17647. - Needs location constraint ap-northeast-3.
  17648. - "ap-south-1"
  17649. - Asia Pacific (Mumbai).
  17650. - Needs location constraint ap-south-1.
  17651. - "ap-east-1"
  17652. - Asia Pacific (Hong Kong) Region.
  17653. - Needs location constraint ap-east-1.
  17654. - "sa-east-1"
  17655. - South America (Sao Paulo) Region.
  17656. - Needs location constraint sa-east-1.
  17657. - "me-south-1"
  17658. - Middle East (Bahrain) Region.
  17659. - Needs location constraint me-south-1.
  17660. - "af-south-1"
  17661. - Africa (Cape Town) Region.
  17662. - Needs location constraint af-south-1.
  17663. - "cn-north-1"
  17664. - China (Beijing) Region.
  17665. - Needs location constraint cn-north-1.
  17666. - "cn-northwest-1"
  17667. - China (Ningxia) Region.
  17668. - Needs location constraint cn-northwest-1.
  17669. - "us-gov-east-1"
  17670. - AWS GovCloud (US-East) Region.
  17671. - Needs location constraint us-gov-east-1.
  17672. - "us-gov-west-1"
  17673. - AWS GovCloud (US) Region.
  17674. - Needs location constraint us-gov-west-1.
  17675. --s3-endpoint
  17676. Endpoint for S3 API.
  17677. Leave blank if using AWS to use the default endpoint for the region.
  17678. Properties:
  17679. - Config: endpoint
  17680. - Env Var: RCLONE_S3_ENDPOINT
  17681. - Provider: AWS
  17682. - Type: string
  17683. - Required: false
  17684. --s3-location-constraint
  17685. Location constraint - must be set to match the Region.
  17686. Used when creating buckets only.
  17687. Properties:
  17688. - Config: location_constraint
  17689. - Env Var: RCLONE_S3_LOCATION_CONSTRAINT
  17690. - Provider: AWS
  17691. - Type: string
  17692. - Required: false
  17693. - Examples:
  17694. - ""
  17695. - Empty for US Region, Northern Virginia, or Pacific Northwest
  17696. - "us-east-2"
  17697. - US East (Ohio) Region
  17698. - "us-west-1"
  17699. - US West (Northern California) Region
  17700. - "us-west-2"
  17701. - US West (Oregon) Region
  17702. - "ca-central-1"
  17703. - Canada (Central) Region
  17704. - "eu-west-1"
  17705. - EU (Ireland) Region
  17706. - "eu-west-2"
  17707. - EU (London) Region
  17708. - "eu-west-3"
  17709. - EU (Paris) Region
  17710. - "eu-north-1"
  17711. - EU (Stockholm) Region
  17712. - "eu-south-1"
  17713. - EU (Milan) Region
  17714. - "EU"
  17715. - EU Region
  17716. - "ap-southeast-1"
  17717. - Asia Pacific (Singapore) Region
  17718. - "ap-southeast-2"
  17719. - Asia Pacific (Sydney) Region
  17720. - "ap-northeast-1"
  17721. - Asia Pacific (Tokyo) Region
  17722. - "ap-northeast-2"
  17723. - Asia Pacific (Seoul) Region
  17724. - "ap-northeast-3"
  17725. - Asia Pacific (Osaka-Local) Region
  17726. - "ap-south-1"
  17727. - Asia Pacific (Mumbai) Region
  17728. - "ap-east-1"
  17729. - Asia Pacific (Hong Kong) Region
  17730. - "sa-east-1"
  17731. - South America (Sao Paulo) Region
  17732. - "me-south-1"
  17733. - Middle East (Bahrain) Region
  17734. - "af-south-1"
  17735. - Africa (Cape Town) Region
  17736. - "cn-north-1"
  17737. - China (Beijing) Region
  17738. - "cn-northwest-1"
  17739. - China (Ningxia) Region
  17740. - "us-gov-east-1"
  17741. - AWS GovCloud (US-East) Region
  17742. - "us-gov-west-1"
  17743. - AWS GovCloud (US) Region
  17744. --s3-acl
  17745. Canned ACL used when creating buckets and storing or copying objects.
  17746. This ACL is used for creating objects and if bucket_acl isn't set, for
  17747. creating buckets too.
  17748. For more info visit
  17749. https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
  17750. Note that this ACL is applied when server-side copying objects as S3
  17751. doesn't copy the ACL from the source but rather writes a fresh one.
  17752. If the acl is an empty string then no X-Amz-Acl: header is added and the
  17753. default (private) will be used.
  17754. Properties:
  17755. - Config: acl
  17756. - Env Var: RCLONE_S3_ACL
  17757. - Provider: !Storj,Synology,Cloudflare
  17758. - Type: string
  17759. - Required: false
  17760. - Examples:
  17761. - "default"
  17762. - Owner gets Full_CONTROL.
  17763. - No one else has access rights (default).
  17764. - "private"
  17765. - Owner gets FULL_CONTROL.
  17766. - No one else has access rights (default).
  17767. - "public-read"
  17768. - Owner gets FULL_CONTROL.
  17769. - The AllUsers group gets READ access.
  17770. - "public-read-write"
  17771. - Owner gets FULL_CONTROL.
  17772. - The AllUsers group gets READ and WRITE access.
  17773. - Granting this on a bucket is generally not recommended.
  17774. - "authenticated-read"
  17775. - Owner gets FULL_CONTROL.
  17776. - The AuthenticatedUsers group gets READ access.
  17777. - "bucket-owner-read"
  17778. - Object owner gets FULL_CONTROL.
  17779. - Bucket owner gets READ access.
  17780. - If you specify this canned ACL when creating a bucket,
  17781. Amazon S3 ignores it.
  17782. - "bucket-owner-full-control"
  17783. - Both the object owner and the bucket owner get FULL_CONTROL
  17784. over the object.
  17785. - If you specify this canned ACL when creating a bucket,
  17786. Amazon S3 ignores it.
  17787. - "private"
  17788. - Owner gets FULL_CONTROL.
  17789. - No one else has access rights (default).
  17790. - This acl is available on IBM Cloud (Infra), IBM Cloud
  17791. (Storage), On-Premise COS.
  17792. - "public-read"
  17793. - Owner gets FULL_CONTROL.
  17794. - The AllUsers group gets READ access.
  17795. - This acl is available on IBM Cloud (Infra), IBM Cloud
  17796. (Storage), On-Premise IBM COS.
  17797. - "public-read-write"
  17798. - Owner gets FULL_CONTROL.
  17799. - The AllUsers group gets READ and WRITE access.
  17800. - This acl is available on IBM Cloud (Infra), On-Premise IBM
  17801. COS.
  17802. - "authenticated-read"
  17803. - Owner gets FULL_CONTROL.
  17804. - The AuthenticatedUsers group gets READ access.
  17805. - Not supported on Buckets.
  17806. - This acl is available on IBM Cloud (Infra) and On-Premise
  17807. IBM COS.
  17808. --s3-server-side-encryption
  17809. The server-side encryption algorithm used when storing this object in
  17810. S3.
  17811. Properties:
  17812. - Config: server_side_encryption
  17813. - Env Var: RCLONE_S3_SERVER_SIDE_ENCRYPTION
  17814. - Provider: AWS,Ceph,ChinaMobile,Minio
  17815. - Type: string
  17816. - Required: false
  17817. - Examples:
  17818. - ""
  17819. - None
  17820. - "AES256"
  17821. - AES256
  17822. - "aws:kms"
  17823. - aws:kms
  17824. --s3-sse-kms-key-id
  17825. If using KMS ID you must provide the ARN of Key.
  17826. Properties:
  17827. - Config: sse_kms_key_id
  17828. - Env Var: RCLONE_S3_SSE_KMS_KEY_ID
  17829. - Provider: AWS,Ceph,Minio
  17830. - Type: string
  17831. - Required: false
  17832. - Examples:
  17833. - ""
  17834. - None
  17835. - "arn:aws:kms:us-east-1:*"
  17836. - arn:aws:kms:*
  17837. --s3-storage-class
  17838. The storage class to use when storing new objects in S3.
  17839. Properties:
  17840. - Config: storage_class
  17841. - Env Var: RCLONE_S3_STORAGE_CLASS
  17842. - Provider: AWS
  17843. - Type: string
  17844. - Required: false
  17845. - Examples:
  17846. - ""
  17847. - Default
  17848. - "STANDARD"
  17849. - Standard storage class
  17850. - "REDUCED_REDUNDANCY"
  17851. - Reduced redundancy storage class
  17852. - "STANDARD_IA"
  17853. - Standard Infrequent Access storage class
  17854. - "ONEZONE_IA"
  17855. - One Zone Infrequent Access storage class
  17856. - "GLACIER"
  17857. - Glacier storage class
  17858. - "DEEP_ARCHIVE"
  17859. - Glacier Deep Archive storage class
  17860. - "INTELLIGENT_TIERING"
  17861. - Intelligent-Tiering storage class
  17862. - "GLACIER_IR"
  17863. - Glacier Instant Retrieval storage class
  17864. Advanced options
  17865. Here are the Advanced options specific to s3 (Amazon S3 Compliant
  17866. Storage Providers including AWS, Alibaba, ArvanCloud, Ceph, ChinaMobile,
  17867. Cloudflare, DigitalOcean, Dreamhost, GCS, HuaweiOBS, IBMCOS, IDrive,
  17868. IONOS, LyveCloud, Leviia, Liara, Linode, Minio, Netease, Petabox,
  17869. RackCorp, Rclone, Scaleway, SeaweedFS, StackPath, Storj, Synology,
  17870. TencentCOS, Wasabi, Qiniu and others).
  17871. --s3-bucket-acl
  17872. Canned ACL used when creating buckets.
  17873. For more info visit
  17874. https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
  17875. Note that this ACL is applied when only when creating buckets. If it
  17876. isn't set then "acl" is used instead.
  17877. If the "acl" and "bucket_acl" are empty strings then no X-Amz-Acl:
  17878. header is added and the default (private) will be used.
  17879. Properties:
  17880. - Config: bucket_acl
  17881. - Env Var: RCLONE_S3_BUCKET_ACL
  17882. - Type: string
  17883. - Required: false
  17884. - Examples:
  17885. - "private"
  17886. - Owner gets FULL_CONTROL.
  17887. - No one else has access rights (default).
  17888. - "public-read"
  17889. - Owner gets FULL_CONTROL.
  17890. - The AllUsers group gets READ access.
  17891. - "public-read-write"
  17892. - Owner gets FULL_CONTROL.
  17893. - The AllUsers group gets READ and WRITE access.
  17894. - Granting this on a bucket is generally not recommended.
  17895. - "authenticated-read"
  17896. - Owner gets FULL_CONTROL.
  17897. - The AuthenticatedUsers group gets READ access.
  17898. --s3-requester-pays
  17899. Enables requester pays option when interacting with S3 bucket.
  17900. Properties:
  17901. - Config: requester_pays
  17902. - Env Var: RCLONE_S3_REQUESTER_PAYS
  17903. - Provider: AWS
  17904. - Type: bool
  17905. - Default: false
  17906. --s3-sse-customer-algorithm
  17907. If using SSE-C, the server-side encryption algorithm used when storing
  17908. this object in S3.
  17909. Properties:
  17910. - Config: sse_customer_algorithm
  17911. - Env Var: RCLONE_S3_SSE_CUSTOMER_ALGORITHM
  17912. - Provider: AWS,Ceph,ChinaMobile,Minio
  17913. - Type: string
  17914. - Required: false
  17915. - Examples:
  17916. - ""
  17917. - None
  17918. - "AES256"
  17919. - AES256
  17920. --s3-sse-customer-key
  17921. To use SSE-C you may provide the secret encryption key used to
  17922. encrypt/decrypt your data.
  17923. Alternatively you can provide --sse-customer-key-base64.
  17924. Properties:
  17925. - Config: sse_customer_key
  17926. - Env Var: RCLONE_S3_SSE_CUSTOMER_KEY
  17927. - Provider: AWS,Ceph,ChinaMobile,Minio
  17928. - Type: string
  17929. - Required: false
  17930. - Examples:
  17931. - ""
  17932. - None
  17933. --s3-sse-customer-key-base64
  17934. If using SSE-C you must provide the secret encryption key encoded in
  17935. base64 format to encrypt/decrypt your data.
  17936. Alternatively you can provide --sse-customer-key.
  17937. Properties:
  17938. - Config: sse_customer_key_base64
  17939. - Env Var: RCLONE_S3_SSE_CUSTOMER_KEY_BASE64
  17940. - Provider: AWS,Ceph,ChinaMobile,Minio
  17941. - Type: string
  17942. - Required: false
  17943. - Examples:
  17944. - ""
  17945. - None
  17946. --s3-sse-customer-key-md5
  17947. If using SSE-C you may provide the secret encryption key MD5 checksum
  17948. (optional).
  17949. If you leave it blank, this is calculated automatically from the
  17950. sse_customer_key provided.
  17951. Properties:
  17952. - Config: sse_customer_key_md5
  17953. - Env Var: RCLONE_S3_SSE_CUSTOMER_KEY_MD5
  17954. - Provider: AWS,Ceph,ChinaMobile,Minio
  17955. - Type: string
  17956. - Required: false
  17957. - Examples:
  17958. - ""
  17959. - None
  17960. --s3-upload-cutoff
  17961. Cutoff for switching to chunked upload.
  17962. Any files larger than this will be uploaded in chunks of chunk_size. The
  17963. minimum is 0 and the maximum is 5 GiB.
  17964. Properties:
  17965. - Config: upload_cutoff
  17966. - Env Var: RCLONE_S3_UPLOAD_CUTOFF
  17967. - Type: SizeSuffix
  17968. - Default: 200Mi
  17969. --s3-chunk-size
  17970. Chunk size to use for uploading.
  17971. When uploading files larger than upload_cutoff or files with unknown
  17972. size (e.g. from "rclone rcat" or uploaded with "rclone mount" or google
  17973. photos or google docs) they will be uploaded as multipart uploads using
  17974. this chunk size.
  17975. Note that "--s3-upload-concurrency" chunks of this size are buffered in
  17976. memory per transfer.
  17977. If you are transferring large files over high-speed links and you have
  17978. enough memory, then increasing this will speed up the transfers.
  17979. Rclone will automatically increase the chunk size when uploading a large
  17980. file of known size to stay below the 10,000 chunks limit.
  17981. Files of unknown size are uploaded with the configured chunk_size. Since
  17982. the default chunk size is 5 MiB and there can be at most 10,000 chunks,
  17983. this means that by default the maximum size of a file you can stream
  17984. upload is 48 GiB. If you wish to stream upload larger files then you
  17985. will need to increase chunk_size.
  17986. Increasing the chunk size decreases the accuracy of the progress
  17987. statistics displayed with "-P" flag. Rclone treats chunk as sent when
  17988. it's buffered by the AWS SDK, when in fact it may still be uploading. A
  17989. bigger chunk size means a bigger AWS SDK buffer and progress reporting
  17990. more deviating from the truth.
  17991. Properties:
  17992. - Config: chunk_size
  17993. - Env Var: RCLONE_S3_CHUNK_SIZE
  17994. - Type: SizeSuffix
  17995. - Default: 5Mi
  17996. --s3-max-upload-parts
  17997. Maximum number of parts in a multipart upload.
  17998. This option defines the maximum number of multipart chunks to use when
  17999. doing a multipart upload.
  18000. This can be useful if a service does not support the AWS S3
  18001. specification of 10,000 chunks.
  18002. Rclone will automatically increase the chunk size when uploading a large
  18003. file of a known size to stay below this number of chunks limit.
  18004. Properties:
  18005. - Config: max_upload_parts
  18006. - Env Var: RCLONE_S3_MAX_UPLOAD_PARTS
  18007. - Type: int
  18008. - Default: 10000
  18009. --s3-copy-cutoff
  18010. Cutoff for switching to multipart copy.
  18011. Any files larger than this that need to be server-side copied will be
  18012. copied in chunks of this size.
  18013. The minimum is 0 and the maximum is 5 GiB.
  18014. Properties:
  18015. - Config: copy_cutoff
  18016. - Env Var: RCLONE_S3_COPY_CUTOFF
  18017. - Type: SizeSuffix
  18018. - Default: 4.656Gi
  18019. --s3-disable-checksum
  18020. Don't store MD5 checksum with object metadata.
  18021. Normally rclone will calculate the MD5 checksum of the input before
  18022. uploading it so it can add it to metadata on the object. This is great
  18023. for data integrity checking but can cause long delays for large files to
  18024. start uploading.
  18025. Properties:
  18026. - Config: disable_checksum
  18027. - Env Var: RCLONE_S3_DISABLE_CHECKSUM
  18028. - Type: bool
  18029. - Default: false
  18030. --s3-shared-credentials-file
  18031. Path to the shared credentials file.
  18032. If env_auth = true then rclone can use a shared credentials file.
  18033. If this variable is empty rclone will look for the
  18034. "AWS_SHARED_CREDENTIALS_FILE" env variable. If the env value is empty it
  18035. will default to the current user's home directory.
  18036. Linux/OSX: "$HOME/.aws/credentials"
  18037. Windows: "%USERPROFILE%\.aws\credentials"
  18038. Properties:
  18039. - Config: shared_credentials_file
  18040. - Env Var: RCLONE_S3_SHARED_CREDENTIALS_FILE
  18041. - Type: string
  18042. - Required: false
  18043. --s3-profile
  18044. Profile to use in the shared credentials file.
  18045. If env_auth = true then rclone can use a shared credentials file. This
  18046. variable controls which profile is used in that file.
  18047. If empty it will default to the environment variable "AWS_PROFILE" or
  18048. "default" if that environment variable is also not set.
  18049. Properties:
  18050. - Config: profile
  18051. - Env Var: RCLONE_S3_PROFILE
  18052. - Type: string
  18053. - Required: false
  18054. --s3-session-token
  18055. An AWS session token.
  18056. Properties:
  18057. - Config: session_token
  18058. - Env Var: RCLONE_S3_SESSION_TOKEN
  18059. - Type: string
  18060. - Required: false
  18061. --s3-upload-concurrency
  18062. Concurrency for multipart uploads and copies.
  18063. This is the number of chunks of the same file that are uploaded
  18064. concurrently for multipart uploads and copies.
  18065. If you are uploading small numbers of large files over high-speed links
  18066. and these uploads do not fully utilize your bandwidth, then increasing
  18067. this may help to speed up the transfers.
  18068. Properties:
  18069. - Config: upload_concurrency
  18070. - Env Var: RCLONE_S3_UPLOAD_CONCURRENCY
  18071. - Type: int
  18072. - Default: 4
  18073. --s3-force-path-style
  18074. If true use path style access if false use virtual hosted style.
  18075. If this is true (the default) then rclone will use path style access, if
  18076. false then rclone will use virtual path style. See the AWS S3 docs for
  18077. more info.
  18078. Some providers (e.g. AWS, Aliyun OSS, Netease COS, or Tencent COS)
  18079. require this set to false - rclone will do this automatically based on
  18080. the provider setting.
  18081. Properties:
  18082. - Config: force_path_style
  18083. - Env Var: RCLONE_S3_FORCE_PATH_STYLE
  18084. - Type: bool
  18085. - Default: true
  18086. --s3-v2-auth
  18087. If true use v2 authentication.
  18088. If this is false (the default) then rclone will use v4 authentication.
  18089. If it is set then rclone will use v2 authentication.
  18090. Use this only if v4 signatures don't work, e.g. pre Jewel/v10 CEPH.
  18091. Properties:
  18092. - Config: v2_auth
  18093. - Env Var: RCLONE_S3_V2_AUTH
  18094. - Type: bool
  18095. - Default: false
  18096. --s3-use-dual-stack
  18097. If true use AWS S3 dual-stack endpoint (IPv6 support).
  18098. See AWS Docs on Dualstack Endpoints
  18099. Properties:
  18100. - Config: use_dual_stack
  18101. - Env Var: RCLONE_S3_USE_DUAL_STACK
  18102. - Type: bool
  18103. - Default: false
  18104. --s3-use-accelerate-endpoint
  18105. If true use the AWS S3 accelerated endpoint.
  18106. See: AWS S3 Transfer acceleration
  18107. Properties:
  18108. - Config: use_accelerate_endpoint
  18109. - Env Var: RCLONE_S3_USE_ACCELERATE_ENDPOINT
  18110. - Provider: AWS
  18111. - Type: bool
  18112. - Default: false
  18113. --s3-leave-parts-on-error
  18114. If true avoid calling abort upload on a failure, leaving all
  18115. successfully uploaded parts on S3 for manual recovery.
  18116. It should be set to true for resuming uploads across different sessions.
  18117. WARNING: Storing parts of an incomplete multipart upload counts towards
  18118. space usage on S3 and will add additional costs if not cleaned up.
  18119. Properties:
  18120. - Config: leave_parts_on_error
  18121. - Env Var: RCLONE_S3_LEAVE_PARTS_ON_ERROR
  18122. - Provider: AWS
  18123. - Type: bool
  18124. - Default: false
  18125. --s3-list-chunk
  18126. Size of listing chunk (response list for each ListObject S3 request).
  18127. This option is also known as "MaxKeys", "max-items", or "page-size" from
  18128. the AWS S3 specification. Most services truncate the response list to
  18129. 1000 objects even if requested more than that. In AWS S3 this is a
  18130. global maximum and cannot be changed, see AWS S3. In Ceph, this can be
  18131. increased with the "rgw list buckets max chunk" option.
  18132. Properties:
  18133. - Config: list_chunk
  18134. - Env Var: RCLONE_S3_LIST_CHUNK
  18135. - Type: int
  18136. - Default: 1000
  18137. --s3-list-version
  18138. Version of ListObjects to use: 1,2 or 0 for auto.
  18139. When S3 originally launched it only provided the ListObjects call to
  18140. enumerate objects in a bucket.
  18141. However in May 2016 the ListObjectsV2 call was introduced. This is much
  18142. higher performance and should be used if at all possible.
  18143. If set to the default, 0, rclone will guess according to the provider
  18144. set which list objects method to call. If it guesses wrong, then it may
  18145. be set manually here.
  18146. Properties:
  18147. - Config: list_version
  18148. - Env Var: RCLONE_S3_LIST_VERSION
  18149. - Type: int
  18150. - Default: 0
  18151. --s3-list-url-encode
  18152. Whether to url encode listings: true/false/unset
  18153. Some providers support URL encoding listings and where this is available
  18154. this is more reliable when using control characters in file names. If
  18155. this is set to unset (the default) then rclone will choose according to
  18156. the provider setting what to apply, but you can override rclone's choice
  18157. here.
  18158. Properties:
  18159. - Config: list_url_encode
  18160. - Env Var: RCLONE_S3_LIST_URL_ENCODE
  18161. - Type: Tristate
  18162. - Default: unset
  18163. --s3-no-check-bucket
  18164. If set, don't attempt to check the bucket exists or create it.
  18165. This can be useful when trying to minimise the number of transactions
  18166. rclone does if you know the bucket exists already.
  18167. It can also be needed if the user you are using does not have bucket
  18168. creation permissions. Before v1.52.0 this would have passed silently due
  18169. to a bug.
  18170. Properties:
  18171. - Config: no_check_bucket
  18172. - Env Var: RCLONE_S3_NO_CHECK_BUCKET
  18173. - Type: bool
  18174. - Default: false
  18175. --s3-no-head
  18176. If set, don't HEAD uploaded objects to check integrity.
  18177. This can be useful when trying to minimise the number of transactions
  18178. rclone does.
  18179. Setting it means that if rclone receives a 200 OK message after
  18180. uploading an object with PUT then it will assume that it got uploaded
  18181. properly.
  18182. In particular it will assume:
  18183. - the metadata, including modtime, storage class and content type was
  18184. as uploaded
  18185. - the size was as uploaded
  18186. It reads the following items from the response for a single part PUT:
  18187. - the MD5SUM
  18188. - The uploaded date
  18189. For multipart uploads these items aren't read.
  18190. If an source object of unknown length is uploaded then rclone will do a
  18191. HEAD request.
  18192. Setting this flag increases the chance for undetected upload failures,
  18193. in particular an incorrect size, so it isn't recommended for normal
  18194. operation. In practice the chance of an undetected upload failure is
  18195. very small even with this flag.
  18196. Properties:
  18197. - Config: no_head
  18198. - Env Var: RCLONE_S3_NO_HEAD
  18199. - Type: bool
  18200. - Default: false
  18201. --s3-no-head-object
  18202. If set, do not do HEAD before GET when getting objects.
  18203. Properties:
  18204. - Config: no_head_object
  18205. - Env Var: RCLONE_S3_NO_HEAD_OBJECT
  18206. - Type: bool
  18207. - Default: false
  18208. --s3-encoding
  18209. The encoding for the backend.
  18210. See the encoding section in the overview for more info.
  18211. Properties:
  18212. - Config: encoding
  18213. - Env Var: RCLONE_S3_ENCODING
  18214. - Type: Encoding
  18215. - Default: Slash,InvalidUtf8,Dot
  18216. --s3-memory-pool-flush-time
  18217. How often internal memory buffer pools will be flushed. (no longer used)
  18218. Properties:
  18219. - Config: memory_pool_flush_time
  18220. - Env Var: RCLONE_S3_MEMORY_POOL_FLUSH_TIME
  18221. - Type: Duration
  18222. - Default: 1m0s
  18223. --s3-memory-pool-use-mmap
  18224. Whether to use mmap buffers in internal memory pool. (no longer used)
  18225. Properties:
  18226. - Config: memory_pool_use_mmap
  18227. - Env Var: RCLONE_S3_MEMORY_POOL_USE_MMAP
  18228. - Type: bool
  18229. - Default: false
  18230. --s3-disable-http2
  18231. Disable usage of http2 for S3 backends.
  18232. There is currently an unsolved issue with the s3 (specifically minio)
  18233. backend and HTTP/2. HTTP/2 is enabled by default for the s3 backend but
  18234. can be disabled here. When the issue is solved this flag will be
  18235. removed.
  18236. See: https://github.com/rclone/rclone/issues/4673,
  18237. https://github.com/rclone/rclone/issues/3631
  18238. Properties:
  18239. - Config: disable_http2
  18240. - Env Var: RCLONE_S3_DISABLE_HTTP2
  18241. - Type: bool
  18242. - Default: false
  18243. --s3-download-url
  18244. Custom endpoint for downloads. This is usually set to a CloudFront CDN
  18245. URL as AWS S3 offers cheaper egress for data downloaded through the
  18246. CloudFront network.
  18247. Properties:
  18248. - Config: download_url
  18249. - Env Var: RCLONE_S3_DOWNLOAD_URL
  18250. - Type: string
  18251. - Required: false
  18252. --s3-directory-markers
  18253. Upload an empty object with a trailing slash when a new directory is
  18254. created
  18255. Empty folders are unsupported for bucket based remotes, this option
  18256. creates an empty object ending with "/", to persist the folder.
  18257. Properties:
  18258. - Config: directory_markers
  18259. - Env Var: RCLONE_S3_DIRECTORY_MARKERS
  18260. - Type: bool
  18261. - Default: false
  18262. --s3-use-multipart-etag
  18263. Whether to use ETag in multipart uploads for verification
  18264. This should be true, false or left unset to use the default for the
  18265. provider.
  18266. Properties:
  18267. - Config: use_multipart_etag
  18268. - Env Var: RCLONE_S3_USE_MULTIPART_ETAG
  18269. - Type: Tristate
  18270. - Default: unset
  18271. --s3-use-presigned-request
  18272. Whether to use a presigned request or PutObject for single part uploads
  18273. If this is false rclone will use PutObject from the AWS SDK to upload an
  18274. object.
  18275. Versions of rclone < 1.59 use presigned requests to upload a single part
  18276. object and setting this flag to true will re-enable that functionality.
  18277. This shouldn't be necessary except in exceptional circumstances or for
  18278. testing.
  18279. Properties:
  18280. - Config: use_presigned_request
  18281. - Env Var: RCLONE_S3_USE_PRESIGNED_REQUEST
  18282. - Type: bool
  18283. - Default: false
  18284. --s3-versions
  18285. Include old versions in directory listings.
  18286. Properties:
  18287. - Config: versions
  18288. - Env Var: RCLONE_S3_VERSIONS
  18289. - Type: bool
  18290. - Default: false
  18291. --s3-version-at
  18292. Show file versions as they were at the specified time.
  18293. The parameter should be a date, "2006-01-02", datetime "2006-01-02
  18294. 15:04:05" or a duration for that long ago, eg "100d" or "1h".
  18295. Note that when using this no file write operations are permitted, so you
  18296. can't upload files or delete them.
  18297. See the time option docs for valid formats.
  18298. Properties:
  18299. - Config: version_at
  18300. - Env Var: RCLONE_S3_VERSION_AT
  18301. - Type: Time
  18302. - Default: off
  18303. --s3-version-deleted
  18304. Show deleted file markers when using versions.
  18305. This shows deleted file markers in the listing when using versions.
  18306. These will appear as 0 size files. The only operation which can be
  18307. performed on them is deletion.
  18308. Deleting a delete marker will reveal the previous version.
  18309. Deleted files will always show with a timestamp.
  18310. Properties:
  18311. - Config: version_deleted
  18312. - Env Var: RCLONE_S3_VERSION_DELETED
  18313. - Type: bool
  18314. - Default: false
  18315. --s3-decompress
  18316. If set this will decompress gzip encoded objects.
  18317. It is possible to upload objects to S3 with "Content-Encoding: gzip"
  18318. set. Normally rclone will download these files as compressed objects.
  18319. If this flag is set then rclone will decompress these files with
  18320. "Content-Encoding: gzip" as they are received. This means that rclone
  18321. can't check the size and hash but the file contents will be
  18322. decompressed.
  18323. Properties:
  18324. - Config: decompress
  18325. - Env Var: RCLONE_S3_DECOMPRESS
  18326. - Type: bool
  18327. - Default: false
  18328. --s3-might-gzip
  18329. Set this if the backend might gzip objects.
  18330. Normally providers will not alter objects when they are downloaded. If
  18331. an object was not uploaded with Content-Encoding: gzip then it won't be
  18332. set on download.
  18333. However some providers may gzip objects even if they weren't uploaded
  18334. with Content-Encoding: gzip (eg Cloudflare).
  18335. A symptom of this would be receiving errors like
  18336. ERROR corrupted on transfer: sizes differ NNN vs MMM
  18337. If you set this flag and rclone downloads an object with
  18338. Content-Encoding: gzip set and chunked transfer encoding, then rclone
  18339. will decompress the object on the fly.
  18340. If this is set to unset (the default) then rclone will choose according
  18341. to the provider setting what to apply, but you can override rclone's
  18342. choice here.
  18343. Properties:
  18344. - Config: might_gzip
  18345. - Env Var: RCLONE_S3_MIGHT_GZIP
  18346. - Type: Tristate
  18347. - Default: unset
  18348. --s3-use-accept-encoding-gzip
  18349. Whether to send Accept-Encoding: gzip header.
  18350. By default, rclone will append Accept-Encoding: gzip to the request to
  18351. download compressed objects whenever possible.
  18352. However some providers such as Google Cloud Storage may alter the HTTP
  18353. headers, breaking the signature of the request.
  18354. A symptom of this would be receiving errors like
  18355. SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided.
  18356. In this case, you might want to try disabling this option.
  18357. Properties:
  18358. - Config: use_accept_encoding_gzip
  18359. - Env Var: RCLONE_S3_USE_ACCEPT_ENCODING_GZIP
  18360. - Type: Tristate
  18361. - Default: unset
  18362. --s3-no-system-metadata
  18363. Suppress setting and reading of system metadata
  18364. Properties:
  18365. - Config: no_system_metadata
  18366. - Env Var: RCLONE_S3_NO_SYSTEM_METADATA
  18367. - Type: bool
  18368. - Default: false
  18369. --s3-sts-endpoint
  18370. Endpoint for STS.
  18371. Leave blank if using AWS to use the default endpoint for the region.
  18372. Properties:
  18373. - Config: sts_endpoint
  18374. - Env Var: RCLONE_S3_STS_ENDPOINT
  18375. - Provider: AWS
  18376. - Type: string
  18377. - Required: false
  18378. --s3-use-already-exists
  18379. Set if rclone should report BucketAlreadyExists errors on bucket
  18380. creation.
  18381. At some point during the evolution of the s3 protocol, AWS started
  18382. returning an AlreadyOwnedByYou error when attempting to create a bucket
  18383. that the user already owned, rather than a BucketAlreadyExists error.
  18384. Unfortunately exactly what has been implemented by s3 clones is a little
  18385. inconsistent, some return AlreadyOwnedByYou, some return
  18386. BucketAlreadyExists and some return no error at all.
  18387. This is important to rclone because it ensures the bucket exists by
  18388. creating it on quite a lot of operations (unless --s3-no-check-bucket is
  18389. used).
  18390. If rclone knows the provider can return AlreadyOwnedByYou or returns no
  18391. error then it can report BucketAlreadyExists errors when the user
  18392. attempts to create a bucket not owned by them. Otherwise rclone ignores
  18393. the BucketAlreadyExists error which can lead to confusion.
  18394. This should be automatically set correctly for all providers rclone
  18395. knows about - please make a bug report if not.
  18396. Properties:
  18397. - Config: use_already_exists
  18398. - Env Var: RCLONE_S3_USE_ALREADY_EXISTS
  18399. - Type: Tristate
  18400. - Default: unset
  18401. --s3-use-multipart-uploads
  18402. Set if rclone should use multipart uploads.
  18403. You can change this if you want to disable the use of multipart uploads.
  18404. This shouldn't be necessary in normal operation.
  18405. This should be automatically set correctly for all providers rclone
  18406. knows about - please make a bug report if not.
  18407. Properties:
  18408. - Config: use_multipart_uploads
  18409. - Env Var: RCLONE_S3_USE_MULTIPART_UPLOADS
  18410. - Type: Tristate
  18411. - Default: unset
  18412. --s3-description
  18413. Description of the remote
  18414. Properties:
  18415. - Config: description
  18416. - Env Var: RCLONE_S3_DESCRIPTION
  18417. - Type: string
  18418. - Required: false
  18419. Metadata
  18420. User metadata is stored as x-amz-meta- keys. S3 metadata keys are case
  18421. insensitive and are always returned in lower case.
  18422. Here are the possible system metadata items for the s3 backend.
  18423. ------------------------------------------------------------------------------------------------------------------
  18424. Name Help Type Example Read Only
  18425. --------------------- --------------------- ----------- ------------------------------------- --------------------
  18426. btime Time of file birth RFC 3339 2006-01-02T15:04:05.999999999Z07:00 Y
  18427. (creation) read from
  18428. Last-Modified header
  18429. cache-control Cache-Control header string no-cache N
  18430. content-disposition Content-Disposition string inline N
  18431. header
  18432. content-encoding Content-Encoding string gzip N
  18433. header
  18434. content-language Content-Language string en-US N
  18435. header
  18436. content-type Content-Type header string text/plain N
  18437. mtime Time of last RFC 3339 2006-01-02T15:04:05.999999999Z07:00 N
  18438. modification, read
  18439. from rclone metadata
  18440. tier Tier of the object string GLACIER Y
  18441. ------------------------------------------------------------------------------------------------------------------
  18442. See the metadata docs for more info.
  18443. Backend commands
  18444. Here are the commands specific to the s3 backend.
  18445. Run them with
  18446. rclone backend COMMAND remote:
  18447. The help below will explain what arguments each command takes.
  18448. See the backend command for more info on how to pass options and
  18449. arguments.
  18450. These can be run on a running backend using the rc command
  18451. backend/command.
  18452. restore
  18453. Restore objects from GLACIER to normal storage
  18454. rclone backend restore remote: [options] [<arguments>+]
  18455. This command can be used to restore one or more objects from GLACIER to
  18456. normal storage.
  18457. Usage Examples:
  18458. rclone backend restore s3:bucket/path/to/object -o priority=PRIORITY -o lifetime=DAYS
  18459. rclone backend restore s3:bucket/path/to/directory -o priority=PRIORITY -o lifetime=DAYS
  18460. rclone backend restore s3:bucket -o priority=PRIORITY -o lifetime=DAYS
  18461. This flag also obeys the filters. Test first with --interactive/-i or
  18462. --dry-run flags
  18463. rclone --interactive backend restore --include "*.txt" s3:bucket/path -o priority=Standard -o lifetime=1
  18464. All the objects shown will be marked for restore, then
  18465. rclone backend restore --include "*.txt" s3:bucket/path -o priority=Standard -o lifetime=1
  18466. It returns a list of status dictionaries with Remote and Status keys.
  18467. The Status will be OK if it was successful or an error message if not.
  18468. [
  18469. {
  18470. "Status": "OK",
  18471. "Remote": "test.txt"
  18472. },
  18473. {
  18474. "Status": "OK",
  18475. "Remote": "test/file4.txt"
  18476. }
  18477. ]
  18478. Options:
  18479. - "description": The optional description for the job.
  18480. - "lifetime": Lifetime of the active copy in days
  18481. - "priority": Priority of restore: Standard|Expedited|Bulk
  18482. restore-status
  18483. Show the restore status for objects being restored from GLACIER to
  18484. normal storage
  18485. rclone backend restore-status remote: [options] [<arguments>+]
  18486. This command can be used to show the status for objects being restored
  18487. from GLACIER to normal storage.
  18488. Usage Examples:
  18489. rclone backend restore-status s3:bucket/path/to/object
  18490. rclone backend restore-status s3:bucket/path/to/directory
  18491. rclone backend restore-status -o all s3:bucket/path/to/directory
  18492. This command does not obey the filters.
  18493. It returns a list of status dictionaries.
  18494. [
  18495. {
  18496. "Remote": "file.txt",
  18497. "VersionID": null,
  18498. "RestoreStatus": {
  18499. "IsRestoreInProgress": true,
  18500. "RestoreExpiryDate": "2023-09-06T12:29:19+01:00"
  18501. },
  18502. "StorageClass": "GLACIER"
  18503. },
  18504. {
  18505. "Remote": "test.pdf",
  18506. "VersionID": null,
  18507. "RestoreStatus": {
  18508. "IsRestoreInProgress": false,
  18509. "RestoreExpiryDate": "2023-09-06T12:29:19+01:00"
  18510. },
  18511. "StorageClass": "DEEP_ARCHIVE"
  18512. }
  18513. ]
  18514. Options:
  18515. - "all": if set then show all objects, not just ones with restore
  18516. status
  18517. list-multipart-uploads
  18518. List the unfinished multipart uploads
  18519. rclone backend list-multipart-uploads remote: [options] [<arguments>+]
  18520. This command lists the unfinished multipart uploads in JSON format.
  18521. rclone backend list-multipart s3:bucket/path/to/object
  18522. It returns a dictionary of buckets with values as lists of unfinished
  18523. multipart uploads.
  18524. You can call it with no bucket in which case it lists all bucket, with a
  18525. bucket or with a bucket and path.
  18526. {
  18527. "rclone": [
  18528. {
  18529. "Initiated": "2020-06-26T14:20:36Z",
  18530. "Initiator": {
  18531. "DisplayName": "XXX",
  18532. "ID": "arn:aws:iam::XXX:user/XXX"
  18533. },
  18534. "Key": "KEY",
  18535. "Owner": {
  18536. "DisplayName": null,
  18537. "ID": "XXX"
  18538. },
  18539. "StorageClass": "STANDARD",
  18540. "UploadId": "XXX"
  18541. }
  18542. ],
  18543. "rclone-1000files": [],
  18544. "rclone-dst": []
  18545. }
  18546. cleanup
  18547. Remove unfinished multipart uploads.
  18548. rclone backend cleanup remote: [options] [<arguments>+]
  18549. This command removes unfinished multipart uploads of age greater than
  18550. max-age which defaults to 24 hours.
  18551. Note that you can use --interactive/-i or --dry-run with this command to
  18552. see what it would do.
  18553. rclone backend cleanup s3:bucket/path/to/object
  18554. rclone backend cleanup -o max-age=7w s3:bucket/path/to/object
  18555. Durations are parsed as per the rest of rclone, 2h, 7d, 7w etc.
  18556. Options:
  18557. - "max-age": Max age of upload to delete
  18558. cleanup-hidden
  18559. Remove old versions of files.
  18560. rclone backend cleanup-hidden remote: [options] [<arguments>+]
  18561. This command removes any old hidden versions of files on a versions
  18562. enabled bucket.
  18563. Note that you can use --interactive/-i or --dry-run with this command to
  18564. see what it would do.
  18565. rclone backend cleanup-hidden s3:bucket/path/to/dir
  18566. versioning
  18567. Set/get versioning support for a bucket.
  18568. rclone backend versioning remote: [options] [<arguments>+]
  18569. This command sets versioning support if a parameter is passed and then
  18570. returns the current versioning status for the bucket supplied.
  18571. rclone backend versioning s3:bucket # read status only
  18572. rclone backend versioning s3:bucket Enabled
  18573. rclone backend versioning s3:bucket Suspended
  18574. It may return "Enabled", "Suspended" or "Unversioned". Note that once
  18575. versioning has been enabled the status can't be set back to
  18576. "Unversioned".
  18577. set
  18578. Set command for updating the config parameters.
  18579. rclone backend set remote: [options] [<arguments>+]
  18580. This set command can be used to update the config parameters for a
  18581. running s3 backend.
  18582. Usage Examples:
  18583. rclone backend set s3: [-o opt_name=opt_value] [-o opt_name2=opt_value2]
  18584. rclone rc backend/command command=set fs=s3: [-o opt_name=opt_value] [-o opt_name2=opt_value2]
  18585. rclone rc backend/command command=set fs=s3: -o session_token=X -o access_key_id=X -o secret_access_key=X
  18586. The option keys are named as they are in the config file.
  18587. This rebuilds the connection to the s3 backend when it is called with
  18588. the new parameters. Only new parameters need be passed as the values
  18589. will default to those currently in use.
  18590. It doesn't return anything.
  18591. Anonymous access to public buckets
  18592. If you want to use rclone to access a public bucket, configure with a
  18593. blank access_key_id and secret_access_key. Your config should end up
  18594. looking like this:
  18595. [anons3]
  18596. type = s3
  18597. provider = AWS
  18598. env_auth = false
  18599. access_key_id =
  18600. secret_access_key =
  18601. region = us-east-1
  18602. endpoint =
  18603. location_constraint =
  18604. acl = private
  18605. server_side_encryption =
  18606. storage_class =
  18607. Then use it as normal with the name of the public bucket, e.g.
  18608. rclone lsd anons3:1000genomes
  18609. You will be able to list and copy data but not upload it.
  18610. Providers
  18611. AWS S3
  18612. This is the provider used as main example and described in the
  18613. configuration section above.
  18614. AWS Snowball Edge
  18615. AWS Snowball is a hardware appliance used for transferring bulk data
  18616. back to AWS. Its main software interface is S3 object storage.
  18617. To use rclone with AWS Snowball Edge devices, configure as standard for
  18618. an 'S3 Compatible Service'.
  18619. If using rclone pre v1.59 be sure to set upload_cutoff = 0 otherwise you
  18620. will run into authentication header issues as the snowball device does
  18621. not support query parameter based authentication.
  18622. With rclone v1.59 or later setting upload_cutoff should not be
  18623. necessary.
  18624. eg.
  18625. [snowball]
  18626. type = s3
  18627. provider = Other
  18628. access_key_id = YOUR_ACCESS_KEY
  18629. secret_access_key = YOUR_SECRET_KEY
  18630. endpoint = http://[IP of Snowball]:8080
  18631. upload_cutoff = 0
  18632. Ceph
  18633. Ceph is an open-source, unified, distributed storage system designed for
  18634. excellent performance, reliability and scalability. It has an S3
  18635. compatible object storage interface.
  18636. To use rclone with Ceph, configure as above but leave the region blank
  18637. and set the endpoint. You should end up with something like this in your
  18638. config:
  18639. [ceph]
  18640. type = s3
  18641. provider = Ceph
  18642. env_auth = false
  18643. access_key_id = XXX
  18644. secret_access_key = YYY
  18645. region =
  18646. endpoint = https://ceph.endpoint.example.com
  18647. location_constraint =
  18648. acl =
  18649. server_side_encryption =
  18650. storage_class =
  18651. If you are using an older version of CEPH (e.g. 10.2.x Jewel) and a
  18652. version of rclone before v1.59 then you may need to supply the parameter
  18653. --s3-upload-cutoff 0 or put this in the config file as upload_cutoff 0
  18654. to work around a bug which causes uploading of small files to fail.
  18655. Note also that Ceph sometimes puts / in the passwords it gives users. If
  18656. you read the secret access key using the command line tools you will get
  18657. a JSON blob with the / escaped as \/. Make sure you only write / in the
  18658. secret access key.
  18659. Eg the dump from Ceph looks something like this (irrelevant keys
  18660. removed).
  18661. {
  18662. "user_id": "xxx",
  18663. "display_name": "xxxx",
  18664. "keys": [
  18665. {
  18666. "user": "xxx",
  18667. "access_key": "xxxxxx",
  18668. "secret_key": "xxxxxx\/xxxx"
  18669. }
  18670. ],
  18671. }
  18672. Because this is a json dump, it is encoding the / as \/, so if you use
  18673. the secret key as xxxxxx/xxxx it will work fine.
  18674. Cloudflare R2
  18675. Cloudflare R2 Storage allows developers to store large amounts of
  18676. unstructured data without the costly egress bandwidth fees associated
  18677. with typical cloud storage services.
  18678. Here is an example of making a Cloudflare R2 configuration. First run:
  18679. rclone config
  18680. This will guide you through an interactive setup process.
  18681. Note that all buckets are private, and all are stored in the same "auto"
  18682. region. It is necessary to use Cloudflare workers to share the content
  18683. of a bucket publicly.
  18684. No remotes found, make a new one?
  18685. n) New remote
  18686. s) Set configuration password
  18687. q) Quit config
  18688. n/s/q> n
  18689. name> r2
  18690. Option Storage.
  18691. Type of storage to configure.
  18692. Choose a number from below, or type in your own value.
  18693. ...
  18694. XX / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, China Mobile, Cloudflare, ArvanCloud, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, Lyve Cloud, Minio, Netease, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Synology, Tencent COS and Wasabi
  18695. \ (s3)
  18696. ...
  18697. Storage> s3
  18698. Option provider.
  18699. Choose your S3 provider.
  18700. Choose a number from below, or type in your own value.
  18701. Press Enter to leave empty.
  18702. ...
  18703. XX / Cloudflare R2 Storage
  18704. \ (Cloudflare)
  18705. ...
  18706. provider> Cloudflare
  18707. Option env_auth.
  18708. Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
  18709. Only applies if access_key_id and secret_access_key is blank.
  18710. Choose a number from below, or type in your own boolean value (true or false).
  18711. Press Enter for the default (false).
  18712. 1 / Enter AWS credentials in the next step.
  18713. \ (false)
  18714. 2 / Get AWS credentials from the environment (env vars or IAM).
  18715. \ (true)
  18716. env_auth> 1
  18717. Option access_key_id.
  18718. AWS Access Key ID.
  18719. Leave blank for anonymous access or runtime credentials.
  18720. Enter a value. Press Enter to leave empty.
  18721. access_key_id> ACCESS_KEY
  18722. Option secret_access_key.
  18723. AWS Secret Access Key (password).
  18724. Leave blank for anonymous access or runtime credentials.
  18725. Enter a value. Press Enter to leave empty.
  18726. secret_access_key> SECRET_ACCESS_KEY
  18727. Option region.
  18728. Region to connect to.
  18729. Choose a number from below, or type in your own value.
  18730. Press Enter to leave empty.
  18731. 1 / R2 buckets are automatically distributed across Cloudflare's data centers for low latency.
  18732. \ (auto)
  18733. region> 1
  18734. Option endpoint.
  18735. Endpoint for S3 API.
  18736. Required when using an S3 clone.
  18737. Enter a value. Press Enter to leave empty.
  18738. endpoint> https://ACCOUNT_ID.r2.cloudflarestorage.com
  18739. Edit advanced config?
  18740. y) Yes
  18741. n) No (default)
  18742. y/n> n
  18743. --------------------
  18744. y) Yes this is OK (default)
  18745. e) Edit this remote
  18746. d) Delete this remote
  18747. y/e/d> y
  18748. This will leave your config looking something like:
  18749. [r2]
  18750. type = s3
  18751. provider = Cloudflare
  18752. access_key_id = ACCESS_KEY
  18753. secret_access_key = SECRET_ACCESS_KEY
  18754. region = auto
  18755. endpoint = https://ACCOUNT_ID.r2.cloudflarestorage.com
  18756. acl = private
  18757. Now run rclone lsf r2: to see your buckets and rclone lsf r2:bucket to
  18758. look within a bucket.
  18759. Dreamhost
  18760. Dreamhost DreamObjects is an object storage system based on CEPH.
  18761. To use rclone with Dreamhost, configure as above but leave the region
  18762. blank and set the endpoint. You should end up with something like this
  18763. in your config:
  18764. [dreamobjects]
  18765. type = s3
  18766. provider = DreamHost
  18767. env_auth = false
  18768. access_key_id = your_access_key
  18769. secret_access_key = your_secret_key
  18770. region =
  18771. endpoint = objects-us-west-1.dream.io
  18772. location_constraint =
  18773. acl = private
  18774. server_side_encryption =
  18775. storage_class =
  18776. Google Cloud Storage
  18777. GoogleCloudStorage is an S3-interoperable object storage service from
  18778. Google Cloud Platform.
  18779. To connect to Google Cloud Storage you will need an access key and
  18780. secret key. These can be retrieved by creating an HMAC key.
  18781. [gs]
  18782. type = s3
  18783. provider = GCS
  18784. access_key_id = your_access_key
  18785. secret_access_key = your_secret_key
  18786. endpoint = https://storage.googleapis.com
  18787. Note that --s3-versions does not work with GCS when it needs to do
  18788. directory paging. Rclone will return the error:
  18789. s3 protocol error: received versions listing with IsTruncated set with no NextKeyMarker
  18790. This is Google bug #312292516.
  18791. DigitalOcean Spaces
  18792. Spaces is an S3-interoperable object storage service from cloud provider
  18793. DigitalOcean.
  18794. To connect to DigitalOcean Spaces you will need an access key and secret
  18795. key. These can be retrieved on the "Applications & API" page of the
  18796. DigitalOcean control panel. They will be needed when prompted by
  18797. rclone config for your access_key_id and secret_access_key.
  18798. When prompted for a region or location_constraint, press enter to use
  18799. the default value. The region must be included in the endpoint setting
  18800. (e.g. nyc3.digitaloceanspaces.com). The default values can be used for
  18801. other settings.
  18802. Going through the whole process of creating a new remote by running
  18803. rclone config, each prompt should be answered as shown below:
  18804. Storage> s3
  18805. env_auth> 1
  18806. access_key_id> YOUR_ACCESS_KEY
  18807. secret_access_key> YOUR_SECRET_KEY
  18808. region>
  18809. endpoint> nyc3.digitaloceanspaces.com
  18810. location_constraint>
  18811. acl>
  18812. storage_class>
  18813. The resulting configuration file should look like:
  18814. [spaces]
  18815. type = s3
  18816. provider = DigitalOcean
  18817. env_auth = false
  18818. access_key_id = YOUR_ACCESS_KEY
  18819. secret_access_key = YOUR_SECRET_KEY
  18820. region =
  18821. endpoint = nyc3.digitaloceanspaces.com
  18822. location_constraint =
  18823. acl =
  18824. server_side_encryption =
  18825. storage_class =
  18826. Once configured, you can create a new Space and begin copying files. For
  18827. example:
  18828. rclone mkdir spaces:my-new-space
  18829. rclone copy /path/to/files spaces:my-new-space
  18830. Huawei OBS
  18831. Object Storage Service (OBS) provides stable, secure, efficient, and
  18832. easy-to-use cloud storage that lets you store virtually any volume of
  18833. unstructured data in any format and access it from anywhere.
  18834. OBS provides an S3 interface, you can copy and modify the following
  18835. configuration and add it to your rclone configuration file.
  18836. [obs]
  18837. type = s3
  18838. provider = HuaweiOBS
  18839. access_key_id = your-access-key-id
  18840. secret_access_key = your-secret-access-key
  18841. region = af-south-1
  18842. endpoint = obs.af-south-1.myhuaweicloud.com
  18843. acl = private
  18844. Or you can also configure via the interactive command line:
  18845. No remotes found, make a new one?
  18846. n) New remote
  18847. s) Set configuration password
  18848. q) Quit config
  18849. n/s/q> n
  18850. name> obs
  18851. Option Storage.
  18852. Type of storage to configure.
  18853. Choose a number from below, or type in your own value.
  18854. [snip]
  18855. XX / Amazon S3 Compliant Storage Providers including AWS, ...
  18856. \ (s3)
  18857. [snip]
  18858. Storage> s3
  18859. Option provider.
  18860. Choose your S3 provider.
  18861. Choose a number from below, or type in your own value.
  18862. Press Enter to leave empty.
  18863. [snip]
  18864. 9 / Huawei Object Storage Service
  18865. \ (HuaweiOBS)
  18866. [snip]
  18867. provider> 9
  18868. Option env_auth.
  18869. Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
  18870. Only applies if access_key_id and secret_access_key is blank.
  18871. Choose a number from below, or type in your own boolean value (true or false).
  18872. Press Enter for the default (false).
  18873. 1 / Enter AWS credentials in the next step.
  18874. \ (false)
  18875. 2 / Get AWS credentials from the environment (env vars or IAM).
  18876. \ (true)
  18877. env_auth> 1
  18878. Option access_key_id.
  18879. AWS Access Key ID.
  18880. Leave blank for anonymous access or runtime credentials.
  18881. Enter a value. Press Enter to leave empty.
  18882. access_key_id> your-access-key-id
  18883. Option secret_access_key.
  18884. AWS Secret Access Key (password).
  18885. Leave blank for anonymous access or runtime credentials.
  18886. Enter a value. Press Enter to leave empty.
  18887. secret_access_key> your-secret-access-key
  18888. Option region.
  18889. Region to connect to.
  18890. Choose a number from below, or type in your own value.
  18891. Press Enter to leave empty.
  18892. 1 / AF-Johannesburg
  18893. \ (af-south-1)
  18894. 2 / AP-Bangkok
  18895. \ (ap-southeast-2)
  18896. [snip]
  18897. region> 1
  18898. Option endpoint.
  18899. Endpoint for OBS API.
  18900. Choose a number from below, or type in your own value.
  18901. Press Enter to leave empty.
  18902. 1 / AF-Johannesburg
  18903. \ (obs.af-south-1.myhuaweicloud.com)
  18904. 2 / AP-Bangkok
  18905. \ (obs.ap-southeast-2.myhuaweicloud.com)
  18906. [snip]
  18907. endpoint> 1
  18908. Option acl.
  18909. Canned ACL used when creating buckets and storing or copying objects.
  18910. This ACL is used for creating objects and if bucket_acl isn't set, for creating buckets too.
  18911. For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
  18912. Note that this ACL is applied when server-side copying objects as S3
  18913. doesn't copy the ACL from the source but rather writes a fresh one.
  18914. Choose a number from below, or type in your own value.
  18915. Press Enter to leave empty.
  18916. / Owner gets FULL_CONTROL.
  18917. 1 | No one else has access rights (default).
  18918. \ (private)
  18919. [snip]
  18920. acl> 1
  18921. Edit advanced config?
  18922. y) Yes
  18923. n) No (default)
  18924. y/n>
  18925. --------------------
  18926. [obs]
  18927. type = s3
  18928. provider = HuaweiOBS
  18929. access_key_id = your-access-key-id
  18930. secret_access_key = your-secret-access-key
  18931. region = af-south-1
  18932. endpoint = obs.af-south-1.myhuaweicloud.com
  18933. acl = private
  18934. --------------------
  18935. y) Yes this is OK (default)
  18936. e) Edit this remote
  18937. d) Delete this remote
  18938. y/e/d> y
  18939. Current remotes:
  18940. Name Type
  18941. ==== ====
  18942. obs s3
  18943. e) Edit existing remote
  18944. n) New remote
  18945. d) Delete remote
  18946. r) Rename remote
  18947. c) Copy remote
  18948. s) Set configuration password
  18949. q) Quit config
  18950. e/n/d/r/c/s/q> q
  18951. IBM COS (S3)
  18952. Information stored with IBM Cloud Object Storage is encrypted and
  18953. dispersed across multiple geographic locations, and accessed through an
  18954. implementation of the S3 API. This service makes use of the distributed
  18955. storage technologies provided by IBM’s Cloud Object Storage System
  18956. (formerly Cleversafe). For more information visit:
  18957. (http://www.ibm.com/cloud/object-storage)
  18958. To configure access to IBM COS S3, follow the steps below:
  18959. 1. Run rclone config and select n for a new remote.
  18960. 2018/02/14 14:13:11 NOTICE: Config file "C:\\Users\\a\\.config\\rclone\\rclone.conf" not found - using defaults
  18961. No remotes found, make a new one?
  18962. n) New remote
  18963. s) Set configuration password
  18964. q) Quit config
  18965. n/s/q> n
  18966. 2. Enter the name for the configuration
  18967. name> <YOUR NAME>
  18968. 3. Select "s3" storage.
  18969. Choose a number from below, or type in your own value
  18970. [snip]
  18971. XX / Amazon S3 Compliant Storage Providers including AWS, ...
  18972. \ "s3"
  18973. [snip]
  18974. Storage> s3
  18975. 4. Select IBM COS as the S3 Storage Provider.
  18976. Choose the S3 provider.
  18977. Choose a number from below, or type in your own value
  18978. 1 / Choose this option to configure Storage to AWS S3
  18979. \ "AWS"
  18980. 2 / Choose this option to configure Storage to Ceph Systems
  18981. \ "Ceph"
  18982. 3 / Choose this option to configure Storage to Dreamhost
  18983. \ "Dreamhost"
  18984. 4 / Choose this option to the configure Storage to IBM COS S3
  18985. \ "IBMCOS"
  18986. 5 / Choose this option to the configure Storage to Minio
  18987. \ "Minio"
  18988. Provider>4
  18989. 5. Enter the Access Key and Secret.
  18990. AWS Access Key ID - leave blank for anonymous access or runtime credentials.
  18991. access_key_id> <>
  18992. AWS Secret Access Key (password) - leave blank for anonymous access or runtime credentials.
  18993. secret_access_key> <>
  18994. 6. Specify the endpoint for IBM COS. For Public IBM COS, choose from
  18995. the option below. For On Premise IBM COS, enter an endpoint address.
  18996. Endpoint for IBM COS S3 API.
  18997. Specify if using an IBM COS On Premise.
  18998. Choose a number from below, or type in your own value
  18999. 1 / US Cross Region Endpoint
  19000. \ "s3-api.us-geo.objectstorage.softlayer.net"
  19001. 2 / US Cross Region Dallas Endpoint
  19002. \ "s3-api.dal.us-geo.objectstorage.softlayer.net"
  19003. 3 / US Cross Region Washington DC Endpoint
  19004. \ "s3-api.wdc-us-geo.objectstorage.softlayer.net"
  19005. 4 / US Cross Region San Jose Endpoint
  19006. \ "s3-api.sjc-us-geo.objectstorage.softlayer.net"
  19007. 5 / US Cross Region Private Endpoint
  19008. \ "s3-api.us-geo.objectstorage.service.networklayer.com"
  19009. 6 / US Cross Region Dallas Private Endpoint
  19010. \ "s3-api.dal-us-geo.objectstorage.service.networklayer.com"
  19011. 7 / US Cross Region Washington DC Private Endpoint
  19012. \ "s3-api.wdc-us-geo.objectstorage.service.networklayer.com"
  19013. 8 / US Cross Region San Jose Private Endpoint
  19014. \ "s3-api.sjc-us-geo.objectstorage.service.networklayer.com"
  19015. 9 / US Region East Endpoint
  19016. \ "s3.us-east.objectstorage.softlayer.net"
  19017. 10 / US Region East Private Endpoint
  19018. \ "s3.us-east.objectstorage.service.networklayer.com"
  19019. 11 / US Region South Endpoint
  19020. [snip]
  19021. 34 / Toronto Single Site Private Endpoint
  19022. \ "s3.tor01.objectstorage.service.networklayer.com"
  19023. endpoint>1
  19024. 7. Specify a IBM COS Location Constraint. The location constraint must
  19025. match endpoint when using IBM Cloud Public. For on-prem COS, do not
  19026. make a selection from this list, hit enter
  19027. 1 / US Cross Region Standard
  19028. \ "us-standard"
  19029. 2 / US Cross Region Vault
  19030. \ "us-vault"
  19031. 3 / US Cross Region Cold
  19032. \ "us-cold"
  19033. 4 / US Cross Region Flex
  19034. \ "us-flex"
  19035. 5 / US East Region Standard
  19036. \ "us-east-standard"
  19037. 6 / US East Region Vault
  19038. \ "us-east-vault"
  19039. 7 / US East Region Cold
  19040. \ "us-east-cold"
  19041. 8 / US East Region Flex
  19042. \ "us-east-flex"
  19043. 9 / US South Region Standard
  19044. \ "us-south-standard"
  19045. 10 / US South Region Vault
  19046. \ "us-south-vault"
  19047. [snip]
  19048. 32 / Toronto Flex
  19049. \ "tor01-flex"
  19050. location_constraint>1
  19051. 9. Specify a canned ACL. IBM Cloud (Storage) supports "public-read" and
  19052. "private". IBM Cloud(Infra) supports all the canned ACLs. On-Premise
  19053. COS supports all the canned ACLs.
  19054. Canned ACL used when creating buckets and/or storing objects in S3.
  19055. For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
  19056. Choose a number from below, or type in your own value
  19057. 1 / Owner gets FULL_CONTROL. No one else has access rights (default). This acl is available on IBM Cloud (Infra), IBM Cloud (Storage), On-Premise COS
  19058. \ "private"
  19059. 2 / Owner gets FULL_CONTROL. The AllUsers group gets READ access. This acl is available on IBM Cloud (Infra), IBM Cloud (Storage), On-Premise IBM COS
  19060. \ "public-read"
  19061. 3 / Owner gets FULL_CONTROL. The AllUsers group gets READ and WRITE access. This acl is available on IBM Cloud (Infra), On-Premise IBM COS
  19062. \ "public-read-write"
  19063. 4 / Owner gets FULL_CONTROL. The AuthenticatedUsers group gets READ access. Not supported on Buckets. This acl is available on IBM Cloud (Infra) and On-Premise IBM COS
  19064. \ "authenticated-read"
  19065. acl> 1
  19066. 12. Review the displayed configuration and accept to save the "remote"
  19067. then quit. The config file should look like this
  19068. [xxx]
  19069. type = s3
  19070. Provider = IBMCOS
  19071. access_key_id = xxx
  19072. secret_access_key = yyy
  19073. endpoint = s3-api.us-geo.objectstorage.softlayer.net
  19074. location_constraint = us-standard
  19075. acl = private
  19076. 13. Execute rclone commands
  19077. 1) Create a bucket.
  19078. rclone mkdir IBM-COS-XREGION:newbucket
  19079. 2) List available buckets.
  19080. rclone lsd IBM-COS-XREGION:
  19081. -1 2017-11-08 21:16:22 -1 test
  19082. -1 2018-02-14 20:16:39 -1 newbucket
  19083. 3) List contents of a bucket.
  19084. rclone ls IBM-COS-XREGION:newbucket
  19085. 18685952 test.exe
  19086. 4) Copy a file from local to remote.
  19087. rclone copy /Users/file.txt IBM-COS-XREGION:newbucket
  19088. 5) Copy a file from remote to local.
  19089. rclone copy IBM-COS-XREGION:newbucket/file.txt .
  19090. 6) Delete a file on remote.
  19091. rclone delete IBM-COS-XREGION:newbucket/file.txt
  19092. IDrive e2
  19093. Here is an example of making an IDrive e2 configuration. First run:
  19094. rclone config
  19095. This will guide you through an interactive setup process.
  19096. No remotes found, make a new one?
  19097. n) New remote
  19098. s) Set configuration password
  19099. q) Quit config
  19100. n/s/q> n
  19101. Enter name for new remote.
  19102. name> e2
  19103. Option Storage.
  19104. Type of storage to configure.
  19105. Choose a number from below, or type in your own value.
  19106. [snip]
  19107. XX / Amazon S3 Compliant Storage Providers including AWS, ...
  19108. \ (s3)
  19109. [snip]
  19110. Storage> s3
  19111. Option provider.
  19112. Choose your S3 provider.
  19113. Choose a number from below, or type in your own value.
  19114. Press Enter to leave empty.
  19115. [snip]
  19116. XX / IDrive e2
  19117. \ (IDrive)
  19118. [snip]
  19119. provider> IDrive
  19120. Option env_auth.
  19121. Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
  19122. Only applies if access_key_id and secret_access_key is blank.
  19123. Choose a number from below, or type in your own boolean value (true or false).
  19124. Press Enter for the default (false).
  19125. 1 / Enter AWS credentials in the next step.
  19126. \ (false)
  19127. 2 / Get AWS credentials from the environment (env vars or IAM).
  19128. \ (true)
  19129. env_auth>
  19130. Option access_key_id.
  19131. AWS Access Key ID.
  19132. Leave blank for anonymous access or runtime credentials.
  19133. Enter a value. Press Enter to leave empty.
  19134. access_key_id> YOUR_ACCESS_KEY
  19135. Option secret_access_key.
  19136. AWS Secret Access Key (password).
  19137. Leave blank for anonymous access or runtime credentials.
  19138. Enter a value. Press Enter to leave empty.
  19139. secret_access_key> YOUR_SECRET_KEY
  19140. Option acl.
  19141. Canned ACL used when creating buckets and storing or copying objects.
  19142. This ACL is used for creating objects and if bucket_acl isn't set, for creating buckets too.
  19143. For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
  19144. Note that this ACL is applied when server-side copying objects as S3
  19145. doesn't copy the ACL from the source but rather writes a fresh one.
  19146. Choose a number from below, or type in your own value.
  19147. Press Enter to leave empty.
  19148. / Owner gets FULL_CONTROL.
  19149. 1 | No one else has access rights (default).
  19150. \ (private)
  19151. / Owner gets FULL_CONTROL.
  19152. 2 | The AllUsers group gets READ access.
  19153. \ (public-read)
  19154. / Owner gets FULL_CONTROL.
  19155. 3 | The AllUsers group gets READ and WRITE access.
  19156. | Granting this on a bucket is generally not recommended.
  19157. \ (public-read-write)
  19158. / Owner gets FULL_CONTROL.
  19159. 4 | The AuthenticatedUsers group gets READ access.
  19160. \ (authenticated-read)
  19161. / Object owner gets FULL_CONTROL.
  19162. 5 | Bucket owner gets READ access.
  19163. | If you specify this canned ACL when creating a bucket, Amazon S3 ignores it.
  19164. \ (bucket-owner-read)
  19165. / Both the object owner and the bucket owner get FULL_CONTROL over the object.
  19166. 6 | If you specify this canned ACL when creating a bucket, Amazon S3 ignores it.
  19167. \ (bucket-owner-full-control)
  19168. acl>
  19169. Edit advanced config?
  19170. y) Yes
  19171. n) No (default)
  19172. y/n>
  19173. Configuration complete.
  19174. Options:
  19175. - type: s3
  19176. - provider: IDrive
  19177. - access_key_id: YOUR_ACCESS_KEY
  19178. - secret_access_key: YOUR_SECRET_KEY
  19179. - endpoint: q9d9.la12.idrivee2-5.com
  19180. Keep this "e2" remote?
  19181. y) Yes this is OK (default)
  19182. e) Edit this remote
  19183. d) Delete this remote
  19184. y/e/d> y
  19185. IONOS Cloud
  19186. IONOS S3 Object Storage is a service offered by IONOS for storing and
  19187. accessing unstructured data. To connect to the service, you will need an
  19188. access key and a secret key. These can be found in the Data Center
  19189. Designer, by selecting Manager resources > Object Storage Key Manager.
  19190. Here is an example of a configuration. First, run rclone config. This
  19191. will walk you through an interactive setup process. Type n to add the
  19192. new remote, and then enter a name:
  19193. Enter name for new remote.
  19194. name> ionos-fra
  19195. Type s3 to choose the connection type:
  19196. Option Storage.
  19197. Type of storage to configure.
  19198. Choose a number from below, or type in your own value.
  19199. [snip]
  19200. XX / Amazon S3 Compliant Storage Providers including AWS, ...
  19201. \ (s3)
  19202. [snip]
  19203. Storage> s3
  19204. Type IONOS:
  19205. Option provider.
  19206. Choose your S3 provider.
  19207. Choose a number from below, or type in your own value.
  19208. Press Enter to leave empty.
  19209. [snip]
  19210. XX / IONOS Cloud
  19211. \ (IONOS)
  19212. [snip]
  19213. provider> IONOS
  19214. Press Enter to choose the default option
  19215. Enter AWS credentials in the next step:
  19216. Option env_auth.
  19217. Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
  19218. Only applies if access_key_id and secret_access_key is blank.
  19219. Choose a number from below, or type in your own boolean value (true or false).
  19220. Press Enter for the default (false).
  19221. 1 / Enter AWS credentials in the next step.
  19222. \ (false)
  19223. 2 / Get AWS credentials from the environment (env vars or IAM).
  19224. \ (true)
  19225. env_auth>
  19226. Enter your Access Key and Secret key. These can be retrieved in the Data
  19227. Center Designer, click on the menu “Manager resources” / "Object Storage
  19228. Key Manager".
  19229. Option access_key_id.
  19230. AWS Access Key ID.
  19231. Leave blank for anonymous access or runtime credentials.
  19232. Enter a value. Press Enter to leave empty.
  19233. access_key_id> YOUR_ACCESS_KEY
  19234. Option secret_access_key.
  19235. AWS Secret Access Key (password).
  19236. Leave blank for anonymous access or runtime credentials.
  19237. Enter a value. Press Enter to leave empty.
  19238. secret_access_key> YOUR_SECRET_KEY
  19239. Choose the region where your bucket is located:
  19240. Option region.
  19241. Region where your bucket will be created and your data stored.
  19242. Choose a number from below, or type in your own value.
  19243. Press Enter to leave empty.
  19244. 1 / Frankfurt, Germany
  19245. \ (de)
  19246. 2 / Berlin, Germany
  19247. \ (eu-central-2)
  19248. 3 / Logrono, Spain
  19249. \ (eu-south-2)
  19250. region> 2
  19251. Choose the endpoint from the same region:
  19252. Option endpoint.
  19253. Endpoint for IONOS S3 Object Storage.
  19254. Specify the endpoint from the same region.
  19255. Choose a number from below, or type in your own value.
  19256. Press Enter to leave empty.
  19257. 1 / Frankfurt, Germany
  19258. \ (s3-eu-central-1.ionoscloud.com)
  19259. 2 / Berlin, Germany
  19260. \ (s3-eu-central-2.ionoscloud.com)
  19261. 3 / Logrono, Spain
  19262. \ (s3-eu-south-2.ionoscloud.com)
  19263. endpoint> 1
  19264. Press Enter to choose the default option or choose the desired ACL
  19265. setting:
  19266. Option acl.
  19267. Canned ACL used when creating buckets and storing or copying objects.
  19268. This ACL is used for creating objects and if bucket_acl isn't set, for creating buckets too.
  19269. For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
  19270. Note that this ACL is applied when server-side copying objects as S3
  19271. doesn't copy the ACL from the source but rather writes a fresh one.
  19272. Choose a number from below, or type in your own value.
  19273. Press Enter to leave empty.
  19274. / Owner gets FULL_CONTROL.
  19275. 1 | No one else has access rights (default).
  19276. \ (private)
  19277. / Owner gets FULL_CONTROL.
  19278. [snip]
  19279. acl>
  19280. Press Enter to skip the advanced config:
  19281. Edit advanced config?
  19282. y) Yes
  19283. n) No (default)
  19284. y/n>
  19285. Press Enter to save the configuration, and then q to quit the
  19286. configuration process:
  19287. Configuration complete.
  19288. Options:
  19289. - type: s3
  19290. - provider: IONOS
  19291. - access_key_id: YOUR_ACCESS_KEY
  19292. - secret_access_key: YOUR_SECRET_KEY
  19293. - endpoint: s3-eu-central-1.ionoscloud.com
  19294. Keep this "ionos-fra" remote?
  19295. y) Yes this is OK (default)
  19296. e) Edit this remote
  19297. d) Delete this remote
  19298. y/e/d> y
  19299. Done! Now you can try some commands (for macOS, use ./rclone instead of
  19300. rclone).
  19301. 1) Create a bucket (the name must be unique within the whole IONOS S3)
  19302. rclone mkdir ionos-fra:my-bucket
  19303. 2) List available buckets
  19304. rclone lsd ionos-fra:
  19305. 4) Copy a file from local to remote
  19306. rclone copy /Users/file.txt ionos-fra:my-bucket
  19307. 3) List contents of a bucket
  19308. rclone ls ionos-fra:my-bucket
  19309. 5) Copy a file from remote to local
  19310. rclone copy ionos-fra:my-bucket/file.txt
  19311. Minio
  19312. Minio is an object storage server built for cloud application developers
  19313. and devops.
  19314. It is very easy to install and provides an S3 compatible server which
  19315. can be used by rclone.
  19316. To use it, install Minio following the instructions here.
  19317. When it configures itself Minio will print something like this
  19318. Endpoint: http://192.168.1.106:9000 http://172.23.0.1:9000
  19319. AccessKey: USWUXHGYZQYFYFFIT3RE
  19320. SecretKey: MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
  19321. Region: us-east-1
  19322. SQS ARNs: arn:minio:sqs:us-east-1:1:redis arn:minio:sqs:us-east-1:2:redis
  19323. Browser Access:
  19324. http://192.168.1.106:9000 http://172.23.0.1:9000
  19325. Command-line Access: https://docs.minio.io/docs/minio-client-quickstart-guide
  19326. $ mc config host add myminio http://192.168.1.106:9000 USWUXHGYZQYFYFFIT3RE MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
  19327. Object API (Amazon S3 compatible):
  19328. Go: https://docs.minio.io/docs/golang-client-quickstart-guide
  19329. Java: https://docs.minio.io/docs/java-client-quickstart-guide
  19330. Python: https://docs.minio.io/docs/python-client-quickstart-guide
  19331. JavaScript: https://docs.minio.io/docs/javascript-client-quickstart-guide
  19332. .NET: https://docs.minio.io/docs/dotnet-client-quickstart-guide
  19333. Drive Capacity: 26 GiB Free, 165 GiB Total
  19334. These details need to go into rclone config like this. Note that it is
  19335. important to put the region in as stated above.
  19336. env_auth> 1
  19337. access_key_id> USWUXHGYZQYFYFFIT3RE
  19338. secret_access_key> MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
  19339. region> us-east-1
  19340. endpoint> http://192.168.1.106:9000
  19341. location_constraint>
  19342. server_side_encryption>
  19343. Which makes the config file look like this
  19344. [minio]
  19345. type = s3
  19346. provider = Minio
  19347. env_auth = false
  19348. access_key_id = USWUXHGYZQYFYFFIT3RE
  19349. secret_access_key = MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
  19350. region = us-east-1
  19351. endpoint = http://192.168.1.106:9000
  19352. location_constraint =
  19353. server_side_encryption =
  19354. So once set up, for example, to copy files into a bucket
  19355. rclone copy /path/to/files minio:bucket
  19356. Qiniu Cloud Object Storage (Kodo)
  19357. Qiniu Cloud Object Storage (Kodo), a completely independent-researched
  19358. core technology which is proven by repeated customer experience has
  19359. occupied absolute leading market leader position. Kodo can be widely
  19360. applied to mass data management.
  19361. To configure access to Qiniu Kodo, follow the steps below:
  19362. 1. Run rclone config and select n for a new remote.
  19363. rclone config
  19364. No remotes found, make a new one?
  19365. n) New remote
  19366. s) Set configuration password
  19367. q) Quit config
  19368. n/s/q> n
  19369. 2. Give the name of the configuration. For example, name it 'qiniu'.
  19370. name> qiniu
  19371. 3. Select s3 storage.
  19372. Choose a number from below, or type in your own value
  19373. [snip]
  19374. XX / Amazon S3 Compliant Storage Providers including AWS, ...
  19375. \ (s3)
  19376. [snip]
  19377. Storage> s3
  19378. 4. Select Qiniu provider.
  19379. Choose a number from below, or type in your own value
  19380. 1 / Amazon Web Services (AWS) S3
  19381. \ "AWS"
  19382. [snip]
  19383. 22 / Qiniu Object Storage (Kodo)
  19384. \ (Qiniu)
  19385. [snip]
  19386. provider> Qiniu
  19387. 5. Enter your SecretId and SecretKey of Qiniu Kodo.
  19388. Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
  19389. Only applies if access_key_id and secret_access_key is blank.
  19390. Enter a boolean value (true or false). Press Enter for the default ("false").
  19391. Choose a number from below, or type in your own value
  19392. 1 / Enter AWS credentials in the next step
  19393. \ "false"
  19394. 2 / Get AWS credentials from the environment (env vars or IAM)
  19395. \ "true"
  19396. env_auth> 1
  19397. AWS Access Key ID.
  19398. Leave blank for anonymous access or runtime credentials.
  19399. Enter a string value. Press Enter for the default ("").
  19400. access_key_id> AKIDxxxxxxxxxx
  19401. AWS Secret Access Key (password)
  19402. Leave blank for anonymous access or runtime credentials.
  19403. Enter a string value. Press Enter for the default ("").
  19404. secret_access_key> xxxxxxxxxxx
  19405. 6. Select endpoint for Qiniu Kodo. This is the standard endpoint for
  19406. different region.
  19407. / The default endpoint - a good choice if you are unsure.
  19408. 1 | East China Region 1.
  19409. | Needs location constraint cn-east-1.
  19410. \ (cn-east-1)
  19411. / East China Region 2.
  19412. 2 | Needs location constraint cn-east-2.
  19413. \ (cn-east-2)
  19414. / North China Region 1.
  19415. 3 | Needs location constraint cn-north-1.
  19416. \ (cn-north-1)
  19417. / South China Region 1.
  19418. 4 | Needs location constraint cn-south-1.
  19419. \ (cn-south-1)
  19420. / North America Region.
  19421. 5 | Needs location constraint us-north-1.
  19422. \ (us-north-1)
  19423. / Southeast Asia Region 1.
  19424. 6 | Needs location constraint ap-southeast-1.
  19425. \ (ap-southeast-1)
  19426. / Northeast Asia Region 1.
  19427. 7 | Needs location constraint ap-northeast-1.
  19428. \ (ap-northeast-1)
  19429. [snip]
  19430. endpoint> 1
  19431. Option endpoint.
  19432. Endpoint for Qiniu Object Storage.
  19433. Choose a number from below, or type in your own value.
  19434. Press Enter to leave empty.
  19435. 1 / East China Endpoint 1
  19436. \ (s3-cn-east-1.qiniucs.com)
  19437. 2 / East China Endpoint 2
  19438. \ (s3-cn-east-2.qiniucs.com)
  19439. 3 / North China Endpoint 1
  19440. \ (s3-cn-north-1.qiniucs.com)
  19441. 4 / South China Endpoint 1
  19442. \ (s3-cn-south-1.qiniucs.com)
  19443. 5 / North America Endpoint 1
  19444. \ (s3-us-north-1.qiniucs.com)
  19445. 6 / Southeast Asia Endpoint 1
  19446. \ (s3-ap-southeast-1.qiniucs.com)
  19447. 7 / Northeast Asia Endpoint 1
  19448. \ (s3-ap-northeast-1.qiniucs.com)
  19449. endpoint> 1
  19450. Option location_constraint.
  19451. Location constraint - must be set to match the Region.
  19452. Used when creating buckets only.
  19453. Choose a number from below, or type in your own value.
  19454. Press Enter to leave empty.
  19455. 1 / East China Region 1
  19456. \ (cn-east-1)
  19457. 2 / East China Region 2
  19458. \ (cn-east-2)
  19459. 3 / North China Region 1
  19460. \ (cn-north-1)
  19461. 4 / South China Region 1
  19462. \ (cn-south-1)
  19463. 5 / North America Region 1
  19464. \ (us-north-1)
  19465. 6 / Southeast Asia Region 1
  19466. \ (ap-southeast-1)
  19467. 7 / Northeast Asia Region 1
  19468. \ (ap-northeast-1)
  19469. location_constraint> 1
  19470. 7. Choose acl and storage class.
  19471. Note that this ACL is applied when server-side copying objects as S3
  19472. doesn't copy the ACL from the source but rather writes a fresh one.
  19473. Enter a string value. Press Enter for the default ("").
  19474. Choose a number from below, or type in your own value
  19475. / Owner gets FULL_CONTROL.
  19476. 1 | No one else has access rights (default).
  19477. \ (private)
  19478. / Owner gets FULL_CONTROL.
  19479. 2 | The AllUsers group gets READ access.
  19480. \ (public-read)
  19481. [snip]
  19482. acl> 2
  19483. The storage class to use when storing new objects in Tencent COS.
  19484. Enter a string value. Press Enter for the default ("").
  19485. Choose a number from below, or type in your own value
  19486. 1 / Standard storage class
  19487. \ (STANDARD)
  19488. 2 / Infrequent access storage mode
  19489. \ (LINE)
  19490. 3 / Archive storage mode
  19491. \ (GLACIER)
  19492. 4 / Deep archive storage mode
  19493. \ (DEEP_ARCHIVE)
  19494. [snip]
  19495. storage_class> 1
  19496. Edit advanced config? (y/n)
  19497. y) Yes
  19498. n) No (default)
  19499. y/n> n
  19500. Remote config
  19501. --------------------
  19502. [qiniu]
  19503. - type: s3
  19504. - provider: Qiniu
  19505. - access_key_id: xxx
  19506. - secret_access_key: xxx
  19507. - region: cn-east-1
  19508. - endpoint: s3-cn-east-1.qiniucs.com
  19509. - location_constraint: cn-east-1
  19510. - acl: public-read
  19511. - storage_class: STANDARD
  19512. --------------------
  19513. y) Yes this is OK (default)
  19514. e) Edit this remote
  19515. d) Delete this remote
  19516. y/e/d> y
  19517. Current remotes:
  19518. Name Type
  19519. ==== ====
  19520. qiniu s3
  19521. RackCorp
  19522. RackCorp Object Storage is an S3 compatible object storage platform from
  19523. your friendly cloud provider RackCorp. The service is fast, reliable,
  19524. well priced and located in many strategic locations unserviced by
  19525. others, to ensure you can maintain data sovereignty.
  19526. Before you can use RackCorp Object Storage, you'll need to "sign up" for
  19527. an account on our "portal". Next you can create an access key, a
  19528. secret key and buckets, in your location of choice with ease. These
  19529. details are required for the next steps of configuration, when
  19530. rclone config asks for your access_key_id and secret_access_key.
  19531. Your config should end up looking a bit like this:
  19532. [RCS3-demo-config]
  19533. type = s3
  19534. provider = RackCorp
  19535. env_auth = true
  19536. access_key_id = YOURACCESSKEY
  19537. secret_access_key = YOURSECRETACCESSKEY
  19538. region = au-nsw
  19539. endpoint = s3.rackcorp.com
  19540. location_constraint = au-nsw
  19541. Rclone Serve S3
  19542. Rclone can serve any remote over the S3 protocol. For details see the
  19543. rclone serve s3 documentation.
  19544. For example, to serve remote:path over s3, run the server like this:
  19545. rclone serve s3 --auth-key ACCESS_KEY_ID,SECRET_ACCESS_KEY remote:path
  19546. This will be compatible with an rclone remote which is defined like
  19547. this:
  19548. [serves3]
  19549. type = s3
  19550. provider = Rclone
  19551. endpoint = http://127.0.0.1:8080/
  19552. access_key_id = ACCESS_KEY_ID
  19553. secret_access_key = SECRET_ACCESS_KEY
  19554. use_multipart_uploads = false
  19555. Note that setting disable_multipart_uploads = true is to work around a
  19556. bug which will be fixed in due course.
  19557. Scaleway
  19558. Scaleway The Object Storage platform allows you to store anything from
  19559. backups, logs and web assets to documents and photos. Files can be
  19560. dropped from the Scaleway console or transferred through our API and CLI
  19561. or using any S3-compatible tool.
  19562. Scaleway provides an S3 interface which can be configured for use with
  19563. rclone like this:
  19564. [scaleway]
  19565. type = s3
  19566. provider = Scaleway
  19567. env_auth = false
  19568. endpoint = s3.nl-ams.scw.cloud
  19569. access_key_id = SCWXXXXXXXXXXXXXX
  19570. secret_access_key = 1111111-2222-3333-44444-55555555555555
  19571. region = nl-ams
  19572. location_constraint =
  19573. acl = private
  19574. server_side_encryption =
  19575. storage_class =
  19576. C14 Cold Storage is the low-cost S3 Glacier alternative from Scaleway
  19577. and it works the same way as on S3 by accepting the "GLACIER"
  19578. storage_class. So you can configure your remote with the
  19579. storage_class = GLACIER option to upload directly to C14. Don't forget
  19580. that in this state you can't read files back after, you will need to
  19581. restore them to "STANDARD" storage_class first before being able to read
  19582. them (see "restore" section above)
  19583. Seagate Lyve Cloud
  19584. Seagate Lyve Cloud is an S3 compatible object storage platform from
  19585. Seagate intended for enterprise use.
  19586. Here is a config run through for a remote called remote - you may choose
  19587. a different name of course. Note that to create an access key and secret
  19588. key you will need to create a service account first.
  19589. $ rclone config
  19590. No remotes found, make a new one?
  19591. n) New remote
  19592. s) Set configuration password
  19593. q) Quit config
  19594. n/s/q> n
  19595. name> remote
  19596. Choose s3 backend
  19597. Type of storage to configure.
  19598. Choose a number from below, or type in your own value.
  19599. [snip]
  19600. XX / Amazon S3 Compliant Storage Providers including AWS, ...
  19601. \ (s3)
  19602. [snip]
  19603. Storage> s3
  19604. Choose LyveCloud as S3 provider
  19605. Choose your S3 provider.
  19606. Choose a number from below, or type in your own value.
  19607. Press Enter to leave empty.
  19608. [snip]
  19609. XX / Seagate Lyve Cloud
  19610. \ (LyveCloud)
  19611. [snip]
  19612. provider> LyveCloud
  19613. Take the default (just press enter) to enter access key and secret in
  19614. the config file.
  19615. Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
  19616. Only applies if access_key_id and secret_access_key is blank.
  19617. Choose a number from below, or type in your own boolean value (true or false).
  19618. Press Enter for the default (false).
  19619. 1 / Enter AWS credentials in the next step.
  19620. \ (false)
  19621. 2 / Get AWS credentials from the environment (env vars or IAM).
  19622. \ (true)
  19623. env_auth>
  19624. AWS Access Key ID.
  19625. Leave blank for anonymous access or runtime credentials.
  19626. Enter a value. Press Enter to leave empty.
  19627. access_key_id> XXX
  19628. AWS Secret Access Key (password).
  19629. Leave blank for anonymous access or runtime credentials.
  19630. Enter a value. Press Enter to leave empty.
  19631. secret_access_key> YYY
  19632. Leave region blank
  19633. Region to connect to.
  19634. Leave blank if you are using an S3 clone and you don't have a region.
  19635. Choose a number from below, or type in your own value.
  19636. Press Enter to leave empty.
  19637. / Use this if unsure.
  19638. 1 | Will use v4 signatures and an empty region.
  19639. \ ()
  19640. / Use this only if v4 signatures don't work.
  19641. 2 | E.g. pre Jewel/v10 CEPH.
  19642. \ (other-v2-signature)
  19643. region>
  19644. Choose an endpoint from the list
  19645. Endpoint for S3 API.
  19646. Required when using an S3 clone.
  19647. Choose a number from below, or type in your own value.
  19648. Press Enter to leave empty.
  19649. 1 / Seagate Lyve Cloud US East 1 (Virginia)
  19650. \ (s3.us-east-1.lyvecloud.seagate.com)
  19651. 2 / Seagate Lyve Cloud US West 1 (California)
  19652. \ (s3.us-west-1.lyvecloud.seagate.com)
  19653. 3 / Seagate Lyve Cloud AP Southeast 1 (Singapore)
  19654. \ (s3.ap-southeast-1.lyvecloud.seagate.com)
  19655. endpoint> 1
  19656. Leave location constraint blank
  19657. Location constraint - must be set to match the Region.
  19658. Leave blank if not sure. Used when creating buckets only.
  19659. Enter a value. Press Enter to leave empty.
  19660. location_constraint>
  19661. Choose default ACL (private).
  19662. Canned ACL used when creating buckets and storing or copying objects.
  19663. This ACL is used for creating objects and if bucket_acl isn't set, for creating buckets too.
  19664. For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
  19665. Note that this ACL is applied when server-side copying objects as S3
  19666. doesn't copy the ACL from the source but rather writes a fresh one.
  19667. Choose a number from below, or type in your own value.
  19668. Press Enter to leave empty.
  19669. / Owner gets FULL_CONTROL.
  19670. 1 | No one else has access rights (default).
  19671. \ (private)
  19672. [snip]
  19673. acl>
  19674. And the config file should end up looking like this:
  19675. [remote]
  19676. type = s3
  19677. provider = LyveCloud
  19678. access_key_id = XXX
  19679. secret_access_key = YYY
  19680. endpoint = s3.us-east-1.lyvecloud.seagate.com
  19681. SeaweedFS
  19682. SeaweedFS is a distributed storage system for blobs, objects, files, and
  19683. data lake, with O(1) disk seek and a scalable file metadata store. It
  19684. has an S3 compatible object storage interface. SeaweedFS can also act as
  19685. a gateway to remote S3 compatible object store to cache data and
  19686. metadata with asynchronous write back, for fast local speed and minimize
  19687. access cost.
  19688. Assuming the SeaweedFS are configured with weed shell as such:
  19689. > s3.bucket.create -name foo
  19690. > s3.configure -access_key=any -secret_key=any -buckets=foo -user=me -actions=Read,Write,List,Tagging,Admin -apply
  19691. {
  19692. "identities": [
  19693. {
  19694. "name": "me",
  19695. "credentials": [
  19696. {
  19697. "accessKey": "any",
  19698. "secretKey": "any"
  19699. }
  19700. ],
  19701. "actions": [
  19702. "Read:foo",
  19703. "Write:foo",
  19704. "List:foo",
  19705. "Tagging:foo",
  19706. "Admin:foo"
  19707. ]
  19708. }
  19709. ]
  19710. }
  19711. To use rclone with SeaweedFS, above configuration should end up with
  19712. something like this in your config:
  19713. [seaweedfs_s3]
  19714. type = s3
  19715. provider = SeaweedFS
  19716. access_key_id = any
  19717. secret_access_key = any
  19718. endpoint = localhost:8333
  19719. So once set up, for example to copy files into a bucket
  19720. rclone copy /path/to/files seaweedfs_s3:foo
  19721. Wasabi
  19722. Wasabi is a cloud-based object storage service for a broad range of
  19723. applications and use cases. Wasabi is designed for individuals and
  19724. organizations that require a high-performance, reliable, and secure data
  19725. storage infrastructure at minimal cost.
  19726. Wasabi provides an S3 interface which can be configured for use with
  19727. rclone like this.
  19728. No remotes found, make a new one?
  19729. n) New remote
  19730. s) Set configuration password
  19731. n/s> n
  19732. name> wasabi
  19733. Type of storage to configure.
  19734. Choose a number from below, or type in your own value
  19735. [snip]
  19736. XX / Amazon S3 (also Dreamhost, Ceph, ChinaMobile, ArvanCloud, Minio, Liara)
  19737. \ "s3"
  19738. [snip]
  19739. Storage> s3
  19740. Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars). Only applies if access_key_id and secret_access_key is blank.
  19741. Choose a number from below, or type in your own value
  19742. 1 / Enter AWS credentials in the next step
  19743. \ "false"
  19744. 2 / Get AWS credentials from the environment (env vars or IAM)
  19745. \ "true"
  19746. env_auth> 1
  19747. AWS Access Key ID - leave blank for anonymous access or runtime credentials.
  19748. access_key_id> YOURACCESSKEY
  19749. AWS Secret Access Key (password) - leave blank for anonymous access or runtime credentials.
  19750. secret_access_key> YOURSECRETACCESSKEY
  19751. Region to connect to.
  19752. Choose a number from below, or type in your own value
  19753. / The default endpoint - a good choice if you are unsure.
  19754. 1 | US Region, Northern Virginia, or Pacific Northwest.
  19755. | Leave location constraint empty.
  19756. \ "us-east-1"
  19757. [snip]
  19758. region> us-east-1
  19759. Endpoint for S3 API.
  19760. Leave blank if using AWS to use the default endpoint for the region.
  19761. Specify if using an S3 clone such as Ceph.
  19762. endpoint> s3.wasabisys.com
  19763. Location constraint - must be set to match the Region. Used when creating buckets only.
  19764. Choose a number from below, or type in your own value
  19765. 1 / Empty for US Region, Northern Virginia, or Pacific Northwest.
  19766. \ ""
  19767. [snip]
  19768. location_constraint>
  19769. Canned ACL used when creating buckets and/or storing objects in S3.
  19770. For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
  19771. Choose a number from below, or type in your own value
  19772. 1 / Owner gets FULL_CONTROL. No one else has access rights (default).
  19773. \ "private"
  19774. [snip]
  19775. acl>
  19776. The server-side encryption algorithm used when storing this object in S3.
  19777. Choose a number from below, or type in your own value
  19778. 1 / None
  19779. \ ""
  19780. 2 / AES256
  19781. \ "AES256"
  19782. server_side_encryption>
  19783. The storage class to use when storing objects in S3.
  19784. Choose a number from below, or type in your own value
  19785. 1 / Default
  19786. \ ""
  19787. 2 / Standard storage class
  19788. \ "STANDARD"
  19789. 3 / Reduced redundancy storage class
  19790. \ "REDUCED_REDUNDANCY"
  19791. 4 / Standard Infrequent Access storage class
  19792. \ "STANDARD_IA"
  19793. storage_class>
  19794. Remote config
  19795. --------------------
  19796. [wasabi]
  19797. env_auth = false
  19798. access_key_id = YOURACCESSKEY
  19799. secret_access_key = YOURSECRETACCESSKEY
  19800. region = us-east-1
  19801. endpoint = s3.wasabisys.com
  19802. location_constraint =
  19803. acl =
  19804. server_side_encryption =
  19805. storage_class =
  19806. --------------------
  19807. y) Yes this is OK
  19808. e) Edit this remote
  19809. d) Delete this remote
  19810. y/e/d> y
  19811. This will leave the config file looking like this.
  19812. [wasabi]
  19813. type = s3
  19814. provider = Wasabi
  19815. env_auth = false
  19816. access_key_id = YOURACCESSKEY
  19817. secret_access_key = YOURSECRETACCESSKEY
  19818. region =
  19819. endpoint = s3.wasabisys.com
  19820. location_constraint =
  19821. acl =
  19822. server_side_encryption =
  19823. storage_class =
  19824. Alibaba OSS
  19825. Here is an example of making an Alibaba Cloud (Aliyun) OSS
  19826. configuration. First run:
  19827. rclone config
  19828. This will guide you through an interactive setup process.
  19829. No remotes found, make a new one?
  19830. n) New remote
  19831. s) Set configuration password
  19832. q) Quit config
  19833. n/s/q> n
  19834. name> oss
  19835. Type of storage to configure.
  19836. Enter a string value. Press Enter for the default ("").
  19837. Choose a number from below, or type in your own value
  19838. [snip]
  19839. XX / Amazon S3 Compliant Storage Providers including AWS, ...
  19840. \ "s3"
  19841. [snip]
  19842. Storage> s3
  19843. Choose your S3 provider.
  19844. Enter a string value. Press Enter for the default ("").
  19845. Choose a number from below, or type in your own value
  19846. 1 / Amazon Web Services (AWS) S3
  19847. \ "AWS"
  19848. 2 / Alibaba Cloud Object Storage System (OSS) formerly Aliyun
  19849. \ "Alibaba"
  19850. 3 / Ceph Object Storage
  19851. \ "Ceph"
  19852. [snip]
  19853. provider> Alibaba
  19854. Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
  19855. Only applies if access_key_id and secret_access_key is blank.
  19856. Enter a boolean value (true or false). Press Enter for the default ("false").
  19857. Choose a number from below, or type in your own value
  19858. 1 / Enter AWS credentials in the next step
  19859. \ "false"
  19860. 2 / Get AWS credentials from the environment (env vars or IAM)
  19861. \ "true"
  19862. env_auth> 1
  19863. AWS Access Key ID.
  19864. Leave blank for anonymous access or runtime credentials.
  19865. Enter a string value. Press Enter for the default ("").
  19866. access_key_id> accesskeyid
  19867. AWS Secret Access Key (password)
  19868. Leave blank for anonymous access or runtime credentials.
  19869. Enter a string value. Press Enter for the default ("").
  19870. secret_access_key> secretaccesskey
  19871. Endpoint for OSS API.
  19872. Enter a string value. Press Enter for the default ("").
  19873. Choose a number from below, or type in your own value
  19874. 1 / East China 1 (Hangzhou)
  19875. \ "oss-cn-hangzhou.aliyuncs.com"
  19876. 2 / East China 2 (Shanghai)
  19877. \ "oss-cn-shanghai.aliyuncs.com"
  19878. 3 / North China 1 (Qingdao)
  19879. \ "oss-cn-qingdao.aliyuncs.com"
  19880. [snip]
  19881. endpoint> 1
  19882. Canned ACL used when creating buckets and storing or copying objects.
  19883. Note that this ACL is applied when server-side copying objects as S3
  19884. doesn't copy the ACL from the source but rather writes a fresh one.
  19885. Enter a string value. Press Enter for the default ("").
  19886. Choose a number from below, or type in your own value
  19887. 1 / Owner gets FULL_CONTROL. No one else has access rights (default).
  19888. \ "private"
  19889. 2 / Owner gets FULL_CONTROL. The AllUsers group gets READ access.
  19890. \ "public-read"
  19891. / Owner gets FULL_CONTROL. The AllUsers group gets READ and WRITE access.
  19892. [snip]
  19893. acl> 1
  19894. The storage class to use when storing new objects in OSS.
  19895. Enter a string value. Press Enter for the default ("").
  19896. Choose a number from below, or type in your own value
  19897. 1 / Default
  19898. \ ""
  19899. 2 / Standard storage class
  19900. \ "STANDARD"
  19901. 3 / Archive storage mode.
  19902. \ "GLACIER"
  19903. 4 / Infrequent access storage mode.
  19904. \ "STANDARD_IA"
  19905. storage_class> 1
  19906. Edit advanced config? (y/n)
  19907. y) Yes
  19908. n) No
  19909. y/n> n
  19910. Remote config
  19911. --------------------
  19912. [oss]
  19913. type = s3
  19914. provider = Alibaba
  19915. env_auth = false
  19916. access_key_id = accesskeyid
  19917. secret_access_key = secretaccesskey
  19918. endpoint = oss-cn-hangzhou.aliyuncs.com
  19919. acl = private
  19920. storage_class = Standard
  19921. --------------------
  19922. y) Yes this is OK
  19923. e) Edit this remote
  19924. d) Delete this remote
  19925. y/e/d> y
  19926. China Mobile Ecloud Elastic Object Storage (EOS)
  19927. Here is an example of making an China Mobile Ecloud Elastic Object
  19928. Storage (EOS) configuration. First run:
  19929. rclone config
  19930. This will guide you through an interactive setup process.
  19931. No remotes found, make a new one?
  19932. n) New remote
  19933. s) Set configuration password
  19934. q) Quit config
  19935. n/s/q> n
  19936. name> ChinaMobile
  19937. Option Storage.
  19938. Type of storage to configure.
  19939. Choose a number from below, or type in your own value.
  19940. ...
  19941. XX / Amazon S3 Compliant Storage Providers including AWS, ...
  19942. \ (s3)
  19943. ...
  19944. Storage> s3
  19945. Option provider.
  19946. Choose your S3 provider.
  19947. Choose a number from below, or type in your own value.
  19948. Press Enter to leave empty.
  19949. ...
  19950. 4 / China Mobile Ecloud Elastic Object Storage (EOS)
  19951. \ (ChinaMobile)
  19952. ...
  19953. provider> ChinaMobile
  19954. Option env_auth.
  19955. Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
  19956. Only applies if access_key_id and secret_access_key is blank.
  19957. Choose a number from below, or type in your own boolean value (true or false).
  19958. Press Enter for the default (false).
  19959. 1 / Enter AWS credentials in the next step.
  19960. \ (false)
  19961. 2 / Get AWS credentials from the environment (env vars or IAM).
  19962. \ (true)
  19963. env_auth>
  19964. Option access_key_id.
  19965. AWS Access Key ID.
  19966. Leave blank for anonymous access or runtime credentials.
  19967. Enter a value. Press Enter to leave empty.
  19968. access_key_id> accesskeyid
  19969. Option secret_access_key.
  19970. AWS Secret Access Key (password).
  19971. Leave blank for anonymous access or runtime credentials.
  19972. Enter a value. Press Enter to leave empty.
  19973. secret_access_key> secretaccesskey
  19974. Option endpoint.
  19975. Endpoint for China Mobile Ecloud Elastic Object Storage (EOS) API.
  19976. Choose a number from below, or type in your own value.
  19977. Press Enter to leave empty.
  19978. / The default endpoint - a good choice if you are unsure.
  19979. 1 | East China (Suzhou)
  19980. \ (eos-wuxi-1.cmecloud.cn)
  19981. 2 / East China (Jinan)
  19982. \ (eos-jinan-1.cmecloud.cn)
  19983. 3 / East China (Hangzhou)
  19984. \ (eos-ningbo-1.cmecloud.cn)
  19985. 4 / East China (Shanghai-1)
  19986. \ (eos-shanghai-1.cmecloud.cn)
  19987. 5 / Central China (Zhengzhou)
  19988. \ (eos-zhengzhou-1.cmecloud.cn)
  19989. 6 / Central China (Changsha-1)
  19990. \ (eos-hunan-1.cmecloud.cn)
  19991. 7 / Central China (Changsha-2)
  19992. \ (eos-zhuzhou-1.cmecloud.cn)
  19993. 8 / South China (Guangzhou-2)
  19994. \ (eos-guangzhou-1.cmecloud.cn)
  19995. 9 / South China (Guangzhou-3)
  19996. \ (eos-dongguan-1.cmecloud.cn)
  19997. 10 / North China (Beijing-1)
  19998. \ (eos-beijing-1.cmecloud.cn)
  19999. 11 / North China (Beijing-2)
  20000. \ (eos-beijing-2.cmecloud.cn)
  20001. 12 / North China (Beijing-3)
  20002. \ (eos-beijing-4.cmecloud.cn)
  20003. 13 / North China (Huhehaote)
  20004. \ (eos-huhehaote-1.cmecloud.cn)
  20005. 14 / Southwest China (Chengdu)
  20006. \ (eos-chengdu-1.cmecloud.cn)
  20007. 15 / Southwest China (Chongqing)
  20008. \ (eos-chongqing-1.cmecloud.cn)
  20009. 16 / Southwest China (Guiyang)
  20010. \ (eos-guiyang-1.cmecloud.cn)
  20011. 17 / Nouthwest China (Xian)
  20012. \ (eos-xian-1.cmecloud.cn)
  20013. 18 / Yunnan China (Kunming)
  20014. \ (eos-yunnan.cmecloud.cn)
  20015. 19 / Yunnan China (Kunming-2)
  20016. \ (eos-yunnan-2.cmecloud.cn)
  20017. 20 / Tianjin China (Tianjin)
  20018. \ (eos-tianjin-1.cmecloud.cn)
  20019. 21 / Jilin China (Changchun)
  20020. \ (eos-jilin-1.cmecloud.cn)
  20021. 22 / Hubei China (Xiangyan)
  20022. \ (eos-hubei-1.cmecloud.cn)
  20023. 23 / Jiangxi China (Nanchang)
  20024. \ (eos-jiangxi-1.cmecloud.cn)
  20025. 24 / Gansu China (Lanzhou)
  20026. \ (eos-gansu-1.cmecloud.cn)
  20027. 25 / Shanxi China (Taiyuan)
  20028. \ (eos-shanxi-1.cmecloud.cn)
  20029. 26 / Liaoning China (Shenyang)
  20030. \ (eos-liaoning-1.cmecloud.cn)
  20031. 27 / Hebei China (Shijiazhuang)
  20032. \ (eos-hebei-1.cmecloud.cn)
  20033. 28 / Fujian China (Xiamen)
  20034. \ (eos-fujian-1.cmecloud.cn)
  20035. 29 / Guangxi China (Nanning)
  20036. \ (eos-guangxi-1.cmecloud.cn)
  20037. 30 / Anhui China (Huainan)
  20038. \ (eos-anhui-1.cmecloud.cn)
  20039. endpoint> 1
  20040. Option location_constraint.
  20041. Location constraint - must match endpoint.
  20042. Used when creating buckets only.
  20043. Choose a number from below, or type in your own value.
  20044. Press Enter to leave empty.
  20045. 1 / East China (Suzhou)
  20046. \ (wuxi1)
  20047. 2 / East China (Jinan)
  20048. \ (jinan1)
  20049. 3 / East China (Hangzhou)
  20050. \ (ningbo1)
  20051. 4 / East China (Shanghai-1)
  20052. \ (shanghai1)
  20053. 5 / Central China (Zhengzhou)
  20054. \ (zhengzhou1)
  20055. 6 / Central China (Changsha-1)
  20056. \ (hunan1)
  20057. 7 / Central China (Changsha-2)
  20058. \ (zhuzhou1)
  20059. 8 / South China (Guangzhou-2)
  20060. \ (guangzhou1)
  20061. 9 / South China (Guangzhou-3)
  20062. \ (dongguan1)
  20063. 10 / North China (Beijing-1)
  20064. \ (beijing1)
  20065. 11 / North China (Beijing-2)
  20066. \ (beijing2)
  20067. 12 / North China (Beijing-3)
  20068. \ (beijing4)
  20069. 13 / North China (Huhehaote)
  20070. \ (huhehaote1)
  20071. 14 / Southwest China (Chengdu)
  20072. \ (chengdu1)
  20073. 15 / Southwest China (Chongqing)
  20074. \ (chongqing1)
  20075. 16 / Southwest China (Guiyang)
  20076. \ (guiyang1)
  20077. 17 / Nouthwest China (Xian)
  20078. \ (xian1)
  20079. 18 / Yunnan China (Kunming)
  20080. \ (yunnan)
  20081. 19 / Yunnan China (Kunming-2)
  20082. \ (yunnan2)
  20083. 20 / Tianjin China (Tianjin)
  20084. \ (tianjin1)
  20085. 21 / Jilin China (Changchun)
  20086. \ (jilin1)
  20087. 22 / Hubei China (Xiangyan)
  20088. \ (hubei1)
  20089. 23 / Jiangxi China (Nanchang)
  20090. \ (jiangxi1)
  20091. 24 / Gansu China (Lanzhou)
  20092. \ (gansu1)
  20093. 25 / Shanxi China (Taiyuan)
  20094. \ (shanxi1)
  20095. 26 / Liaoning China (Shenyang)
  20096. \ (liaoning1)
  20097. 27 / Hebei China (Shijiazhuang)
  20098. \ (hebei1)
  20099. 28 / Fujian China (Xiamen)
  20100. \ (fujian1)
  20101. 29 / Guangxi China (Nanning)
  20102. \ (guangxi1)
  20103. 30 / Anhui China (Huainan)
  20104. \ (anhui1)
  20105. location_constraint> 1
  20106. Option acl.
  20107. Canned ACL used when creating buckets and storing or copying objects.
  20108. This ACL is used for creating objects and if bucket_acl isn't set, for creating buckets too.
  20109. For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
  20110. Note that this ACL is applied when server-side copying objects as S3
  20111. doesn't copy the ACL from the source but rather writes a fresh one.
  20112. Choose a number from below, or type in your own value.
  20113. Press Enter to leave empty.
  20114. / Owner gets FULL_CONTROL.
  20115. 1 | No one else has access rights (default).
  20116. \ (private)
  20117. / Owner gets FULL_CONTROL.
  20118. 2 | The AllUsers group gets READ access.
  20119. \ (public-read)
  20120. / Owner gets FULL_CONTROL.
  20121. 3 | The AllUsers group gets READ and WRITE access.
  20122. | Granting this on a bucket is generally not recommended.
  20123. \ (public-read-write)
  20124. / Owner gets FULL_CONTROL.
  20125. 4 | The AuthenticatedUsers group gets READ access.
  20126. \ (authenticated-read)
  20127. / Object owner gets FULL_CONTROL.
  20128. acl> private
  20129. Option server_side_encryption.
  20130. The server-side encryption algorithm used when storing this object in S3.
  20131. Choose a number from below, or type in your own value.
  20132. Press Enter to leave empty.
  20133. 1 / None
  20134. \ ()
  20135. 2 / AES256
  20136. \ (AES256)
  20137. server_side_encryption>
  20138. Option storage_class.
  20139. The storage class to use when storing new objects in ChinaMobile.
  20140. Choose a number from below, or type in your own value.
  20141. Press Enter to leave empty.
  20142. 1 / Default
  20143. \ ()
  20144. 2 / Standard storage class
  20145. \ (STANDARD)
  20146. 3 / Archive storage mode
  20147. \ (GLACIER)
  20148. 4 / Infrequent access storage mode
  20149. \ (STANDARD_IA)
  20150. storage_class>
  20151. Edit advanced config?
  20152. y) Yes
  20153. n) No (default)
  20154. y/n> n
  20155. --------------------
  20156. [ChinaMobile]
  20157. type = s3
  20158. provider = ChinaMobile
  20159. access_key_id = accesskeyid
  20160. secret_access_key = secretaccesskey
  20161. endpoint = eos-wuxi-1.cmecloud.cn
  20162. location_constraint = wuxi1
  20163. acl = private
  20164. --------------------
  20165. y) Yes this is OK (default)
  20166. e) Edit this remote
  20167. d) Delete this remote
  20168. y/e/d> y
  20169. Leviia Cloud Object Storage
  20170. Leviia Object Storage, backup and secure your data in a 100% French
  20171. cloud, independent of GAFAM..
  20172. To configure access to Leviia, follow the steps below:
  20173. 1. Run rclone config and select n for a new remote.
  20174. rclone config
  20175. No remotes found, make a new one?
  20176. n) New remote
  20177. s) Set configuration password
  20178. q) Quit config
  20179. n/s/q> n
  20180. 2. Give the name of the configuration. For example, name it 'leviia'.
  20181. name> leviia
  20182. 3. Select s3 storage.
  20183. Choose a number from below, or type in your own value
  20184. [snip]
  20185. XX / Amazon S3 Compliant Storage Providers including AWS, ...
  20186. \ (s3)
  20187. [snip]
  20188. Storage> s3
  20189. 4. Select Leviia provider.
  20190. Choose a number from below, or type in your own value
  20191. 1 / Amazon Web Services (AWS) S3
  20192. \ "AWS"
  20193. [snip]
  20194. 15 / Leviia Object Storage
  20195. \ (Leviia)
  20196. [snip]
  20197. provider> Leviia
  20198. 5. Enter your SecretId and SecretKey of Leviia.
  20199. Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
  20200. Only applies if access_key_id and secret_access_key is blank.
  20201. Enter a boolean value (true or false). Press Enter for the default ("false").
  20202. Choose a number from below, or type in your own value
  20203. 1 / Enter AWS credentials in the next step
  20204. \ "false"
  20205. 2 / Get AWS credentials from the environment (env vars or IAM)
  20206. \ "true"
  20207. env_auth> 1
  20208. AWS Access Key ID.
  20209. Leave blank for anonymous access or runtime credentials.
  20210. Enter a string value. Press Enter for the default ("").
  20211. access_key_id> ZnIx.xxxxxxxxxxxxxxx
  20212. AWS Secret Access Key (password)
  20213. Leave blank for anonymous access or runtime credentials.
  20214. Enter a string value. Press Enter for the default ("").
  20215. secret_access_key> xxxxxxxxxxx
  20216. 6. Select endpoint for Leviia.
  20217. / The default endpoint
  20218. 1 | Leviia.
  20219. \ (s3.leviia.com)
  20220. [snip]
  20221. endpoint> 1
  20222. 7. Choose acl.
  20223. Note that this ACL is applied when server-side copying objects as S3
  20224. doesn't copy the ACL from the source but rather writes a fresh one.
  20225. Enter a string value. Press Enter for the default ("").
  20226. Choose a number from below, or type in your own value
  20227. / Owner gets FULL_CONTROL.
  20228. 1 | No one else has access rights (default).
  20229. \ (private)
  20230. / Owner gets FULL_CONTROL.
  20231. 2 | The AllUsers group gets READ access.
  20232. \ (public-read)
  20233. [snip]
  20234. acl> 1
  20235. Edit advanced config? (y/n)
  20236. y) Yes
  20237. n) No (default)
  20238. y/n> n
  20239. Remote config
  20240. --------------------
  20241. [leviia]
  20242. - type: s3
  20243. - provider: Leviia
  20244. - access_key_id: ZnIx.xxxxxxx
  20245. - secret_access_key: xxxxxxxx
  20246. - endpoint: s3.leviia.com
  20247. - acl: private
  20248. --------------------
  20249. y) Yes this is OK (default)
  20250. e) Edit this remote
  20251. d) Delete this remote
  20252. y/e/d> y
  20253. Current remotes:
  20254. Name Type
  20255. ==== ====
  20256. leviia s3
  20257. Liara
  20258. Here is an example of making a Liara Object Storage configuration. First
  20259. run:
  20260. rclone config
  20261. This will guide you through an interactive setup process.
  20262. No remotes found, make a new one?
  20263. n) New remote
  20264. s) Set configuration password
  20265. n/s> n
  20266. name> Liara
  20267. Type of storage to configure.
  20268. Choose a number from below, or type in your own value
  20269. [snip]
  20270. XX / Amazon S3 (also Dreamhost, Ceph, ChinaMobile, ArvanCloud, Liara, Minio)
  20271. \ "s3"
  20272. [snip]
  20273. Storage> s3
  20274. Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars). Only applies if access_key_id and secret_access_key is blank.
  20275. Choose a number from below, or type in your own value
  20276. 1 / Enter AWS credentials in the next step
  20277. \ "false"
  20278. 2 / Get AWS credentials from the environment (env vars or IAM)
  20279. \ "true"
  20280. env_auth> 1
  20281. AWS Access Key ID - leave blank for anonymous access or runtime credentials.
  20282. access_key_id> YOURACCESSKEY
  20283. AWS Secret Access Key (password) - leave blank for anonymous access or runtime credentials.
  20284. secret_access_key> YOURSECRETACCESSKEY
  20285. Region to connect to.
  20286. Choose a number from below, or type in your own value
  20287. / The default endpoint
  20288. 1 | US Region, Northern Virginia, or Pacific Northwest.
  20289. | Leave location constraint empty.
  20290. \ "us-east-1"
  20291. [snip]
  20292. region>
  20293. Endpoint for S3 API.
  20294. Leave blank if using Liara to use the default endpoint for the region.
  20295. Specify if using an S3 clone such as Ceph.
  20296. endpoint> storage.iran.liara.space
  20297. Canned ACL used when creating buckets and/or storing objects in S3.
  20298. For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
  20299. Choose a number from below, or type in your own value
  20300. 1 / Owner gets FULL_CONTROL. No one else has access rights (default).
  20301. \ "private"
  20302. [snip]
  20303. acl>
  20304. The server-side encryption algorithm used when storing this object in S3.
  20305. Choose a number from below, or type in your own value
  20306. 1 / None
  20307. \ ""
  20308. 2 / AES256
  20309. \ "AES256"
  20310. server_side_encryption>
  20311. The storage class to use when storing objects in S3.
  20312. Choose a number from below, or type in your own value
  20313. 1 / Default
  20314. \ ""
  20315. 2 / Standard storage class
  20316. \ "STANDARD"
  20317. storage_class>
  20318. Remote config
  20319. --------------------
  20320. [Liara]
  20321. env_auth = false
  20322. access_key_id = YOURACCESSKEY
  20323. secret_access_key = YOURSECRETACCESSKEY
  20324. endpoint = storage.iran.liara.space
  20325. location_constraint =
  20326. acl =
  20327. server_side_encryption =
  20328. storage_class =
  20329. --------------------
  20330. y) Yes this is OK
  20331. e) Edit this remote
  20332. d) Delete this remote
  20333. y/e/d> y
  20334. This will leave the config file looking like this.
  20335. [Liara]
  20336. type = s3
  20337. provider = Liara
  20338. env_auth = false
  20339. access_key_id = YOURACCESSKEY
  20340. secret_access_key = YOURSECRETACCESSKEY
  20341. region =
  20342. endpoint = storage.iran.liara.space
  20343. location_constraint =
  20344. acl =
  20345. server_side_encryption =
  20346. storage_class =
  20347. Linode
  20348. Here is an example of making a Linode Object Storage configuration.
  20349. First run:
  20350. rclone config
  20351. This will guide you through an interactive setup process.
  20352. No remotes found, make a new one?
  20353. n) New remote
  20354. s) Set configuration password
  20355. q) Quit config
  20356. n/s/q> n
  20357. Enter name for new remote.
  20358. name> linode
  20359. Option Storage.
  20360. Type of storage to configure.
  20361. Choose a number from below, or type in your own value.
  20362. [snip]
  20363. XX / Amazon S3 Compliant Storage Providers including AWS, ...Linode, ...and others
  20364. \ (s3)
  20365. [snip]
  20366. Storage> s3
  20367. Option provider.
  20368. Choose your S3 provider.
  20369. Choose a number from below, or type in your own value.
  20370. Press Enter to leave empty.
  20371. [snip]
  20372. XX / Linode Object Storage
  20373. \ (Linode)
  20374. [snip]
  20375. provider> Linode
  20376. Option env_auth.
  20377. Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
  20378. Only applies if access_key_id and secret_access_key is blank.
  20379. Choose a number from below, or type in your own boolean value (true or false).
  20380. Press Enter for the default (false).
  20381. 1 / Enter AWS credentials in the next step.
  20382. \ (false)
  20383. 2 / Get AWS credentials from the environment (env vars or IAM).
  20384. \ (true)
  20385. env_auth>
  20386. Option access_key_id.
  20387. AWS Access Key ID.
  20388. Leave blank for anonymous access or runtime credentials.
  20389. Enter a value. Press Enter to leave empty.
  20390. access_key_id> ACCESS_KEY
  20391. Option secret_access_key.
  20392. AWS Secret Access Key (password).
  20393. Leave blank for anonymous access or runtime credentials.
  20394. Enter a value. Press Enter to leave empty.
  20395. secret_access_key> SECRET_ACCESS_KEY
  20396. Option endpoint.
  20397. Endpoint for Linode Object Storage API.
  20398. Choose a number from below, or type in your own value.
  20399. Press Enter to leave empty.
  20400. 1 / Atlanta, GA (USA), us-southeast-1
  20401. \ (us-southeast-1.linodeobjects.com)
  20402. 2 / Chicago, IL (USA), us-ord-1
  20403. \ (us-ord-1.linodeobjects.com)
  20404. 3 / Frankfurt (Germany), eu-central-1
  20405. \ (eu-central-1.linodeobjects.com)
  20406. 4 / Milan (Italy), it-mil-1
  20407. \ (it-mil-1.linodeobjects.com)
  20408. 5 / Newark, NJ (USA), us-east-1
  20409. \ (us-east-1.linodeobjects.com)
  20410. 6 / Paris (France), fr-par-1
  20411. \ (fr-par-1.linodeobjects.com)
  20412. 7 / Seattle, WA (USA), us-sea-1
  20413. \ (us-sea-1.linodeobjects.com)
  20414. 8 / Singapore ap-south-1
  20415. \ (ap-south-1.linodeobjects.com)
  20416. 9 / Stockholm (Sweden), se-sto-1
  20417. \ (se-sto-1.linodeobjects.com)
  20418. 10 / Washington, DC, (USA), us-iad-1
  20419. \ (us-iad-1.linodeobjects.com)
  20420. endpoint> 3
  20421. Option acl.
  20422. Canned ACL used when creating buckets and storing or copying objects.
  20423. This ACL is used for creating objects and if bucket_acl isn't set, for creating buckets too.
  20424. For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
  20425. Note that this ACL is applied when server-side copying objects as S3
  20426. doesn't copy the ACL from the source but rather writes a fresh one.
  20427. If the acl is an empty string then no X-Amz-Acl: header is added and
  20428. the default (private) will be used.
  20429. Choose a number from below, or type in your own value.
  20430. Press Enter to leave empty.
  20431. / Owner gets FULL_CONTROL.
  20432. 1 | No one else has access rights (default).
  20433. \ (private)
  20434. [snip]
  20435. acl>
  20436. Edit advanced config?
  20437. y) Yes
  20438. n) No (default)
  20439. y/n> n
  20440. Configuration complete.
  20441. Options:
  20442. - type: s3
  20443. - provider: Linode
  20444. - access_key_id: ACCESS_KEY
  20445. - secret_access_key: SECRET_ACCESS_KEY
  20446. - endpoint: eu-central-1.linodeobjects.com
  20447. Keep this "linode" remote?
  20448. y) Yes this is OK (default)
  20449. e) Edit this remote
  20450. d) Delete this remote
  20451. y/e/d> y
  20452. This will leave the config file looking like this.
  20453. [linode]
  20454. type = s3
  20455. provider = Linode
  20456. access_key_id = ACCESS_KEY
  20457. secret_access_key = SECRET_ACCESS_KEY
  20458. endpoint = eu-central-1.linodeobjects.com
  20459. ArvanCloud
  20460. ArvanCloud ArvanCloud Object Storage goes beyond the limited traditional
  20461. file storage. It gives you access to backup and archived files and
  20462. allows sharing. Files like profile image in the app, images sent by
  20463. users or scanned documents can be stored securely and easily in our
  20464. Object Storage service.
  20465. ArvanCloud provides an S3 interface which can be configured for use with
  20466. rclone like this.
  20467. No remotes found, make a new one?
  20468. n) New remote
  20469. s) Set configuration password
  20470. n/s> n
  20471. name> ArvanCloud
  20472. Type of storage to configure.
  20473. Choose a number from below, or type in your own value
  20474. [snip]
  20475. XX / Amazon S3 (also Dreamhost, Ceph, ChinaMobile, ArvanCloud, Liara, Minio)
  20476. \ "s3"
  20477. [snip]
  20478. Storage> s3
  20479. Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars). Only applies if access_key_id and secret_access_key is blank.
  20480. Choose a number from below, or type in your own value
  20481. 1 / Enter AWS credentials in the next step
  20482. \ "false"
  20483. 2 / Get AWS credentials from the environment (env vars or IAM)
  20484. \ "true"
  20485. env_auth> 1
  20486. AWS Access Key ID - leave blank for anonymous access or runtime credentials.
  20487. access_key_id> YOURACCESSKEY
  20488. AWS Secret Access Key (password) - leave blank for anonymous access or runtime credentials.
  20489. secret_access_key> YOURSECRETACCESSKEY
  20490. Region to connect to.
  20491. Choose a number from below, or type in your own value
  20492. / The default endpoint - a good choice if you are unsure.
  20493. 1 | US Region, Northern Virginia, or Pacific Northwest.
  20494. | Leave location constraint empty.
  20495. \ "us-east-1"
  20496. [snip]
  20497. region>
  20498. Endpoint for S3 API.
  20499. Leave blank if using ArvanCloud to use the default endpoint for the region.
  20500. Specify if using an S3 clone such as Ceph.
  20501. endpoint> s3.arvanstorage.com
  20502. Location constraint - must be set to match the Region. Used when creating buckets only.
  20503. Choose a number from below, or type in your own value
  20504. 1 / Empty for Iran-Tehran Region.
  20505. \ ""
  20506. [snip]
  20507. location_constraint>
  20508. Canned ACL used when creating buckets and/or storing objects in S3.
  20509. For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
  20510. Choose a number from below, or type in your own value
  20511. 1 / Owner gets FULL_CONTROL. No one else has access rights (default).
  20512. \ "private"
  20513. [snip]
  20514. acl>
  20515. The server-side encryption algorithm used when storing this object in S3.
  20516. Choose a number from below, or type in your own value
  20517. 1 / None
  20518. \ ""
  20519. 2 / AES256
  20520. \ "AES256"
  20521. server_side_encryption>
  20522. The storage class to use when storing objects in S3.
  20523. Choose a number from below, or type in your own value
  20524. 1 / Default
  20525. \ ""
  20526. 2 / Standard storage class
  20527. \ "STANDARD"
  20528. storage_class>
  20529. Remote config
  20530. --------------------
  20531. [ArvanCloud]
  20532. env_auth = false
  20533. access_key_id = YOURACCESSKEY
  20534. secret_access_key = YOURSECRETACCESSKEY
  20535. region = ir-thr-at1
  20536. endpoint = s3.arvanstorage.com
  20537. location_constraint =
  20538. acl =
  20539. server_side_encryption =
  20540. storage_class =
  20541. --------------------
  20542. y) Yes this is OK
  20543. e) Edit this remote
  20544. d) Delete this remote
  20545. y/e/d> y
  20546. This will leave the config file looking like this.
  20547. [ArvanCloud]
  20548. type = s3
  20549. provider = ArvanCloud
  20550. env_auth = false
  20551. access_key_id = YOURACCESSKEY
  20552. secret_access_key = YOURSECRETACCESSKEY
  20553. region =
  20554. endpoint = s3.arvanstorage.com
  20555. location_constraint =
  20556. acl =
  20557. server_side_encryption =
  20558. storage_class =
  20559. Tencent COS
  20560. Tencent Cloud Object Storage (COS) is a distributed storage service
  20561. offered by Tencent Cloud for unstructured data. It is secure, stable,
  20562. massive, convenient, low-delay and low-cost.
  20563. To configure access to Tencent COS, follow the steps below:
  20564. 1. Run rclone config and select n for a new remote.
  20565. rclone config
  20566. No remotes found, make a new one?
  20567. n) New remote
  20568. s) Set configuration password
  20569. q) Quit config
  20570. n/s/q> n
  20571. 2. Give the name of the configuration. For example, name it 'cos'.
  20572. name> cos
  20573. 3. Select s3 storage.
  20574. Choose a number from below, or type in your own value
  20575. [snip]
  20576. XX / Amazon S3 Compliant Storage Providers including AWS, ...
  20577. \ "s3"
  20578. [snip]
  20579. Storage> s3
  20580. 4. Select TencentCOS provider.
  20581. Choose a number from below, or type in your own value
  20582. 1 / Amazon Web Services (AWS) S3
  20583. \ "AWS"
  20584. [snip]
  20585. 11 / Tencent Cloud Object Storage (COS)
  20586. \ "TencentCOS"
  20587. [snip]
  20588. provider> TencentCOS
  20589. 5. Enter your SecretId and SecretKey of Tencent Cloud.
  20590. Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
  20591. Only applies if access_key_id and secret_access_key is blank.
  20592. Enter a boolean value (true or false). Press Enter for the default ("false").
  20593. Choose a number from below, or type in your own value
  20594. 1 / Enter AWS credentials in the next step
  20595. \ "false"
  20596. 2 / Get AWS credentials from the environment (env vars or IAM)
  20597. \ "true"
  20598. env_auth> 1
  20599. AWS Access Key ID.
  20600. Leave blank for anonymous access or runtime credentials.
  20601. Enter a string value. Press Enter for the default ("").
  20602. access_key_id> AKIDxxxxxxxxxx
  20603. AWS Secret Access Key (password)
  20604. Leave blank for anonymous access or runtime credentials.
  20605. Enter a string value. Press Enter for the default ("").
  20606. secret_access_key> xxxxxxxxxxx
  20607. 6. Select endpoint for Tencent COS. This is the standard endpoint for
  20608. different region.
  20609. 1 / Beijing Region.
  20610. \ "cos.ap-beijing.myqcloud.com"
  20611. 2 / Nanjing Region.
  20612. \ "cos.ap-nanjing.myqcloud.com"
  20613. 3 / Shanghai Region.
  20614. \ "cos.ap-shanghai.myqcloud.com"
  20615. 4 / Guangzhou Region.
  20616. \ "cos.ap-guangzhou.myqcloud.com"
  20617. [snip]
  20618. endpoint> 4
  20619. 7. Choose acl and storage class.
  20620. Note that this ACL is applied when server-side copying objects as S3
  20621. doesn't copy the ACL from the source but rather writes a fresh one.
  20622. Enter a string value. Press Enter for the default ("").
  20623. Choose a number from below, or type in your own value
  20624. 1 / Owner gets Full_CONTROL. No one else has access rights (default).
  20625. \ "default"
  20626. [snip]
  20627. acl> 1
  20628. The storage class to use when storing new objects in Tencent COS.
  20629. Enter a string value. Press Enter for the default ("").
  20630. Choose a number from below, or type in your own value
  20631. 1 / Default
  20632. \ ""
  20633. [snip]
  20634. storage_class> 1
  20635. Edit advanced config? (y/n)
  20636. y) Yes
  20637. n) No (default)
  20638. y/n> n
  20639. Remote config
  20640. --------------------
  20641. [cos]
  20642. type = s3
  20643. provider = TencentCOS
  20644. env_auth = false
  20645. access_key_id = xxx
  20646. secret_access_key = xxx
  20647. endpoint = cos.ap-guangzhou.myqcloud.com
  20648. acl = default
  20649. --------------------
  20650. y) Yes this is OK (default)
  20651. e) Edit this remote
  20652. d) Delete this remote
  20653. y/e/d> y
  20654. Current remotes:
  20655. Name Type
  20656. ==== ====
  20657. cos s3
  20658. Netease NOS
  20659. For Netease NOS configure as per the configurator rclone config setting
  20660. the provider Netease. This will automatically set
  20661. force_path_style = false which is necessary for it to run properly.
  20662. Petabox
  20663. Here is an example of making a Petabox configuration. First run:
  20664. rclone config
  20665. This will guide you through an interactive setup process.
  20666. No remotes found, make a new one?
  20667. n) New remote
  20668. s) Set configuration password
  20669. n/s> n
  20670. Enter name for new remote.
  20671. name> My Petabox Storage
  20672. Option Storage.
  20673. Type of storage to configure.
  20674. Choose a number from below, or type in your own value.
  20675. [snip]
  20676. XX / Amazon S3 Compliant Storage Providers including AWS, ...
  20677. \ "s3"
  20678. [snip]
  20679. Storage> s3
  20680. Option provider.
  20681. Choose your S3 provider.
  20682. Choose a number from below, or type in your own value.
  20683. Press Enter to leave empty.
  20684. [snip]
  20685. XX / Petabox Object Storage
  20686. \ (Petabox)
  20687. [snip]
  20688. provider> Petabox
  20689. Option env_auth.
  20690. Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
  20691. Only applies if access_key_id and secret_access_key is blank.
  20692. Choose a number from below, or type in your own boolean value (true or false).
  20693. Press Enter for the default (false).
  20694. 1 / Enter AWS credentials in the next step.
  20695. \ (false)
  20696. 2 / Get AWS credentials from the environment (env vars or IAM).
  20697. \ (true)
  20698. env_auth> 1
  20699. Option access_key_id.
  20700. AWS Access Key ID.
  20701. Leave blank for anonymous access or runtime credentials.
  20702. Enter a value. Press Enter to leave empty.
  20703. access_key_id> YOUR_ACCESS_KEY_ID
  20704. Option secret_access_key.
  20705. AWS Secret Access Key (password).
  20706. Leave blank for anonymous access or runtime credentials.
  20707. Enter a value. Press Enter to leave empty.
  20708. secret_access_key> YOUR_SECRET_ACCESS_KEY
  20709. Option region.
  20710. Region where your bucket will be created and your data stored.
  20711. Choose a number from below, or type in your own value.
  20712. Press Enter to leave empty.
  20713. 1 / US East (N. Virginia)
  20714. \ (us-east-1)
  20715. 2 / Europe (Frankfurt)
  20716. \ (eu-central-1)
  20717. 3 / Asia Pacific (Singapore)
  20718. \ (ap-southeast-1)
  20719. 4 / Middle East (Bahrain)
  20720. \ (me-south-1)
  20721. 5 / South America (São Paulo)
  20722. \ (sa-east-1)
  20723. region> 1
  20724. Option endpoint.
  20725. Endpoint for Petabox S3 Object Storage.
  20726. Specify the endpoint from the same region.
  20727. Choose a number from below, or type in your own value.
  20728. 1 / US East (N. Virginia)
  20729. \ (s3.petabox.io)
  20730. 2 / US East (N. Virginia)
  20731. \ (s3.us-east-1.petabox.io)
  20732. 3 / Europe (Frankfurt)
  20733. \ (s3.eu-central-1.petabox.io)
  20734. 4 / Asia Pacific (Singapore)
  20735. \ (s3.ap-southeast-1.petabox.io)
  20736. 5 / Middle East (Bahrain)
  20737. \ (s3.me-south-1.petabox.io)
  20738. 6 / South America (São Paulo)
  20739. \ (s3.sa-east-1.petabox.io)
  20740. endpoint> 1
  20741. Option acl.
  20742. Canned ACL used when creating buckets and storing or copying objects.
  20743. This ACL is used for creating objects and if bucket_acl isn't set, for creating buckets too.
  20744. For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
  20745. Note that this ACL is applied when server-side copying objects as S3
  20746. doesn't copy the ACL from the source but rather writes a fresh one.
  20747. If the acl is an empty string then no X-Amz-Acl: header is added and
  20748. the default (private) will be used.
  20749. Choose a number from below, or type in your own value.
  20750. Press Enter to leave empty.
  20751. / Owner gets FULL_CONTROL.
  20752. 1 | No one else has access rights (default).
  20753. \ (private)
  20754. / Owner gets FULL_CONTROL.
  20755. 2 | The AllUsers group gets READ access.
  20756. \ (public-read)
  20757. / Owner gets FULL_CONTROL.
  20758. 3 | The AllUsers group gets READ and WRITE access.
  20759. | Granting this on a bucket is generally not recommended.
  20760. \ (public-read-write)
  20761. / Owner gets FULL_CONTROL.
  20762. 4 | The AuthenticatedUsers group gets READ access.
  20763. \ (authenticated-read)
  20764. / Object owner gets FULL_CONTROL.
  20765. 5 | Bucket owner gets READ access.
  20766. | If you specify this canned ACL when creating a bucket, Amazon S3 ignores it.
  20767. \ (bucket-owner-read)
  20768. / Both the object owner and the bucket owner get FULL_CONTROL over the object.
  20769. 6 | If you specify this canned ACL when creating a bucket, Amazon S3 ignores it.
  20770. \ (bucket-owner-full-control)
  20771. acl> 1
  20772. Edit advanced config?
  20773. y) Yes
  20774. n) No (default)
  20775. y/n> No
  20776. Configuration complete.
  20777. Options:
  20778. - type: s3
  20779. - provider: Petabox
  20780. - access_key_id: YOUR_ACCESS_KEY_ID
  20781. - secret_access_key: YOUR_SECRET_ACCESS_KEY
  20782. - region: us-east-1
  20783. - endpoint: s3.petabox.io
  20784. Keep this "My Petabox Storage" remote?
  20785. y) Yes this is OK (default)
  20786. e) Edit this remote
  20787. d) Delete this remote
  20788. y/e/d> y
  20789. This will leave the config file looking like this.
  20790. [My Petabox Storage]
  20791. type = s3
  20792. provider = Petabox
  20793. access_key_id = YOUR_ACCESS_KEY_ID
  20794. secret_access_key = YOUR_SECRET_ACCESS_KEY
  20795. region = us-east-1
  20796. endpoint = s3.petabox.io
  20797. Storj
  20798. Storj is a decentralized cloud storage which can be used through its
  20799. native protocol or an S3 compatible gateway.
  20800. The S3 compatible gateway is configured using rclone config with a type
  20801. of s3 and with a provider name of Storj. Here is an example run of the
  20802. configurator.
  20803. Type of storage to configure.
  20804. Storage> s3
  20805. Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
  20806. Only applies if access_key_id and secret_access_key is blank.
  20807. Choose a number from below, or type in your own boolean value (true or false).
  20808. Press Enter for the default (false).
  20809. 1 / Enter AWS credentials in the next step.
  20810. \ (false)
  20811. 2 / Get AWS credentials from the environment (env vars or IAM).
  20812. \ (true)
  20813. env_auth> 1
  20814. Option access_key_id.
  20815. AWS Access Key ID.
  20816. Leave blank for anonymous access or runtime credentials.
  20817. Enter a value. Press Enter to leave empty.
  20818. access_key_id> XXXX (as shown when creating the access grant)
  20819. Option secret_access_key.
  20820. AWS Secret Access Key (password).
  20821. Leave blank for anonymous access or runtime credentials.
  20822. Enter a value. Press Enter to leave empty.
  20823. secret_access_key> XXXX (as shown when creating the access grant)
  20824. Option endpoint.
  20825. Endpoint of the Shared Gateway.
  20826. Choose a number from below, or type in your own value.
  20827. Press Enter to leave empty.
  20828. 1 / EU1 Shared Gateway
  20829. \ (gateway.eu1.storjshare.io)
  20830. 2 / US1 Shared Gateway
  20831. \ (gateway.us1.storjshare.io)
  20832. 3 / Asia-Pacific Shared Gateway
  20833. \ (gateway.ap1.storjshare.io)
  20834. endpoint> 1 (as shown when creating the access grant)
  20835. Edit advanced config?
  20836. y) Yes
  20837. n) No (default)
  20838. y/n> n
  20839. Note that s3 credentials are generated when you create an access grant.
  20840. Backend quirks
  20841. - --chunk-size is forced to be 64 MiB or greater. This will use more
  20842. memory than the default of 5 MiB.
  20843. - Server side copy is disabled as it isn't currently supported in the
  20844. gateway.
  20845. - GetTier and SetTier are not supported.
  20846. Backend bugs
  20847. Due to issue #39 uploading multipart files via the S3 gateway causes
  20848. them to lose their metadata. For rclone's purpose this means that the
  20849. modification time is not stored, nor is any MD5SUM (if one is available
  20850. from the source).
  20851. This has the following consequences:
  20852. - Using rclone rcat will fail as the medatada doesn't match after
  20853. upload
  20854. - Uploading files with rclone mount will fail for the same reason
  20855. - This can worked around by using --vfs-cache-mode writes or
  20856. --vfs-cache-mode full or setting --s3-upload-cutoff large
  20857. - Files uploaded via a multipart upload won't have their modtimes
  20858. - This will mean that rclone sync will likely keep trying to
  20859. upload files bigger than --s3-upload-cutoff
  20860. - This can be worked around with --checksum or --size-only or
  20861. setting --s3-upload-cutoff large
  20862. - The maximum value for --s3-upload-cutoff is 5GiB though
  20863. One general purpose workaround is to set --s3-upload-cutoff 5G. This
  20864. means that rclone will upload files smaller than 5GiB as single parts.
  20865. Note that this can be set in the config file with upload_cutoff = 5G or
  20866. configured in the advanced settings. If you regularly transfer files
  20867. larger than 5G then using --checksum or --size-only in rclone sync is
  20868. the recommended workaround.
  20869. Comparison with the native protocol
  20870. Use the the native protocol to take advantage of client-side encryption
  20871. as well as to achieve the best possible download performance. Uploads
  20872. will be erasure-coded locally, thus a 1gb upload will result in 2.68gb
  20873. of data being uploaded to storage nodes across the network.
  20874. Use this backend and the S3 compatible Hosted Gateway to increase upload
  20875. performance and reduce the load on your systems and network. Uploads
  20876. will be encrypted and erasure-coded server-side, thus a 1GB upload will
  20877. result in only in 1GB of data being uploaded to storage nodes across the
  20878. network.
  20879. For more detailed comparison please check the documentation of the storj
  20880. backend.
  20881. Limitations
  20882. rclone about is not supported by the S3 backend. Backends without this
  20883. capability cannot determine free space for an rclone mount or use policy
  20884. mfs (most free space) as a member of an rclone union remote.
  20885. See List of backends that do not support rclone about and rclone about
  20886. Synology C2 Object Storage
  20887. Synology C2 Object Storage provides a secure, S3-compatible, and
  20888. cost-effective cloud storage solution without API request, download
  20889. fees, and deletion penalty.
  20890. The S3 compatible gateway is configured using rclone config with a type
  20891. of s3 and with a provider name of Synology. Here is an example run of
  20892. the configurator.
  20893. First run:
  20894. rclone config
  20895. This will guide you through an interactive setup process.
  20896. No remotes found, make a new one?
  20897. n) New remote
  20898. s) Set configuration password
  20899. q) Quit config
  20900. n/s/q> n
  20901. Enter name for new remote.1
  20902. name> syno
  20903. Type of storage to configure.
  20904. Enter a string value. Press Enter for the default ("").
  20905. Choose a number from below, or type in your own value
  20906. XX / Amazon S3 Compliant Storage Providers including AWS, ...
  20907. \ "s3"
  20908. Storage> s3
  20909. Choose your S3 provider.
  20910. Enter a string value. Press Enter for the default ("").
  20911. Choose a number from below, or type in your own value
  20912. 24 / Synology C2 Object Storage
  20913. \ (Synology)
  20914. provider> Synology
  20915. Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
  20916. Only applies if access_key_id and secret_access_key is blank.
  20917. Enter a boolean value (true or false). Press Enter for the default ("false").
  20918. Choose a number from below, or type in your own value
  20919. 1 / Enter AWS credentials in the next step
  20920. \ "false"
  20921. 2 / Get AWS credentials from the environment (env vars or IAM)
  20922. \ "true"
  20923. env_auth> 1
  20924. AWS Access Key ID.
  20925. Leave blank for anonymous access or runtime credentials.
  20926. Enter a string value. Press Enter for the default ("").
  20927. access_key_id> accesskeyid
  20928. AWS Secret Access Key (password)
  20929. Leave blank for anonymous access or runtime credentials.
  20930. Enter a string value. Press Enter for the default ("").
  20931. secret_access_key> secretaccesskey
  20932. Region where your data stored.
  20933. Choose a number from below, or type in your own value.
  20934. Press Enter to leave empty.
  20935. 1 / Europe Region 1
  20936. \ (eu-001)
  20937. 2 / Europe Region 2
  20938. \ (eu-002)
  20939. 3 / US Region 1
  20940. \ (us-001)
  20941. 4 / US Region 2
  20942. \ (us-002)
  20943. 5 / Asia (Taiwan)
  20944. \ (tw-001)
  20945. region > 1
  20946. Option endpoint.
  20947. Endpoint for Synology C2 Object Storage API.
  20948. Choose a number from below, or type in your own value.
  20949. Press Enter to leave empty.
  20950. 1 / EU Endpoint 1
  20951. \ (eu-001.s3.synologyc2.net)
  20952. 2 / US Endpoint 1
  20953. \ (us-001.s3.synologyc2.net)
  20954. 3 / TW Endpoint 1
  20955. \ (tw-001.s3.synologyc2.net)
  20956. endpoint> 1
  20957. Option location_constraint.
  20958. Location constraint - must be set to match the Region.
  20959. Leave blank if not sure. Used when creating buckets only.
  20960. Enter a value. Press Enter to leave empty.
  20961. location_constraint>
  20962. Edit advanced config? (y/n)
  20963. y) Yes
  20964. n) No
  20965. y/n> y
  20966. Option no_check_bucket.
  20967. If set, don't attempt to check the bucket exists or create it.
  20968. This can be useful when trying to minimise the number of transactions
  20969. rclone does if you know the bucket exists already.
  20970. It can also be needed if the user you are using does not have bucket
  20971. creation permissions. Before v1.52.0 this would have passed silently
  20972. due to a bug.
  20973. Enter a boolean value (true or false). Press Enter for the default (true).
  20974. no_check_bucket> true
  20975. Configuration complete.
  20976. Options:
  20977. - type: s3
  20978. - provider: Synology
  20979. - region: eu-001
  20980. - endpoint: eu-001.s3.synologyc2.net
  20981. - no_check_bucket: true
  20982. Keep this "syno" remote?
  20983. y) Yes this is OK (default)
  20984. e) Edit this remote
  20985. d) Delete this remote
  20986. y/e/d> y
  20987. # Backblaze B2
  20988. B2 is [Backblaze's cloud storage system](https://www.backblaze.com/b2/).
  20989. Paths are specified as `remote:bucket` (or `remote:` for the `lsd`
  20990. command.) You may put subdirectories in too, e.g. `remote:bucket/path/to/dir`.
  20991. ## Configuration
  20992. Here is an example of making a b2 configuration. First run
  20993. rclone config
  20994. This will guide you through an interactive setup process. To authenticate
  20995. you will either need your Account ID (a short hex number) and Master
  20996. Application Key (a long hex number) OR an Application Key, which is the
  20997. recommended method. See below for further details on generating and using
  20998. an Application Key.
  20999. No remotes found, make a new one? n) New remote q) Quit config n/q> n
  21000. name> remote Type of storage to configure. Choose a number from below,
  21001. or type in your own value [snip] XX / Backblaze B2  "b2" [snip] Storage>
  21002. b2 Account ID or Application Key ID account> 123456789abc Application
  21003. Key key> 0123456789abcdef0123456789abcdef0123456789 Endpoint for the
  21004. service - leave blank normally. endpoint> Remote config
  21005. -------------------- [remote] account = 123456789abc key =
  21006. 0123456789abcdef0123456789abcdef0123456789 endpoint =
  21007. -------------------- y) Yes this is OK e) Edit this remote d) Delete
  21008. this remote y/e/d> y
  21009. This remote is called `remote` and can now be used like this
  21010. See all buckets
  21011. rclone lsd remote:
  21012. Create a new bucket
  21013. rclone mkdir remote:bucket
  21014. List the contents of a bucket
  21015. rclone ls remote:bucket
  21016. Sync `/home/local/directory` to the remote bucket, deleting any
  21017. excess files in the bucket.
  21018. rclone sync --interactive /home/local/directory remote:bucket
  21019. ### Application Keys
  21020. B2 supports multiple [Application Keys for different access permission
  21021. to B2 Buckets](https://www.backblaze.com/b2/docs/application_keys.html).
  21022. You can use these with rclone too; you will need to use rclone version 1.43
  21023. or later.
  21024. Follow Backblaze's docs to create an Application Key with the required
  21025. permission and add the `applicationKeyId` as the `account` and the
  21026. `Application Key` itself as the `key`.
  21027. Note that you must put the _applicationKeyId_ as the `account` – you
  21028. can't use the master Account ID. If you try then B2 will return 401
  21029. errors.
  21030. ### --fast-list
  21031. This remote supports `--fast-list` which allows you to use fewer
  21032. transactions in exchange for more memory. See the [rclone
  21033. docs](https://rclone.org/docs/#fast-list) for more details.
  21034. ### Modification times
  21035. The modification time is stored as metadata on the object as
  21036. `X-Bz-Info-src_last_modified_millis` as milliseconds since 1970-01-01
  21037. in the Backblaze standard. Other tools should be able to use this as
  21038. a modified time.
  21039. Modified times are used in syncing and are fully supported. Note that
  21040. if a modification time needs to be updated on an object then it will
  21041. create a new version of the object.
  21042. ### Restricted filename characters
  21043. In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
  21044. the following characters are also replaced:
  21045. | Character | Value | Replacement |
  21046. | --------- |:-----:|:-----------:|
  21047. | \ | 0x5C | \ |
  21048. Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
  21049. as they can't be used in JSON strings.
  21050. Note that in 2020-05 Backblaze started allowing \ characters in file
  21051. names. Rclone hasn't changed its encoding as this could cause syncs to
  21052. re-transfer files. If you want rclone not to replace \ then see the
  21053. `--b2-encoding` flag below and remove the `BackSlash` from the
  21054. string. This can be set in the config.
  21055. ### SHA1 checksums
  21056. The SHA1 checksums of the files are checked on upload and download and
  21057. will be used in the syncing process.
  21058. Large files (bigger than the limit in `--b2-upload-cutoff`) which are
  21059. uploaded in chunks will store their SHA1 on the object as
  21060. `X-Bz-Info-large_file_sha1` as recommended by Backblaze.
  21061. For a large file to be uploaded with an SHA1 checksum, the source
  21062. needs to support SHA1 checksums. The local disk supports SHA1
  21063. checksums so large file transfers from local disk will have an SHA1.
  21064. See [the overview](https://rclone.org/overview/#features) for exactly which remotes
  21065. support SHA1.
  21066. Sources which don't support SHA1, in particular `crypt` will upload
  21067. large files without SHA1 checksums. This may be fixed in the future
  21068. (see [#1767](https://github.com/rclone/rclone/issues/1767)).
  21069. Files sizes below `--b2-upload-cutoff` will always have an SHA1
  21070. regardless of the source.
  21071. ### Transfers
  21072. Backblaze recommends that you do lots of transfers simultaneously for
  21073. maximum speed. In tests from my SSD equipped laptop the optimum
  21074. setting is about `--transfers 32` though higher numbers may be used
  21075. for a slight speed improvement. The optimum number for you may vary
  21076. depending on your hardware, how big the files are, how much you want
  21077. to load your computer, etc. The default of `--transfers 4` is
  21078. definitely too low for Backblaze B2 though.
  21079. Note that uploading big files (bigger than 200 MiB by default) will use
  21080. a 96 MiB RAM buffer by default. There can be at most `--transfers` of
  21081. these in use at any moment, so this sets the upper limit on the memory
  21082. used.
  21083. ### Versions
  21084. When rclone uploads a new version of a file it creates a [new version
  21085. of it](https://www.backblaze.com/b2/docs/file_versions.html).
  21086. Likewise when you delete a file, the old version will be marked hidden
  21087. and still be available. Conversely, you may opt in to a "hard delete"
  21088. of files with the `--b2-hard-delete` flag which would permanently remove
  21089. the file instead of hiding it.
  21090. Old versions of files, where available, are visible using the
  21091. `--b2-versions` flag.
  21092. It is also possible to view a bucket as it was at a certain point in time,
  21093. using the `--b2-version-at` flag. This will show the file versions as they
  21094. were at that time, showing files that have been deleted afterwards, and
  21095. hiding files that were created since.
  21096. If you wish to remove all the old versions then you can use the
  21097. `rclone cleanup remote:bucket` command which will delete all the old
  21098. versions of files, leaving the current ones intact. You can also
  21099. supply a path and only old versions under that path will be deleted,
  21100. e.g. `rclone cleanup remote:bucket/path/to/stuff`.
  21101. Note that `cleanup` will remove partially uploaded files from the bucket
  21102. if they are more than a day old.
  21103. When you `purge` a bucket, the current and the old versions will be
  21104. deleted then the bucket will be deleted.
  21105. However `delete` will cause the current versions of the files to
  21106. become hidden old versions.
  21107. Here is a session showing the listing and retrieval of an old
  21108. version followed by a `cleanup` of the old versions.
  21109. Show current version and all the versions with `--b2-versions` flag.
  21110. $ rclone -q ls b2:cleanup-test 9 one.txt
  21111. $ rclone -q --b2-versions ls b2:cleanup-test 9 one.txt 8
  21112. one-v2016-07-04-141032-000.txt 16 one-v2016-07-04-141003-000.txt 15
  21113. one-v2016-07-02-155621-000.txt
  21114. Retrieve an old version
  21115. $ rclone -q --b2-versions copy
  21116. b2:cleanup-test/one-v2016-07-04-141003-000.txt /tmp
  21117. $ ls -l /tmp/one-v2016-07-04-141003-000.txt -rw-rw-r-- 1 ncw ncw 16 Jul
  21118. 2 17:46 /tmp/one-v2016-07-04-141003-000.txt
  21119. Clean up all the old versions and show that they've gone.
  21120. $ rclone -q cleanup b2:cleanup-test
  21121. $ rclone -q ls b2:cleanup-test 9 one.txt
  21122. $ rclone -q --b2-versions ls b2:cleanup-test 9 one.txt
  21123. #### Versions naming caveat
  21124. When using `--b2-versions` flag rclone is relying on the file name
  21125. to work out whether the objects are versions or not. Versions' names
  21126. are created by inserting timestamp between file name and its extension.
  21127. 9 file.txt
  21128. 8 file-v2023-07-17-161032-000.txt
  21129. 16 file-v2023-06-15-141003-000.txt
  21130. If there are real files present with the same names as versions, then
  21131. behaviour of `--b2-versions` can be unpredictable.
  21132. ### Data usage
  21133. It is useful to know how many requests are sent to the server in different scenarios.
  21134. All copy commands send the following 4 requests:
  21135. /b2api/v1/b2_authorize_account /b2api/v1/b2_create_bucket
  21136. /b2api/v1/b2_list_buckets /b2api/v1/b2_list_file_names
  21137. The `b2_list_file_names` request will be sent once for every 1k files
  21138. in the remote path, providing the checksum and modification time of
  21139. the listed files. As of version 1.33 issue
  21140. [#818](https://github.com/rclone/rclone/issues/818) causes extra requests
  21141. to be sent when using B2 with Crypt. When a copy operation does not
  21142. require any files to be uploaded, no more requests will be sent.
  21143. Uploading files that do not require chunking, will send 2 requests per
  21144. file upload:
  21145. /b2api/v1/b2_get_upload_url /b2api/v1/b2_upload_file/
  21146. Uploading files requiring chunking, will send 2 requests (one each to
  21147. start and finish the upload) and another 2 requests for each chunk:
  21148. /b2api/v1/b2_start_large_file /b2api/v1/b2_get_upload_part_url
  21149. /b2api/v1/b2_upload_part/ /b2api/v1/b2_finish_large_file
  21150. #### Versions
  21151. Versions can be viewed with the `--b2-versions` flag. When it is set
  21152. rclone will show and act on older versions of files. For example
  21153. Listing without `--b2-versions`
  21154. $ rclone -q ls b2:cleanup-test 9 one.txt
  21155. And with
  21156. $ rclone -q --b2-versions ls b2:cleanup-test 9 one.txt 8
  21157. one-v2016-07-04-141032-000.txt 16 one-v2016-07-04-141003-000.txt 15
  21158. one-v2016-07-02-155621-000.txt
  21159. Showing that the current version is unchanged but older versions can
  21160. be seen. These have the UTC date that they were uploaded to the
  21161. server to the nearest millisecond appended to them.
  21162. Note that when using `--b2-versions` no file write operations are
  21163. permitted, so you can't upload files or delete them.
  21164. ### B2 and rclone link
  21165. Rclone supports generating file share links for private B2 buckets.
  21166. They can either be for a file for example:
  21167. ./rclone link B2:bucket/path/to/file.txt
  21168. https://f002.backblazeb2.com/file/bucket/path/to/file.txt?Authorization=xxxxxxxx
  21169. or if run on a directory you will get:
  21170. ./rclone link B2:bucket/path
  21171. https://f002.backblazeb2.com/file/bucket/path?Authorization=xxxxxxxx
  21172. you can then use the authorization token (the part of the url from the
  21173. `?Authorization=` on) on any file path under that directory. For example:
  21174. https://f002.backblazeb2.com/file/bucket/path/to/file1?Authorization=xxxxxxxx
  21175. https://f002.backblazeb2.com/file/bucket/path/file2?Authorization=xxxxxxxx
  21176. https://f002.backblazeb2.com/file/bucket/path/folder/file3?Authorization=xxxxxxxx
  21177. ### Standard options
  21178. Here are the Standard options specific to b2 (Backblaze B2).
  21179. #### --b2-account
  21180. Account ID or Application Key ID.
  21181. Properties:
  21182. - Config: account
  21183. - Env Var: RCLONE_B2_ACCOUNT
  21184. - Type: string
  21185. - Required: true
  21186. #### --b2-key
  21187. Application Key.
  21188. Properties:
  21189. - Config: key
  21190. - Env Var: RCLONE_B2_KEY
  21191. - Type: string
  21192. - Required: true
  21193. #### --b2-hard-delete
  21194. Permanently delete files on remote removal, otherwise hide files.
  21195. Properties:
  21196. - Config: hard_delete
  21197. - Env Var: RCLONE_B2_HARD_DELETE
  21198. - Type: bool
  21199. - Default: false
  21200. ### Advanced options
  21201. Here are the Advanced options specific to b2 (Backblaze B2).
  21202. #### --b2-endpoint
  21203. Endpoint for the service.
  21204. Leave blank normally.
  21205. Properties:
  21206. - Config: endpoint
  21207. - Env Var: RCLONE_B2_ENDPOINT
  21208. - Type: string
  21209. - Required: false
  21210. #### --b2-test-mode
  21211. A flag string for X-Bz-Test-Mode header for debugging.
  21212. This is for debugging purposes only. Setting it to one of the strings
  21213. below will cause b2 to return specific errors:
  21214. * "fail_some_uploads"
  21215. * "expire_some_account_authorization_tokens"
  21216. * "force_cap_exceeded"
  21217. These will be set in the "X-Bz-Test-Mode" header which is documented
  21218. in the [b2 integrations checklist](https://www.backblaze.com/b2/docs/integration_checklist.html).
  21219. Properties:
  21220. - Config: test_mode
  21221. - Env Var: RCLONE_B2_TEST_MODE
  21222. - Type: string
  21223. - Required: false
  21224. #### --b2-versions
  21225. Include old versions in directory listings.
  21226. Note that when using this no file write operations are permitted,
  21227. so you can't upload files or delete them.
  21228. Properties:
  21229. - Config: versions
  21230. - Env Var: RCLONE_B2_VERSIONS
  21231. - Type: bool
  21232. - Default: false
  21233. #### --b2-version-at
  21234. Show file versions as they were at the specified time.
  21235. Note that when using this no file write operations are permitted,
  21236. so you can't upload files or delete them.
  21237. Properties:
  21238. - Config: version_at
  21239. - Env Var: RCLONE_B2_VERSION_AT
  21240. - Type: Time
  21241. - Default: off
  21242. #### --b2-upload-cutoff
  21243. Cutoff for switching to chunked upload.
  21244. Files above this size will be uploaded in chunks of "--b2-chunk-size".
  21245. This value should be set no larger than 4.657 GiB (== 5 GB).
  21246. Properties:
  21247. - Config: upload_cutoff
  21248. - Env Var: RCLONE_B2_UPLOAD_CUTOFF
  21249. - Type: SizeSuffix
  21250. - Default: 200Mi
  21251. #### --b2-copy-cutoff
  21252. Cutoff for switching to multipart copy.
  21253. Any files larger than this that need to be server-side copied will be
  21254. copied in chunks of this size.
  21255. The minimum is 0 and the maximum is 4.6 GiB.
  21256. Properties:
  21257. - Config: copy_cutoff
  21258. - Env Var: RCLONE_B2_COPY_CUTOFF
  21259. - Type: SizeSuffix
  21260. - Default: 4Gi
  21261. #### --b2-chunk-size
  21262. Upload chunk size.
  21263. When uploading large files, chunk the file into this size.
  21264. Must fit in memory. These chunks are buffered in memory and there
  21265. might a maximum of "--transfers" chunks in progress at once.
  21266. 5,000,000 Bytes is the minimum size.
  21267. Properties:
  21268. - Config: chunk_size
  21269. - Env Var: RCLONE_B2_CHUNK_SIZE
  21270. - Type: SizeSuffix
  21271. - Default: 96Mi
  21272. #### --b2-upload-concurrency
  21273. Concurrency for multipart uploads.
  21274. This is the number of chunks of the same file that are uploaded
  21275. concurrently.
  21276. Note that chunks are stored in memory and there may be up to
  21277. "--transfers" * "--b2-upload-concurrency" chunks stored at once
  21278. in memory.
  21279. Properties:
  21280. - Config: upload_concurrency
  21281. - Env Var: RCLONE_B2_UPLOAD_CONCURRENCY
  21282. - Type: int
  21283. - Default: 4
  21284. #### --b2-disable-checksum
  21285. Disable checksums for large (> upload cutoff) files.
  21286. Normally rclone will calculate the SHA1 checksum of the input before
  21287. uploading it so it can add it to metadata on the object. This is great
  21288. for data integrity checking but can cause long delays for large files
  21289. to start uploading.
  21290. Properties:
  21291. - Config: disable_checksum
  21292. - Env Var: RCLONE_B2_DISABLE_CHECKSUM
  21293. - Type: bool
  21294. - Default: false
  21295. #### --b2-download-url
  21296. Custom endpoint for downloads.
  21297. This is usually set to a Cloudflare CDN URL as Backblaze offers
  21298. free egress for data downloaded through the Cloudflare network.
  21299. Rclone works with private buckets by sending an "Authorization" header.
  21300. If the custom endpoint rewrites the requests for authentication,
  21301. e.g., in Cloudflare Workers, this header needs to be handled properly.
  21302. Leave blank if you want to use the endpoint provided by Backblaze.
  21303. The URL provided here SHOULD have the protocol and SHOULD NOT have
  21304. a trailing slash or specify the /file/bucket subpath as rclone will
  21305. request files with "{download_url}/file/{bucket_name}/{path}".
  21306. Example:
  21307. > https://mysubdomain.mydomain.tld
  21308. (No trailing "/", "file" or "bucket")
  21309. Properties:
  21310. - Config: download_url
  21311. - Env Var: RCLONE_B2_DOWNLOAD_URL
  21312. - Type: string
  21313. - Required: false
  21314. #### --b2-download-auth-duration
  21315. Time before the public link authorization token will expire in s or suffix ms|s|m|h|d.
  21316. This is used in combination with "rclone link" for making files
  21317. accessible to the public and sets the duration before the download
  21318. authorization token will expire.
  21319. The minimum value is 1 second. The maximum value is one week.
  21320. Properties:
  21321. - Config: download_auth_duration
  21322. - Env Var: RCLONE_B2_DOWNLOAD_AUTH_DURATION
  21323. - Type: Duration
  21324. - Default: 1w
  21325. #### --b2-memory-pool-flush-time
  21326. How often internal memory buffer pools will be flushed. (no longer used)
  21327. Properties:
  21328. - Config: memory_pool_flush_time
  21329. - Env Var: RCLONE_B2_MEMORY_POOL_FLUSH_TIME
  21330. - Type: Duration
  21331. - Default: 1m0s
  21332. #### --b2-memory-pool-use-mmap
  21333. Whether to use mmap buffers in internal memory pool. (no longer used)
  21334. Properties:
  21335. - Config: memory_pool_use_mmap
  21336. - Env Var: RCLONE_B2_MEMORY_POOL_USE_MMAP
  21337. - Type: bool
  21338. - Default: false
  21339. #### --b2-lifecycle
  21340. Set the number of days deleted files should be kept when creating a bucket.
  21341. On bucket creation, this parameter is used to create a lifecycle rule
  21342. for the entire bucket.
  21343. If lifecycle is 0 (the default) it does not create a lifecycle rule so
  21344. the default B2 behaviour applies. This is to create versions of files
  21345. on delete and overwrite and to keep them indefinitely.
  21346. If lifecycle is >0 then it creates a single rule setting the number of
  21347. days before a file that is deleted or overwritten is deleted
  21348. permanently. This is known as daysFromHidingToDeleting in the b2 docs.
  21349. The minimum value for this parameter is 1 day.
  21350. You can also enable hard_delete in the config also which will mean
  21351. deletions won't cause versions but overwrites will still cause
  21352. versions to be made.
  21353. See: [rclone backend lifecycle](#lifecycle) for setting lifecycles after bucket creation.
  21354. Properties:
  21355. - Config: lifecycle
  21356. - Env Var: RCLONE_B2_LIFECYCLE
  21357. - Type: int
  21358. - Default: 0
  21359. #### --b2-encoding
  21360. The encoding for the backend.
  21361. See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
  21362. Properties:
  21363. - Config: encoding
  21364. - Env Var: RCLONE_B2_ENCODING
  21365. - Type: Encoding
  21366. - Default: Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot
  21367. #### --b2-description
  21368. Description of the remote
  21369. Properties:
  21370. - Config: description
  21371. - Env Var: RCLONE_B2_DESCRIPTION
  21372. - Type: string
  21373. - Required: false
  21374. ## Backend commands
  21375. Here are the commands specific to the b2 backend.
  21376. Run them with
  21377. rclone backend COMMAND remote:
  21378. The help below will explain what arguments each command takes.
  21379. See the [backend](https://rclone.org/commands/rclone_backend/) command for more
  21380. info on how to pass options and arguments.
  21381. These can be run on a running backend using the rc command
  21382. [backend/command](https://rclone.org/rc/#backend-command).
  21383. ### lifecycle
  21384. Read or set the lifecycle for a bucket
  21385. rclone backend lifecycle remote: [options] [<arguments>+]
  21386. This command can be used to read or set the lifecycle for a bucket.
  21387. Usage Examples:
  21388. To show the current lifecycle rules:
  21389. rclone backend lifecycle b2:bucket
  21390. This will dump something like this showing the lifecycle rules.
  21391. [
  21392. {
  21393. "daysFromHidingToDeleting": 1,
  21394. "daysFromUploadingToHiding": null,
  21395. "fileNamePrefix": ""
  21396. }
  21397. ]
  21398. If there are no lifecycle rules (the default) then it will just return [].
  21399. To reset the current lifecycle rules:
  21400. rclone backend lifecycle b2:bucket -o daysFromHidingToDeleting=30
  21401. rclone backend lifecycle b2:bucket -o daysFromUploadingToHiding=5 -o daysFromHidingToDeleting=1
  21402. This will run and then print the new lifecycle rules as above.
  21403. Rclone only lets you set lifecycles for the whole bucket with the
  21404. fileNamePrefix = "".
  21405. You can't disable versioning with B2. The best you can do is to set
  21406. the daysFromHidingToDeleting to 1 day. You can enable hard_delete in
  21407. the config also which will mean deletions won't cause versions but
  21408. overwrites will still cause versions to be made.
  21409. rclone backend lifecycle b2:bucket -o daysFromHidingToDeleting=1
  21410. See: https://www.backblaze.com/docs/cloud-storage-lifecycle-rules
  21411. Options:
  21412. - "daysFromHidingToDeleting": After a file has been hidden for this many days it is deleted. 0 is off.
  21413. - "daysFromUploadingToHiding": This many days after uploading a file is hidden
  21414. ## Limitations
  21415. `rclone about` is not supported by the B2 backend. Backends without
  21416. this capability cannot determine free space for an rclone mount or
  21417. use policy `mfs` (most free space) as a member of an rclone union
  21418. remote.
  21419. See [List of backends that do not support rclone about](https://rclone.org/overview/#optional-features) and [rclone about](https://rclone.org/commands/rclone_about/)
  21420. # Box
  21421. Paths are specified as `remote:path`
  21422. Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
  21423. The initial setup for Box involves getting a token from Box which you
  21424. can do either in your browser, or with a config.json downloaded from Box
  21425. to use JWT authentication. `rclone config` walks you through it.
  21426. ## Configuration
  21427. Here is an example of how to make a remote called `remote`. First run:
  21428. rclone config
  21429. This will guide you through an interactive setup process:
  21430. No remotes found, make a new one? n) New remote s) Set configuration
  21431. password q) Quit config n/s/q> n name> remote Type of storage to
  21432. configure. Choose a number from below, or type in your own value [snip]
  21433. XX / Box  "box" [snip] Storage> box Box App Client Id - leave blank
  21434. normally. client_id> Box App Client Secret - leave blank normally.
  21435. client_secret> Box App config.json location Leave blank normally. Enter
  21436. a string value. Press Enter for the default (""). box_config_file> Box
  21437. App Primary Access Token Leave blank normally. Enter a string value.
  21438. Press Enter for the default (""). access_token>
  21439. Enter a string value. Press Enter for the default ("user"). Choose a
  21440. number from below, or type in your own value 1 / Rclone should act on
  21441. behalf of a user  "user" 2 / Rclone should act on behalf of a service
  21442. account  "enterprise" box_sub_type> Remote config Use web browser to
  21443. automatically authenticate rclone with remote? * Say Y if the machine
  21444. running rclone has a web browser you can use * Say N if running rclone
  21445. on a (remote) machine without web browser access If not sure try Y. If Y
  21446. failed, try N. y) Yes n) No y/n> y If your browser doesn't open
  21447. automatically go to the following link: http://127.0.0.1:53682/auth Log
  21448. in and authorize rclone for access Waiting for code... Got code
  21449. -------------------- [remote] client_id = client_secret = token =
  21450. {"access_token":"XXX","token_type":"bearer","refresh_token":"XXX","expiry":"XXX"}
  21451. -------------------- y) Yes this is OK e) Edit this remote d) Delete
  21452. this remote y/e/d> y
  21453. See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
  21454. machine with no Internet browser available.
  21455. Note that rclone runs a webserver on your local machine to collect the
  21456. token as returned from Box. This only runs from the moment it opens
  21457. your browser to the moment you get back the verification code. This
  21458. is on `http://127.0.0.1:53682/` and this it may require you to unblock
  21459. it temporarily if you are running a host firewall.
  21460. Once configured you can then use `rclone` like this,
  21461. List directories in top level of your Box
  21462. rclone lsd remote:
  21463. List all the files in your Box
  21464. rclone ls remote:
  21465. To copy a local directory to an Box directory called backup
  21466. rclone copy /home/source remote:backup
  21467. ### Using rclone with an Enterprise account with SSO
  21468. If you have an "Enterprise" account type with Box with single sign on
  21469. (SSO), you need to create a password to use Box with rclone. This can
  21470. be done at your Enterprise Box account by going to Settings, "Account"
  21471. Tab, and then set the password in the "Authentication" field.
  21472. Once you have done this, you can setup your Enterprise Box account
  21473. using the same procedure detailed above in the, using the password you
  21474. have just set.
  21475. ### Invalid refresh token
  21476. According to the [box docs](https://developer.box.com/v2.0/docs/oauth-20#section-6-using-the-access-and-refresh-tokens):
  21477. > Each refresh_token is valid for one use in 60 days.
  21478. This means that if you
  21479. * Don't use the box remote for 60 days
  21480. * Copy the config file with a box refresh token in and use it in two places
  21481. * Get an error on a token refresh
  21482. then rclone will return an error which includes the text `Invalid
  21483. refresh token`.
  21484. To fix this you will need to use oauth2 again to update the refresh
  21485. token. You can use the methods in [the remote setup
  21486. docs](https://rclone.org/remote_setup/), bearing in mind that if you use the copy the
  21487. config file method, you should not use that remote on the computer you
  21488. did the authentication on.
  21489. Here is how to do it.
  21490. $ rclone config Current remotes:
  21491. Name Type ==== ==== remote box
  21492. e) Edit existing remote
  21493. f) New remote
  21494. g) Delete remote
  21495. h) Rename remote
  21496. i) Copy remote
  21497. j) Set configuration password
  21498. k) Quit config e/n/d/r/c/s/q> e Choose a number from below, or type in
  21499. an existing value 1 > remote remote> remote --------------------
  21500. [remote] type = box token =
  21501. {"access_token":"XXX","token_type":"bearer","refresh_token":"XXX","expiry":"2017-07-08T23:40:08.059167677+01:00"}
  21502. -------------------- Edit remote Value "client_id" = "" Edit? (y/n)>
  21503. l) Yes
  21504. m) No y/n> n Value "client_secret" = "" Edit? (y/n)>
  21505. n) Yes
  21506. o) No y/n> n Remote config Already have a token - refresh?
  21507. p) Yes
  21508. q) No y/n> y Use web browser to automatically authenticate rclone with
  21509. remote?
  21510. - Say Y if the machine running rclone has a web browser you can use
  21511. - Say N if running rclone on a (remote) machine without web browser
  21512. access If not sure try Y. If Y failed, try N.
  21513. y) Yes
  21514. z) No y/n> y If your browser doesn't open automatically go to the
  21515. following link: http://127.0.0.1:53682/auth Log in and authorize
  21516. rclone for access Waiting for code... Got code --------------------
  21517. [remote] type = box token =
  21518. {"access_token":"YYY","token_type":"bearer","refresh_token":"YYY","expiry":"2017-07-23T12:22:29.259137901+01:00"}
  21519. --------------------
  21520. a) Yes this is OK
  21521. b) Edit this remote
  21522. c) Delete this remote y/e/d> y
  21523. ### Modification times and hashes
  21524. Box allows modification times to be set on objects accurate to 1
  21525. second. These will be used to detect whether objects need syncing or
  21526. not.
  21527. Box supports SHA1 type hashes, so you can use the `--checksum`
  21528. flag.
  21529. ### Restricted filename characters
  21530. In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
  21531. the following characters are also replaced:
  21532. | Character | Value | Replacement |
  21533. | --------- |:-----:|:-----------:|
  21534. | \ | 0x5C | \ |
  21535. File names can also not end with the following characters.
  21536. These only get replaced if they are the last character in the name:
  21537. | Character | Value | Replacement |
  21538. | --------- |:-----:|:-----------:|
  21539. | SP | 0x20 | ␠ |
  21540. Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
  21541. as they can't be used in JSON strings.
  21542. ### Transfers
  21543. For files above 50 MiB rclone will use a chunked transfer. Rclone will
  21544. upload up to `--transfers` chunks at the same time (shared among all
  21545. the multipart uploads). Chunks are buffered in memory and are
  21546. normally 8 MiB so increasing `--transfers` will increase memory use.
  21547. ### Deleting files
  21548. Depending on the enterprise settings for your user, the item will
  21549. either be actually deleted from Box or moved to the trash.
  21550. Emptying the trash is supported via the rclone however cleanup command
  21551. however this deletes every trashed file and folder individually so it
  21552. may take a very long time.
  21553. Emptying the trash via the WebUI does not have this limitation
  21554. so it is advised to empty the trash via the WebUI.
  21555. ### Root folder ID
  21556. You can set the `root_folder_id` for rclone. This is the directory
  21557. (identified by its `Folder ID`) that rclone considers to be the root
  21558. of your Box drive.
  21559. Normally you will leave this blank and rclone will determine the
  21560. correct root to use itself.
  21561. However you can set this to restrict rclone to a specific folder
  21562. hierarchy.
  21563. In order to do this you will have to find the `Folder ID` of the
  21564. directory you wish rclone to display. This will be the last segment
  21565. of the URL when you open the relevant folder in the Box web
  21566. interface.
  21567. So if the folder you want rclone to use has a URL which looks like
  21568. `https://app.box.com/folder/11xxxxxxxxx8`
  21569. in the browser, then you use `11xxxxxxxxx8` as
  21570. the `root_folder_id` in the config.
  21571. ### Standard options
  21572. Here are the Standard options specific to box (Box).
  21573. #### --box-client-id
  21574. OAuth Client Id.
  21575. Leave blank normally.
  21576. Properties:
  21577. - Config: client_id
  21578. - Env Var: RCLONE_BOX_CLIENT_ID
  21579. - Type: string
  21580. - Required: false
  21581. #### --box-client-secret
  21582. OAuth Client Secret.
  21583. Leave blank normally.
  21584. Properties:
  21585. - Config: client_secret
  21586. - Env Var: RCLONE_BOX_CLIENT_SECRET
  21587. - Type: string
  21588. - Required: false
  21589. #### --box-box-config-file
  21590. Box App config.json location
  21591. Leave blank normally.
  21592. Leading `~` will be expanded in the file name as will environment variables such as `${RCLONE_CONFIG_DIR}`.
  21593. Properties:
  21594. - Config: box_config_file
  21595. - Env Var: RCLONE_BOX_BOX_CONFIG_FILE
  21596. - Type: string
  21597. - Required: false
  21598. #### --box-access-token
  21599. Box App Primary Access Token
  21600. Leave blank normally.
  21601. Properties:
  21602. - Config: access_token
  21603. - Env Var: RCLONE_BOX_ACCESS_TOKEN
  21604. - Type: string
  21605. - Required: false
  21606. #### --box-box-sub-type
  21607. Properties:
  21608. - Config: box_sub_type
  21609. - Env Var: RCLONE_BOX_BOX_SUB_TYPE
  21610. - Type: string
  21611. - Default: "user"
  21612. - Examples:
  21613. - "user"
  21614. - Rclone should act on behalf of a user.
  21615. - "enterprise"
  21616. - Rclone should act on behalf of a service account.
  21617. ### Advanced options
  21618. Here are the Advanced options specific to box (Box).
  21619. #### --box-token
  21620. OAuth Access Token as a JSON blob.
  21621. Properties:
  21622. - Config: token
  21623. - Env Var: RCLONE_BOX_TOKEN
  21624. - Type: string
  21625. - Required: false
  21626. #### --box-auth-url
  21627. Auth server URL.
  21628. Leave blank to use the provider defaults.
  21629. Properties:
  21630. - Config: auth_url
  21631. - Env Var: RCLONE_BOX_AUTH_URL
  21632. - Type: string
  21633. - Required: false
  21634. #### --box-token-url
  21635. Token server url.
  21636. Leave blank to use the provider defaults.
  21637. Properties:
  21638. - Config: token_url
  21639. - Env Var: RCLONE_BOX_TOKEN_URL
  21640. - Type: string
  21641. - Required: false
  21642. #### --box-root-folder-id
  21643. Fill in for rclone to use a non root folder as its starting point.
  21644. Properties:
  21645. - Config: root_folder_id
  21646. - Env Var: RCLONE_BOX_ROOT_FOLDER_ID
  21647. - Type: string
  21648. - Default: "0"
  21649. #### --box-upload-cutoff
  21650. Cutoff for switching to multipart upload (>= 50 MiB).
  21651. Properties:
  21652. - Config: upload_cutoff
  21653. - Env Var: RCLONE_BOX_UPLOAD_CUTOFF
  21654. - Type: SizeSuffix
  21655. - Default: 50Mi
  21656. #### --box-commit-retries
  21657. Max number of times to try committing a multipart file.
  21658. Properties:
  21659. - Config: commit_retries
  21660. - Env Var: RCLONE_BOX_COMMIT_RETRIES
  21661. - Type: int
  21662. - Default: 100
  21663. #### --box-list-chunk
  21664. Size of listing chunk 1-1000.
  21665. Properties:
  21666. - Config: list_chunk
  21667. - Env Var: RCLONE_BOX_LIST_CHUNK
  21668. - Type: int
  21669. - Default: 1000
  21670. #### --box-owned-by
  21671. Only show items owned by the login (email address) passed in.
  21672. Properties:
  21673. - Config: owned_by
  21674. - Env Var: RCLONE_BOX_OWNED_BY
  21675. - Type: string
  21676. - Required: false
  21677. #### --box-impersonate
  21678. Impersonate this user ID when using a service account.
  21679. Setting this flag allows rclone, when using a JWT service account, to
  21680. act on behalf of another user by setting the as-user header.
  21681. The user ID is the Box identifier for a user. User IDs can found for
  21682. any user via the GET /users endpoint, which is only available to
  21683. admins, or by calling the GET /users/me endpoint with an authenticated
  21684. user session.
  21685. See: https://developer.box.com/guides/authentication/jwt/as-user/
  21686. Properties:
  21687. - Config: impersonate
  21688. - Env Var: RCLONE_BOX_IMPERSONATE
  21689. - Type: string
  21690. - Required: false
  21691. #### --box-encoding
  21692. The encoding for the backend.
  21693. See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
  21694. Properties:
  21695. - Config: encoding
  21696. - Env Var: RCLONE_BOX_ENCODING
  21697. - Type: Encoding
  21698. - Default: Slash,BackSlash,Del,Ctl,RightSpace,InvalidUtf8,Dot
  21699. #### --box-description
  21700. Description of the remote
  21701. Properties:
  21702. - Config: description
  21703. - Env Var: RCLONE_BOX_DESCRIPTION
  21704. - Type: string
  21705. - Required: false
  21706. ## Limitations
  21707. Note that Box is case insensitive so you can't have a file called
  21708. "Hello.doc" and one called "hello.doc".
  21709. Box file names can't have the `\` character in. rclone maps this to
  21710. and from an identical looking unicode equivalent `\` (U+FF3C Fullwidth
  21711. Reverse Solidus).
  21712. Box only supports filenames up to 255 characters in length.
  21713. Box has [API rate limits](https://developer.box.com/guides/api-calls/permissions-and-errors/rate-limits/) that sometimes reduce the speed of rclone.
  21714. `rclone about` is not supported by the Box backend. Backends without
  21715. this capability cannot determine free space for an rclone mount or
  21716. use policy `mfs` (most free space) as a member of an rclone union
  21717. remote.
  21718. See [List of backends that do not support rclone about](https://rclone.org/overview/#optional-features) and [rclone about](https://rclone.org/commands/rclone_about/)
  21719. ## Get your own Box App ID
  21720. Here is how to create your own Box App ID for rclone:
  21721. 1. Go to the [Box Developer Console](https://app.box.com/developers/console)
  21722. and login, then click `My Apps` on the sidebar. Click `Create New App`
  21723. and select `Custom App`.
  21724. 2. In the first screen on the box that pops up, you can pretty much enter
  21725. whatever you want. The `App Name` can be whatever. For `Purpose` choose
  21726. automation to avoid having to fill out anything else. Click `Next`.
  21727. 3. In the second screen of the creation screen, select
  21728. `User Authentication (OAuth 2.0)`. Then click `Create App`.
  21729. 4. You should now be on the `Configuration` tab of your new app. If not,
  21730. click on it at the top of the webpage. Copy down `Client ID`
  21731. and `Client Secret`, you'll need those for rclone.
  21732. 5. Under "OAuth 2.0 Redirect URI", add `http://127.0.0.1:53682/`
  21733. 6. For `Application Scopes`, select `Read all files and folders stored in Box`
  21734. and `Write all files and folders stored in box` (assuming you want to do both).
  21735. Leave others unchecked. Click `Save Changes` at the top right.
  21736. # Cache
  21737. The `cache` remote wraps another existing remote and stores file structure
  21738. and its data for long running tasks like `rclone mount`.
  21739. ## Status
  21740. The cache backend code is working but it currently doesn't
  21741. have a maintainer so there are [outstanding bugs](https://github.com/rclone/rclone/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3A%22Remote%3A+Cache%22) which aren't getting fixed.
  21742. The cache backend is due to be phased out in favour of the VFS caching
  21743. layer eventually which is more tightly integrated into rclone.
  21744. Until this happens we recommend only using the cache backend if you
  21745. find you can't work without it. There are many docs online describing
  21746. the use of the cache backend to minimize API hits and by-and-large
  21747. these are out of date and the cache backend isn't needed in those
  21748. scenarios any more.
  21749. ## Configuration
  21750. To get started you just need to have an existing remote which can be configured
  21751. with `cache`.
  21752. Here is an example of how to make a remote called `test-cache`. First run:
  21753. rclone config
  21754. This will guide you through an interactive setup process:
  21755. No remotes found, make a new one? n) New remote r) Rename remote c) Copy
  21756. remote s) Set configuration password q) Quit config n/r/c/s/q> n name>
  21757. test-cache Type of storage to configure. Choose a number from below, or
  21758. type in your own value [snip] XX / Cache a remote  "cache" [snip]
  21759. Storage> cache Remote to cache. Normally should contain a ':' and a
  21760. path, e.g. "myremote:path/to/dir", "myremote:bucket" or maybe
  21761. "myremote:" (not recommended). remote> local:/test Optional: The URL of
  21762. the Plex server plex_url> http://127.0.0.1:32400 Optional: The username
  21763. of the Plex user plex_username> dummyusername Optional: The password of
  21764. the Plex user y) Yes type in my own password g) Generate random password
  21765. n) No leave this optional password blank y/g/n> y Enter the password:
  21766. password: Confirm the password: password: The size of a chunk. Lower
  21767. value good for slow connections but can affect seamless reading.
  21768. Default: 5M Choose a number from below, or type in your own value 1 / 1
  21769. MiB  "1M" 2 / 5 MiB  "5M" 3 / 10 MiB  "10M" chunk_size> 2 How much time
  21770. should object info (file size, file hashes, etc.) be stored in cache.
  21771. Use a very high value if you don't plan on changing the source FS from
  21772. outside the cache. Accepted units are: "s", "m", "h". Default: 5m Choose
  21773. a number from below, or type in your own value 1 / 1 hour  "1h" 2 / 24
  21774. hours  "24h" 3 / 24 hours  "48h" info_age> 2 The maximum size of stored
  21775. chunks. When the storage grows beyond this size, the oldest chunks will
  21776. be deleted. Default: 10G Choose a number from below, or type in your own
  21777. value 1 / 500 MiB  "500M" 2 / 1 GiB  "1G" 3 / 10 GiB  "10G"
  21778. chunk_total_size> 3 Remote config -------------------- [test-cache]
  21779. remote = local:/test plex_url = http://127.0.0.1:32400 plex_username =
  21780. dummyusername plex_password = *** ENCRYPTED *** chunk_size = 5M info_age
  21781. = 48h chunk_total_size = 10G
  21782. You can then use it like this,
  21783. List directories in top level of your drive
  21784. rclone lsd test-cache:
  21785. List all the files in your drive
  21786. rclone ls test-cache:
  21787. To start a cached mount
  21788. rclone mount --allow-other test-cache: /var/tmp/test-cache
  21789. ### Write Features ###
  21790. ### Offline uploading ###
  21791. In an effort to make writing through cache more reliable, the backend
  21792. now supports this feature which can be activated by specifying a
  21793. `cache-tmp-upload-path`.
  21794. A files goes through these states when using this feature:
  21795. 1. An upload is started (usually by copying a file on the cache remote)
  21796. 2. When the copy to the temporary location is complete the file is part
  21797. of the cached remote and looks and behaves like any other file (reading included)
  21798. 3. After `cache-tmp-wait-time` passes and the file is next in line, `rclone move`
  21799. is used to move the file to the cloud provider
  21800. 4. Reading the file still works during the upload but most modifications on it will be prohibited
  21801. 5. Once the move is complete the file is unlocked for modifications as it
  21802. becomes as any other regular file
  21803. 6. If the file is being read through `cache` when it's actually
  21804. deleted from the temporary path then `cache` will simply swap the source
  21805. to the cloud provider without interrupting the reading (small blip can happen though)
  21806. Files are uploaded in sequence and only one file is uploaded at a time.
  21807. Uploads will be stored in a queue and be processed based on the order they were added.
  21808. The queue and the temporary storage is persistent across restarts but
  21809. can be cleared on startup with the `--cache-db-purge` flag.
  21810. ### Write Support ###
  21811. Writes are supported through `cache`.
  21812. One caveat is that a mounted cache remote does not add any retry or fallback
  21813. mechanism to the upload operation. This will depend on the implementation
  21814. of the wrapped remote. Consider using `Offline uploading` for reliable writes.
  21815. One special case is covered with `cache-writes` which will cache the file
  21816. data at the same time as the upload when it is enabled making it available
  21817. from the cache store immediately once the upload is finished.
  21818. ### Read Features ###
  21819. #### Multiple connections ####
  21820. To counter the high latency between a local PC where rclone is running
  21821. and cloud providers, the cache remote can split multiple requests to the
  21822. cloud provider for smaller file chunks and combines them together locally
  21823. where they can be available almost immediately before the reader usually
  21824. needs them.
  21825. This is similar to buffering when media files are played online. Rclone
  21826. will stay around the current marker but always try its best to stay ahead
  21827. and prepare the data before.
  21828. #### Plex Integration ####
  21829. There is a direct integration with Plex which allows cache to detect during reading
  21830. if the file is in playback or not. This helps cache to adapt how it queries
  21831. the cloud provider depending on what is needed for.
  21832. Scans will have a minimum amount of workers (1) while in a confirmed playback cache
  21833. will deploy the configured number of workers.
  21834. This integration opens the doorway to additional performance improvements
  21835. which will be explored in the near future.
  21836. **Note:** If Plex options are not configured, `cache` will function with its
  21837. configured options without adapting any of its settings.
  21838. How to enable? Run `rclone config` and add all the Plex options (endpoint, username
  21839. and password) in your remote and it will be automatically enabled.
  21840. Affected settings:
  21841. - `cache-workers`: _Configured value_ during confirmed playback or _1_ all the other times
  21842. ##### Certificate Validation #####
  21843. When the Plex server is configured to only accept secure connections, it is
  21844. possible to use `.plex.direct` URLs to ensure certificate validation succeeds.
  21845. These URLs are used by Plex internally to connect to the Plex server securely.
  21846. The format for these URLs is the following:
  21847. `https://ip-with-dots-replaced.server-hash.plex.direct:32400/`
  21848. The `ip-with-dots-replaced` part can be any IPv4 address, where the dots
  21849. have been replaced with dashes, e.g. `127.0.0.1` becomes `127-0-0-1`.
  21850. To get the `server-hash` part, the easiest way is to visit
  21851. https://plex.tv/api/resources?includeHttps=1&X-Plex-Token=your-plex-token
  21852. This page will list all the available Plex servers for your account
  21853. with at least one `.plex.direct` link for each. Copy one URL and replace
  21854. the IP address with the desired address. This can be used as the
  21855. `plex_url` value.
  21856. ### Known issues ###
  21857. #### Mount and --dir-cache-time ####
  21858. --dir-cache-time controls the first layer of directory caching which works at the mount layer.
  21859. Being an independent caching mechanism from the `cache` backend, it will manage its own entries
  21860. based on the configured time.
  21861. To avoid getting in a scenario where dir cache has obsolete data and cache would have the correct
  21862. one, try to set `--dir-cache-time` to a lower time than `--cache-info-age`. Default values are
  21863. already configured in this way.
  21864. #### Windows support - Experimental ####
  21865. There are a couple of issues with Windows `mount` functionality that still require some investigations.
  21866. It should be considered as experimental thus far as fixes come in for this OS.
  21867. Most of the issues seem to be related to the difference between filesystems
  21868. on Linux flavors and Windows as cache is heavily dependent on them.
  21869. Any reports or feedback on how cache behaves on this OS is greatly appreciated.
  21870. - https://github.com/rclone/rclone/issues/1935
  21871. - https://github.com/rclone/rclone/issues/1907
  21872. - https://github.com/rclone/rclone/issues/1834
  21873. #### Risk of throttling ####
  21874. Future iterations of the cache backend will make use of the pooling functionality
  21875. of the cloud provider to synchronize and at the same time make writing through it
  21876. more tolerant to failures.
  21877. There are a couple of enhancements in track to add these but in the meantime
  21878. there is a valid concern that the expiring cache listings can lead to cloud provider
  21879. throttles or bans due to repeated queries on it for very large mounts.
  21880. Some recommendations:
  21881. - don't use a very small interval for entry information (`--cache-info-age`)
  21882. - while writes aren't yet optimised, you can still write through `cache` which gives you the advantage
  21883. of adding the file in the cache at the same time if configured to do so.
  21884. Future enhancements:
  21885. - https://github.com/rclone/rclone/issues/1937
  21886. - https://github.com/rclone/rclone/issues/1936
  21887. #### cache and crypt ####
  21888. One common scenario is to keep your data encrypted in the cloud provider
  21889. using the `crypt` remote. `crypt` uses a similar technique to wrap around
  21890. an existing remote and handles this translation in a seamless way.
  21891. There is an issue with wrapping the remotes in this order:
  21892. **cloud remote** -> **crypt** -> **cache**
  21893. During testing, I experienced a lot of bans with the remotes in this order.
  21894. I suspect it might be related to how crypt opens files on the cloud provider
  21895. which makes it think we're downloading the full file instead of small chunks.
  21896. Organizing the remotes in this order yields better results:
  21897. **cloud remote** -> **cache** -> **crypt**
  21898. #### absolute remote paths ####
  21899. `cache` can not differentiate between relative and absolute paths for the wrapped remote.
  21900. Any path given in the `remote` config setting and on the command line will be passed to
  21901. the wrapped remote as is, but for storing the chunks on disk the path will be made
  21902. relative by removing any leading `/` character.
  21903. This behavior is irrelevant for most backend types, but there are backends where a leading `/`
  21904. changes the effective directory, e.g. in the `sftp` backend paths starting with a `/` are
  21905. relative to the root of the SSH server and paths without are relative to the user home directory.
  21906. As a result `sftp:bin` and `sftp:/bin` will share the same cache folder, even if they represent
  21907. a different directory on the SSH server.
  21908. ### Cache and Remote Control (--rc) ###
  21909. Cache supports the new `--rc` mode in rclone and can be remote controlled through the following end points:
  21910. By default, the listener is disabled if you do not add the flag.
  21911. ### rc cache/expire
  21912. Purge a remote from the cache backend. Supports either a directory or a file.
  21913. It supports both encrypted and unencrypted file names if cache is wrapped by crypt.
  21914. Params:
  21915. - **remote** = path to remote **(required)**
  21916. - **withData** = true/false to delete cached data (chunks) as well _(optional, false by default)_
  21917. ### Standard options
  21918. Here are the Standard options specific to cache (Cache a remote).
  21919. #### --cache-remote
  21920. Remote to cache.
  21921. Normally should contain a ':' and a path, e.g. "myremote:path/to/dir",
  21922. "myremote:bucket" or maybe "myremote:" (not recommended).
  21923. Properties:
  21924. - Config: remote
  21925. - Env Var: RCLONE_CACHE_REMOTE
  21926. - Type: string
  21927. - Required: true
  21928. #### --cache-plex-url
  21929. The URL of the Plex server.
  21930. Properties:
  21931. - Config: plex_url
  21932. - Env Var: RCLONE_CACHE_PLEX_URL
  21933. - Type: string
  21934. - Required: false
  21935. #### --cache-plex-username
  21936. The username of the Plex user.
  21937. Properties:
  21938. - Config: plex_username
  21939. - Env Var: RCLONE_CACHE_PLEX_USERNAME
  21940. - Type: string
  21941. - Required: false
  21942. #### --cache-plex-password
  21943. The password of the Plex user.
  21944. **NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
  21945. Properties:
  21946. - Config: plex_password
  21947. - Env Var: RCLONE_CACHE_PLEX_PASSWORD
  21948. - Type: string
  21949. - Required: false
  21950. #### --cache-chunk-size
  21951. The size of a chunk (partial file data).
  21952. Use lower numbers for slower connections. If the chunk size is
  21953. changed, any downloaded chunks will be invalid and cache-chunk-path
  21954. will need to be cleared or unexpected EOF errors will occur.
  21955. Properties:
  21956. - Config: chunk_size
  21957. - Env Var: RCLONE_CACHE_CHUNK_SIZE
  21958. - Type: SizeSuffix
  21959. - Default: 5Mi
  21960. - Examples:
  21961. - "1M"
  21962. - 1 MiB
  21963. - "5M"
  21964. - 5 MiB
  21965. - "10M"
  21966. - 10 MiB
  21967. #### --cache-info-age
  21968. How long to cache file structure information (directory listings, file size, times, etc.).
  21969. If all write operations are done through the cache then you can safely make
  21970. this value very large as the cache store will also be updated in real time.
  21971. Properties:
  21972. - Config: info_age
  21973. - Env Var: RCLONE_CACHE_INFO_AGE
  21974. - Type: Duration
  21975. - Default: 6h0m0s
  21976. - Examples:
  21977. - "1h"
  21978. - 1 hour
  21979. - "24h"
  21980. - 24 hours
  21981. - "48h"
  21982. - 48 hours
  21983. #### --cache-chunk-total-size
  21984. The total size that the chunks can take up on the local disk.
  21985. If the cache exceeds this value then it will start to delete the
  21986. oldest chunks until it goes under this value.
  21987. Properties:
  21988. - Config: chunk_total_size
  21989. - Env Var: RCLONE_CACHE_CHUNK_TOTAL_SIZE
  21990. - Type: SizeSuffix
  21991. - Default: 10Gi
  21992. - Examples:
  21993. - "500M"
  21994. - 500 MiB
  21995. - "1G"
  21996. - 1 GiB
  21997. - "10G"
  21998. - 10 GiB
  21999. ### Advanced options
  22000. Here are the Advanced options specific to cache (Cache a remote).
  22001. #### --cache-plex-token
  22002. The plex token for authentication - auto set normally.
  22003. Properties:
  22004. - Config: plex_token
  22005. - Env Var: RCLONE_CACHE_PLEX_TOKEN
  22006. - Type: string
  22007. - Required: false
  22008. #### --cache-plex-insecure
  22009. Skip all certificate verification when connecting to the Plex server.
  22010. Properties:
  22011. - Config: plex_insecure
  22012. - Env Var: RCLONE_CACHE_PLEX_INSECURE
  22013. - Type: string
  22014. - Required: false
  22015. #### --cache-db-path
  22016. Directory to store file structure metadata DB.
  22017. The remote name is used as the DB file name.
  22018. Properties:
  22019. - Config: db_path
  22020. - Env Var: RCLONE_CACHE_DB_PATH
  22021. - Type: string
  22022. - Default: "$HOME/.cache/rclone/cache-backend"
  22023. #### --cache-chunk-path
  22024. Directory to cache chunk files.
  22025. Path to where partial file data (chunks) are stored locally. The remote
  22026. name is appended to the final path.
  22027. This config follows the "--cache-db-path". If you specify a custom
  22028. location for "--cache-db-path" and don't specify one for "--cache-chunk-path"
  22029. then "--cache-chunk-path" will use the same path as "--cache-db-path".
  22030. Properties:
  22031. - Config: chunk_path
  22032. - Env Var: RCLONE_CACHE_CHUNK_PATH
  22033. - Type: string
  22034. - Default: "$HOME/.cache/rclone/cache-backend"
  22035. #### --cache-db-purge
  22036. Clear all the cached data for this remote on start.
  22037. Properties:
  22038. - Config: db_purge
  22039. - Env Var: RCLONE_CACHE_DB_PURGE
  22040. - Type: bool
  22041. - Default: false
  22042. #### --cache-chunk-clean-interval
  22043. How often should the cache perform cleanups of the chunk storage.
  22044. The default value should be ok for most people. If you find that the
  22045. cache goes over "cache-chunk-total-size" too often then try to lower
  22046. this value to force it to perform cleanups more often.
  22047. Properties:
  22048. - Config: chunk_clean_interval
  22049. - Env Var: RCLONE_CACHE_CHUNK_CLEAN_INTERVAL
  22050. - Type: Duration
  22051. - Default: 1m0s
  22052. #### --cache-read-retries
  22053. How many times to retry a read from a cache storage.
  22054. Since reading from a cache stream is independent from downloading file
  22055. data, readers can get to a point where there's no more data in the
  22056. cache. Most of the times this can indicate a connectivity issue if
  22057. cache isn't able to provide file data anymore.
  22058. For really slow connections, increase this to a point where the stream is
  22059. able to provide data but your experience will be very stuttering.
  22060. Properties:
  22061. - Config: read_retries
  22062. - Env Var: RCLONE_CACHE_READ_RETRIES
  22063. - Type: int
  22064. - Default: 10
  22065. #### --cache-workers
  22066. How many workers should run in parallel to download chunks.
  22067. Higher values will mean more parallel processing (better CPU needed)
  22068. and more concurrent requests on the cloud provider. This impacts
  22069. several aspects like the cloud provider API limits, more stress on the
  22070. hardware that rclone runs on but it also means that streams will be
  22071. more fluid and data will be available much more faster to readers.
  22072. **Note**: If the optional Plex integration is enabled then this
  22073. setting will adapt to the type of reading performed and the value
  22074. specified here will be used as a maximum number of workers to use.
  22075. Properties:
  22076. - Config: workers
  22077. - Env Var: RCLONE_CACHE_WORKERS
  22078. - Type: int
  22079. - Default: 4
  22080. #### --cache-chunk-no-memory
  22081. Disable the in-memory cache for storing chunks during streaming.
  22082. By default, cache will keep file data during streaming in RAM as well
  22083. to provide it to readers as fast as possible.
  22084. This transient data is evicted as soon as it is read and the number of
  22085. chunks stored doesn't exceed the number of workers. However, depending
  22086. on other settings like "cache-chunk-size" and "cache-workers" this footprint
  22087. can increase if there are parallel streams too (multiple files being read
  22088. at the same time).
  22089. If the hardware permits it, use this feature to provide an overall better
  22090. performance during streaming but it can also be disabled if RAM is not
  22091. available on the local machine.
  22092. Properties:
  22093. - Config: chunk_no_memory
  22094. - Env Var: RCLONE_CACHE_CHUNK_NO_MEMORY
  22095. - Type: bool
  22096. - Default: false
  22097. #### --cache-rps
  22098. Limits the number of requests per second to the source FS (-1 to disable).
  22099. This setting places a hard limit on the number of requests per second
  22100. that cache will be doing to the cloud provider remote and try to
  22101. respect that value by setting waits between reads.
  22102. If you find that you're getting banned or limited on the cloud
  22103. provider through cache and know that a smaller number of requests per
  22104. second will allow you to work with it then you can use this setting
  22105. for that.
  22106. A good balance of all the other settings should make this setting
  22107. useless but it is available to set for more special cases.
  22108. **NOTE**: This will limit the number of requests during streams but
  22109. other API calls to the cloud provider like directory listings will
  22110. still pass.
  22111. Properties:
  22112. - Config: rps
  22113. - Env Var: RCLONE_CACHE_RPS
  22114. - Type: int
  22115. - Default: -1
  22116. #### --cache-writes
  22117. Cache file data on writes through the FS.
  22118. If you need to read files immediately after you upload them through
  22119. cache you can enable this flag to have their data stored in the
  22120. cache store at the same time during upload.
  22121. Properties:
  22122. - Config: writes
  22123. - Env Var: RCLONE_CACHE_WRITES
  22124. - Type: bool
  22125. - Default: false
  22126. #### --cache-tmp-upload-path
  22127. Directory to keep temporary files until they are uploaded.
  22128. This is the path where cache will use as a temporary storage for new
  22129. files that need to be uploaded to the cloud provider.
  22130. Specifying a value will enable this feature. Without it, it is
  22131. completely disabled and files will be uploaded directly to the cloud
  22132. provider
  22133. Properties:
  22134. - Config: tmp_upload_path
  22135. - Env Var: RCLONE_CACHE_TMP_UPLOAD_PATH
  22136. - Type: string
  22137. - Required: false
  22138. #### --cache-tmp-wait-time
  22139. How long should files be stored in local cache before being uploaded.
  22140. This is the duration that a file must wait in the temporary location
  22141. _cache-tmp-upload-path_ before it is selected for upload.
  22142. Note that only one file is uploaded at a time and it can take longer
  22143. to start the upload if a queue formed for this purpose.
  22144. Properties:
  22145. - Config: tmp_wait_time
  22146. - Env Var: RCLONE_CACHE_TMP_WAIT_TIME
  22147. - Type: Duration
  22148. - Default: 15s
  22149. #### --cache-db-wait-time
  22150. How long to wait for the DB to be available - 0 is unlimited.
  22151. Only one process can have the DB open at any one time, so rclone waits
  22152. for this duration for the DB to become available before it gives an
  22153. error.
  22154. If you set it to 0 then it will wait forever.
  22155. Properties:
  22156. - Config: db_wait_time
  22157. - Env Var: RCLONE_CACHE_DB_WAIT_TIME
  22158. - Type: Duration
  22159. - Default: 1s
  22160. #### --cache-description
  22161. Description of the remote
  22162. Properties:
  22163. - Config: description
  22164. - Env Var: RCLONE_CACHE_DESCRIPTION
  22165. - Type: string
  22166. - Required: false
  22167. ## Backend commands
  22168. Here are the commands specific to the cache backend.
  22169. Run them with
  22170. rclone backend COMMAND remote:
  22171. The help below will explain what arguments each command takes.
  22172. See the [backend](https://rclone.org/commands/rclone_backend/) command for more
  22173. info on how to pass options and arguments.
  22174. These can be run on a running backend using the rc command
  22175. [backend/command](https://rclone.org/rc/#backend-command).
  22176. ### stats
  22177. Print stats on the cache backend in JSON format.
  22178. rclone backend stats remote: [options] [<arguments>+]
  22179. # Chunker
  22180. The `chunker` overlay transparently splits large files into smaller chunks
  22181. during upload to wrapped remote and transparently assembles them back
  22182. when the file is downloaded. This allows to effectively overcome size limits
  22183. imposed by storage providers.
  22184. ## Configuration
  22185. To use it, first set up the underlying remote following the configuration
  22186. instructions for that remote. You can also use a local pathname instead of
  22187. a remote.
  22188. First check your chosen remote is working - we'll call it `remote:path` here.
  22189. Note that anything inside `remote:path` will be chunked and anything outside
  22190. won't. This means that if you are using a bucket-based remote (e.g. S3, B2, swift)
  22191. then you should probably put the bucket in the remote `s3:bucket`.
  22192. Now configure `chunker` using `rclone config`. We will call this one `overlay`
  22193. to separate it from the `remote` itself.
  22194. No remotes found, make a new one? n) New remote s) Set configuration
  22195. password q) Quit config n/s/q> n name> overlay Type of storage to
  22196. configure. Choose a number from below, or type in your own value [snip]
  22197. XX / Transparently chunk/split large files  "chunker" [snip] Storage>
  22198. chunker Remote to chunk/unchunk. Normally should contain a ':' and a
  22199. path, e.g. "myremote:path/to/dir", "myremote:bucket" or maybe
  22200. "myremote:" (not recommended). Enter a string value. Press Enter for the
  22201. default (""). remote> remote:path Files larger than chunk size will be
  22202. split in chunks. Enter a size with suffix K,M,G,T. Press Enter for the
  22203. default ("2G"). chunk_size> 100M Choose how chunker handles hash sums.
  22204. All modes but "none" require metadata. Enter a string value. Press Enter
  22205. for the default ("md5"). Choose a number from below, or type in your own
  22206. value 1 / Pass any hash supported by wrapped remote for non-chunked
  22207. files, return nothing otherwise  "none" 2 / MD5 for composite files
  22208.  "md5" 3 / SHA1 for composite files  "sha1" 4 / MD5 for all files
  22209.  "md5all" 5 / SHA1 for all files  "sha1all" 6 / Copying a file to
  22210. chunker will request MD5 from the source falling back to SHA1 if
  22211. unsupported  "md5quick" 7 / Similar to "md5quick" but prefers SHA1 over
  22212. MD5  "sha1quick" hash_type> md5 Edit advanced config? (y/n) y) Yes n) No
  22213. y/n> n Remote config -------------------- [overlay] type = chunker
  22214. remote = remote:bucket chunk_size = 100M hash_type = md5
  22215. -------------------- y) Yes this is OK e) Edit this remote d) Delete
  22216. this remote y/e/d> y
  22217. ### Specifying the remote
  22218. In normal use, make sure the remote has a `:` in. If you specify the remote
  22219. without a `:` then rclone will use a local directory of that name.
  22220. So if you use a remote of `/path/to/secret/files` then rclone will
  22221. chunk stuff in that directory. If you use a remote of `name` then rclone
  22222. will put files in a directory called `name` in the current directory.
  22223. ### Chunking
  22224. When rclone starts a file upload, chunker checks the file size. If it
  22225. doesn't exceed the configured chunk size, chunker will just pass the file
  22226. to the wrapped remote (however, see caveat below). If a file is large, chunker will transparently cut
  22227. data in pieces with temporary names and stream them one by one, on the fly.
  22228. Each data chunk will contain the specified number of bytes, except for the
  22229. last one which may have less data. If file size is unknown in advance
  22230. (this is called a streaming upload), chunker will internally create
  22231. a temporary copy, record its size and repeat the above process.
  22232. When upload completes, temporary chunk files are finally renamed.
  22233. This scheme guarantees that operations can be run in parallel and look
  22234. from outside as atomic.
  22235. A similar method with hidden temporary chunks is used for other operations
  22236. (copy/move/rename, etc.). If an operation fails, hidden chunks are normally
  22237. destroyed, and the target composite file stays intact.
  22238. When a composite file download is requested, chunker transparently
  22239. assembles it by concatenating data chunks in order. As the split is trivial
  22240. one could even manually concatenate data chunks together to obtain the
  22241. original content.
  22242. When the `list` rclone command scans a directory on wrapped remote,
  22243. the potential chunk files are accounted for, grouped and assembled into
  22244. composite directory entries. Any temporary chunks are hidden.
  22245. List and other commands can sometimes come across composite files with
  22246. missing or invalid chunks, e.g. shadowed by like-named directory or
  22247. another file. This usually means that wrapped file system has been directly
  22248. tampered with or damaged. If chunker detects a missing chunk it will
  22249. by default print warning, skip the whole incomplete group of chunks but
  22250. proceed with current command.
  22251. You can set the `--chunker-fail-hard` flag to have commands abort with
  22252. error message in such cases.
  22253. **Caveat**: As it is now, chunker will always create a temporary file in the
  22254. backend and then rename it, even if the file is below the chunk threshold.
  22255. This will result in unnecessary API calls and can severely restrict throughput
  22256. when handling transfers primarily composed of small files on some backends (e.g. Box).
  22257. A workaround to this issue is to use chunker only for files above the chunk threshold
  22258. via `--min-size` and then perform a separate call without chunker on the remaining
  22259. files.
  22260. #### Chunk names
  22261. The default chunk name format is `*.rclone_chunk.###`, hence by default
  22262. chunk names are `BIG_FILE_NAME.rclone_chunk.001`,
  22263. `BIG_FILE_NAME.rclone_chunk.002` etc. You can configure another name format
  22264. using the `name_format` configuration file option. The format uses asterisk
  22265. `*` as a placeholder for the base file name and one or more consecutive
  22266. hash characters `#` as a placeholder for sequential chunk number.
  22267. There must be one and only one asterisk. The number of consecutive hash
  22268. characters defines the minimum length of a string representing a chunk number.
  22269. If decimal chunk number has less digits than the number of hashes, it is
  22270. left-padded by zeros. If the decimal string is longer, it is left intact.
  22271. By default numbering starts from 1 but there is another option that allows
  22272. user to start from 0, e.g. for compatibility with legacy software.
  22273. For example, if name format is `big_*-##.part` and original file name is
  22274. `data.txt` and numbering starts from 0, then the first chunk will be named
  22275. `big_data.txt-00.part`, the 99th chunk will be `big_data.txt-98.part`
  22276. and the 302nd chunk will become `big_data.txt-301.part`.
  22277. Note that `list` assembles composite directory entries only when chunk names
  22278. match the configured format and treats non-conforming file names as normal
  22279. non-chunked files.
  22280. When using `norename` transactions, chunk names will additionally have a unique
  22281. file version suffix. For example, `BIG_FILE_NAME.rclone_chunk.001_bp562k`.
  22282. ### Metadata
  22283. Besides data chunks chunker will by default create metadata object for
  22284. a composite file. The object is named after the original file.
  22285. Chunker allows user to disable metadata completely (the `none` format).
  22286. Note that metadata is normally not created for files smaller than the
  22287. configured chunk size. This may change in future rclone releases.
  22288. #### Simple JSON metadata format
  22289. This is the default format. It supports hash sums and chunk validation
  22290. for composite files. Meta objects carry the following fields:
  22291. - `ver` - version of format, currently `1`
  22292. - `size` - total size of composite file
  22293. - `nchunks` - number of data chunks in file
  22294. - `md5` - MD5 hashsum of composite file (if present)
  22295. - `sha1` - SHA1 hashsum (if present)
  22296. - `txn` - identifies current version of the file
  22297. There is no field for composite file name as it's simply equal to the name
  22298. of meta object on the wrapped remote. Please refer to respective sections
  22299. for details on hashsums and modified time handling.
  22300. #### No metadata
  22301. You can disable meta objects by setting the meta format option to `none`.
  22302. In this mode chunker will scan directory for all files that follow
  22303. configured chunk name format, group them by detecting chunks with the same
  22304. base name and show group names as virtual composite files.
  22305. This method is more prone to missing chunk errors (especially missing
  22306. last chunk) than format with metadata enabled.
  22307. ### Hashsums
  22308. Chunker supports hashsums only when a compatible metadata is present.
  22309. Hence, if you choose metadata format of `none`, chunker will report hashsum
  22310. as `UNSUPPORTED`.
  22311. Please note that by default metadata is stored only for composite files.
  22312. If a file is smaller than configured chunk size, chunker will transparently
  22313. redirect hash requests to wrapped remote, so support depends on that.
  22314. You will see the empty string as a hashsum of requested type for small
  22315. files if the wrapped remote doesn't support it.
  22316. Many storage backends support MD5 and SHA1 hash types, so does chunker.
  22317. With chunker you can choose one or another but not both.
  22318. MD5 is set by default as the most supported type.
  22319. Since chunker keeps hashes for composite files and falls back to the
  22320. wrapped remote hash for non-chunked ones, we advise you to choose the same
  22321. hash type as supported by wrapped remote so that your file listings
  22322. look coherent.
  22323. If your storage backend does not support MD5 or SHA1 but you need consistent
  22324. file hashing, configure chunker with `md5all` or `sha1all`. These two modes
  22325. guarantee given hash for all files. If wrapped remote doesn't support it,
  22326. chunker will then add metadata to all files, even small. However, this can
  22327. double the amount of small files in storage and incur additional service charges.
  22328. You can even use chunker to force md5/sha1 support in any other remote
  22329. at expense of sidecar meta objects by setting e.g. `hash_type=sha1all`
  22330. to force hashsums and `chunk_size=1P` to effectively disable chunking.
  22331. Normally, when a file is copied to chunker controlled remote, chunker
  22332. will ask the file source for compatible file hash and revert to on-the-fly
  22333. calculation if none is found. This involves some CPU overhead but provides
  22334. a guarantee that given hashsum is available. Also, chunker will reject
  22335. a server-side copy or move operation if source and destination hashsum
  22336. types are different resulting in the extra network bandwidth, too.
  22337. In some rare cases this may be undesired, so chunker provides two optional
  22338. choices: `sha1quick` and `md5quick`. If the source does not support primary
  22339. hash type and the quick mode is enabled, chunker will try to fall back to
  22340. the secondary type. This will save CPU and bandwidth but can result in empty
  22341. hashsums at destination. Beware of consequences: the `sync` command will
  22342. revert (sometimes silently) to time/size comparison if compatible hashsums
  22343. between source and target are not found.
  22344. ### Modification times
  22345. Chunker stores modification times using the wrapped remote so support
  22346. depends on that. For a small non-chunked file the chunker overlay simply
  22347. manipulates modification time of the wrapped remote file.
  22348. For a composite file with metadata chunker will get and set
  22349. modification time of the metadata object on the wrapped remote.
  22350. If file is chunked but metadata format is `none` then chunker will
  22351. use modification time of the first data chunk.
  22352. ### Migrations
  22353. The idiomatic way to migrate to a different chunk size, hash type, transaction
  22354. style or chunk naming scheme is to:
  22355. - Collect all your chunked files under a directory and have your
  22356. chunker remote point to it.
  22357. - Create another directory (most probably on the same cloud storage)
  22358. and configure a new remote with desired metadata format,
  22359. hash type, chunk naming etc.
  22360. - Now run `rclone sync --interactive oldchunks: newchunks:` and all your data
  22361. will be transparently converted in transfer.
  22362. This may take some time, yet chunker will try server-side
  22363. copy if possible.
  22364. - After checking data integrity you may remove configuration section
  22365. of the old remote.
  22366. If rclone gets killed during a long operation on a big composite file,
  22367. hidden temporary chunks may stay in the directory. They will not be
  22368. shown by the `list` command but will eat up your account quota.
  22369. Please note that the `deletefile` command deletes only active
  22370. chunks of a file. As a workaround, you can use remote of the wrapped
  22371. file system to see them.
  22372. An easy way to get rid of hidden garbage is to copy littered directory
  22373. somewhere using the chunker remote and purge the original directory.
  22374. The `copy` command will copy only active chunks while the `purge` will
  22375. remove everything including garbage.
  22376. ### Caveats and Limitations
  22377. Chunker requires wrapped remote to support server-side `move` (or `copy` +
  22378. `delete`) operations, otherwise it will explicitly refuse to start.
  22379. This is because it internally renames temporary chunk files to their final
  22380. names when an operation completes successfully.
  22381. Chunker encodes chunk number in file name, so with default `name_format`
  22382. setting it adds 17 characters. Also chunker adds 7 characters of temporary
  22383. suffix during operations. Many file systems limit base file name without path
  22384. by 255 characters. Using rclone's crypt remote as a base file system limits
  22385. file name by 143 characters. Thus, maximum name length is 231 for most files
  22386. and 119 for chunker-over-crypt. A user in need can change name format to
  22387. e.g. `*.rcc##` and save 10 characters (provided at most 99 chunks per file).
  22388. Note that a move implemented using the copy-and-delete method may incur
  22389. double charging with some cloud storage providers.
  22390. Chunker will not automatically rename existing chunks when you run
  22391. `rclone config` on a live remote and change the chunk name format.
  22392. Beware that in result of this some files which have been treated as chunks
  22393. before the change can pop up in directory listings as normal files
  22394. and vice versa. The same warning holds for the chunk size.
  22395. If you desperately need to change critical chunking settings, you should
  22396. run data migration as described above.
  22397. If wrapped remote is case insensitive, the chunker overlay will inherit
  22398. that property (so you can't have a file called "Hello.doc" and "hello.doc"
  22399. in the same directory).
  22400. Chunker included in rclone releases up to `v1.54` can sometimes fail to
  22401. detect metadata produced by recent versions of rclone. We recommend users
  22402. to keep rclone up-to-date to avoid data corruption.
  22403. Changing `transactions` is dangerous and requires explicit migration.
  22404. ### Standard options
  22405. Here are the Standard options specific to chunker (Transparently chunk/split large files).
  22406. #### --chunker-remote
  22407. Remote to chunk/unchunk.
  22408. Normally should contain a ':' and a path, e.g. "myremote:path/to/dir",
  22409. "myremote:bucket" or maybe "myremote:" (not recommended).
  22410. Properties:
  22411. - Config: remote
  22412. - Env Var: RCLONE_CHUNKER_REMOTE
  22413. - Type: string
  22414. - Required: true
  22415. #### --chunker-chunk-size
  22416. Files larger than chunk size will be split in chunks.
  22417. Properties:
  22418. - Config: chunk_size
  22419. - Env Var: RCLONE_CHUNKER_CHUNK_SIZE
  22420. - Type: SizeSuffix
  22421. - Default: 2Gi
  22422. #### --chunker-hash-type
  22423. Choose how chunker handles hash sums.
  22424. All modes but "none" require metadata.
  22425. Properties:
  22426. - Config: hash_type
  22427. - Env Var: RCLONE_CHUNKER_HASH_TYPE
  22428. - Type: string
  22429. - Default: "md5"
  22430. - Examples:
  22431. - "none"
  22432. - Pass any hash supported by wrapped remote for non-chunked files.
  22433. - Return nothing otherwise.
  22434. - "md5"
  22435. - MD5 for composite files.
  22436. - "sha1"
  22437. - SHA1 for composite files.
  22438. - "md5all"
  22439. - MD5 for all files.
  22440. - "sha1all"
  22441. - SHA1 for all files.
  22442. - "md5quick"
  22443. - Copying a file to chunker will request MD5 from the source.
  22444. - Falling back to SHA1 if unsupported.
  22445. - "sha1quick"
  22446. - Similar to "md5quick" but prefers SHA1 over MD5.
  22447. ### Advanced options
  22448. Here are the Advanced options specific to chunker (Transparently chunk/split large files).
  22449. #### --chunker-name-format
  22450. String format of chunk file names.
  22451. The two placeholders are: base file name (*) and chunk number (#...).
  22452. There must be one and only one asterisk and one or more consecutive hash characters.
  22453. If chunk number has less digits than the number of hashes, it is left-padded by zeros.
  22454. If there are more digits in the number, they are left as is.
  22455. Possible chunk files are ignored if their name does not match given format.
  22456. Properties:
  22457. - Config: name_format
  22458. - Env Var: RCLONE_CHUNKER_NAME_FORMAT
  22459. - Type: string
  22460. - Default: "*.rclone_chunk.###"
  22461. #### --chunker-start-from
  22462. Minimum valid chunk number. Usually 0 or 1.
  22463. By default chunk numbers start from 1.
  22464. Properties:
  22465. - Config: start_from
  22466. - Env Var: RCLONE_CHUNKER_START_FROM
  22467. - Type: int
  22468. - Default: 1
  22469. #### --chunker-meta-format
  22470. Format of the metadata object or "none".
  22471. By default "simplejson".
  22472. Metadata is a small JSON file named after the composite file.
  22473. Properties:
  22474. - Config: meta_format
  22475. - Env Var: RCLONE_CHUNKER_META_FORMAT
  22476. - Type: string
  22477. - Default: "simplejson"
  22478. - Examples:
  22479. - "none"
  22480. - Do not use metadata files at all.
  22481. - Requires hash type "none".
  22482. - "simplejson"
  22483. - Simple JSON supports hash sums and chunk validation.
  22484. -
  22485. - It has the following fields: ver, size, nchunks, md5, sha1.
  22486. #### --chunker-fail-hard
  22487. Choose how chunker should handle files with missing or invalid chunks.
  22488. Properties:
  22489. - Config: fail_hard
  22490. - Env Var: RCLONE_CHUNKER_FAIL_HARD
  22491. - Type: bool
  22492. - Default: false
  22493. - Examples:
  22494. - "true"
  22495. - Report errors and abort current command.
  22496. - "false"
  22497. - Warn user, skip incomplete file and proceed.
  22498. #### --chunker-transactions
  22499. Choose how chunker should handle temporary files during transactions.
  22500. Properties:
  22501. - Config: transactions
  22502. - Env Var: RCLONE_CHUNKER_TRANSACTIONS
  22503. - Type: string
  22504. - Default: "rename"
  22505. - Examples:
  22506. - "rename"
  22507. - Rename temporary files after a successful transaction.
  22508. - "norename"
  22509. - Leave temporary file names and write transaction ID to metadata file.
  22510. - Metadata is required for no rename transactions (meta format cannot be "none").
  22511. - If you are using norename transactions you should be careful not to downgrade Rclone
  22512. - as older versions of Rclone don't support this transaction style and will misinterpret
  22513. - files manipulated by norename transactions.
  22514. - This method is EXPERIMENTAL, don't use on production systems.
  22515. - "auto"
  22516. - Rename or norename will be used depending on capabilities of the backend.
  22517. - If meta format is set to "none", rename transactions will always be used.
  22518. - This method is EXPERIMENTAL, don't use on production systems.
  22519. #### --chunker-description
  22520. Description of the remote
  22521. Properties:
  22522. - Config: description
  22523. - Env Var: RCLONE_CHUNKER_DESCRIPTION
  22524. - Type: string
  22525. - Required: false
  22526. # Citrix ShareFile
  22527. [Citrix ShareFile](https://sharefile.com) is a secure file sharing and transfer service aimed as business.
  22528. ## Configuration
  22529. The initial setup for Citrix ShareFile involves getting a token from
  22530. Citrix ShareFile which you can in your browser. `rclone config` walks you
  22531. through it.
  22532. Here is an example of how to make a remote called `remote`. First run:
  22533. rclone config
  22534. This will guide you through an interactive setup process:
  22535. No remotes found, make a new one? n) New remote s) Set configuration
  22536. password q) Quit config n/s/q> n name> remote Type of storage to
  22537. configure. Enter a string value. Press Enter for the default ("").
  22538. Choose a number from below, or type in your own value XX / Citrix
  22539. Sharefile  "sharefile" Storage> sharefile ** See help for sharefile
  22540. backend at: https://rclone.org/sharefile/ **
  22541. ID of the root folder
  22542. Leave blank to access "Personal Folders". You can use one of the
  22543. standard values here or any folder ID (long hex number ID). Enter a
  22544. string value. Press Enter for the default (""). Choose a number from
  22545. below, or type in your own value 1 / Access the Personal Folders.
  22546. (Default)  "" 2 / Access the Favorites folder.  "favorites" 3 / Access
  22547. all the shared folders.  "allshared" 4 / Access all the individual
  22548. connectors.  "connectors" 5 / Access the home, favorites, and shared
  22549. folders as well as the connectors.  "top" root_folder_id> Edit advanced
  22550. config? (y/n) y) Yes n) No y/n> n Remote config Use web browser to
  22551. automatically authenticate rclone with remote? * Say Y if the machine
  22552. running rclone has a web browser you can use * Say N if running rclone
  22553. on a (remote) machine without web browser access If not sure try Y. If Y
  22554. failed, try N. y) Yes n) No y/n> y If your browser doesn't open
  22555. automatically go to the following link:
  22556. http://127.0.0.1:53682/auth?state=XXX Log in and authorize rclone for
  22557. access Waiting for code... Got code -------------------- [remote] type =
  22558. sharefile endpoint = https://XXX.sharefile.com token =
  22559. {"access_token":"XXX","token_type":"bearer","refresh_token":"XXX","expiry":"2019-09-30T19:41:45.878561877+01:00"}
  22560. -------------------- y) Yes this is OK e) Edit this remote d) Delete
  22561. this remote y/e/d> y
  22562. See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
  22563. machine with no Internet browser available.
  22564. Note that rclone runs a webserver on your local machine to collect the
  22565. token as returned from Citrix ShareFile. This only runs from the moment it opens
  22566. your browser to the moment you get back the verification code. This
  22567. is on `http://127.0.0.1:53682/` and this it may require you to unblock
  22568. it temporarily if you are running a host firewall.
  22569. Once configured you can then use `rclone` like this,
  22570. List directories in top level of your ShareFile
  22571. rclone lsd remote:
  22572. List all the files in your ShareFile
  22573. rclone ls remote:
  22574. To copy a local directory to an ShareFile directory called backup
  22575. rclone copy /home/source remote:backup
  22576. Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
  22577. ### Modification times and hashes
  22578. ShareFile allows modification times to be set on objects accurate to 1
  22579. second. These will be used to detect whether objects need syncing or
  22580. not.
  22581. ShareFile supports MD5 type hashes, so you can use the `--checksum`
  22582. flag.
  22583. ### Transfers
  22584. For files above 128 MiB rclone will use a chunked transfer. Rclone will
  22585. upload up to `--transfers` chunks at the same time (shared among all
  22586. the multipart uploads). Chunks are buffered in memory and are
  22587. normally 64 MiB so increasing `--transfers` will increase memory use.
  22588. ### Restricted filename characters
  22589. In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
  22590. the following characters are also replaced:
  22591. | Character | Value | Replacement |
  22592. | --------- |:-----:|:-----------:|
  22593. | \\ | 0x5C | \ |
  22594. | * | 0x2A | * |
  22595. | < | 0x3C | < |
  22596. | > | 0x3E | > |
  22597. | ? | 0x3F | ? |
  22598. | : | 0x3A | : |
  22599. | \| | 0x7C | | |
  22600. | " | 0x22 | " |
  22601. File names can also not start or end with the following characters.
  22602. These only get replaced if they are the first or last character in the
  22603. name:
  22604. | Character | Value | Replacement |
  22605. | --------- |:-----:|:-----------:|
  22606. | SP | 0x20 | ␠ |
  22607. | . | 0x2E | . |
  22608. Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
  22609. as they can't be used in JSON strings.
  22610. ### Standard options
  22611. Here are the Standard options specific to sharefile (Citrix Sharefile).
  22612. #### --sharefile-client-id
  22613. OAuth Client Id.
  22614. Leave blank normally.
  22615. Properties:
  22616. - Config: client_id
  22617. - Env Var: RCLONE_SHAREFILE_CLIENT_ID
  22618. - Type: string
  22619. - Required: false
  22620. #### --sharefile-client-secret
  22621. OAuth Client Secret.
  22622. Leave blank normally.
  22623. Properties:
  22624. - Config: client_secret
  22625. - Env Var: RCLONE_SHAREFILE_CLIENT_SECRET
  22626. - Type: string
  22627. - Required: false
  22628. #### --sharefile-root-folder-id
  22629. ID of the root folder.
  22630. Leave blank to access "Personal Folders". You can use one of the
  22631. standard values here or any folder ID (long hex number ID).
  22632. Properties:
  22633. - Config: root_folder_id
  22634. - Env Var: RCLONE_SHAREFILE_ROOT_FOLDER_ID
  22635. - Type: string
  22636. - Required: false
  22637. - Examples:
  22638. - ""
  22639. - Access the Personal Folders (default).
  22640. - "favorites"
  22641. - Access the Favorites folder.
  22642. - "allshared"
  22643. - Access all the shared folders.
  22644. - "connectors"
  22645. - Access all the individual connectors.
  22646. - "top"
  22647. - Access the home, favorites, and shared folders as well as the connectors.
  22648. ### Advanced options
  22649. Here are the Advanced options specific to sharefile (Citrix Sharefile).
  22650. #### --sharefile-token
  22651. OAuth Access Token as a JSON blob.
  22652. Properties:
  22653. - Config: token
  22654. - Env Var: RCLONE_SHAREFILE_TOKEN
  22655. - Type: string
  22656. - Required: false
  22657. #### --sharefile-auth-url
  22658. Auth server URL.
  22659. Leave blank to use the provider defaults.
  22660. Properties:
  22661. - Config: auth_url
  22662. - Env Var: RCLONE_SHAREFILE_AUTH_URL
  22663. - Type: string
  22664. - Required: false
  22665. #### --sharefile-token-url
  22666. Token server url.
  22667. Leave blank to use the provider defaults.
  22668. Properties:
  22669. - Config: token_url
  22670. - Env Var: RCLONE_SHAREFILE_TOKEN_URL
  22671. - Type: string
  22672. - Required: false
  22673. #### --sharefile-upload-cutoff
  22674. Cutoff for switching to multipart upload.
  22675. Properties:
  22676. - Config: upload_cutoff
  22677. - Env Var: RCLONE_SHAREFILE_UPLOAD_CUTOFF
  22678. - Type: SizeSuffix
  22679. - Default: 128Mi
  22680. #### --sharefile-chunk-size
  22681. Upload chunk size.
  22682. Must a power of 2 >= 256k.
  22683. Making this larger will improve performance, but note that each chunk
  22684. is buffered in memory one per transfer.
  22685. Reducing this will reduce memory usage but decrease performance.
  22686. Properties:
  22687. - Config: chunk_size
  22688. - Env Var: RCLONE_SHAREFILE_CHUNK_SIZE
  22689. - Type: SizeSuffix
  22690. - Default: 64Mi
  22691. #### --sharefile-endpoint
  22692. Endpoint for API calls.
  22693. This is usually auto discovered as part of the oauth process, but can
  22694. be set manually to something like: https://XXX.sharefile.com
  22695. Properties:
  22696. - Config: endpoint
  22697. - Env Var: RCLONE_SHAREFILE_ENDPOINT
  22698. - Type: string
  22699. - Required: false
  22700. #### --sharefile-encoding
  22701. The encoding for the backend.
  22702. See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
  22703. Properties:
  22704. - Config: encoding
  22705. - Env Var: RCLONE_SHAREFILE_ENCODING
  22706. - Type: Encoding
  22707. - Default: Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,LeftSpace,LeftPeriod,RightSpace,RightPeriod,InvalidUtf8,Dot
  22708. #### --sharefile-description
  22709. Description of the remote
  22710. Properties:
  22711. - Config: description
  22712. - Env Var: RCLONE_SHAREFILE_DESCRIPTION
  22713. - Type: string
  22714. - Required: false
  22715. ## Limitations
  22716. Note that ShareFile is case insensitive so you can't have a file called
  22717. "Hello.doc" and one called "hello.doc".
  22718. ShareFile only supports filenames up to 256 characters in length.
  22719. `rclone about` is not supported by the Citrix ShareFile backend. Backends without
  22720. this capability cannot determine free space for an rclone mount or
  22721. use policy `mfs` (most free space) as a member of an rclone union
  22722. remote.
  22723. See [List of backends that do not support rclone about](https://rclone.org/overview/#optional-features) and [rclone about](https://rclone.org/commands/rclone_about/)
  22724. # Crypt
  22725. Rclone `crypt` remotes encrypt and decrypt other remotes.
  22726. A remote of type `crypt` does not access a [storage system](https://rclone.org/overview/)
  22727. directly, but instead wraps another remote, which in turn accesses
  22728. the storage system. This is similar to how [alias](https://rclone.org/alias/),
  22729. [union](https://rclone.org/union/), [chunker](https://rclone.org/chunker/)
  22730. and a few others work. It makes the usage very flexible, as you can
  22731. add a layer, in this case an encryption layer, on top of any other
  22732. backend, even in multiple layers. Rclone's functionality
  22733. can be used as with any other remote, for example you can
  22734. [mount](https://rclone.org/commands/rclone_mount/) a crypt remote.
  22735. Accessing a storage system through a crypt remote realizes client-side
  22736. encryption, which makes it safe to keep your data in a location you do
  22737. not trust will not get compromised.
  22738. When working against the `crypt` remote, rclone will automatically
  22739. encrypt (before uploading) and decrypt (after downloading) on your local
  22740. system as needed on the fly, leaving the data encrypted at rest in the
  22741. wrapped remote. If you access the storage system using an application
  22742. other than rclone, or access the wrapped remote directly using rclone,
  22743. there will not be any encryption/decryption: Downloading existing content
  22744. will just give you the encrypted (scrambled) format, and anything you
  22745. upload will *not* become encrypted.
  22746. The encryption is a secret-key encryption (also called symmetric key encryption)
  22747. algorithm, where a password (or pass phrase) is used to generate real encryption key.
  22748. The password can be supplied by user, or you may chose to let rclone
  22749. generate one. It will be stored in the configuration file, in a lightly obscured form.
  22750. If you are in an environment where you are not able to keep your configuration
  22751. secured, you should add
  22752. [configuration encryption](https://rclone.org/docs/#configuration-encryption)
  22753. as protection. As long as you have this configuration file, you will be able to
  22754. decrypt your data. Without the configuration file, as long as you remember
  22755. the password (or keep it in a safe place), you can re-create the configuration
  22756. and gain access to the existing data. You may also configure a corresponding
  22757. remote in a different installation to access the same data.
  22758. See below for guidance to [changing password](#changing-password).
  22759. Encryption uses [cryptographic salt](https://en.wikipedia.org/wiki/Salt_(cryptography)),
  22760. to permute the encryption key so that the same string may be encrypted in
  22761. different ways. When configuring the crypt remote it is optional to enter a salt,
  22762. or to let rclone generate a unique salt. If omitted, rclone uses a built-in unique string.
  22763. Normally in cryptography, the salt is stored together with the encrypted content,
  22764. and do not have to be memorized by the user. This is not the case in rclone,
  22765. because rclone does not store any additional information on the remotes. Use of
  22766. custom salt is effectively a second password that must be memorized.
  22767. [File content](#file-encryption) encryption is performed using
  22768. [NaCl SecretBox](https://godoc.org/golang.org/x/crypto/nacl/secretbox),
  22769. based on XSalsa20 cipher and Poly1305 for integrity.
  22770. [Names](#name-encryption) (file- and directory names) are also encrypted
  22771. by default, but this has some implications and is therefore
  22772. possible to be turned off.
  22773. ## Configuration
  22774. Here is an example of how to make a remote called `secret`.
  22775. To use `crypt`, first set up the underlying remote. Follow the
  22776. `rclone config` instructions for the specific backend.
  22777. Before configuring the crypt remote, check the underlying remote is
  22778. working. In this example the underlying remote is called `remote`.
  22779. We will configure a path `path` within this remote to contain the
  22780. encrypted content. Anything inside `remote:path` will be encrypted
  22781. and anything outside will not.
  22782. Configure `crypt` using `rclone config`. In this example the `crypt`
  22783. remote is called `secret`, to differentiate it from the underlying
  22784. `remote`.
  22785. When you are done you can use the crypt remote named `secret` just
  22786. as you would with any other remote, e.g. `rclone copy D:\docs secret:\docs`,
  22787. and rclone will encrypt and decrypt as needed on the fly.
  22788. If you access the wrapped remote `remote:path` directly you will bypass
  22789. the encryption, and anything you read will be in encrypted form, and
  22790. anything you write will be unencrypted. To avoid issues it is best to
  22791. configure a dedicated path for encrypted content, and access it
  22792. exclusively through a crypt remote.
  22793. No remotes found, make a new one? n) New remote s) Set configuration
  22794. password q) Quit config n/s/q> n name> secret Type of storage to
  22795. configure. Enter a string value. Press Enter for the default ("").
  22796. Choose a number from below, or type in your own value [snip] XX /
  22797. Encrypt/Decrypt a remote  "crypt" [snip] Storage> crypt ** See help for
  22798. crypt backend at: https://rclone.org/crypt/ **
  22799. Remote to encrypt/decrypt. Normally should contain a ':' and a path, eg
  22800. "myremote:path/to/dir", "myremote:bucket" or maybe "myremote:" (not
  22801. recommended). Enter a string value. Press Enter for the default ("").
  22802. remote> remote:path How to encrypt the filenames. Enter a string value.
  22803. Press Enter for the default ("standard"). Choose a number from below, or
  22804. type in your own value. / Encrypt the filenames. 1 | See the docs for
  22805. the details.  "standard" 2 / Very simple filename obfuscation.
  22806.  "obfuscate" / Don't encrypt the file names. 3 | Adds a ".bin" extension
  22807. only.  "off" filename_encryption> Option to either encrypt directory
  22808. names or leave them intact.
  22809. NB If filename_encryption is "off" then this option will do nothing.
  22810. Enter a boolean value (true or false). Press Enter for the default
  22811. ("true"). Choose a number from below, or type in your own value 1 /
  22812. Encrypt directory names.  "true" 2 / Don't encrypt directory names,
  22813. leave them intact.  "false" directory_name_encryption> Password or pass
  22814. phrase for encryption. y) Yes type in my own password g) Generate random
  22815. password y/g> y Enter the password: password: Confirm the password:
  22816. password: Password or pass phrase for salt. Optional but recommended.
  22817. Should be different to the previous password. y) Yes type in my own
  22818. password g) Generate random password n) No leave this optional password
  22819. blank (default) y/g/n> g Password strength in bits. 64 is just about
  22820. memorable 128 is secure 1024 is the maximum Bits> 128 Your password is:
  22821. JAsJvRcgR-_veXNfy_sGmQ Use this password? Please note that an obscured
  22822. version of this password (and not the password itself) will be stored
  22823. under your configuration file, so keep this generated password in a safe
  22824. place. y) Yes (default) n) No y/n> Edit advanced config? (y/n) y) Yes n)
  22825. No (default) y/n> Remote config -------------------- [secret] type =
  22826. crypt remote = remote:path password = *** ENCRYPTED password2 =
  22827. ENCRYPTED *** -------------------- y) Yes this is OK (default) e) Edit
  22828. this remote d) Delete this remote y/e/d>
  22829. **Important** The crypt password stored in `rclone.conf` is lightly
  22830. obscured. That only protects it from cursory inspection. It is not
  22831. secure unless [configuration encryption](https://rclone.org/docs/#configuration-encryption) of `rclone.conf` is specified.
  22832. A long passphrase is recommended, or `rclone config` can generate a
  22833. random one.
  22834. The obscured password is created using AES-CTR with a static key. The
  22835. salt is stored verbatim at the beginning of the obscured password. This
  22836. static key is shared between all versions of rclone.
  22837. If you reconfigure rclone with the same passwords/passphrases
  22838. elsewhere it will be compatible, but the obscured version will be different
  22839. due to the different salt.
  22840. Rclone does not encrypt
  22841. * file length - this can be calculated within 16 bytes
  22842. * modification time - used for syncing
  22843. ### Specifying the remote
  22844. When configuring the remote to encrypt/decrypt, you may specify any
  22845. string that rclone accepts as a source/destination of other commands.
  22846. The primary use case is to specify the path into an already configured
  22847. remote (e.g. `remote:path/to/dir` or `remote:bucket`), such that
  22848. data in a remote untrusted location can be stored encrypted.
  22849. You may also specify a local filesystem path, such as
  22850. `/path/to/dir` on Linux, `C:\path\to\dir` on Windows. By creating
  22851. a crypt remote pointing to such a local filesystem path, you can
  22852. use rclone as a utility for pure local file encryption, for example
  22853. to keep encrypted files on a removable USB drive.
  22854. **Note**: A string which do not contain a `:` will by rclone be treated
  22855. as a relative path in the local filesystem. For example, if you enter
  22856. the name `remote` without the trailing `:`, it will be treated as
  22857. a subdirectory of the current directory with name "remote".
  22858. If a path `remote:path/to/dir` is specified, rclone stores encrypted
  22859. files in `path/to/dir` on the remote. With file name encryption, files
  22860. saved to `secret:subdir/subfile` are stored in the unencrypted path
  22861. `path/to/dir` but the `subdir/subpath` element is encrypted.
  22862. The path you specify does not have to exist, rclone will create
  22863. it when needed.
  22864. If you intend to use the wrapped remote both directly for keeping
  22865. unencrypted content, as well as through a crypt remote for encrypted
  22866. content, it is recommended to point the crypt remote to a separate
  22867. directory within the wrapped remote. If you use a bucket-based storage
  22868. system (e.g. Swift, S3, Google Compute Storage, B2) it is generally
  22869. advisable to wrap the crypt remote around a specific bucket (`s3:bucket`).
  22870. If wrapping around the entire root of the storage (`s3:`), and use the
  22871. optional file name encryption, rclone will encrypt the bucket name.
  22872. ### Changing password
  22873. Should the password, or the configuration file containing a lightly obscured
  22874. form of the password, be compromised, you need to re-encrypt your data with
  22875. a new password. Since rclone uses secret-key encryption, where the encryption
  22876. key is generated directly from the password kept on the client, it is not
  22877. possible to change the password/key of already encrypted content. Just changing
  22878. the password configured for an existing crypt remote means you will no longer
  22879. able to decrypt any of the previously encrypted content. The only possibility
  22880. is to re-upload everything via a crypt remote configured with your new password.
  22881. Depending on the size of your data, your bandwidth, storage quota etc, there are
  22882. different approaches you can take:
  22883. - If you have everything in a different location, for example on your local system,
  22884. you could remove all of the prior encrypted files, change the password for your
  22885. configured crypt remote (or delete and re-create the crypt configuration),
  22886. and then re-upload everything from the alternative location.
  22887. - If you have enough space on the storage system you can create a new crypt
  22888. remote pointing to a separate directory on the same backend, and then use
  22889. rclone to copy everything from the original crypt remote to the new,
  22890. effectively decrypting everything on the fly using the old password and
  22891. re-encrypting using the new password. When done, delete the original crypt
  22892. remote directory and finally the rclone crypt configuration with the old password.
  22893. All data will be streamed from the storage system and back, so you will
  22894. get half the bandwidth and be charged twice if you have upload and download quota
  22895. on the storage system.
  22896. **Note**: A security problem related to the random password generator
  22897. was fixed in rclone version 1.53.3 (released 2020-11-19). Passwords generated
  22898. by rclone config in version 1.49.0 (released 2019-08-26) to 1.53.2
  22899. (released 2020-10-26) are not considered secure and should be changed.
  22900. If you made up your own password, or used rclone version older than 1.49.0 or
  22901. newer than 1.53.2 to generate it, you are *not* affected by this issue.
  22902. See [issue #4783](https://github.com/rclone/rclone/issues/4783) for more
  22903. details, and a tool you can use to check if you are affected.
  22904. ### Example
  22905. Create the following file structure using "standard" file name
  22906. encryption.
  22907. plaintext/ ├── file0.txt ├── file1.txt └── subdir ├── file2.txt ├──
  22908. file3.txt └── subsubdir └── file4.txt
  22909. Copy these to the remote, and list them
  22910. $ rclone -q copy plaintext secret: $ rclone -q ls secret: 7 file1.txt 6
  22911. file0.txt 8 subdir/file2.txt 10 subdir/subsubdir/file4.txt 9
  22912. subdir/file3.txt
  22913. The crypt remote looks like
  22914. $ rclone -q ls remote:path 55 hagjclgavj2mbiqm6u6cnjjqcg 54
  22915. v05749mltvv1tf4onltun46gls 57
  22916. 86vhrsv86mpbtd3a0akjuqslj8/dlj7fkq4kdq72emafg7a7s41uo 58
  22917. 86vhrsv86mpbtd3a0akjuqslj8/7uu829995du6o42n32otfhjqp4/b9pausrfansjth5ob3jkdqd4lc
  22918. 56 86vhrsv86mpbtd3a0akjuqslj8/8njh1sk437gttmep3p70g81aps
  22919. The directory structure is preserved
  22920. $ rclone -q ls secret:subdir 8 file2.txt 9 file3.txt 10
  22921. subsubdir/file4.txt
  22922. Without file name encryption `.bin` extensions are added to underlying
  22923. names. This prevents the cloud provider attempting to interpret file
  22924. content.
  22925. $ rclone -q ls remote:path 54 file0.txt.bin 57 subdir/file3.txt.bin 56
  22926. subdir/file2.txt.bin 58 subdir/subsubdir/file4.txt.bin 55 file1.txt.bin
  22927. ### File name encryption modes
  22928. Off
  22929. * doesn't hide file names or directory structure
  22930. * allows for longer file names (~246 characters)
  22931. * can use sub paths and copy single files
  22932. Standard
  22933. * file names encrypted
  22934. * file names can't be as long (~143 characters)
  22935. * can use sub paths and copy single files
  22936. * directory structure visible
  22937. * identical files names will have identical uploaded names
  22938. * can use shortcuts to shorten the directory recursion
  22939. Obfuscation
  22940. This is a simple "rotate" of the filename, with each file having a rot
  22941. distance based on the filename. Rclone stores the distance at the
  22942. beginning of the filename. A file called "hello" may become "53.jgnnq".
  22943. Obfuscation is not a strong encryption of filenames, but hinders
  22944. automated scanning tools picking up on filename patterns. It is an
  22945. intermediate between "off" and "standard" which allows for longer path
  22946. segment names.
  22947. There is a possibility with some unicode based filenames that the
  22948. obfuscation is weak and may map lower case characters to upper case
  22949. equivalents.
  22950. Obfuscation cannot be relied upon for strong protection.
  22951. * file names very lightly obfuscated
  22952. * file names can be longer than standard encryption
  22953. * can use sub paths and copy single files
  22954. * directory structure visible
  22955. * identical files names will have identical uploaded names
  22956. Cloud storage systems have limits on file name length and
  22957. total path length which rclone is more likely to breach using
  22958. "Standard" file name encryption. Where file names are less than 156
  22959. characters in length issues should not be encountered, irrespective of
  22960. cloud storage provider.
  22961. An experimental advanced option `filename_encoding` is now provided to
  22962. address this problem to a certain degree.
  22963. For cloud storage systems with case sensitive file names (e.g. Google Drive),
  22964. `base64` can be used to reduce file name length.
  22965. For cloud storage systems using UTF-16 to store file names internally
  22966. (e.g. OneDrive, Dropbox, Box), `base32768` can be used to drastically reduce
  22967. file name length.
  22968. An alternative, future rclone file name encryption mode may tolerate
  22969. backend provider path length limits.
  22970. ### Directory name encryption
  22971. Crypt offers the option of encrypting dir names or leaving them intact.
  22972. There are two options:
  22973. True
  22974. Encrypts the whole file path including directory names
  22975. Example:
  22976. `1/12/123.txt` is encrypted to
  22977. `p0e52nreeaj0a5ea7s64m4j72s/l42g6771hnv3an9cgc8cr2n1ng/qgm4avr35m5loi1th53ato71v0`
  22978. False
  22979. Only encrypts file names, skips directory names
  22980. Example:
  22981. `1/12/123.txt` is encrypted to
  22982. `1/12/qgm4avr35m5loi1th53ato71v0`
  22983. ### Modification times and hashes
  22984. Crypt stores modification times using the underlying remote so support
  22985. depends on that.
  22986. Hashes are not stored for crypt. However the data integrity is
  22987. protected by an extremely strong crypto authenticator.
  22988. Use the `rclone cryptcheck` command to check the
  22989. integrity of an encrypted remote instead of `rclone check` which can't
  22990. check the checksums properly.
  22991. ### Standard options
  22992. Here are the Standard options specific to crypt (Encrypt/Decrypt a remote).
  22993. #### --crypt-remote
  22994. Remote to encrypt/decrypt.
  22995. Normally should contain a ':' and a path, e.g. "myremote:path/to/dir",
  22996. "myremote:bucket" or maybe "myremote:" (not recommended).
  22997. Properties:
  22998. - Config: remote
  22999. - Env Var: RCLONE_CRYPT_REMOTE
  23000. - Type: string
  23001. - Required: true
  23002. #### --crypt-filename-encryption
  23003. How to encrypt the filenames.
  23004. Properties:
  23005. - Config: filename_encryption
  23006. - Env Var: RCLONE_CRYPT_FILENAME_ENCRYPTION
  23007. - Type: string
  23008. - Default: "standard"
  23009. - Examples:
  23010. - "standard"
  23011. - Encrypt the filenames.
  23012. - See the docs for the details.
  23013. - "obfuscate"
  23014. - Very simple filename obfuscation.
  23015. - "off"
  23016. - Don't encrypt the file names.
  23017. - Adds a ".bin", or "suffix" extension only.
  23018. #### --crypt-directory-name-encryption
  23019. Option to either encrypt directory names or leave them intact.
  23020. NB If filename_encryption is "off" then this option will do nothing.
  23021. Properties:
  23022. - Config: directory_name_encryption
  23023. - Env Var: RCLONE_CRYPT_DIRECTORY_NAME_ENCRYPTION
  23024. - Type: bool
  23025. - Default: true
  23026. - Examples:
  23027. - "true"
  23028. - Encrypt directory names.
  23029. - "false"
  23030. - Don't encrypt directory names, leave them intact.
  23031. #### --crypt-password
  23032. Password or pass phrase for encryption.
  23033. **NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
  23034. Properties:
  23035. - Config: password
  23036. - Env Var: RCLONE_CRYPT_PASSWORD
  23037. - Type: string
  23038. - Required: true
  23039. #### --crypt-password2
  23040. Password or pass phrase for salt.
  23041. Optional but recommended.
  23042. Should be different to the previous password.
  23043. **NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
  23044. Properties:
  23045. - Config: password2
  23046. - Env Var: RCLONE_CRYPT_PASSWORD2
  23047. - Type: string
  23048. - Required: false
  23049. ### Advanced options
  23050. Here are the Advanced options specific to crypt (Encrypt/Decrypt a remote).
  23051. #### --crypt-server-side-across-configs
  23052. Deprecated: use --server-side-across-configs instead.
  23053. Allow server-side operations (e.g. copy) to work across different crypt configs.
  23054. Normally this option is not what you want, but if you have two crypts
  23055. pointing to the same backend you can use it.
  23056. This can be used, for example, to change file name encryption type
  23057. without re-uploading all the data. Just make two crypt backends
  23058. pointing to two different directories with the single changed
  23059. parameter and use rclone move to move the files between the crypt
  23060. remotes.
  23061. Properties:
  23062. - Config: server_side_across_configs
  23063. - Env Var: RCLONE_CRYPT_SERVER_SIDE_ACROSS_CONFIGS
  23064. - Type: bool
  23065. - Default: false
  23066. #### --crypt-show-mapping
  23067. For all files listed show how the names encrypt.
  23068. If this flag is set then for each file that the remote is asked to
  23069. list, it will log (at level INFO) a line stating the decrypted file
  23070. name and the encrypted file name.
  23071. This is so you can work out which encrypted names are which decrypted
  23072. names just in case you need to do something with the encrypted file
  23073. names, or for debugging purposes.
  23074. Properties:
  23075. - Config: show_mapping
  23076. - Env Var: RCLONE_CRYPT_SHOW_MAPPING
  23077. - Type: bool
  23078. - Default: false
  23079. #### --crypt-no-data-encryption
  23080. Option to either encrypt file data or leave it unencrypted.
  23081. Properties:
  23082. - Config: no_data_encryption
  23083. - Env Var: RCLONE_CRYPT_NO_DATA_ENCRYPTION
  23084. - Type: bool
  23085. - Default: false
  23086. - Examples:
  23087. - "true"
  23088. - Don't encrypt file data, leave it unencrypted.
  23089. - "false"
  23090. - Encrypt file data.
  23091. #### --crypt-pass-bad-blocks
  23092. If set this will pass bad blocks through as all 0.
  23093. This should not be set in normal operation, it should only be set if
  23094. trying to recover an encrypted file with errors and it is desired to
  23095. recover as much of the file as possible.
  23096. Properties:
  23097. - Config: pass_bad_blocks
  23098. - Env Var: RCLONE_CRYPT_PASS_BAD_BLOCKS
  23099. - Type: bool
  23100. - Default: false
  23101. #### --crypt-strict-names
  23102. If set, this will raise an error when crypt comes across a filename that can't be decrypted.
  23103. (By default, rclone will just log a NOTICE and continue as normal.)
  23104. This can happen if encrypted and unencrypted files are stored in the same
  23105. directory (which is not recommended.) It may also indicate a more serious
  23106. problem that should be investigated.
  23107. Properties:
  23108. - Config: strict_names
  23109. - Env Var: RCLONE_CRYPT_STRICT_NAMES
  23110. - Type: bool
  23111. - Default: false
  23112. #### --crypt-filename-encoding
  23113. How to encode the encrypted filename to text string.
  23114. This option could help with shortening the encrypted filename. The
  23115. suitable option would depend on the way your remote count the filename
  23116. length and if it's case sensitive.
  23117. Properties:
  23118. - Config: filename_encoding
  23119. - Env Var: RCLONE_CRYPT_FILENAME_ENCODING
  23120. - Type: string
  23121. - Default: "base32"
  23122. - Examples:
  23123. - "base32"
  23124. - Encode using base32. Suitable for all remote.
  23125. - "base64"
  23126. - Encode using base64. Suitable for case sensitive remote.
  23127. - "base32768"
  23128. - Encode using base32768. Suitable if your remote counts UTF-16 or
  23129. - Unicode codepoint instead of UTF-8 byte length. (Eg. Onedrive, Dropbox)
  23130. #### --crypt-suffix
  23131. If this is set it will override the default suffix of ".bin".
  23132. Setting suffix to "none" will result in an empty suffix. This may be useful
  23133. when the path length is critical.
  23134. Properties:
  23135. - Config: suffix
  23136. - Env Var: RCLONE_CRYPT_SUFFIX
  23137. - Type: string
  23138. - Default: ".bin"
  23139. #### --crypt-description
  23140. Description of the remote
  23141. Properties:
  23142. - Config: description
  23143. - Env Var: RCLONE_CRYPT_DESCRIPTION
  23144. - Type: string
  23145. - Required: false
  23146. ### Metadata
  23147. Any metadata supported by the underlying remote is read and written.
  23148. See the [metadata](https://rclone.org/docs/#metadata) docs for more info.
  23149. ## Backend commands
  23150. Here are the commands specific to the crypt backend.
  23151. Run them with
  23152. rclone backend COMMAND remote:
  23153. The help below will explain what arguments each command takes.
  23154. See the [backend](https://rclone.org/commands/rclone_backend/) command for more
  23155. info on how to pass options and arguments.
  23156. These can be run on a running backend using the rc command
  23157. [backend/command](https://rclone.org/rc/#backend-command).
  23158. ### encode
  23159. Encode the given filename(s)
  23160. rclone backend encode remote: [options] [<arguments>+]
  23161. This encodes the filenames given as arguments returning a list of
  23162. strings of the encoded results.
  23163. Usage Example:
  23164. rclone backend encode crypt: file1 [file2...]
  23165. rclone rc backend/command command=encode fs=crypt: file1 [file2...]
  23166. ### decode
  23167. Decode the given filename(s)
  23168. rclone backend decode remote: [options] [<arguments>+]
  23169. This decodes the filenames given as arguments returning a list of
  23170. strings of the decoded results. It will return an error if any of the
  23171. inputs are invalid.
  23172. Usage Example:
  23173. rclone backend decode crypt: encryptedfile1 [encryptedfile2...]
  23174. rclone rc backend/command command=decode fs=crypt: encryptedfile1 [encryptedfile2...]
  23175. ## Backing up an encrypted remote
  23176. If you wish to backup an encrypted remote, it is recommended that you use
  23177. `rclone sync` on the encrypted files, and make sure the passwords are
  23178. the same in the new encrypted remote.
  23179. This will have the following advantages
  23180. * `rclone sync` will check the checksums while copying
  23181. * you can use `rclone check` between the encrypted remotes
  23182. * you don't decrypt and encrypt unnecessarily
  23183. For example, let's say you have your original remote at `remote:` with
  23184. the encrypted version at `eremote:` with path `remote:crypt`. You
  23185. would then set up the new remote `remote2:` and then the encrypted
  23186. version `eremote2:` with path `remote2:crypt` using the same passwords
  23187. as `eremote:`.
  23188. To sync the two remotes you would do
  23189. rclone sync --interactive remote:crypt remote2:crypt
  23190. And to check the integrity you would do
  23191. rclone check remote:crypt remote2:crypt
  23192. ## File formats
  23193. ### File encryption
  23194. Files are encrypted 1:1 source file to destination object. The file
  23195. has a header and is divided into chunks.
  23196. #### Header
  23197. * 8 bytes magic string `RCLONE\x00\x00`
  23198. * 24 bytes Nonce (IV)
  23199. The initial nonce is generated from the operating systems crypto
  23200. strong random number generator. The nonce is incremented for each
  23201. chunk read making sure each nonce is unique for each block written.
  23202. The chance of a nonce being reused is minuscule. If you wrote an
  23203. exabyte of data (10¹⁸ bytes) you would have a probability of
  23204. approximately 2×10⁻³² of re-using a nonce.
  23205. #### Chunk
  23206. Each chunk will contain 64 KiB of data, except for the last one which
  23207. may have less data. The data chunk is in standard NaCl SecretBox
  23208. format. SecretBox uses XSalsa20 and Poly1305 to encrypt and
  23209. authenticate messages.
  23210. Each chunk contains:
  23211. * 16 Bytes of Poly1305 authenticator
  23212. * 1 - 65536 bytes XSalsa20 encrypted data
  23213. 64k chunk size was chosen as the best performing chunk size (the
  23214. authenticator takes too much time below this and the performance drops
  23215. off due to cache effects above this). Note that these chunks are
  23216. buffered in memory so they can't be too big.
  23217. This uses a 32 byte (256 bit key) key derived from the user password.
  23218. #### Examples
  23219. 1 byte file will encrypt to
  23220. * 32 bytes header
  23221. * 17 bytes data chunk
  23222. 49 bytes total
  23223. 1 MiB (1048576 bytes) file will encrypt to
  23224. * 32 bytes header
  23225. * 16 chunks of 65568 bytes
  23226. 1049120 bytes total (a 0.05% overhead). This is the overhead for big
  23227. files.
  23228. ### Name encryption
  23229. File names are encrypted segment by segment - the path is broken up
  23230. into `/` separated strings and these are encrypted individually.
  23231. File segments are padded using PKCS#7 to a multiple of 16 bytes
  23232. before encryption.
  23233. They are then encrypted with EME using AES with 256 bit key. EME
  23234. (ECB-Mix-ECB) is a wide-block encryption mode presented in the 2003
  23235. paper "A Parallelizable Enciphering Mode" by Halevi and Rogaway.
  23236. This makes for deterministic encryption which is what we want - the
  23237. same filename must encrypt to the same thing otherwise we can't find
  23238. it on the cloud storage system.
  23239. This means that
  23240. * filenames with the same name will encrypt the same
  23241. * filenames which start the same won't have a common prefix
  23242. This uses a 32 byte key (256 bits) and a 16 byte (128 bits) IV both of
  23243. which are derived from the user password.
  23244. After encryption they are written out using a modified version of
  23245. standard `base32` encoding as described in RFC4648. The standard
  23246. encoding is modified in two ways:
  23247. * it becomes lower case (no-one likes upper case filenames!)
  23248. * we strip the padding character `=`
  23249. `base32` is used rather than the more efficient `base64` so rclone can be
  23250. used on case insensitive remotes (e.g. Windows, Box, Dropbox, Onedrive etc).
  23251. ### Key derivation
  23252. Rclone uses `scrypt` with parameters `N=16384, r=8, p=1` with an
  23253. optional user supplied salt (password2) to derive the 32+32+16 = 80
  23254. bytes of key material required. If the user doesn't supply a salt
  23255. then rclone uses an internal one.
  23256. `scrypt` makes it impractical to mount a dictionary attack on rclone
  23257. encrypted data. For full protection against this you should always use
  23258. a salt.
  23259. ## SEE ALSO
  23260. * [rclone cryptdecode](https://rclone.org/commands/rclone_cryptdecode/) - Show forward/reverse mapping of encrypted filenames
  23261. # Compress
  23262. ## Warning
  23263. This remote is currently **experimental**. Things may break and data may be lost. Anything you do with this remote is
  23264. at your own risk. Please understand the risks associated with using experimental code and don't use this remote in
  23265. critical applications.
  23266. The `Compress` remote adds compression to another remote. It is best used with remotes containing
  23267. many large compressible files.
  23268. ## Configuration
  23269. To use this remote, all you need to do is specify another remote and a compression mode to use:
  23270. Current remotes:
  23271. Name Type ==== ==== remote_to_press sometype
  23272. e) Edit existing remote $ rclone config
  23273. f) New remote
  23274. g) Delete remote
  23275. h) Rename remote
  23276. i) Copy remote
  23277. j) Set configuration password
  23278. k) Quit config e/n/d/r/c/s/q> n name> compress ... 8 / Compress a
  23279. remote  "compress" ... Storage> compress ** See help for compress
  23280. backend at: https://rclone.org/compress/ **
  23281. Remote to compress. Enter a string value. Press Enter for the default
  23282. (""). remote> remote_to_press:subdir Compression mode. Enter a string
  23283. value. Press Enter for the default ("gzip"). Choose a number from below,
  23284. or type in your own value 1 / Gzip compression balanced for speed and
  23285. compression strength.  "gzip" compression_mode> gzip Edit advanced
  23286. config? (y/n) y) Yes n) No (default) y/n> n Remote config
  23287. -------------------- [compress] type = compress remote =
  23288. remote_to_press:subdir compression_mode = gzip -------------------- y)
  23289. Yes this is OK (default) e) Edit this remote d) Delete this remote
  23290. y/e/d> y
  23291. ### Compression Modes
  23292. Currently only gzip compression is supported. It provides a decent balance between speed and size and is well
  23293. supported by other applications. Compression strength can further be configured via an advanced setting where 0 is no
  23294. compression and 9 is strongest compression.
  23295. ### File types
  23296. If you open a remote wrapped by compress, you will see that there are many files with an extension corresponding to
  23297. the compression algorithm you chose. These files are standard files that can be opened by various archive programs,
  23298. but they have some hidden metadata that allows them to be used by rclone.
  23299. While you may download and decompress these files at will, do **not** manually delete or rename files. Files without
  23300. correct metadata files will not be recognized by rclone.
  23301. ### File names
  23302. The compressed files will be named `*.###########.gz` where `*` is the base file and the `#` part is base64 encoded
  23303. size of the uncompressed file. The file names should not be changed by anything other than the rclone compression backend.
  23304. ### Standard options
  23305. Here are the Standard options specific to compress (Compress a remote).
  23306. #### --compress-remote
  23307. Remote to compress.
  23308. Properties:
  23309. - Config: remote
  23310. - Env Var: RCLONE_COMPRESS_REMOTE
  23311. - Type: string
  23312. - Required: true
  23313. #### --compress-mode
  23314. Compression mode.
  23315. Properties:
  23316. - Config: mode
  23317. - Env Var: RCLONE_COMPRESS_MODE
  23318. - Type: string
  23319. - Default: "gzip"
  23320. - Examples:
  23321. - "gzip"
  23322. - Standard gzip compression with fastest parameters.
  23323. ### Advanced options
  23324. Here are the Advanced options specific to compress (Compress a remote).
  23325. #### --compress-level
  23326. GZIP compression level (-2 to 9).
  23327. Generally -1 (default, equivalent to 5) is recommended.
  23328. Levels 1 to 9 increase compression at the cost of speed. Going past 6
  23329. generally offers very little return.
  23330. Level -2 uses Huffman encoding only. Only use if you know what you
  23331. are doing.
  23332. Level 0 turns off compression.
  23333. Properties:
  23334. - Config: level
  23335. - Env Var: RCLONE_COMPRESS_LEVEL
  23336. - Type: int
  23337. - Default: -1
  23338. #### --compress-ram-cache-limit
  23339. Some remotes don't allow the upload of files with unknown size.
  23340. In this case the compressed file will need to be cached to determine
  23341. it's size.
  23342. Files smaller than this limit will be cached in RAM, files larger than
  23343. this limit will be cached on disk.
  23344. Properties:
  23345. - Config: ram_cache_limit
  23346. - Env Var: RCLONE_COMPRESS_RAM_CACHE_LIMIT
  23347. - Type: SizeSuffix
  23348. - Default: 20Mi
  23349. #### --compress-description
  23350. Description of the remote
  23351. Properties:
  23352. - Config: description
  23353. - Env Var: RCLONE_COMPRESS_DESCRIPTION
  23354. - Type: string
  23355. - Required: false
  23356. ### Metadata
  23357. Any metadata supported by the underlying remote is read and written.
  23358. See the [metadata](https://rclone.org/docs/#metadata) docs for more info.
  23359. # Combine
  23360. The `combine` backend joins remotes together into a single directory
  23361. tree.
  23362. For example you might have a remote for images on one provider:
  23363. $ rclone tree s3:imagesbucket / ├── image1.jpg └── image2.jpg
  23364. And a remote for files on another:
  23365. $ rclone tree drive:important/files / ├── file1.txt └── file2.txt
  23366. The `combine` backend can join these together into a synthetic
  23367. directory structure like this:
  23368. $ rclone tree combined: / ├── files │ ├── file1.txt │ └── file2.txt └──
  23369. images ├── image1.jpg └── image2.jpg
  23370. You'd do this by specifying an `upstreams` parameter in the config
  23371. like this
  23372. upstreams = images=s3:imagesbucket files=drive:important/files
  23373. During the initial setup with `rclone config` you will specify the
  23374. upstreams remotes as a space separated list. The upstream remotes can
  23375. either be a local paths or other remotes.
  23376. ## Configuration
  23377. Here is an example of how to make a combine called `remote` for the
  23378. example above. First run:
  23379. rclone config
  23380. This will guide you through an interactive setup process:
  23381. No remotes found, make a new one? n) New remote s) Set configuration
  23382. password q) Quit config n/s/q> n name> remote Option Storage. Type of
  23383. storage to configure. Choose a number from below, or type in your own
  23384. value. ... XX / Combine several remotes into one  (combine) ... Storage>
  23385. combine Option upstreams. Upstreams for combining These should be in the
  23386. form dir=remote:path dir2=remote2:path Where before the = is specified
  23387. the root directory and after is the remote to put there. Embedded spaces
  23388. can be added using quotes "dir=remote:path with space"
  23389. "dir2=remote2:path with space" Enter a fs.SpaceSepList value. upstreams>
  23390. images=s3:imagesbucket files=drive:important/files --------------------
  23391. [remote] type = combine upstreams = images=s3:imagesbucket
  23392. files=drive:important/files -------------------- y) Yes this is OK
  23393. (default) e) Edit this remote d) Delete this remote y/e/d> y
  23394. ### Configuring for Google Drive Shared Drives
  23395. Rclone has a convenience feature for making a combine backend for all
  23396. the shared drives you have access to.
  23397. Assuming your main (non shared drive) Google drive remote is called
  23398. `drive:` you would run
  23399. rclone backend -o config drives drive:
  23400. This would produce something like this:
  23401. [My Drive]
  23402. type = alias
  23403. remote = drive,team_drive=0ABCDEF-01234567890,root_folder_id=:
  23404. [Test Drive]
  23405. type = alias
  23406. remote = drive,team_drive=0ABCDEFabcdefghijkl,root_folder_id=:
  23407. [AllDrives]
  23408. type = combine
  23409. upstreams = "My Drive=My Drive:" "Test Drive=Test Drive:"
  23410. If you then add that config to your config file (find it with `rclone
  23411. config file`) then you can access all the shared drives in one place
  23412. with the `AllDrives:` remote.
  23413. See [the Google Drive docs](https://rclone.org/drive/#drives) for full info.
  23414. ### Standard options
  23415. Here are the Standard options specific to combine (Combine several remotes into one).
  23416. #### --combine-upstreams
  23417. Upstreams for combining
  23418. These should be in the form
  23419. dir=remote:path dir2=remote2:path
  23420. Where before the = is specified the root directory and after is the remote to
  23421. put there.
  23422. Embedded spaces can be added using quotes
  23423. "dir=remote:path with space" "dir2=remote2:path with space"
  23424. Properties:
  23425. - Config: upstreams
  23426. - Env Var: RCLONE_COMBINE_UPSTREAMS
  23427. - Type: SpaceSepList
  23428. - Default:
  23429. ### Advanced options
  23430. Here are the Advanced options specific to combine (Combine several remotes into one).
  23431. #### --combine-description
  23432. Description of the remote
  23433. Properties:
  23434. - Config: description
  23435. - Env Var: RCLONE_COMBINE_DESCRIPTION
  23436. - Type: string
  23437. - Required: false
  23438. ### Metadata
  23439. Any metadata supported by the underlying remote is read and written.
  23440. See the [metadata](https://rclone.org/docs/#metadata) docs for more info.
  23441. # Dropbox
  23442. Paths are specified as `remote:path`
  23443. Dropbox paths may be as deep as required, e.g.
  23444. `remote:directory/subdirectory`.
  23445. ## Configuration
  23446. The initial setup for dropbox involves getting a token from Dropbox
  23447. which you need to do in your browser. `rclone config` walks you
  23448. through it.
  23449. Here is an example of how to make a remote called `remote`. First run:
  23450. rclone config
  23451. This will guide you through an interactive setup process:
  23452. n) New remote
  23453. o) Delete remote
  23454. p) Quit config e/n/d/q> n name> remote Type of storage to configure.
  23455. Choose a number from below, or type in your own value [snip] XX /
  23456. Dropbox  "dropbox" [snip] Storage> dropbox Dropbox App Key - leave
  23457. blank normally. app_key> Dropbox App Secret - leave blank normally.
  23458. app_secret> Remote config Please visit:
  23459. https://www.dropbox.com/1/oauth2/authorize?client_id=XXXXXXXXXXXXXXX&response_type=code
  23460. Enter the code: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXXXXXXXX
  23461. -------------------- [remote] app_key = app_secret = token =
  23462. XXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXX_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  23463. --------------------
  23464. q) Yes this is OK
  23465. r) Edit this remote
  23466. s) Delete this remote y/e/d> y
  23467. See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
  23468. machine with no Internet browser available.
  23469. Note that rclone runs a webserver on your local machine to collect the
  23470. token as returned from Dropbox. This only
  23471. runs from the moment it opens your browser to the moment you get back
  23472. the verification code. This is on `http://127.0.0.1:53682/` and it
  23473. may require you to unblock it temporarily if you are running a host
  23474. firewall, or use manual mode.
  23475. You can then use it like this,
  23476. List directories in top level of your dropbox
  23477. rclone lsd remote:
  23478. List all the files in your dropbox
  23479. rclone ls remote:
  23480. To copy a local directory to a dropbox directory called backup
  23481. rclone copy /home/source remote:backup
  23482. ### Dropbox for business
  23483. Rclone supports Dropbox for business and Team Folders.
  23484. When using Dropbox for business `remote:` and `remote:path/to/file`
  23485. will refer to your personal folder.
  23486. If you wish to see Team Folders you must use a leading `/` in the
  23487. path, so `rclone lsd remote:/` will refer to the root and show you all
  23488. Team Folders and your User Folder.
  23489. You can then use team folders like this `remote:/TeamFolder` and
  23490. `remote:/TeamFolder/path/to/file`.
  23491. A leading `/` for a Dropbox personal account will do nothing, but it
  23492. will take an extra HTTP transaction so it should be avoided.
  23493. ### Modification times and hashes
  23494. Dropbox supports modified times, but the only way to set a
  23495. modification time is to re-upload the file.
  23496. This means that if you uploaded your data with an older version of
  23497. rclone which didn't support the v2 API and modified times, rclone will
  23498. decide to upload all your old data to fix the modification times. If
  23499. you don't want this to happen use `--size-only` or `--checksum` flag
  23500. to stop it.
  23501. Dropbox supports [its own hash
  23502. type](https://www.dropbox.com/developers/reference/content-hash) which
  23503. is checked for all transfers.
  23504. ### Restricted filename characters
  23505. | Character | Value | Replacement |
  23506. | --------- |:-----:|:-----------:|
  23507. | NUL | 0x00 | ␀ |
  23508. | / | 0x2F | / |
  23509. | DEL | 0x7F | ␡ |
  23510. | \ | 0x5C | \ |
  23511. File names can also not end with the following characters.
  23512. These only get replaced if they are the last character in the name:
  23513. | Character | Value | Replacement |
  23514. | --------- |:-----:|:-----------:|
  23515. | SP | 0x20 | ␠ |
  23516. Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
  23517. as they can't be used in JSON strings.
  23518. ### Batch mode uploads {#batch-mode}
  23519. Using batch mode uploads is very important for performance when using
  23520. the Dropbox API. See [the dropbox performance guide](https://developers.dropbox.com/dbx-performance-guide)
  23521. for more info.
  23522. There are 3 modes rclone can use for uploads.
  23523. #### --dropbox-batch-mode off
  23524. In this mode rclone will not use upload batching. This was the default
  23525. before rclone v1.55. It has the disadvantage that it is very likely to
  23526. encounter `too_many_requests` errors like this
  23527. NOTICE: too_many_requests/.: Too many requests or write operations. Trying again in 15 seconds.
  23528. When rclone receives these it has to wait for 15s or sometimes 300s
  23529. before continuing which really slows down transfers.
  23530. This will happen especially if `--transfers` is large, so this mode
  23531. isn't recommended except for compatibility or investigating problems.
  23532. #### --dropbox-batch-mode sync
  23533. In this mode rclone will batch up uploads to the size specified by
  23534. `--dropbox-batch-size` and commit them together.
  23535. Using this mode means you can use a much higher `--transfers`
  23536. parameter (32 or 64 works fine) without receiving `too_many_requests`
  23537. errors.
  23538. This mode ensures full data integrity.
  23539. Note that there may be a pause when quitting rclone while rclone
  23540. finishes up the last batch using this mode.
  23541. #### --dropbox-batch-mode async
  23542. In this mode rclone will batch up uploads to the size specified by
  23543. `--dropbox-batch-size` and commit them together.
  23544. However it will not wait for the status of the batch to be returned to
  23545. the caller. This means rclone can use a much bigger batch size (much
  23546. bigger than `--transfers`), at the cost of not being able to check the
  23547. status of the upload.
  23548. This provides the maximum possible upload speed especially with lots
  23549. of small files, however rclone can't check the file got uploaded
  23550. properly using this mode.
  23551. If you are using this mode then using "rclone check" after the
  23552. transfer completes is recommended. Or you could do an initial transfer
  23553. with `--dropbox-batch-mode async` then do a final transfer with
  23554. `--dropbox-batch-mode sync` (the default).
  23555. Note that there may be a pause when quitting rclone while rclone
  23556. finishes up the last batch using this mode.
  23557. ### Standard options
  23558. Here are the Standard options specific to dropbox (Dropbox).
  23559. #### --dropbox-client-id
  23560. OAuth Client Id.
  23561. Leave blank normally.
  23562. Properties:
  23563. - Config: client_id
  23564. - Env Var: RCLONE_DROPBOX_CLIENT_ID
  23565. - Type: string
  23566. - Required: false
  23567. #### --dropbox-client-secret
  23568. OAuth Client Secret.
  23569. Leave blank normally.
  23570. Properties:
  23571. - Config: client_secret
  23572. - Env Var: RCLONE_DROPBOX_CLIENT_SECRET
  23573. - Type: string
  23574. - Required: false
  23575. ### Advanced options
  23576. Here are the Advanced options specific to dropbox (Dropbox).
  23577. #### --dropbox-token
  23578. OAuth Access Token as a JSON blob.
  23579. Properties:
  23580. - Config: token
  23581. - Env Var: RCLONE_DROPBOX_TOKEN
  23582. - Type: string
  23583. - Required: false
  23584. #### --dropbox-auth-url
  23585. Auth server URL.
  23586. Leave blank to use the provider defaults.
  23587. Properties:
  23588. - Config: auth_url
  23589. - Env Var: RCLONE_DROPBOX_AUTH_URL
  23590. - Type: string
  23591. - Required: false
  23592. #### --dropbox-token-url
  23593. Token server url.
  23594. Leave blank to use the provider defaults.
  23595. Properties:
  23596. - Config: token_url
  23597. - Env Var: RCLONE_DROPBOX_TOKEN_URL
  23598. - Type: string
  23599. - Required: false
  23600. #### --dropbox-chunk-size
  23601. Upload chunk size (< 150Mi).
  23602. Any files larger than this will be uploaded in chunks of this size.
  23603. Note that chunks are buffered in memory (one at a time) so rclone can
  23604. deal with retries. Setting this larger will increase the speed
  23605. slightly (at most 10% for 128 MiB in tests) at the cost of using more
  23606. memory. It can be set smaller if you are tight on memory.
  23607. Properties:
  23608. - Config: chunk_size
  23609. - Env Var: RCLONE_DROPBOX_CHUNK_SIZE
  23610. - Type: SizeSuffix
  23611. - Default: 48Mi
  23612. #### --dropbox-impersonate
  23613. Impersonate this user when using a business account.
  23614. Note that if you want to use impersonate, you should make sure this
  23615. flag is set when running "rclone config" as this will cause rclone to
  23616. request the "members.read" scope which it won't normally. This is
  23617. needed to lookup a members email address into the internal ID that
  23618. dropbox uses in the API.
  23619. Using the "members.read" scope will require a Dropbox Team Admin
  23620. to approve during the OAuth flow.
  23621. You will have to use your own App (setting your own client_id and
  23622. client_secret) to use this option as currently rclone's default set of
  23623. permissions doesn't include "members.read". This can be added once
  23624. v1.55 or later is in use everywhere.
  23625. Properties:
  23626. - Config: impersonate
  23627. - Env Var: RCLONE_DROPBOX_IMPERSONATE
  23628. - Type: string
  23629. - Required: false
  23630. #### --dropbox-shared-files
  23631. Instructs rclone to work on individual shared files.
  23632. In this mode rclone's features are extremely limited - only list (ls, lsl, etc.)
  23633. operations and read operations (e.g. downloading) are supported in this mode.
  23634. All other operations will be disabled.
  23635. Properties:
  23636. - Config: shared_files
  23637. - Env Var: RCLONE_DROPBOX_SHARED_FILES
  23638. - Type: bool
  23639. - Default: false
  23640. #### --dropbox-shared-folders
  23641. Instructs rclone to work on shared folders.
  23642. When this flag is used with no path only the List operation is supported and
  23643. all available shared folders will be listed. If you specify a path the first part
  23644. will be interpreted as the name of shared folder. Rclone will then try to mount this
  23645. shared to the root namespace. On success shared folder rclone proceeds normally.
  23646. The shared folder is now pretty much a normal folder and all normal operations
  23647. are supported.
  23648. Note that we don't unmount the shared folder afterwards so the
  23649. --dropbox-shared-folders can be omitted after the first use of a particular
  23650. shared folder.
  23651. Properties:
  23652. - Config: shared_folders
  23653. - Env Var: RCLONE_DROPBOX_SHARED_FOLDERS
  23654. - Type: bool
  23655. - Default: false
  23656. #### --dropbox-pacer-min-sleep
  23657. Minimum time to sleep between API calls.
  23658. Properties:
  23659. - Config: pacer_min_sleep
  23660. - Env Var: RCLONE_DROPBOX_PACER_MIN_SLEEP
  23661. - Type: Duration
  23662. - Default: 10ms
  23663. #### --dropbox-encoding
  23664. The encoding for the backend.
  23665. See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
  23666. Properties:
  23667. - Config: encoding
  23668. - Env Var: RCLONE_DROPBOX_ENCODING
  23669. - Type: Encoding
  23670. - Default: Slash,BackSlash,Del,RightSpace,InvalidUtf8,Dot
  23671. #### --dropbox-batch-mode
  23672. Upload file batching sync|async|off.
  23673. This sets the batch mode used by rclone.
  23674. For full info see [the main docs](https://rclone.org/dropbox/#batch-mode)
  23675. This has 3 possible values
  23676. - off - no batching
  23677. - sync - batch uploads and check completion (default)
  23678. - async - batch upload and don't check completion
  23679. Rclone will close any outstanding batches when it exits which may make
  23680. a delay on quit.
  23681. Properties:
  23682. - Config: batch_mode
  23683. - Env Var: RCLONE_DROPBOX_BATCH_MODE
  23684. - Type: string
  23685. - Default: "sync"
  23686. #### --dropbox-batch-size
  23687. Max number of files in upload batch.
  23688. This sets the batch size of files to upload. It has to be less than 1000.
  23689. By default this is 0 which means rclone which calculate the batch size
  23690. depending on the setting of batch_mode.
  23691. - batch_mode: async - default batch_size is 100
  23692. - batch_mode: sync - default batch_size is the same as --transfers
  23693. - batch_mode: off - not in use
  23694. Rclone will close any outstanding batches when it exits which may make
  23695. a delay on quit.
  23696. Setting this is a great idea if you are uploading lots of small files
  23697. as it will make them a lot quicker. You can use --transfers 32 to
  23698. maximise throughput.
  23699. Properties:
  23700. - Config: batch_size
  23701. - Env Var: RCLONE_DROPBOX_BATCH_SIZE
  23702. - Type: int
  23703. - Default: 0
  23704. #### --dropbox-batch-timeout
  23705. Max time to allow an idle upload batch before uploading.
  23706. If an upload batch is idle for more than this long then it will be
  23707. uploaded.
  23708. The default for this is 0 which means rclone will choose a sensible
  23709. default based on the batch_mode in use.
  23710. - batch_mode: async - default batch_timeout is 10s
  23711. - batch_mode: sync - default batch_timeout is 500ms
  23712. - batch_mode: off - not in use
  23713. Properties:
  23714. - Config: batch_timeout
  23715. - Env Var: RCLONE_DROPBOX_BATCH_TIMEOUT
  23716. - Type: Duration
  23717. - Default: 0s
  23718. #### --dropbox-batch-commit-timeout
  23719. Max time to wait for a batch to finish committing
  23720. Properties:
  23721. - Config: batch_commit_timeout
  23722. - Env Var: RCLONE_DROPBOX_BATCH_COMMIT_TIMEOUT
  23723. - Type: Duration
  23724. - Default: 10m0s
  23725. #### --dropbox-description
  23726. Description of the remote
  23727. Properties:
  23728. - Config: description
  23729. - Env Var: RCLONE_DROPBOX_DESCRIPTION
  23730. - Type: string
  23731. - Required: false
  23732. ## Limitations
  23733. Note that Dropbox is case insensitive so you can't have a file called
  23734. "Hello.doc" and one called "hello.doc".
  23735. There are some file names such as `thumbs.db` which Dropbox can't
  23736. store. There is a full list of them in the ["Ignored Files" section
  23737. of this document](https://www.dropbox.com/en/help/145). Rclone will
  23738. issue an error message `File name disallowed - not uploading` if it
  23739. attempts to upload one of those file names, but the sync won't fail.
  23740. Some errors may occur if you try to sync copyright-protected files
  23741. because Dropbox has its own [copyright detector](https://techcrunch.com/2014/03/30/how-dropbox-knows-when-youre-sharing-copyrighted-stuff-without-actually-looking-at-your-stuff/) that
  23742. prevents this sort of file being downloaded. This will return the error `ERROR :
  23743. /path/to/your/file: Failed to copy: failed to open source object:
  23744. path/restricted_content/.`
  23745. If you have more than 10,000 files in a directory then `rclone purge
  23746. dropbox:dir` will return the error `Failed to purge: There are too
  23747. many files involved in this operation`. As a work-around do an
  23748. `rclone delete dropbox:dir` followed by an `rclone rmdir dropbox:dir`.
  23749. When using `rclone link` you'll need to set `--expire` if using a
  23750. non-personal account otherwise the visibility may not be correct.
  23751. (Note that `--expire` isn't supported on personal accounts). See the
  23752. [forum discussion](https://forum.rclone.org/t/rclone-link-dropbox-permissions/23211) and the
  23753. [dropbox SDK issue](https://github.com/dropbox/dropbox-sdk-go-unofficial/issues/75).
  23754. ## Get your own Dropbox App ID
  23755. When you use rclone with Dropbox in its default configuration you are using rclone's App ID. This is shared between all the rclone users.
  23756. Here is how to create your own Dropbox App ID for rclone:
  23757. 1. Log into the [Dropbox App console](https://www.dropbox.com/developers/apps/create) with your Dropbox Account (It need not
  23758. to be the same account as the Dropbox you want to access)
  23759. 2. Choose an API => Usually this should be `Dropbox API`
  23760. 3. Choose the type of access you want to use => `Full Dropbox` or `App Folder`. If you want to use Team Folders, `Full Dropbox` is required ([see here](https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-create-team-folder-inside-my-app-s-folder/m-p/601005/highlight/true#M27911)).
  23761. 4. Name your App. The app name is global, so you can't use `rclone` for example
  23762. 5. Click the button `Create App`
  23763. 6. Switch to the `Permissions` tab. Enable at least the following permissions: `account_info.read`, `files.metadata.write`, `files.content.write`, `files.content.read`, `sharing.write`. The `files.metadata.read` and `sharing.read` checkboxes will be marked too. Click `Submit`
  23764. 7. Switch to the `Settings` tab. Fill `OAuth2 - Redirect URIs` as `http://localhost:53682/` and click on `Add`
  23765. 8. Find the `App key` and `App secret` values on the `Settings` tab. Use these values in rclone config to add a new remote or edit an existing remote. The `App key` setting corresponds to `client_id` in rclone config, the `App secret` corresponds to `client_secret`
  23766. # Enterprise File Fabric
  23767. This backend supports [Storage Made Easy's Enterprise File
  23768. Fabric™](https://storagemadeeasy.com/about/) which provides a software
  23769. solution to integrate and unify File and Object Storage accessible
  23770. through a global file system.
  23771. ## Configuration
  23772. The initial setup for the Enterprise File Fabric backend involves
  23773. getting a token from the Enterprise File Fabric which you need to
  23774. do in your browser. `rclone config` walks you through it.
  23775. Here is an example of how to make a remote called `remote`. First run:
  23776. rclone config
  23777. This will guide you through an interactive setup process:
  23778. No remotes found, make a new one? n) New remote s) Set configuration
  23779. password q) Quit config n/s/q> n name> remote Type of storage to
  23780. configure. Enter a string value. Press Enter for the default ("").
  23781. Choose a number from below, or type in your own value [snip] XX /
  23782. Enterprise File Fabric  "filefabric" [snip] Storage> filefabric ** See
  23783. help for filefabric backend at: https://rclone.org/filefabric/ **
  23784. URL of the Enterprise File Fabric to connect to Enter a string value.
  23785. Press Enter for the default (""). Choose a number from below, or type in
  23786. your own value 1 / Storage Made Easy US  "https://storagemadeeasy.com" 2
  23787. / Storage Made Easy EU  "https://eu.storagemadeeasy.com" 3 / Connect to
  23788. your Enterprise File Fabric  "https://yourfabric.smestorage.com" url>
  23789. https://yourfabric.smestorage.com/ ID of the root folder Leave blank
  23790. normally.
  23791. Fill in to make rclone start with directory of a given ID.
  23792. Enter a string value. Press Enter for the default (""). root_folder_id>
  23793. Permanent Authentication Token
  23794. A Permanent Authentication Token can be created in the Enterprise File
  23795. Fabric, on the users Dashboard under Security, there is an entry you'll
  23796. see called "My Authentication Tokens". Click the Manage button to create
  23797. one.
  23798. These tokens are normally valid for several years.
  23799. For more info see:
  23800. https://docs.storagemadeeasy.com/organisationcloud/api-tokens
  23801. Enter a string value. Press Enter for the default (""). permanent_token>
  23802. xxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxx Edit advanced config? (y/n) y) Yes n)
  23803. No (default) y/n> n Remote config -------------------- [remote] type =
  23804. filefabric url = https://yourfabric.smestorage.com/ permanent_token =
  23805. xxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxx -------------------- y) Yes this is OK
  23806. (default) e) Edit this remote d) Delete this remote y/e/d> y
  23807. Once configured you can then use `rclone` like this,
  23808. List directories in top level of your Enterprise File Fabric
  23809. rclone lsd remote:
  23810. List all the files in your Enterprise File Fabric
  23811. rclone ls remote:
  23812. To copy a local directory to an Enterprise File Fabric directory called backup
  23813. rclone copy /home/source remote:backup
  23814. ### Modification times and hashes
  23815. The Enterprise File Fabric allows modification times to be set on
  23816. files accurate to 1 second. These will be used to detect whether
  23817. objects need syncing or not.
  23818. The Enterprise File Fabric does not support any data hashes at this time.
  23819. ### Restricted filename characters
  23820. The [default restricted characters set](https://rclone.org/overview/#restricted-characters)
  23821. will be replaced.
  23822. Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
  23823. as they can't be used in JSON strings.
  23824. ### Empty files
  23825. Empty files aren't supported by the Enterprise File Fabric. Rclone will therefore
  23826. upload an empty file as a single space with a mime type of
  23827. `application/vnd.rclone.empty.file` and files with that mime type are
  23828. treated as empty.
  23829. ### Root folder ID ###
  23830. You can set the `root_folder_id` for rclone. This is the directory
  23831. (identified by its `Folder ID`) that rclone considers to be the root
  23832. of your Enterprise File Fabric.
  23833. Normally you will leave this blank and rclone will determine the
  23834. correct root to use itself.
  23835. However you can set this to restrict rclone to a specific folder
  23836. hierarchy.
  23837. In order to do this you will have to find the `Folder ID` of the
  23838. directory you wish rclone to display. These aren't displayed in the
  23839. web interface, but you can use `rclone lsf` to find them, for example
  23840. $ rclone lsf --dirs-only -Fip --csv filefabric: 120673758,Burnt PDFs/
  23841. 120673759,My Quick Uploads/ 120673755,My Syncs/ 120673756,My backups/
  23842. 120673757,My contacts/ 120673761,S3 Storage/
  23843. The ID for "S3 Storage" would be `120673761`.
  23844. ### Standard options
  23845. Here are the Standard options specific to filefabric (Enterprise File Fabric).
  23846. #### --filefabric-url
  23847. URL of the Enterprise File Fabric to connect to.
  23848. Properties:
  23849. - Config: url
  23850. - Env Var: RCLONE_FILEFABRIC_URL
  23851. - Type: string
  23852. - Required: true
  23853. - Examples:
  23854. - "https://storagemadeeasy.com"
  23855. - Storage Made Easy US
  23856. - "https://eu.storagemadeeasy.com"
  23857. - Storage Made Easy EU
  23858. - "https://yourfabric.smestorage.com"
  23859. - Connect to your Enterprise File Fabric
  23860. #### --filefabric-root-folder-id
  23861. ID of the root folder.
  23862. Leave blank normally.
  23863. Fill in to make rclone start with directory of a given ID.
  23864. Properties:
  23865. - Config: root_folder_id
  23866. - Env Var: RCLONE_FILEFABRIC_ROOT_FOLDER_ID
  23867. - Type: string
  23868. - Required: false
  23869. #### --filefabric-permanent-token
  23870. Permanent Authentication Token.
  23871. A Permanent Authentication Token can be created in the Enterprise File
  23872. Fabric, on the users Dashboard under Security, there is an entry
  23873. you'll see called "My Authentication Tokens". Click the Manage button
  23874. to create one.
  23875. These tokens are normally valid for several years.
  23876. For more info see: https://docs.storagemadeeasy.com/organisationcloud/api-tokens
  23877. Properties:
  23878. - Config: permanent_token
  23879. - Env Var: RCLONE_FILEFABRIC_PERMANENT_TOKEN
  23880. - Type: string
  23881. - Required: false
  23882. ### Advanced options
  23883. Here are the Advanced options specific to filefabric (Enterprise File Fabric).
  23884. #### --filefabric-token
  23885. Session Token.
  23886. This is a session token which rclone caches in the config file. It is
  23887. usually valid for 1 hour.
  23888. Don't set this value - rclone will set it automatically.
  23889. Properties:
  23890. - Config: token
  23891. - Env Var: RCLONE_FILEFABRIC_TOKEN
  23892. - Type: string
  23893. - Required: false
  23894. #### --filefabric-token-expiry
  23895. Token expiry time.
  23896. Don't set this value - rclone will set it automatically.
  23897. Properties:
  23898. - Config: token_expiry
  23899. - Env Var: RCLONE_FILEFABRIC_TOKEN_EXPIRY
  23900. - Type: string
  23901. - Required: false
  23902. #### --filefabric-version
  23903. Version read from the file fabric.
  23904. Don't set this value - rclone will set it automatically.
  23905. Properties:
  23906. - Config: version
  23907. - Env Var: RCLONE_FILEFABRIC_VERSION
  23908. - Type: string
  23909. - Required: false
  23910. #### --filefabric-encoding
  23911. The encoding for the backend.
  23912. See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
  23913. Properties:
  23914. - Config: encoding
  23915. - Env Var: RCLONE_FILEFABRIC_ENCODING
  23916. - Type: Encoding
  23917. - Default: Slash,Del,Ctl,InvalidUtf8,Dot
  23918. #### --filefabric-description
  23919. Description of the remote
  23920. Properties:
  23921. - Config: description
  23922. - Env Var: RCLONE_FILEFABRIC_DESCRIPTION
  23923. - Type: string
  23924. - Required: false
  23925. # FTP
  23926. FTP is the File Transfer Protocol. Rclone FTP support is provided using the
  23927. [github.com/jlaffaye/ftp](https://godoc.org/github.com/jlaffaye/ftp)
  23928. package.
  23929. [Limitations of Rclone's FTP backend](#limitations)
  23930. Paths are specified as `remote:path`. If the path does not begin with
  23931. a `/` it is relative to the home directory of the user. An empty path
  23932. `remote:` refers to the user's home directory.
  23933. ## Configuration
  23934. To create an FTP configuration named `remote`, run
  23935. rclone config
  23936. Rclone config guides you through an interactive setup process. A minimal
  23937. rclone FTP remote definition only requires host, username and password.
  23938. For an anonymous FTP server, see [below](#anonymous-ftp).
  23939. No remotes found, make a new one? n) New remote r) Rename remote c) Copy
  23940. remote s) Set configuration password q) Quit config n/r/c/s/q> n name>
  23941. remote Type of storage to configure. Enter a string value. Press Enter
  23942. for the default (""). Choose a number from below, or type in your own
  23943. value [snip] XX / FTP  "ftp" [snip] Storage> ftp ** See help for ftp
  23944. backend at: https://rclone.org/ftp/ **
  23945. FTP host to connect to Enter a string value. Press Enter for the default
  23946. (""). Choose a number from below, or type in your own value 1 / Connect
  23947. to ftp.example.com  "ftp.example.com" host> ftp.example.com FTP username
  23948. Enter a string value. Press Enter for the default ("$USER"). user> FTP
  23949. port number Enter a signed integer. Press Enter for the default (21).
  23950. port> FTP password y) Yes type in my own password g) Generate random
  23951. password y/g> y Enter the password: password: Confirm the password:
  23952. password: Use FTP over TLS (Implicit) Enter a boolean value (true or
  23953. false). Press Enter for the default ("false"). tls> Use FTP over TLS
  23954. (Explicit) Enter a boolean value (true or false). Press Enter for the
  23955. default ("false"). explicit_tls> Remote config --------------------
  23956. [remote] type = ftp host = ftp.example.com pass = *** ENCRYPTED ***
  23957. -------------------- y) Yes this is OK e) Edit this remote d) Delete
  23958. this remote y/e/d> y
  23959. To see all directories in the home directory of `remote`
  23960. rclone lsd remote:
  23961. Make a new directory
  23962. rclone mkdir remote:path/to/directory
  23963. List the contents of a directory
  23964. rclone ls remote:path/to/directory
  23965. Sync `/home/local/directory` to the remote directory, deleting any
  23966. excess files in the directory.
  23967. rclone sync --interactive /home/local/directory remote:directory
  23968. ### Anonymous FTP
  23969. When connecting to a FTP server that allows anonymous login, you can use the
  23970. special "anonymous" username. Traditionally, this user account accepts any
  23971. string as a password, although it is common to use either the password
  23972. "anonymous" or "guest". Some servers require the use of a valid e-mail
  23973. address as password.
  23974. Using [on-the-fly](#backend-path-to-dir) or
  23975. [connection string](https://rclone.org/docs/#connection-strings) remotes makes it easy to access
  23976. such servers, without requiring any configuration in advance. The following
  23977. are examples of that:
  23978. rclone lsf :ftp: --ftp-host=speedtest.tele2.net --ftp-user=anonymous --ftp-pass=$(rclone obscure dummy)
  23979. rclone lsf :ftp,host=speedtest.tele2.net,user=anonymous,pass=$(rclone obscure dummy):
  23980. The above examples work in Linux shells and in PowerShell, but not Windows
  23981. Command Prompt. They execute the [rclone obscure](https://rclone.org/commands/rclone_obscure/)
  23982. command to create a password string in the format required by the
  23983. [pass](#ftp-pass) option. The following examples are exactly the same, except use
  23984. an already obscured string representation of the same password "dummy", and
  23985. therefore works even in Windows Command Prompt:
  23986. rclone lsf :ftp: --ftp-host=speedtest.tele2.net --ftp-user=anonymous --ftp-pass=IXs2wc8OJOz7SYLBk47Ji1rHTmxM
  23987. rclone lsf :ftp,host=speedtest.tele2.net,user=anonymous,pass=IXs2wc8OJOz7SYLBk47Ji1rHTmxM:
  23988. ### Implicit TLS
  23989. Rlone FTP supports implicit FTP over TLS servers (FTPS). This has to
  23990. be enabled in the FTP backend config for the remote, or with
  23991. [`--ftp-tls`](#ftp-tls). The default FTPS port is `990`, not `21` and
  23992. can be set with [`--ftp-port`](#ftp-port).
  23993. ### Restricted filename characters
  23994. In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
  23995. the following characters are also replaced:
  23996. File names cannot end with the following characters. Replacement is
  23997. limited to the last character in a file name:
  23998. | Character | Value | Replacement |
  23999. | --------- |:-----:|:-----------:|
  24000. | SP | 0x20 | ␠ |
  24001. Not all FTP servers can have all characters in file names, for example:
  24002. | FTP Server| Forbidden characters |
  24003. | --------- |:--------------------:|
  24004. | proftpd | `*` |
  24005. | pureftpd | `\ [ ]` |
  24006. This backend's interactive configuration wizard provides a selection of
  24007. sensible encoding settings for major FTP servers: ProFTPd, PureFTPd, VsFTPd.
  24008. Just hit a selection number when prompted.
  24009. ### Standard options
  24010. Here are the Standard options specific to ftp (FTP).
  24011. #### --ftp-host
  24012. FTP host to connect to.
  24013. E.g. "ftp.example.com".
  24014. Properties:
  24015. - Config: host
  24016. - Env Var: RCLONE_FTP_HOST
  24017. - Type: string
  24018. - Required: true
  24019. #### --ftp-user
  24020. FTP username.
  24021. Properties:
  24022. - Config: user
  24023. - Env Var: RCLONE_FTP_USER
  24024. - Type: string
  24025. - Default: "$USER"
  24026. #### --ftp-port
  24027. FTP port number.
  24028. Properties:
  24029. - Config: port
  24030. - Env Var: RCLONE_FTP_PORT
  24031. - Type: int
  24032. - Default: 21
  24033. #### --ftp-pass
  24034. FTP password.
  24035. **NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
  24036. Properties:
  24037. - Config: pass
  24038. - Env Var: RCLONE_FTP_PASS
  24039. - Type: string
  24040. - Required: false
  24041. #### --ftp-tls
  24042. Use Implicit FTPS (FTP over TLS).
  24043. When using implicit FTP over TLS the client connects using TLS
  24044. right from the start which breaks compatibility with
  24045. non-TLS-aware servers. This is usually served over port 990 rather
  24046. than port 21. Cannot be used in combination with explicit FTPS.
  24047. Properties:
  24048. - Config: tls
  24049. - Env Var: RCLONE_FTP_TLS
  24050. - Type: bool
  24051. - Default: false
  24052. #### --ftp-explicit-tls
  24053. Use Explicit FTPS (FTP over TLS).
  24054. When using explicit FTP over TLS the client explicitly requests
  24055. security from the server in order to upgrade a plain text connection
  24056. to an encrypted one. Cannot be used in combination with implicit FTPS.
  24057. Properties:
  24058. - Config: explicit_tls
  24059. - Env Var: RCLONE_FTP_EXPLICIT_TLS
  24060. - Type: bool
  24061. - Default: false
  24062. ### Advanced options
  24063. Here are the Advanced options specific to ftp (FTP).
  24064. #### --ftp-concurrency
  24065. Maximum number of FTP simultaneous connections, 0 for unlimited.
  24066. Note that setting this is very likely to cause deadlocks so it should
  24067. be used with care.
  24068. If you are doing a sync or copy then make sure concurrency is one more
  24069. than the sum of `--transfers` and `--checkers`.
  24070. If you use `--check-first` then it just needs to be one more than the
  24071. maximum of `--checkers` and `--transfers`.
  24072. So for `concurrency 3` you'd use `--checkers 2 --transfers 2
  24073. --check-first` or `--checkers 1 --transfers 1`.
  24074. Properties:
  24075. - Config: concurrency
  24076. - Env Var: RCLONE_FTP_CONCURRENCY
  24077. - Type: int
  24078. - Default: 0
  24079. #### --ftp-no-check-certificate
  24080. Do not verify the TLS certificate of the server.
  24081. Properties:
  24082. - Config: no_check_certificate
  24083. - Env Var: RCLONE_FTP_NO_CHECK_CERTIFICATE
  24084. - Type: bool
  24085. - Default: false
  24086. #### --ftp-disable-epsv
  24087. Disable using EPSV even if server advertises support.
  24088. Properties:
  24089. - Config: disable_epsv
  24090. - Env Var: RCLONE_FTP_DISABLE_EPSV
  24091. - Type: bool
  24092. - Default: false
  24093. #### --ftp-disable-mlsd
  24094. Disable using MLSD even if server advertises support.
  24095. Properties:
  24096. - Config: disable_mlsd
  24097. - Env Var: RCLONE_FTP_DISABLE_MLSD
  24098. - Type: bool
  24099. - Default: false
  24100. #### --ftp-disable-utf8
  24101. Disable using UTF-8 even if server advertises support.
  24102. Properties:
  24103. - Config: disable_utf8
  24104. - Env Var: RCLONE_FTP_DISABLE_UTF8
  24105. - Type: bool
  24106. - Default: false
  24107. #### --ftp-writing-mdtm
  24108. Use MDTM to set modification time (VsFtpd quirk)
  24109. Properties:
  24110. - Config: writing_mdtm
  24111. - Env Var: RCLONE_FTP_WRITING_MDTM
  24112. - Type: bool
  24113. - Default: false
  24114. #### --ftp-force-list-hidden
  24115. Use LIST -a to force listing of hidden files and folders. This will disable the use of MLSD.
  24116. Properties:
  24117. - Config: force_list_hidden
  24118. - Env Var: RCLONE_FTP_FORCE_LIST_HIDDEN
  24119. - Type: bool
  24120. - Default: false
  24121. #### --ftp-idle-timeout
  24122. Max time before closing idle connections.
  24123. If no connections have been returned to the connection pool in the time
  24124. given, rclone will empty the connection pool.
  24125. Set to 0 to keep connections indefinitely.
  24126. Properties:
  24127. - Config: idle_timeout
  24128. - Env Var: RCLONE_FTP_IDLE_TIMEOUT
  24129. - Type: Duration
  24130. - Default: 1m0s
  24131. #### --ftp-close-timeout
  24132. Maximum time to wait for a response to close.
  24133. Properties:
  24134. - Config: close_timeout
  24135. - Env Var: RCLONE_FTP_CLOSE_TIMEOUT
  24136. - Type: Duration
  24137. - Default: 1m0s
  24138. #### --ftp-tls-cache-size
  24139. Size of TLS session cache for all control and data connections.
  24140. TLS cache allows to resume TLS sessions and reuse PSK between connections.
  24141. Increase if default size is not enough resulting in TLS resumption errors.
  24142. Enabled by default. Use 0 to disable.
  24143. Properties:
  24144. - Config: tls_cache_size
  24145. - Env Var: RCLONE_FTP_TLS_CACHE_SIZE
  24146. - Type: int
  24147. - Default: 32
  24148. #### --ftp-disable-tls13
  24149. Disable TLS 1.3 (workaround for FTP servers with buggy TLS)
  24150. Properties:
  24151. - Config: disable_tls13
  24152. - Env Var: RCLONE_FTP_DISABLE_TLS13
  24153. - Type: bool
  24154. - Default: false
  24155. #### --ftp-shut-timeout
  24156. Maximum time to wait for data connection closing status.
  24157. Properties:
  24158. - Config: shut_timeout
  24159. - Env Var: RCLONE_FTP_SHUT_TIMEOUT
  24160. - Type: Duration
  24161. - Default: 1m0s
  24162. #### --ftp-ask-password
  24163. Allow asking for FTP password when needed.
  24164. If this is set and no password is supplied then rclone will ask for a password
  24165. Properties:
  24166. - Config: ask_password
  24167. - Env Var: RCLONE_FTP_ASK_PASSWORD
  24168. - Type: bool
  24169. - Default: false
  24170. #### --ftp-socks-proxy
  24171. Socks 5 proxy host.
  24172. Supports the format user:pass@host:port, user@host:port, host:port.
  24173. Example:
  24174. myUser:myPass@localhost:9005
  24175. Properties:
  24176. - Config: socks_proxy
  24177. - Env Var: RCLONE_FTP_SOCKS_PROXY
  24178. - Type: string
  24179. - Required: false
  24180. #### --ftp-encoding
  24181. The encoding for the backend.
  24182. See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
  24183. Properties:
  24184. - Config: encoding
  24185. - Env Var: RCLONE_FTP_ENCODING
  24186. - Type: Encoding
  24187. - Default: Slash,Del,Ctl,RightSpace,Dot
  24188. - Examples:
  24189. - "Asterisk,Ctl,Dot,Slash"
  24190. - ProFTPd can't handle '*' in file names
  24191. - "BackSlash,Ctl,Del,Dot,RightSpace,Slash,SquareBracket"
  24192. - PureFTPd can't handle '[]' or '*' in file names
  24193. - "Ctl,LeftPeriod,Slash"
  24194. - VsFTPd can't handle file names starting with dot
  24195. #### --ftp-description
  24196. Description of the remote
  24197. Properties:
  24198. - Config: description
  24199. - Env Var: RCLONE_FTP_DESCRIPTION
  24200. - Type: string
  24201. - Required: false
  24202. ## Limitations
  24203. FTP servers acting as rclone remotes must support `passive` mode.
  24204. The mode cannot be configured as `passive` is the only supported one.
  24205. Rclone's FTP implementation is not compatible with `active` mode
  24206. as [the library it uses doesn't support it](https://github.com/jlaffaye/ftp/issues/29).
  24207. This will likely never be supported due to security concerns.
  24208. Rclone's FTP backend does not support any checksums but can compare
  24209. file sizes.
  24210. `rclone about` is not supported by the FTP backend. Backends without
  24211. this capability cannot determine free space for an rclone mount or
  24212. use policy `mfs` (most free space) as a member of an rclone union
  24213. remote.
  24214. See [List of backends that do not support rclone about](https://rclone.org/overview/#optional-features) and [rclone about](https://rclone.org/commands/rclone_about/)
  24215. The implementation of : `--dump headers`,
  24216. `--dump bodies`, `--dump auth` for debugging isn't the same as
  24217. for rclone HTTP based backends - it has less fine grained control.
  24218. `--timeout` isn't supported (but `--contimeout` is).
  24219. `--bind` isn't supported.
  24220. Rclone's FTP backend could support server-side move but does not
  24221. at present.
  24222. The `ftp_proxy` environment variable is not currently supported.
  24223. ### Modification times
  24224. File modification time (timestamps) is supported to 1 second resolution
  24225. for major FTP servers: ProFTPd, PureFTPd, VsFTPd, and FileZilla FTP server.
  24226. The `VsFTPd` server has non-standard implementation of time related protocol
  24227. commands and needs a special configuration setting: `writing_mdtm = true`.
  24228. Support for precise file time with other FTP servers varies depending on what
  24229. protocol extensions they advertise. If all the `MLSD`, `MDTM` and `MFTM`
  24230. extensions are present, rclone will use them together to provide precise time.
  24231. Otherwise the times you see on the FTP server through rclone are those of the
  24232. last file upload.
  24233. You can use the following command to check whether rclone can use precise time
  24234. with your FTP server: `rclone backend features your_ftp_remote:` (the trailing
  24235. colon is important). Look for the number in the line tagged by `Precision`
  24236. designating the remote time precision expressed as nanoseconds. A value of
  24237. `1000000000` means that file time precision of 1 second is available.
  24238. A value of `3153600000000000000` (or another large number) means "unsupported".
  24239. # Google Cloud Storage
  24240. Paths are specified as `remote:bucket` (or `remote:` for the `lsd`
  24241. command.) You may put subdirectories in too, e.g. `remote:bucket/path/to/dir`.
  24242. ## Configuration
  24243. The initial setup for google cloud storage involves getting a token from Google Cloud Storage
  24244. which you need to do in your browser. `rclone config` walks you
  24245. through it.
  24246. Here is an example of how to make a remote called `remote`. First run:
  24247. rclone config
  24248. This will guide you through an interactive setup process:
  24249. n) New remote
  24250. o) Delete remote
  24251. p) Quit config e/n/d/q> n name> remote Type of storage to configure.
  24252. Choose a number from below, or type in your own value [snip] XX /
  24253. Google Cloud Storage (this is not Google Drive)  "google cloud
  24254. storage" [snip] Storage> google cloud storage Google Application
  24255. Client Id - leave blank normally. client_id> Google Application
  24256. Client Secret - leave blank normally. client_secret> Project number
  24257. optional - needed only for list/create/delete buckets - see your
  24258. developer console. project_number> 12345678 Service Account
  24259. Credentials JSON file path - needed only if you want use SA instead
  24260. of interactive login. service_account_file> Access Control List for
  24261. new objects. Choose a number from below, or type in your own value 1
  24262. / Object owner gets OWNER access, and all Authenticated Users get
  24263. READER access.  "authenticatedRead" 2 / Object owner gets OWNER
  24264. access, and project team owners get OWNER access.
  24265.  "bucketOwnerFullControl" 3 / Object owner gets OWNER access, and
  24266. project team owners get READER access.  "bucketOwnerRead" 4 / Object
  24267. owner gets OWNER access [default if left blank].  "private" 5 /
  24268. Object owner gets OWNER access, and project team members get access
  24269. according to their roles.  "projectPrivate" 6 / Object owner gets
  24270. OWNER access, and all Users get READER access.  "publicRead"
  24271. object_acl> 4 Access Control List for new buckets. Choose a number
  24272. from below, or type in your own value 1 / Project team owners get
  24273. OWNER access, and all Authenticated Users get READER access.
  24274.  "authenticatedRead" 2 / Project team owners get OWNER access
  24275. [default if left blank].  "private" 3 / Project team members get
  24276. access according to their roles.  "projectPrivate" 4 / Project team
  24277. owners get OWNER access, and all Users get READER access.
  24278.  "publicRead" 5 / Project team owners get OWNER access, and all
  24279. Users get WRITER access.  "publicReadWrite" bucket_acl> 2 Location
  24280. for the newly created buckets. Choose a number from below, or type
  24281. in your own value 1 / Empty for default location (US).  "" 2 /
  24282. Multi-regional location for Asia.  "asia" 3 / Multi-regional
  24283. location for Europe.  "eu" 4 / Multi-regional location for United
  24284. States.  "us" 5 / Taiwan.  "asia-east1" 6 / Tokyo.
  24285.  "asia-northeast1" 7 / Singapore.  "asia-southeast1" 8 / Sydney.
  24286.  "australia-southeast1" 9 / Belgium.  "europe-west1" 10 / London.
  24287.  "europe-west2" 11 / Iowa.  "us-central1" 12 / South Carolina.
  24288.  "us-east1" 13 / Northern Virginia.  "us-east4" 14 / Oregon.
  24289.  "us-west1" location> 12 The storage class to use when storing
  24290. objects in Google Cloud Storage. Choose a number from below, or type
  24291. in your own value 1 / Default  "" 2 / Multi-regional storage class
  24292.  "MULTI_REGIONAL" 3 / Regional storage class  "REGIONAL" 4 /
  24293. Nearline storage class  "NEARLINE" 5 / Coldline storage class
  24294.  "COLDLINE" 6 / Durable reduced availability storage class
  24295.  "DURABLE_REDUCED_AVAILABILITY" storage_class> 5 Remote config Use
  24296. web browser to automatically authenticate rclone with remote?
  24297. - Say Y if the machine running rclone has a web browser you can use
  24298. - Say N if running rclone on a (remote) machine without web browser
  24299. access If not sure try Y. If Y failed, try N.
  24300. y) Yes
  24301. z) No y/n> y If your browser doesn't open automatically go to the
  24302. following link: http://127.0.0.1:53682/auth Log in and authorize
  24303. rclone for access Waiting for code... Got code --------------------
  24304. [remote] type = google cloud storage client_id = client_secret =
  24305. token =
  24306. {"AccessToken":"xxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"x/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxx","Expiry":"2014-07-17T20:49:14.929208288+01:00","Extra":null}
  24307. project_number = 12345678 object_acl = private bucket_acl = private
  24308. --------------------
  24309. a) Yes this is OK
  24310. b) Edit this remote
  24311. c) Delete this remote y/e/d> y
  24312. See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
  24313. machine with no Internet browser available.
  24314. Note that rclone runs a webserver on your local machine to collect the
  24315. token as returned from Google if using web browser to automatically
  24316. authenticate. This only
  24317. runs from the moment it opens your browser to the moment you get back
  24318. the verification code. This is on `http://127.0.0.1:53682/` and this
  24319. it may require you to unblock it temporarily if you are running a host
  24320. firewall, or use manual mode.
  24321. This remote is called `remote` and can now be used like this
  24322. See all the buckets in your project
  24323. rclone lsd remote:
  24324. Make a new bucket
  24325. rclone mkdir remote:bucket
  24326. List the contents of a bucket
  24327. rclone ls remote:bucket
  24328. Sync `/home/local/directory` to the remote bucket, deleting any excess
  24329. files in the bucket.
  24330. rclone sync --interactive /home/local/directory remote:bucket
  24331. ### Service Account support
  24332. You can set up rclone with Google Cloud Storage in an unattended mode,
  24333. i.e. not tied to a specific end-user Google account. This is useful
  24334. when you want to synchronise files onto machines that don't have
  24335. actively logged-in users, for example build machines.
  24336. To get credentials for Google Cloud Platform
  24337. [IAM Service Accounts](https://cloud.google.com/iam/docs/service-accounts),
  24338. please head to the
  24339. [Service Account](https://console.cloud.google.com/permissions/serviceaccounts)
  24340. section of the Google Developer Console. Service Accounts behave just
  24341. like normal `User` permissions in
  24342. [Google Cloud Storage ACLs](https://cloud.google.com/storage/docs/access-control),
  24343. so you can limit their access (e.g. make them read only). After
  24344. creating an account, a JSON file containing the Service Account's
  24345. credentials will be downloaded onto your machines. These credentials
  24346. are what rclone will use for authentication.
  24347. To use a Service Account instead of OAuth2 token flow, enter the path
  24348. to your Service Account credentials at the `service_account_file`
  24349. prompt and rclone won't use the browser based authentication
  24350. flow. If you'd rather stuff the contents of the credentials file into
  24351. the rclone config file, you can set `service_account_credentials` with
  24352. the actual contents of the file instead, or set the equivalent
  24353. environment variable.
  24354. ### Anonymous Access
  24355. For downloads of objects that permit public access you can configure rclone
  24356. to use anonymous access by setting `anonymous` to `true`.
  24357. With unauthorized access you can't write or create files but only read or list
  24358. those buckets and objects that have public read access.
  24359. ### Application Default Credentials
  24360. If no other source of credentials is provided, rclone will fall back
  24361. to
  24362. [Application Default Credentials](https://cloud.google.com/video-intelligence/docs/common/auth#authenticating_with_application_default_credentials)
  24363. this is useful both when you already have configured authentication
  24364. for your developer account, or in production when running on a google
  24365. compute host. Note that if running in docker, you may need to run
  24366. additional commands on your google compute machine -
  24367. [see this page](https://cloud.google.com/container-registry/docs/advanced-authentication#gcloud_as_a_docker_credential_helper).
  24368. Note that in the case application default credentials are used, there
  24369. is no need to explicitly configure a project number.
  24370. ### --fast-list
  24371. This remote supports `--fast-list` which allows you to use fewer
  24372. transactions in exchange for more memory. See the [rclone
  24373. docs](https://rclone.org/docs/#fast-list) for more details.
  24374. ### Custom upload headers
  24375. You can set custom upload headers with the `--header-upload`
  24376. flag. Google Cloud Storage supports the headers as described in the
  24377. [working with metadata documentation](https://cloud.google.com/storage/docs/gsutil/addlhelp/WorkingWithObjectMetadata)
  24378. - Cache-Control
  24379. - Content-Disposition
  24380. - Content-Encoding
  24381. - Content-Language
  24382. - Content-Type
  24383. - X-Goog-Storage-Class
  24384. - X-Goog-Meta-
  24385. Eg `--header-upload "Content-Type text/potato"`
  24386. Note that the last of these is for setting custom metadata in the form
  24387. `--header-upload "x-goog-meta-key: value"`
  24388. ### Modification times
  24389. Google Cloud Storage stores md5sum natively.
  24390. Google's [gsutil](https://cloud.google.com/storage/docs/gsutil) tool stores modification time
  24391. with one-second precision as `goog-reserved-file-mtime` in file metadata.
  24392. To ensure compatibility with gsutil, rclone stores modification time in 2 separate metadata entries.
  24393. `mtime` uses RFC3339 format with one-nanosecond precision.
  24394. `goog-reserved-file-mtime` uses Unix timestamp format with one-second precision.
  24395. To get modification time from object metadata, rclone reads the metadata in the following order: `mtime`, `goog-reserved-file-mtime`, object updated time.
  24396. Note that rclone's default modify window is 1ns.
  24397. Files uploaded by gsutil only contain timestamps with one-second precision.
  24398. If you use rclone to sync files previously uploaded by gsutil,
  24399. rclone will attempt to update modification time for all these files.
  24400. To avoid these possibly unnecessary updates, use `--modify-window 1s`.
  24401. ### Restricted filename characters
  24402. | Character | Value | Replacement |
  24403. | --------- |:-----:|:-----------:|
  24404. | NUL | 0x00 | ␀ |
  24405. | LF | 0x0A | ␊ |
  24406. | CR | 0x0D | ␍ |
  24407. | / | 0x2F | / |
  24408. Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
  24409. as they can't be used in JSON strings.
  24410. ### Standard options
  24411. Here are the Standard options specific to google cloud storage (Google Cloud Storage (this is not Google Drive)).
  24412. #### --gcs-client-id
  24413. OAuth Client Id.
  24414. Leave blank normally.
  24415. Properties:
  24416. - Config: client_id
  24417. - Env Var: RCLONE_GCS_CLIENT_ID
  24418. - Type: string
  24419. - Required: false
  24420. #### --gcs-client-secret
  24421. OAuth Client Secret.
  24422. Leave blank normally.
  24423. Properties:
  24424. - Config: client_secret
  24425. - Env Var: RCLONE_GCS_CLIENT_SECRET
  24426. - Type: string
  24427. - Required: false
  24428. #### --gcs-project-number
  24429. Project number.
  24430. Optional - needed only for list/create/delete buckets - see your developer console.
  24431. Properties:
  24432. - Config: project_number
  24433. - Env Var: RCLONE_GCS_PROJECT_NUMBER
  24434. - Type: string
  24435. - Required: false
  24436. #### --gcs-user-project
  24437. User project.
  24438. Optional - needed only for requester pays.
  24439. Properties:
  24440. - Config: user_project
  24441. - Env Var: RCLONE_GCS_USER_PROJECT
  24442. - Type: string
  24443. - Required: false
  24444. #### --gcs-service-account-file
  24445. Service Account Credentials JSON file path.
  24446. Leave blank normally.
  24447. Needed only if you want use SA instead of interactive login.
  24448. Leading `~` will be expanded in the file name as will environment variables such as `${RCLONE_CONFIG_DIR}`.
  24449. Properties:
  24450. - Config: service_account_file
  24451. - Env Var: RCLONE_GCS_SERVICE_ACCOUNT_FILE
  24452. - Type: string
  24453. - Required: false
  24454. #### --gcs-service-account-credentials
  24455. Service Account Credentials JSON blob.
  24456. Leave blank normally.
  24457. Needed only if you want use SA instead of interactive login.
  24458. Properties:
  24459. - Config: service_account_credentials
  24460. - Env Var: RCLONE_GCS_SERVICE_ACCOUNT_CREDENTIALS
  24461. - Type: string
  24462. - Required: false
  24463. #### --gcs-anonymous
  24464. Access public buckets and objects without credentials.
  24465. Set to 'true' if you just want to download files and don't configure credentials.
  24466. Properties:
  24467. - Config: anonymous
  24468. - Env Var: RCLONE_GCS_ANONYMOUS
  24469. - Type: bool
  24470. - Default: false
  24471. #### --gcs-object-acl
  24472. Access Control List for new objects.
  24473. Properties:
  24474. - Config: object_acl
  24475. - Env Var: RCLONE_GCS_OBJECT_ACL
  24476. - Type: string
  24477. - Required: false
  24478. - Examples:
  24479. - "authenticatedRead"
  24480. - Object owner gets OWNER access.
  24481. - All Authenticated Users get READER access.
  24482. - "bucketOwnerFullControl"
  24483. - Object owner gets OWNER access.
  24484. - Project team owners get OWNER access.
  24485. - "bucketOwnerRead"
  24486. - Object owner gets OWNER access.
  24487. - Project team owners get READER access.
  24488. - "private"
  24489. - Object owner gets OWNER access.
  24490. - Default if left blank.
  24491. - "projectPrivate"
  24492. - Object owner gets OWNER access.
  24493. - Project team members get access according to their roles.
  24494. - "publicRead"
  24495. - Object owner gets OWNER access.
  24496. - All Users get READER access.
  24497. #### --gcs-bucket-acl
  24498. Access Control List for new buckets.
  24499. Properties:
  24500. - Config: bucket_acl
  24501. - Env Var: RCLONE_GCS_BUCKET_ACL
  24502. - Type: string
  24503. - Required: false
  24504. - Examples:
  24505. - "authenticatedRead"
  24506. - Project team owners get OWNER access.
  24507. - All Authenticated Users get READER access.
  24508. - "private"
  24509. - Project team owners get OWNER access.
  24510. - Default if left blank.
  24511. - "projectPrivate"
  24512. - Project team members get access according to their roles.
  24513. - "publicRead"
  24514. - Project team owners get OWNER access.
  24515. - All Users get READER access.
  24516. - "publicReadWrite"
  24517. - Project team owners get OWNER access.
  24518. - All Users get WRITER access.
  24519. #### --gcs-bucket-policy-only
  24520. Access checks should use bucket-level IAM policies.
  24521. If you want to upload objects to a bucket with Bucket Policy Only set
  24522. then you will need to set this.
  24523. When it is set, rclone:
  24524. - ignores ACLs set on buckets
  24525. - ignores ACLs set on objects
  24526. - creates buckets with Bucket Policy Only set
  24527. Docs: https://cloud.google.com/storage/docs/bucket-policy-only
  24528. Properties:
  24529. - Config: bucket_policy_only
  24530. - Env Var: RCLONE_GCS_BUCKET_POLICY_ONLY
  24531. - Type: bool
  24532. - Default: false
  24533. #### --gcs-location
  24534. Location for the newly created buckets.
  24535. Properties:
  24536. - Config: location
  24537. - Env Var: RCLONE_GCS_LOCATION
  24538. - Type: string
  24539. - Required: false
  24540. - Examples:
  24541. - ""
  24542. - Empty for default location (US)
  24543. - "asia"
  24544. - Multi-regional location for Asia
  24545. - "eu"
  24546. - Multi-regional location for Europe
  24547. - "us"
  24548. - Multi-regional location for United States
  24549. - "asia-east1"
  24550. - Taiwan
  24551. - "asia-east2"
  24552. - Hong Kong
  24553. - "asia-northeast1"
  24554. - Tokyo
  24555. - "asia-northeast2"
  24556. - Osaka
  24557. - "asia-northeast3"
  24558. - Seoul
  24559. - "asia-south1"
  24560. - Mumbai
  24561. - "asia-south2"
  24562. - Delhi
  24563. - "asia-southeast1"
  24564. - Singapore
  24565. - "asia-southeast2"
  24566. - Jakarta
  24567. - "australia-southeast1"
  24568. - Sydney
  24569. - "australia-southeast2"
  24570. - Melbourne
  24571. - "europe-north1"
  24572. - Finland
  24573. - "europe-west1"
  24574. - Belgium
  24575. - "europe-west2"
  24576. - London
  24577. - "europe-west3"
  24578. - Frankfurt
  24579. - "europe-west4"
  24580. - Netherlands
  24581. - "europe-west6"
  24582. - Zürich
  24583. - "europe-central2"
  24584. - Warsaw
  24585. - "us-central1"
  24586. - Iowa
  24587. - "us-east1"
  24588. - South Carolina
  24589. - "us-east4"
  24590. - Northern Virginia
  24591. - "us-west1"
  24592. - Oregon
  24593. - "us-west2"
  24594. - California
  24595. - "us-west3"
  24596. - Salt Lake City
  24597. - "us-west4"
  24598. - Las Vegas
  24599. - "northamerica-northeast1"
  24600. - Montréal
  24601. - "northamerica-northeast2"
  24602. - Toronto
  24603. - "southamerica-east1"
  24604. - São Paulo
  24605. - "southamerica-west1"
  24606. - Santiago
  24607. - "asia1"
  24608. - Dual region: asia-northeast1 and asia-northeast2.
  24609. - "eur4"
  24610. - Dual region: europe-north1 and europe-west4.
  24611. - "nam4"
  24612. - Dual region: us-central1 and us-east1.
  24613. #### --gcs-storage-class
  24614. The storage class to use when storing objects in Google Cloud Storage.
  24615. Properties:
  24616. - Config: storage_class
  24617. - Env Var: RCLONE_GCS_STORAGE_CLASS
  24618. - Type: string
  24619. - Required: false
  24620. - Examples:
  24621. - ""
  24622. - Default
  24623. - "MULTI_REGIONAL"
  24624. - Multi-regional storage class
  24625. - "REGIONAL"
  24626. - Regional storage class
  24627. - "NEARLINE"
  24628. - Nearline storage class
  24629. - "COLDLINE"
  24630. - Coldline storage class
  24631. - "ARCHIVE"
  24632. - Archive storage class
  24633. - "DURABLE_REDUCED_AVAILABILITY"
  24634. - Durable reduced availability storage class
  24635. #### --gcs-env-auth
  24636. Get GCP IAM credentials from runtime (environment variables or instance meta data if no env vars).
  24637. Only applies if service_account_file and service_account_credentials is blank.
  24638. Properties:
  24639. - Config: env_auth
  24640. - Env Var: RCLONE_GCS_ENV_AUTH
  24641. - Type: bool
  24642. - Default: false
  24643. - Examples:
  24644. - "false"
  24645. - Enter credentials in the next step.
  24646. - "true"
  24647. - Get GCP IAM credentials from the environment (env vars or IAM).
  24648. ### Advanced options
  24649. Here are the Advanced options specific to google cloud storage (Google Cloud Storage (this is not Google Drive)).
  24650. #### --gcs-token
  24651. OAuth Access Token as a JSON blob.
  24652. Properties:
  24653. - Config: token
  24654. - Env Var: RCLONE_GCS_TOKEN
  24655. - Type: string
  24656. - Required: false
  24657. #### --gcs-auth-url
  24658. Auth server URL.
  24659. Leave blank to use the provider defaults.
  24660. Properties:
  24661. - Config: auth_url
  24662. - Env Var: RCLONE_GCS_AUTH_URL
  24663. - Type: string
  24664. - Required: false
  24665. #### --gcs-token-url
  24666. Token server url.
  24667. Leave blank to use the provider defaults.
  24668. Properties:
  24669. - Config: token_url
  24670. - Env Var: RCLONE_GCS_TOKEN_URL
  24671. - Type: string
  24672. - Required: false
  24673. #### --gcs-directory-markers
  24674. Upload an empty object with a trailing slash when a new directory is created
  24675. Empty folders are unsupported for bucket based remotes, this option creates an empty
  24676. object ending with "/", to persist the folder.
  24677. Properties:
  24678. - Config: directory_markers
  24679. - Env Var: RCLONE_GCS_DIRECTORY_MARKERS
  24680. - Type: bool
  24681. - Default: false
  24682. #### --gcs-no-check-bucket
  24683. If set, don't attempt to check the bucket exists or create it.
  24684. This can be useful when trying to minimise the number of transactions
  24685. rclone does if you know the bucket exists already.
  24686. Properties:
  24687. - Config: no_check_bucket
  24688. - Env Var: RCLONE_GCS_NO_CHECK_BUCKET
  24689. - Type: bool
  24690. - Default: false
  24691. #### --gcs-decompress
  24692. If set this will decompress gzip encoded objects.
  24693. It is possible to upload objects to GCS with "Content-Encoding: gzip"
  24694. set. Normally rclone will download these files as compressed objects.
  24695. If this flag is set then rclone will decompress these files with
  24696. "Content-Encoding: gzip" as they are received. This means that rclone
  24697. can't check the size and hash but the file contents will be decompressed.
  24698. Properties:
  24699. - Config: decompress
  24700. - Env Var: RCLONE_GCS_DECOMPRESS
  24701. - Type: bool
  24702. - Default: false
  24703. #### --gcs-endpoint
  24704. Endpoint for the service.
  24705. Leave blank normally.
  24706. Properties:
  24707. - Config: endpoint
  24708. - Env Var: RCLONE_GCS_ENDPOINT
  24709. - Type: string
  24710. - Required: false
  24711. #### --gcs-encoding
  24712. The encoding for the backend.
  24713. See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
  24714. Properties:
  24715. - Config: encoding
  24716. - Env Var: RCLONE_GCS_ENCODING
  24717. - Type: Encoding
  24718. - Default: Slash,CrLf,InvalidUtf8,Dot
  24719. #### --gcs-description
  24720. Description of the remote
  24721. Properties:
  24722. - Config: description
  24723. - Env Var: RCLONE_GCS_DESCRIPTION
  24724. - Type: string
  24725. - Required: false
  24726. ## Limitations
  24727. `rclone about` is not supported by the Google Cloud Storage backend. Backends without
  24728. this capability cannot determine free space for an rclone mount or
  24729. use policy `mfs` (most free space) as a member of an rclone union
  24730. remote.
  24731. See [List of backends that do not support rclone about](https://rclone.org/overview/#optional-features) and [rclone about](https://rclone.org/commands/rclone_about/)
  24732. # Google Drive
  24733. Paths are specified as `drive:path`
  24734. Drive paths may be as deep as required, e.g. `drive:directory/subdirectory`.
  24735. ## Configuration
  24736. The initial setup for drive involves getting a token from Google drive
  24737. which you need to do in your browser. `rclone config` walks you
  24738. through it.
  24739. Here is an example of how to make a remote called `remote`. First run:
  24740. rclone config
  24741. This will guide you through an interactive setup process:
  24742. No remotes found, make a new one? n) New remote r) Rename remote c) Copy
  24743. remote s) Set configuration password q) Quit config n/r/c/s/q> n name>
  24744. remote Type of storage to configure. Choose a number from below, or type
  24745. in your own value [snip] XX / Google Drive  "drive" [snip] Storage>
  24746. drive Google Application Client Id - leave blank normally. client_id>
  24747. Google Application Client Secret - leave blank normally. client_secret>
  24748. Scope that rclone should use when requesting access from drive. Choose a
  24749. number from below, or type in your own value 1 / Full access all files,
  24750. excluding Application Data Folder.  "drive" 2 / Read-only access to file
  24751. metadata and file contents.  "drive.readonly" / Access to files created
  24752. by rclone only. 3 | These are visible in the drive website. | File
  24753. authorization is revoked when the user deauthorizes the app.
  24754.  "drive.file" / Allows read and write access to the Application Data
  24755. folder. 4 | This is not visible in the drive website.  "drive.appfolder"
  24756. / Allows read-only access to file metadata but 5 | does not allow any
  24757. access to read or download file content.  "drive.metadata.readonly"
  24758. scope> 1 Service Account Credentials JSON file path - needed only if you
  24759. want use SA instead of interactive login. service_account_file> Remote
  24760. config Use web browser to automatically authenticate rclone with remote?
  24761. * Say Y if the machine running rclone has a web browser you can use *
  24762. Say N if running rclone on a (remote) machine without web browser access
  24763. If not sure try Y. If Y failed, try N. y) Yes n) No y/n> y If your
  24764. browser doesn't open automatically go to the following link:
  24765. http://127.0.0.1:53682/auth Log in and authorize rclone for access
  24766. Waiting for code... Got code Configure this as a Shared Drive (Team
  24767. Drive)? y) Yes n) No y/n> n -------------------- [remote] client_id =
  24768. client_secret = scope = drive root_folder_id = service_account_file =
  24769. token =
  24770. {"access_token":"XXX","token_type":"Bearer","refresh_token":"XXX","expiry":"2014-03-16T13:57:58.955387075Z"}
  24771. -------------------- y) Yes this is OK e) Edit this remote d) Delete
  24772. this remote y/e/d> y
  24773. See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
  24774. machine with no Internet browser available.
  24775. Note that rclone runs a webserver on your local machine to collect the
  24776. token as returned from Google if using web browser to automatically
  24777. authenticate. This only
  24778. runs from the moment it opens your browser to the moment you get back
  24779. the verification code. This is on `http://127.0.0.1:53682/` and it
  24780. may require you to unblock it temporarily if you are running a host
  24781. firewall, or use manual mode.
  24782. You can then use it like this,
  24783. List directories in top level of your drive
  24784. rclone lsd remote:
  24785. List all the files in your drive
  24786. rclone ls remote:
  24787. To copy a local directory to a drive directory called backup
  24788. rclone copy /home/source remote:backup
  24789. ### Scopes
  24790. Rclone allows you to select which scope you would like for rclone to
  24791. use. This changes what type of token is granted to rclone. [The
  24792. scopes are defined
  24793. here](https://developers.google.com/drive/v3/web/about-auth).
  24794. A comma-separated list is allowed e.g. `drive.readonly,drive.file`.
  24795. The scope are
  24796. #### drive
  24797. This is the default scope and allows full access to all files, except
  24798. for the Application Data Folder (see below).
  24799. Choose this one if you aren't sure.
  24800. #### drive.readonly
  24801. This allows read only access to all files. Files may be listed and
  24802. downloaded but not uploaded, renamed or deleted.
  24803. #### drive.file
  24804. With this scope rclone can read/view/modify only those files and
  24805. folders it creates.
  24806. So if you uploaded files to drive via the web interface (or any other
  24807. means) they will not be visible to rclone.
  24808. This can be useful if you are using rclone to backup data and you want
  24809. to be sure confidential data on your drive is not visible to rclone.
  24810. Files created with this scope are visible in the web interface.
  24811. #### drive.appfolder
  24812. This gives rclone its own private area to store files. Rclone will
  24813. not be able to see any other files on your drive and you won't be able
  24814. to see rclone's files from the web interface either.
  24815. #### drive.metadata.readonly
  24816. This allows read only access to file names only. It does not allow
  24817. rclone to download or upload data, or rename or delete files or
  24818. directories.
  24819. ### Root folder ID
  24820. This option has been moved to the advanced section. You can set the `root_folder_id` for rclone. This is the directory
  24821. (identified by its `Folder ID`) that rclone considers to be the root
  24822. of your drive.
  24823. Normally you will leave this blank and rclone will determine the
  24824. correct root to use itself.
  24825. However you can set this to restrict rclone to a specific folder
  24826. hierarchy or to access data within the "Computers" tab on the drive
  24827. web interface (where files from Google's Backup and Sync desktop
  24828. program go).
  24829. In order to do this you will have to find the `Folder ID` of the
  24830. directory you wish rclone to display. This will be the last segment
  24831. of the URL when you open the relevant folder in the drive web
  24832. interface.
  24833. So if the folder you want rclone to use has a URL which looks like
  24834. `https://drive.google.com/drive/folders/1XyfxxxxxxxxxxxxxxxxxxxxxxxxxKHCh`
  24835. in the browser, then you use `1XyfxxxxxxxxxxxxxxxxxxxxxxxxxKHCh` as
  24836. the `root_folder_id` in the config.
  24837. **NB** folders under the "Computers" tab seem to be read only (drive
  24838. gives a 500 error) when using rclone.
  24839. There doesn't appear to be an API to discover the folder IDs of the
  24840. "Computers" tab - please contact us if you know otherwise!
  24841. Note also that rclone can't access any data under the "Backups" tab on
  24842. the google drive web interface yet.
  24843. ### Service Account support
  24844. You can set up rclone with Google Drive in an unattended mode,
  24845. i.e. not tied to a specific end-user Google account. This is useful
  24846. when you want to synchronise files onto machines that don't have
  24847. actively logged-in users, for example build machines.
  24848. To use a Service Account instead of OAuth2 token flow, enter the path
  24849. to your Service Account credentials at the `service_account_file`
  24850. prompt during `rclone config` and rclone won't use the browser based
  24851. authentication flow. If you'd rather stuff the contents of the
  24852. credentials file into the rclone config file, you can set
  24853. `service_account_credentials` with the actual contents of the file
  24854. instead, or set the equivalent environment variable.
  24855. #### Use case - Google Apps/G-suite account and individual Drive
  24856. Let's say that you are the administrator of a Google Apps (old) or
  24857. G-suite account.
  24858. The goal is to store data on an individual's Drive account, who IS
  24859. a member of the domain.
  24860. We'll call the domain **example.com**, and the user
  24861. **foo@example.com**.
  24862. There's a few steps we need to go through to accomplish this:
  24863. ##### 1. Create a service account for example.com
  24864. - To create a service account and obtain its credentials, go to the
  24865. [Google Developer Console](https://console.developers.google.com).
  24866. - You must have a project - create one if you don't.
  24867. - Then go to "IAM & admin" -> "Service Accounts".
  24868. - Use the "Create Service Account" button. Fill in "Service account name"
  24869. and "Service account ID" with something that identifies your client.
  24870. - Select "Create And Continue". Step 2 and 3 are optional.
  24871. - These credentials are what rclone will use for authentication.
  24872. If you ever need to remove access, press the "Delete service
  24873. account key" button.
  24874. ##### 2. Allowing API access to example.com Google Drive
  24875. - Go to example.com's admin console
  24876. - Go into "Security" (or use the search bar)
  24877. - Select "Show more" and then "Advanced settings"
  24878. - Select "Manage API client access" in the "Authentication" section
  24879. - In the "Client Name" field enter the service account's
  24880. "Client ID" - this can be found in the Developer Console under
  24881. "IAM & Admin" -> "Service Accounts", then "View Client ID" for
  24882. the newly created service account.
  24883. It is a ~21 character numerical string.
  24884. - In the next field, "One or More API Scopes", enter
  24885. `https://www.googleapis.com/auth/drive`
  24886. to grant access to Google Drive specifically.
  24887. ##### 3. Configure rclone, assuming a new install
  24888. rclone config
  24889. n/s/q> n # New name>gdrive # Gdrive is an example name Storage> # Select
  24890. the number shown for Google Drive client_id> # Can be left blank
  24891. client_secret> # Can be left blank scope> # Select your scope, 1 for
  24892. example root_folder_id> # Can be left blank service_account_file>
  24893. /home/foo/myJSONfile.json # This is where the JSON file goes! y/n> #
  24894. Auto config, n
  24895. ##### 4. Verify that it's working
  24896. - `rclone -v --drive-impersonate foo@example.com lsf gdrive:backup`
  24897. - The arguments do:
  24898. - `-v` - verbose logging
  24899. - `--drive-impersonate foo@example.com` - this is what does
  24900. the magic, pretending to be user foo.
  24901. - `lsf` - list files in a parsing friendly way
  24902. - `gdrive:backup` - use the remote called gdrive, work in
  24903. the folder named backup.
  24904. Note: in case you configured a specific root folder on gdrive and rclone is unable to access the contents of that folder when using `--drive-impersonate`, do this instead:
  24905. - in the gdrive web interface, share your root folder with the user/email of the new Service Account you created/selected at step #1
  24906. - use rclone without specifying the `--drive-impersonate` option, like this:
  24907. `rclone -v lsf gdrive:backup`
  24908. ### Shared drives (team drives)
  24909. If you want to configure the remote to point to a Google Shared Drive
  24910. (previously known as Team Drives) then answer `y` to the question
  24911. `Configure this as a Shared Drive (Team Drive)?`.
  24912. This will fetch the list of Shared Drives from google and allow you to
  24913. configure which one you want to use. You can also type in a Shared
  24914. Drive ID if you prefer.
  24915. For example:
  24916. Configure this as a Shared Drive (Team Drive)? y) Yes n) No y/n> y
  24917. Fetching Shared Drive list... Choose a number from below, or type in
  24918. your own value 1 / Rclone Test  "xxxxxxxxxxxxxxxxxxxx" 2 / Rclone Test 2
  24919.  "yyyyyyyyyyyyyyyyyyyy" 3 / Rclone Test 3  "zzzzzzzzzzzzzzzzzzzz" Enter
  24920. a Shared Drive ID> 1 -------------------- [remote] client_id =
  24921. client_secret = token =
  24922. {"AccessToken":"xxxx.x.xxxxx_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"1/xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxx","Expiry":"2014-03-16T13:57:58.955387075Z","Extra":null}
  24923. team_drive = xxxxxxxxxxxxxxxxxxxx -------------------- y) Yes this is OK
  24924. e) Edit this remote d) Delete this remote y/e/d> y
  24925. ### --fast-list
  24926. This remote supports `--fast-list` which allows you to use fewer
  24927. transactions in exchange for more memory. See the [rclone
  24928. docs](https://rclone.org/docs/#fast-list) for more details.
  24929. It does this by combining multiple `list` calls into a single API request.
  24930. This works by combining many `'%s' in parents` filters into one expression.
  24931. To list the contents of directories a, b and c, the following requests will be send by the regular `List` function:
  24932. trashed=false and 'a' in parents trashed=false and 'b' in parents
  24933. trashed=false and 'c' in parents
  24934. These can now be combined into a single request:
  24935. trashed=false and ('a' in parents or 'b' in parents or 'c' in parents)
  24936. The implementation of `ListR` will put up to 50 `parents` filters into one request.
  24937. It will use the `--checkers` value to specify the number of requests to run in parallel.
  24938. In tests, these batch requests were up to 20x faster than the regular method.
  24939. Running the following command against different sized folders gives:
  24940. rclone lsjson -vv -R --checkers=6 gdrive:folder
  24941. small folder (220 directories, 700 files):
  24942. - without `--fast-list`: 38s
  24943. - with `--fast-list`: 10s
  24944. large folder (10600 directories, 39000 files):
  24945. - without `--fast-list`: 22:05 min
  24946. - with `--fast-list`: 58s
  24947. ### Modification times and hashes
  24948. Google drive stores modification times accurate to 1 ms.
  24949. Hash algorithms MD5, SHA1 and SHA256 are supported. Note, however,
  24950. that a small fraction of files uploaded may not have SHA1 or SHA256
  24951. hashes especially if they were uploaded before 2018.
  24952. ### Restricted filename characters
  24953. Only Invalid UTF-8 bytes will be [replaced](https://rclone.org/overview/#invalid-utf8),
  24954. as they can't be used in JSON strings.
  24955. In contrast to other backends, `/` can also be used in names and `.`
  24956. or `..` are valid names.
  24957. ### Revisions
  24958. Google drive stores revisions of files. When you upload a change to
  24959. an existing file to google drive using rclone it will create a new
  24960. revision of that file.
  24961. Revisions follow the standard google policy which at time of writing
  24962. was
  24963. * They are deleted after 30 days or 100 revisions (whatever comes first).
  24964. * They do not count towards a user storage quota.
  24965. ### Deleting files
  24966. By default rclone will send all files to the trash when deleting
  24967. files. If deleting them permanently is required then use the
  24968. `--drive-use-trash=false` flag, or set the equivalent environment
  24969. variable.
  24970. ### Shortcuts
  24971. In March 2020 Google introduced a new feature in Google Drive called
  24972. [drive shortcuts](https://support.google.com/drive/answer/9700156)
  24973. ([API](https://developers.google.com/drive/api/v3/shortcuts)). These
  24974. will (by September 2020) [replace the ability for files or folders to
  24975. be in multiple folders at once](https://cloud.google.com/blog/products/g-suite/simplifying-google-drives-folder-structure-and-sharing-models).
  24976. Shortcuts are files that link to other files on Google Drive somewhat
  24977. like a symlink in unix, except they point to the underlying file data
  24978. (e.g. the inode in unix terms) so they don't break if the source is
  24979. renamed or moved about.
  24980. By default rclone treats these as follows.
  24981. For shortcuts pointing to files:
  24982. - When listing a file shortcut appears as the destination file.
  24983. - When downloading the contents of the destination file is downloaded.
  24984. - When updating shortcut file with a non shortcut file, the shortcut is removed then a new file is uploaded in place of the shortcut.
  24985. - When server-side moving (renaming) the shortcut is renamed, not the destination file.
  24986. - When server-side copying the shortcut is copied, not the contents of the shortcut. (unless `--drive-copy-shortcut-content` is in use in which case the contents of the shortcut gets copied).
  24987. - When deleting the shortcut is deleted not the linked file.
  24988. - When setting the modification time, the modification time of the linked file will be set.
  24989. For shortcuts pointing to folders:
  24990. - When listing the shortcut appears as a folder and that folder will contain the contents of the linked folder appear (including any sub folders)
  24991. - When downloading the contents of the linked folder and sub contents are downloaded
  24992. - When uploading to a shortcut folder the file will be placed in the linked folder
  24993. - When server-side moving (renaming) the shortcut is renamed, not the destination folder
  24994. - When server-side copying the contents of the linked folder is copied, not the shortcut.
  24995. - When deleting with `rclone rmdir` or `rclone purge` the shortcut is deleted not the linked folder.
  24996. - **NB** When deleting with `rclone remove` or `rclone mount` the contents of the linked folder will be deleted.
  24997. The [rclone backend](https://rclone.org/commands/rclone_backend/) command can be used to create shortcuts.
  24998. Shortcuts can be completely ignored with the `--drive-skip-shortcuts` flag
  24999. or the corresponding `skip_shortcuts` configuration setting.
  25000. ### Emptying trash
  25001. If you wish to empty your trash you can use the `rclone cleanup remote:`
  25002. command which will permanently delete all your trashed files. This command
  25003. does not take any path arguments.
  25004. Note that Google Drive takes some time (minutes to days) to empty the
  25005. trash even though the command returns within a few seconds. No output
  25006. is echoed, so there will be no confirmation even using -v or -vv.
  25007. ### Quota information
  25008. To view your current quota you can use the `rclone about remote:`
  25009. command which will display your usage limit (quota), the usage in Google
  25010. Drive, the size of all files in the Trash and the space used by other
  25011. Google services such as Gmail. This command does not take any path
  25012. arguments.
  25013. #### Import/Export of google documents
  25014. Google documents can be exported from and uploaded to Google Drive.
  25015. When rclone downloads a Google doc it chooses a format to download
  25016. depending upon the `--drive-export-formats` setting.
  25017. By default the export formats are `docx,xlsx,pptx,svg` which are a
  25018. sensible default for an editable document.
  25019. When choosing a format, rclone runs down the list provided in order
  25020. and chooses the first file format the doc can be exported as from the
  25021. list. If the file can't be exported to a format on the formats list,
  25022. then rclone will choose a format from the default list.
  25023. If you prefer an archive copy then you might use `--drive-export-formats
  25024. pdf`, or if you prefer openoffice/libreoffice formats you might use
  25025. `--drive-export-formats ods,odt,odp`.
  25026. Note that rclone adds the extension to the google doc, so if it is
  25027. called `My Spreadsheet` on google docs, it will be exported as `My
  25028. Spreadsheet.xlsx` or `My Spreadsheet.pdf` etc.
  25029. When importing files into Google Drive, rclone will convert all
  25030. files with an extension in `--drive-import-formats` to their
  25031. associated document type.
  25032. rclone will not convert any files by default, since the conversion
  25033. is lossy process.
  25034. The conversion must result in a file with the same extension when
  25035. the `--drive-export-formats` rules are applied to the uploaded document.
  25036. Here are some examples for allowed and prohibited conversions.
  25037. | export-formats | import-formats | Upload Ext | Document Ext | Allowed |
  25038. | -------------- | -------------- | ---------- | ------------ | ------- |
  25039. | odt | odt | odt | odt | Yes |
  25040. | odt | docx,odt | odt | odt | Yes |
  25041. | | docx | docx | docx | Yes |
  25042. | | odt | odt | docx | No |
  25043. | odt,docx | docx,odt | docx | odt | No |
  25044. | docx,odt | docx,odt | docx | docx | Yes |
  25045. | docx,odt | docx,odt | odt | docx | No |
  25046. This limitation can be disabled by specifying `--drive-allow-import-name-change`.
  25047. When using this flag, rclone can convert multiple files types resulting
  25048. in the same document type at once, e.g. with `--drive-import-formats docx,odt,txt`,
  25049. all files having these extension would result in a document represented as a docx file.
  25050. This brings the additional risk of overwriting a document, if multiple files
  25051. have the same stem. Many rclone operations will not handle this name change
  25052. in any way. They assume an equal name when copying files and might copy the
  25053. file again or delete them when the name changes.
  25054. Here are the possible export extensions with their corresponding mime types.
  25055. Most of these can also be used for importing, but there more that are not
  25056. listed here. Some of these additional ones might only be available when
  25057. the operating system provides the correct MIME type entries.
  25058. This list can be changed by Google Drive at any time and might not
  25059. represent the currently available conversions.
  25060. | Extension | Mime Type | Description |
  25061. | --------- |-----------| ------------|
  25062. | bmp | image/bmp | Windows Bitmap format |
  25063. | csv | text/csv | Standard CSV format for Spreadsheets |
  25064. | doc | application/msword | Classic Word file |
  25065. | docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Microsoft Office Document |
  25066. | epub | application/epub+zip | E-book format |
  25067. | html | text/html | An HTML Document |
  25068. | jpg | image/jpeg | A JPEG Image File |
  25069. | json | application/vnd.google-apps.script+json | JSON Text Format for Google Apps scripts |
  25070. | odp | application/vnd.oasis.opendocument.presentation | Openoffice Presentation |
  25071. | ods | application/vnd.oasis.opendocument.spreadsheet | Openoffice Spreadsheet |
  25072. | ods | application/x-vnd.oasis.opendocument.spreadsheet | Openoffice Spreadsheet |
  25073. | odt | application/vnd.oasis.opendocument.text | Openoffice Document |
  25074. | pdf | application/pdf | Adobe PDF Format |
  25075. | pjpeg | image/pjpeg | Progressive JPEG Image |
  25076. | png | image/png | PNG Image Format|
  25077. | pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | Microsoft Office Powerpoint |
  25078. | rtf | application/rtf | Rich Text Format |
  25079. | svg | image/svg+xml | Scalable Vector Graphics Format |
  25080. | tsv | text/tab-separated-values | Standard TSV format for spreadsheets |
  25081. | txt | text/plain | Plain Text |
  25082. | wmf | application/x-msmetafile | Windows Meta File |
  25083. | xls | application/vnd.ms-excel | Classic Excel file |
  25084. | xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | Microsoft Office Spreadsheet |
  25085. | zip | application/zip | A ZIP file of HTML, Images CSS |
  25086. Google documents can also be exported as link files. These files will
  25087. open a browser window for the Google Docs website of that document
  25088. when opened. The link file extension has to be specified as a
  25089. `--drive-export-formats` parameter. They will match all available
  25090. Google Documents.
  25091. | Extension | Description | OS Support |
  25092. | --------- | ----------- | ---------- |
  25093. | desktop | freedesktop.org specified desktop entry | Linux |
  25094. | link.html | An HTML Document with a redirect | All |
  25095. | url | INI style link file | macOS, Windows |
  25096. | webloc | macOS specific XML format | macOS |
  25097. ### Standard options
  25098. Here are the Standard options specific to drive (Google Drive).
  25099. #### --drive-client-id
  25100. Google Application Client Id
  25101. Setting your own is recommended.
  25102. See https://rclone.org/drive/#making-your-own-client-id for how to create your own.
  25103. If you leave this blank, it will use an internal key which is low performance.
  25104. Properties:
  25105. - Config: client_id
  25106. - Env Var: RCLONE_DRIVE_CLIENT_ID
  25107. - Type: string
  25108. - Required: false
  25109. #### --drive-client-secret
  25110. OAuth Client Secret.
  25111. Leave blank normally.
  25112. Properties:
  25113. - Config: client_secret
  25114. - Env Var: RCLONE_DRIVE_CLIENT_SECRET
  25115. - Type: string
  25116. - Required: false
  25117. #### --drive-scope
  25118. Comma separated list of scopes that rclone should use when requesting access from drive.
  25119. Properties:
  25120. - Config: scope
  25121. - Env Var: RCLONE_DRIVE_SCOPE
  25122. - Type: string
  25123. - Required: false
  25124. - Examples:
  25125. - "drive"
  25126. - Full access all files, excluding Application Data Folder.
  25127. - "drive.readonly"
  25128. - Read-only access to file metadata and file contents.
  25129. - "drive.file"
  25130. - Access to files created by rclone only.
  25131. - These are visible in the drive website.
  25132. - File authorization is revoked when the user deauthorizes the app.
  25133. - "drive.appfolder"
  25134. - Allows read and write access to the Application Data folder.
  25135. - This is not visible in the drive website.
  25136. - "drive.metadata.readonly"
  25137. - Allows read-only access to file metadata but
  25138. - does not allow any access to read or download file content.
  25139. #### --drive-service-account-file
  25140. Service Account Credentials JSON file path.
  25141. Leave blank normally.
  25142. Needed only if you want use SA instead of interactive login.
  25143. Leading `~` will be expanded in the file name as will environment variables such as `${RCLONE_CONFIG_DIR}`.
  25144. Properties:
  25145. - Config: service_account_file
  25146. - Env Var: RCLONE_DRIVE_SERVICE_ACCOUNT_FILE
  25147. - Type: string
  25148. - Required: false
  25149. #### --drive-alternate-export
  25150. Deprecated: No longer needed.
  25151. Properties:
  25152. - Config: alternate_export
  25153. - Env Var: RCLONE_DRIVE_ALTERNATE_EXPORT
  25154. - Type: bool
  25155. - Default: false
  25156. ### Advanced options
  25157. Here are the Advanced options specific to drive (Google Drive).
  25158. #### --drive-token
  25159. OAuth Access Token as a JSON blob.
  25160. Properties:
  25161. - Config: token
  25162. - Env Var: RCLONE_DRIVE_TOKEN
  25163. - Type: string
  25164. - Required: false
  25165. #### --drive-auth-url
  25166. Auth server URL.
  25167. Leave blank to use the provider defaults.
  25168. Properties:
  25169. - Config: auth_url
  25170. - Env Var: RCLONE_DRIVE_AUTH_URL
  25171. - Type: string
  25172. - Required: false
  25173. #### --drive-token-url
  25174. Token server url.
  25175. Leave blank to use the provider defaults.
  25176. Properties:
  25177. - Config: token_url
  25178. - Env Var: RCLONE_DRIVE_TOKEN_URL
  25179. - Type: string
  25180. - Required: false
  25181. #### --drive-root-folder-id
  25182. ID of the root folder.
  25183. Leave blank normally.
  25184. Fill in to access "Computers" folders (see docs), or for rclone to use
  25185. a non root folder as its starting point.
  25186. Properties:
  25187. - Config: root_folder_id
  25188. - Env Var: RCLONE_DRIVE_ROOT_FOLDER_ID
  25189. - Type: string
  25190. - Required: false
  25191. #### --drive-service-account-credentials
  25192. Service Account Credentials JSON blob.
  25193. Leave blank normally.
  25194. Needed only if you want use SA instead of interactive login.
  25195. Properties:
  25196. - Config: service_account_credentials
  25197. - Env Var: RCLONE_DRIVE_SERVICE_ACCOUNT_CREDENTIALS
  25198. - Type: string
  25199. - Required: false
  25200. #### --drive-team-drive
  25201. ID of the Shared Drive (Team Drive).
  25202. Properties:
  25203. - Config: team_drive
  25204. - Env Var: RCLONE_DRIVE_TEAM_DRIVE
  25205. - Type: string
  25206. - Required: false
  25207. #### --drive-auth-owner-only
  25208. Only consider files owned by the authenticated user.
  25209. Properties:
  25210. - Config: auth_owner_only
  25211. - Env Var: RCLONE_DRIVE_AUTH_OWNER_ONLY
  25212. - Type: bool
  25213. - Default: false
  25214. #### --drive-use-trash
  25215. Send files to the trash instead of deleting permanently.
  25216. Defaults to true, namely sending files to the trash.
  25217. Use `--drive-use-trash=false` to delete files permanently instead.
  25218. Properties:
  25219. - Config: use_trash
  25220. - Env Var: RCLONE_DRIVE_USE_TRASH
  25221. - Type: bool
  25222. - Default: true
  25223. #### --drive-copy-shortcut-content
  25224. Server side copy contents of shortcuts instead of the shortcut.
  25225. When doing server side copies, normally rclone will copy shortcuts as
  25226. shortcuts.
  25227. If this flag is used then rclone will copy the contents of shortcuts
  25228. rather than shortcuts themselves when doing server side copies.
  25229. Properties:
  25230. - Config: copy_shortcut_content
  25231. - Env Var: RCLONE_DRIVE_COPY_SHORTCUT_CONTENT
  25232. - Type: bool
  25233. - Default: false
  25234. #### --drive-skip-gdocs
  25235. Skip google documents in all listings.
  25236. If given, gdocs practically become invisible to rclone.
  25237. Properties:
  25238. - Config: skip_gdocs
  25239. - Env Var: RCLONE_DRIVE_SKIP_GDOCS
  25240. - Type: bool
  25241. - Default: false
  25242. #### --drive-show-all-gdocs
  25243. Show all Google Docs including non-exportable ones in listings.
  25244. If you try a server side copy on a Google Form without this flag, you
  25245. will get this error:
  25246. No export formats found for "application/vnd.google-apps.form"
  25247. However adding this flag will allow the form to be server side copied.
  25248. Note that rclone doesn't add extensions to the Google Docs file names
  25249. in this mode.
  25250. Do **not** use this flag when trying to download Google Docs - rclone
  25251. will fail to download them.
  25252. Properties:
  25253. - Config: show_all_gdocs
  25254. - Env Var: RCLONE_DRIVE_SHOW_ALL_GDOCS
  25255. - Type: bool
  25256. - Default: false
  25257. #### --drive-skip-checksum-gphotos
  25258. Skip checksums on Google photos and videos only.
  25259. Use this if you get checksum errors when transferring Google photos or
  25260. videos.
  25261. Setting this flag will cause Google photos and videos to return a
  25262. blank checksums.
  25263. Google photos are identified by being in the "photos" space.
  25264. Corrupted checksums are caused by Google modifying the image/video but
  25265. not updating the checksum.
  25266. Properties:
  25267. - Config: skip_checksum_gphotos
  25268. - Env Var: RCLONE_DRIVE_SKIP_CHECKSUM_GPHOTOS
  25269. - Type: bool
  25270. - Default: false
  25271. #### --drive-shared-with-me
  25272. Only show files that are shared with me.
  25273. Instructs rclone to operate on your "Shared with me" folder (where
  25274. Google Drive lets you access the files and folders others have shared
  25275. with you).
  25276. This works both with the "list" (lsd, lsl, etc.) and the "copy"
  25277. commands (copy, sync, etc.), and with all other commands too.
  25278. Properties:
  25279. - Config: shared_with_me
  25280. - Env Var: RCLONE_DRIVE_SHARED_WITH_ME
  25281. - Type: bool
  25282. - Default: false
  25283. #### --drive-trashed-only
  25284. Only show files that are in the trash.
  25285. This will show trashed files in their original directory structure.
  25286. Properties:
  25287. - Config: trashed_only
  25288. - Env Var: RCLONE_DRIVE_TRASHED_ONLY
  25289. - Type: bool
  25290. - Default: false
  25291. #### --drive-starred-only
  25292. Only show files that are starred.
  25293. Properties:
  25294. - Config: starred_only
  25295. - Env Var: RCLONE_DRIVE_STARRED_ONLY
  25296. - Type: bool
  25297. - Default: false
  25298. #### --drive-formats
  25299. Deprecated: See export_formats.
  25300. Properties:
  25301. - Config: formats
  25302. - Env Var: RCLONE_DRIVE_FORMATS
  25303. - Type: string
  25304. - Required: false
  25305. #### --drive-export-formats
  25306. Comma separated list of preferred formats for downloading Google docs.
  25307. Properties:
  25308. - Config: export_formats
  25309. - Env Var: RCLONE_DRIVE_EXPORT_FORMATS
  25310. - Type: string
  25311. - Default: "docx,xlsx,pptx,svg"
  25312. #### --drive-import-formats
  25313. Comma separated list of preferred formats for uploading Google docs.
  25314. Properties:
  25315. - Config: import_formats
  25316. - Env Var: RCLONE_DRIVE_IMPORT_FORMATS
  25317. - Type: string
  25318. - Required: false
  25319. #### --drive-allow-import-name-change
  25320. Allow the filetype to change when uploading Google docs.
  25321. E.g. file.doc to file.docx. This will confuse sync and reupload every time.
  25322. Properties:
  25323. - Config: allow_import_name_change
  25324. - Env Var: RCLONE_DRIVE_ALLOW_IMPORT_NAME_CHANGE
  25325. - Type: bool
  25326. - Default: false
  25327. #### --drive-use-created-date
  25328. Use file created date instead of modified date.
  25329. Useful when downloading data and you want the creation date used in
  25330. place of the last modified date.
  25331. **WARNING**: This flag may have some unexpected consequences.
  25332. When uploading to your drive all files will be overwritten unless they
  25333. haven't been modified since their creation. And the inverse will occur
  25334. while downloading. This side effect can be avoided by using the
  25335. "--checksum" flag.
  25336. This feature was implemented to retain photos capture date as recorded
  25337. by google photos. You will first need to check the "Create a Google
  25338. Photos folder" option in your google drive settings. You can then copy
  25339. or move the photos locally and use the date the image was taken
  25340. (created) set as the modification date.
  25341. Properties:
  25342. - Config: use_created_date
  25343. - Env Var: RCLONE_DRIVE_USE_CREATED_DATE
  25344. - Type: bool
  25345. - Default: false
  25346. #### --drive-use-shared-date
  25347. Use date file was shared instead of modified date.
  25348. Note that, as with "--drive-use-created-date", this flag may have
  25349. unexpected consequences when uploading/downloading files.
  25350. If both this flag and "--drive-use-created-date" are set, the created
  25351. date is used.
  25352. Properties:
  25353. - Config: use_shared_date
  25354. - Env Var: RCLONE_DRIVE_USE_SHARED_DATE
  25355. - Type: bool
  25356. - Default: false
  25357. #### --drive-list-chunk
  25358. Size of listing chunk 100-1000, 0 to disable.
  25359. Properties:
  25360. - Config: list_chunk
  25361. - Env Var: RCLONE_DRIVE_LIST_CHUNK
  25362. - Type: int
  25363. - Default: 1000
  25364. #### --drive-impersonate
  25365. Impersonate this user when using a service account.
  25366. Properties:
  25367. - Config: impersonate
  25368. - Env Var: RCLONE_DRIVE_IMPERSONATE
  25369. - Type: string
  25370. - Required: false
  25371. #### --drive-upload-cutoff
  25372. Cutoff for switching to chunked upload.
  25373. Properties:
  25374. - Config: upload_cutoff
  25375. - Env Var: RCLONE_DRIVE_UPLOAD_CUTOFF
  25376. - Type: SizeSuffix
  25377. - Default: 8Mi
  25378. #### --drive-chunk-size
  25379. Upload chunk size.
  25380. Must a power of 2 >= 256k.
  25381. Making this larger will improve performance, but note that each chunk
  25382. is buffered in memory one per transfer.
  25383. Reducing this will reduce memory usage but decrease performance.
  25384. Properties:
  25385. - Config: chunk_size
  25386. - Env Var: RCLONE_DRIVE_CHUNK_SIZE
  25387. - Type: SizeSuffix
  25388. - Default: 8Mi
  25389. #### --drive-acknowledge-abuse
  25390. Set to allow files which return cannotDownloadAbusiveFile to be downloaded.
  25391. If downloading a file returns the error "This file has been identified
  25392. as malware or spam and cannot be downloaded" with the error code
  25393. "cannotDownloadAbusiveFile" then supply this flag to rclone to
  25394. indicate you acknowledge the risks of downloading the file and rclone
  25395. will download it anyway.
  25396. Note that if you are using service account it will need Manager
  25397. permission (not Content Manager) to for this flag to work. If the SA
  25398. does not have the right permission, Google will just ignore the flag.
  25399. Properties:
  25400. - Config: acknowledge_abuse
  25401. - Env Var: RCLONE_DRIVE_ACKNOWLEDGE_ABUSE
  25402. - Type: bool
  25403. - Default: false
  25404. #### --drive-keep-revision-forever
  25405. Keep new head revision of each file forever.
  25406. Properties:
  25407. - Config: keep_revision_forever
  25408. - Env Var: RCLONE_DRIVE_KEEP_REVISION_FOREVER
  25409. - Type: bool
  25410. - Default: false
  25411. #### --drive-size-as-quota
  25412. Show sizes as storage quota usage, not actual size.
  25413. Show the size of a file as the storage quota used. This is the
  25414. current version plus any older versions that have been set to keep
  25415. forever.
  25416. **WARNING**: This flag may have some unexpected consequences.
  25417. It is not recommended to set this flag in your config - the
  25418. recommended usage is using the flag form --drive-size-as-quota when
  25419. doing rclone ls/lsl/lsf/lsjson/etc only.
  25420. If you do use this flag for syncing (not recommended) then you will
  25421. need to use --ignore size also.
  25422. Properties:
  25423. - Config: size_as_quota
  25424. - Env Var: RCLONE_DRIVE_SIZE_AS_QUOTA
  25425. - Type: bool
  25426. - Default: false
  25427. #### --drive-v2-download-min-size
  25428. If Object's are greater, use drive v2 API to download.
  25429. Properties:
  25430. - Config: v2_download_min_size
  25431. - Env Var: RCLONE_DRIVE_V2_DOWNLOAD_MIN_SIZE
  25432. - Type: SizeSuffix
  25433. - Default: off
  25434. #### --drive-pacer-min-sleep
  25435. Minimum time to sleep between API calls.
  25436. Properties:
  25437. - Config: pacer_min_sleep
  25438. - Env Var: RCLONE_DRIVE_PACER_MIN_SLEEP
  25439. - Type: Duration
  25440. - Default: 100ms
  25441. #### --drive-pacer-burst
  25442. Number of API calls to allow without sleeping.
  25443. Properties:
  25444. - Config: pacer_burst
  25445. - Env Var: RCLONE_DRIVE_PACER_BURST
  25446. - Type: int
  25447. - Default: 100
  25448. #### --drive-server-side-across-configs
  25449. Deprecated: use --server-side-across-configs instead.
  25450. Allow server-side operations (e.g. copy) to work across different drive configs.
  25451. This can be useful if you wish to do a server-side copy between two
  25452. different Google drives. Note that this isn't enabled by default
  25453. because it isn't easy to tell if it will work between any two
  25454. configurations.
  25455. Properties:
  25456. - Config: server_side_across_configs
  25457. - Env Var: RCLONE_DRIVE_SERVER_SIDE_ACROSS_CONFIGS
  25458. - Type: bool
  25459. - Default: false
  25460. #### --drive-disable-http2
  25461. Disable drive using http2.
  25462. There is currently an unsolved issue with the google drive backend and
  25463. HTTP/2. HTTP/2 is therefore disabled by default for the drive backend
  25464. but can be re-enabled here. When the issue is solved this flag will
  25465. be removed.
  25466. See: https://github.com/rclone/rclone/issues/3631
  25467. Properties:
  25468. - Config: disable_http2
  25469. - Env Var: RCLONE_DRIVE_DISABLE_HTTP2
  25470. - Type: bool
  25471. - Default: true
  25472. #### --drive-stop-on-upload-limit
  25473. Make upload limit errors be fatal.
  25474. At the time of writing it is only possible to upload 750 GiB of data to
  25475. Google Drive a day (this is an undocumented limit). When this limit is
  25476. reached Google Drive produces a slightly different error message. When
  25477. this flag is set it causes these errors to be fatal. These will stop
  25478. the in-progress sync.
  25479. Note that this detection is relying on error message strings which
  25480. Google don't document so it may break in the future.
  25481. See: https://github.com/rclone/rclone/issues/3857
  25482. Properties:
  25483. - Config: stop_on_upload_limit
  25484. - Env Var: RCLONE_DRIVE_STOP_ON_UPLOAD_LIMIT
  25485. - Type: bool
  25486. - Default: false
  25487. #### --drive-stop-on-download-limit
  25488. Make download limit errors be fatal.
  25489. At the time of writing it is only possible to download 10 TiB of data from
  25490. Google Drive a day (this is an undocumented limit). When this limit is
  25491. reached Google Drive produces a slightly different error message. When
  25492. this flag is set it causes these errors to be fatal. These will stop
  25493. the in-progress sync.
  25494. Note that this detection is relying on error message strings which
  25495. Google don't document so it may break in the future.
  25496. Properties:
  25497. - Config: stop_on_download_limit
  25498. - Env Var: RCLONE_DRIVE_STOP_ON_DOWNLOAD_LIMIT
  25499. - Type: bool
  25500. - Default: false
  25501. #### --drive-skip-shortcuts
  25502. If set skip shortcut files.
  25503. Normally rclone dereferences shortcut files making them appear as if
  25504. they are the original file (see [the shortcuts section](#shortcuts)).
  25505. If this flag is set then rclone will ignore shortcut files completely.
  25506. Properties:
  25507. - Config: skip_shortcuts
  25508. - Env Var: RCLONE_DRIVE_SKIP_SHORTCUTS
  25509. - Type: bool
  25510. - Default: false
  25511. #### --drive-skip-dangling-shortcuts
  25512. If set skip dangling shortcut files.
  25513. If this is set then rclone will not show any dangling shortcuts in listings.
  25514. Properties:
  25515. - Config: skip_dangling_shortcuts
  25516. - Env Var: RCLONE_DRIVE_SKIP_DANGLING_SHORTCUTS
  25517. - Type: bool
  25518. - Default: false
  25519. #### --drive-resource-key
  25520. Resource key for accessing a link-shared file.
  25521. If you need to access files shared with a link like this
  25522. https://drive.google.com/drive/folders/XXX?resourcekey=YYY&usp=sharing
  25523. Then you will need to use the first part "XXX" as the "root_folder_id"
  25524. and the second part "YYY" as the "resource_key" otherwise you will get
  25525. 404 not found errors when trying to access the directory.
  25526. See: https://developers.google.com/drive/api/guides/resource-keys
  25527. This resource key requirement only applies to a subset of old files.
  25528. Note also that opening the folder once in the web interface (with the
  25529. user you've authenticated rclone with) seems to be enough so that the
  25530. resource key is not needed.
  25531. Properties:
  25532. - Config: resource_key
  25533. - Env Var: RCLONE_DRIVE_RESOURCE_KEY
  25534. - Type: string
  25535. - Required: false
  25536. #### --drive-fast-list-bug-fix
  25537. Work around a bug in Google Drive listing.
  25538. Normally rclone will work around a bug in Google Drive when using
  25539. --fast-list (ListR) where the search "(A in parents) or (B in
  25540. parents)" returns nothing sometimes. See #3114, #4289 and
  25541. https://issuetracker.google.com/issues/149522397
  25542. Rclone detects this by finding no items in more than one directory
  25543. when listing and retries them as lists of individual directories.
  25544. This means that if you have a lot of empty directories rclone will end
  25545. up listing them all individually and this can take many more API
  25546. calls.
  25547. This flag allows the work-around to be disabled. This is **not**
  25548. recommended in normal use - only if you have a particular case you are
  25549. having trouble with like many empty directories.
  25550. Properties:
  25551. - Config: fast_list_bug_fix
  25552. - Env Var: RCLONE_DRIVE_FAST_LIST_BUG_FIX
  25553. - Type: bool
  25554. - Default: true
  25555. #### --drive-metadata-owner
  25556. Control whether owner should be read or written in metadata.
  25557. Owner is a standard part of the file metadata so is easy to read. But it
  25558. isn't always desirable to set the owner from the metadata.
  25559. Note that you can't set the owner on Shared Drives, and that setting
  25560. ownership will generate an email to the new owner (this can't be
  25561. disabled), and you can't transfer ownership to someone outside your
  25562. organization.
  25563. Properties:
  25564. - Config: metadata_owner
  25565. - Env Var: RCLONE_DRIVE_METADATA_OWNER
  25566. - Type: Bits
  25567. - Default: read
  25568. - Examples:
  25569. - "off"
  25570. - Do not read or write the value
  25571. - "read"
  25572. - Read the value only
  25573. - "write"
  25574. - Write the value only
  25575. - "read,write"
  25576. - Read and Write the value.
  25577. #### --drive-metadata-permissions
  25578. Control whether permissions should be read or written in metadata.
  25579. Reading permissions metadata from files can be done quickly, but it
  25580. isn't always desirable to set the permissions from the metadata.
  25581. Note that rclone drops any inherited permissions on Shared Drives and
  25582. any owner permission on My Drives as these are duplicated in the owner
  25583. metadata.
  25584. Properties:
  25585. - Config: metadata_permissions
  25586. - Env Var: RCLONE_DRIVE_METADATA_PERMISSIONS
  25587. - Type: Bits
  25588. - Default: off
  25589. - Examples:
  25590. - "off"
  25591. - Do not read or write the value
  25592. - "read"
  25593. - Read the value only
  25594. - "write"
  25595. - Write the value only
  25596. - "read,write"
  25597. - Read and Write the value.
  25598. #### --drive-metadata-labels
  25599. Control whether labels should be read or written in metadata.
  25600. Reading labels metadata from files takes an extra API transaction and
  25601. will slow down listings. It isn't always desirable to set the labels
  25602. from the metadata.
  25603. The format of labels is documented in the drive API documentation at
  25604. https://developers.google.com/drive/api/reference/rest/v3/Label -
  25605. rclone just provides a JSON dump of this format.
  25606. When setting labels, the label and fields must already exist - rclone
  25607. will not create them. This means that if you are transferring labels
  25608. from two different accounts you will have to create the labels in
  25609. advance and use the metadata mapper to translate the IDs between the
  25610. two accounts.
  25611. Properties:
  25612. - Config: metadata_labels
  25613. - Env Var: RCLONE_DRIVE_METADATA_LABELS
  25614. - Type: Bits
  25615. - Default: off
  25616. - Examples:
  25617. - "off"
  25618. - Do not read or write the value
  25619. - "read"
  25620. - Read the value only
  25621. - "write"
  25622. - Write the value only
  25623. - "read,write"
  25624. - Read and Write the value.
  25625. #### --drive-encoding
  25626. The encoding for the backend.
  25627. See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
  25628. Properties:
  25629. - Config: encoding
  25630. - Env Var: RCLONE_DRIVE_ENCODING
  25631. - Type: Encoding
  25632. - Default: InvalidUtf8
  25633. #### --drive-env-auth
  25634. Get IAM credentials from runtime (environment variables or instance meta data if no env vars).
  25635. Only applies if service_account_file and service_account_credentials is blank.
  25636. Properties:
  25637. - Config: env_auth
  25638. - Env Var: RCLONE_DRIVE_ENV_AUTH
  25639. - Type: bool
  25640. - Default: false
  25641. - Examples:
  25642. - "false"
  25643. - Enter credentials in the next step.
  25644. - "true"
  25645. - Get GCP IAM credentials from the environment (env vars or IAM).
  25646. #### --drive-description
  25647. Description of the remote
  25648. Properties:
  25649. - Config: description
  25650. - Env Var: RCLONE_DRIVE_DESCRIPTION
  25651. - Type: string
  25652. - Required: false
  25653. ### Metadata
  25654. User metadata is stored in the properties field of the drive object.
  25655. Metadata is supported on files and directories.
  25656. Here are the possible system metadata items for the drive backend.
  25657. | Name | Help | Type | Example | Read Only |
  25658. |------|------|------|---------|-----------|
  25659. | btime | Time of file birth (creation) with mS accuracy. Note that this is only writable on fresh uploads - it can't be written for updates. | RFC 3339 | 2006-01-02T15:04:05.999Z07:00 | N |
  25660. | content-type | The MIME type of the file. | string | text/plain | N |
  25661. | copy-requires-writer-permission | Whether the options to copy, print, or download this file, should be disabled for readers and commenters. | boolean | true | N |
  25662. | description | A short description of the file. | string | Contract for signing | N |
  25663. | folder-color-rgb | The color for a folder or a shortcut to a folder as an RGB hex string. | string | 881133 | N |
  25664. | labels | Labels attached to this file in a JSON dump of Googled drive format. Enable with --drive-metadata-labels. | JSON | [] | N |
  25665. | mtime | Time of last modification with mS accuracy. | RFC 3339 | 2006-01-02T15:04:05.999Z07:00 | N |
  25666. | owner | The owner of the file. Usually an email address. Enable with --drive-metadata-owner. | string | user@example.com | N |
  25667. | permissions | Permissions in a JSON dump of Google drive format. On shared drives these will only be present if they aren't inherited. Enable with --drive-metadata-permissions. | JSON | {} | N |
  25668. | starred | Whether the user has starred the file. | boolean | false | N |
  25669. | viewed-by-me | Whether the file has been viewed by this user. | boolean | true | **Y** |
  25670. | writers-can-share | Whether users with only writer permission can modify the file's permissions. Not populated for items in shared drives. | boolean | false | N |
  25671. See the [metadata](https://rclone.org/docs/#metadata) docs for more info.
  25672. ## Backend commands
  25673. Here are the commands specific to the drive backend.
  25674. Run them with
  25675. rclone backend COMMAND remote:
  25676. The help below will explain what arguments each command takes.
  25677. See the [backend](https://rclone.org/commands/rclone_backend/) command for more
  25678. info on how to pass options and arguments.
  25679. These can be run on a running backend using the rc command
  25680. [backend/command](https://rclone.org/rc/#backend-command).
  25681. ### get
  25682. Get command for fetching the drive config parameters
  25683. rclone backend get remote: [options] [<arguments>+]
  25684. This is a get command which will be used to fetch the various drive config parameters
  25685. Usage Examples:
  25686. rclone backend get drive: [-o service_account_file] [-o chunk_size]
  25687. rclone rc backend/command command=get fs=drive: [-o service_account_file] [-o chunk_size]
  25688. Options:
  25689. - "chunk_size": show the current upload chunk size
  25690. - "service_account_file": show the current service account file
  25691. ### set
  25692. Set command for updating the drive config parameters
  25693. rclone backend set remote: [options] [<arguments>+]
  25694. This is a set command which will be used to update the various drive config parameters
  25695. Usage Examples:
  25696. rclone backend set drive: [-o service_account_file=sa.json] [-o chunk_size=67108864]
  25697. rclone rc backend/command command=set fs=drive: [-o service_account_file=sa.json] [-o chunk_size=67108864]
  25698. Options:
  25699. - "chunk_size": update the current upload chunk size
  25700. - "service_account_file": update the current service account file
  25701. ### shortcut
  25702. Create shortcuts from files or directories
  25703. rclone backend shortcut remote: [options] [<arguments>+]
  25704. This command creates shortcuts from files or directories.
  25705. Usage:
  25706. rclone backend shortcut drive: source_item destination_shortcut
  25707. rclone backend shortcut drive: source_item -o target=drive2: destination_shortcut
  25708. In the first example this creates a shortcut from the "source_item"
  25709. which can be a file or a directory to the "destination_shortcut". The
  25710. "source_item" and the "destination_shortcut" should be relative paths
  25711. from "drive:"
  25712. In the second example this creates a shortcut from the "source_item"
  25713. relative to "drive:" to the "destination_shortcut" relative to
  25714. "drive2:". This may fail with a permission error if the user
  25715. authenticated with "drive2:" can't read files from "drive:".
  25716. Options:
  25717. - "target": optional target remote for the shortcut destination
  25718. ### drives
  25719. List the Shared Drives available to this account
  25720. rclone backend drives remote: [options] [<arguments>+]
  25721. This command lists the Shared Drives (Team Drives) available to this
  25722. account.
  25723. Usage:
  25724. rclone backend [-o config] drives drive:
  25725. This will return a JSON list of objects like this
  25726. [
  25727. {
  25728. "id": "0ABCDEF-01234567890",
  25729. "kind": "drive#teamDrive",
  25730. "name": "My Drive"
  25731. },
  25732. {
  25733. "id": "0ABCDEFabcdefghijkl",
  25734. "kind": "drive#teamDrive",
  25735. "name": "Test Drive"
  25736. }
  25737. ]
  25738. With the -o config parameter it will output the list in a format
  25739. suitable for adding to a config file to make aliases for all the
  25740. drives found and a combined drive.
  25741. [My Drive]
  25742. type = alias
  25743. remote = drive,team_drive=0ABCDEF-01234567890,root_folder_id=:
  25744. [Test Drive]
  25745. type = alias
  25746. remote = drive,team_drive=0ABCDEFabcdefghijkl,root_folder_id=:
  25747. [AllDrives]
  25748. type = combine
  25749. upstreams = "My Drive=My Drive:" "Test Drive=Test Drive:"
  25750. Adding this to the rclone config file will cause those team drives to
  25751. be accessible with the aliases shown. Any illegal characters will be
  25752. substituted with "_" and duplicate names will have numbers suffixed.
  25753. It will also add a remote called AllDrives which shows all the shared
  25754. drives combined into one directory tree.
  25755. ### untrash
  25756. Untrash files and directories
  25757. rclone backend untrash remote: [options] [<arguments>+]
  25758. This command untrashes all the files and directories in the directory
  25759. passed in recursively.
  25760. Usage:
  25761. This takes an optional directory to trash which make this easier to
  25762. use via the API.
  25763. rclone backend untrash drive:directory
  25764. rclone backend --interactive untrash drive:directory subdir
  25765. Use the --interactive/-i or --dry-run flag to see what would be restored before restoring it.
  25766. Result:
  25767. {
  25768. "Untrashed": 17,
  25769. "Errors": 0
  25770. }
  25771. ### copyid
  25772. Copy files by ID
  25773. rclone backend copyid remote: [options] [<arguments>+]
  25774. This command copies files by ID
  25775. Usage:
  25776. rclone backend copyid drive: ID path
  25777. rclone backend copyid drive: ID1 path1 ID2 path2
  25778. It copies the drive file with ID given to the path (an rclone path which
  25779. will be passed internally to rclone copyto). The ID and path pairs can be
  25780. repeated.
  25781. The path should end with a / to indicate copy the file as named to
  25782. this directory. If it doesn't end with a / then the last path
  25783. component will be used as the file name.
  25784. If the destination is a drive backend then server-side copying will be
  25785. attempted if possible.
  25786. Use the --interactive/-i or --dry-run flag to see what would be copied before copying.
  25787. ### exportformats
  25788. Dump the export formats for debug purposes
  25789. rclone backend exportformats remote: [options] [<arguments>+]
  25790. ### importformats
  25791. Dump the import formats for debug purposes
  25792. rclone backend importformats remote: [options] [<arguments>+]
  25793. ## Limitations
  25794. Drive has quite a lot of rate limiting. This causes rclone to be
  25795. limited to transferring about 2 files per second only. Individual
  25796. files may be transferred much faster at 100s of MiB/s but lots of
  25797. small files can take a long time.
  25798. Server side copies are also subject to a separate rate limit. If you
  25799. see User rate limit exceeded errors, wait at least 24 hours and retry.
  25800. You can disable server-side copies with `--disable copy` to download
  25801. and upload the files if you prefer.
  25802. ### Limitations of Google Docs
  25803. Google docs will appear as size -1 in `rclone ls`, `rclone ncdu` etc,
  25804. and as size 0 in anything which uses the VFS layer, e.g. `rclone mount`
  25805. and `rclone serve`. When calculating directory totals, e.g. in
  25806. `rclone size` and `rclone ncdu`, they will be counted in as empty
  25807. files.
  25808. This is because rclone can't find out the size of the Google docs
  25809. without downloading them.
  25810. Google docs will transfer correctly with `rclone sync`, `rclone copy`
  25811. etc as rclone knows to ignore the size when doing the transfer.
  25812. However an unfortunate consequence of this is that you may not be able
  25813. to download Google docs using `rclone mount`. If it doesn't work you
  25814. will get a 0 sized file. If you try again the doc may gain its
  25815. correct size and be downloadable. Whether it will work on not depends
  25816. on the application accessing the mount and the OS you are running -
  25817. experiment to find out if it does work for you!
  25818. ### Duplicated files
  25819. Sometimes, for no reason I've been able to track down, drive will
  25820. duplicate a file that rclone uploads. Drive unlike all the other
  25821. remotes can have duplicated files.
  25822. Duplicated files cause problems with the syncing and you will see
  25823. messages in the log about duplicates.
  25824. Use `rclone dedupe` to fix duplicated files.
  25825. Note that this isn't just a problem with rclone, even Google Photos on
  25826. Android duplicates files on drive sometimes.
  25827. ### Rclone appears to be re-copying files it shouldn't
  25828. The most likely cause of this is the duplicated file issue above - run
  25829. `rclone dedupe` and check your logs for duplicate object or directory
  25830. messages.
  25831. This can also be caused by a delay/caching on google drive's end when
  25832. comparing directory listings. Specifically with team drives used in
  25833. combination with --fast-list. Files that were uploaded recently may
  25834. not appear on the directory list sent to rclone when using --fast-list.
  25835. Waiting a moderate period of time between attempts (estimated to be
  25836. approximately 1 hour) and/or not using --fast-list both seem to be
  25837. effective in preventing the problem.
  25838. ### SHA1 or SHA256 hashes may be missing
  25839. All files have MD5 hashes, but a small fraction of files uploaded may
  25840. not have SHA1 or SHA256 hashes especially if they were uploaded before 2018.
  25841. ## Making your own client_id
  25842. When you use rclone with Google drive in its default configuration you
  25843. are using rclone's client_id. This is shared between all the rclone
  25844. users. There is a global rate limit on the number of queries per
  25845. second that each client_id can do set by Google. rclone already has a
  25846. high quota and I will continue to make sure it is high enough by
  25847. contacting Google.
  25848. It is strongly recommended to use your own client ID as the default rclone ID is heavily used. If you have multiple services running, it is recommended to use an API key for each service. The default Google quota is 10 transactions per second so it is recommended to stay under that number as if you use more than that, it will cause rclone to rate limit and make things slower.
  25849. Here is how to create your own Google Drive client ID for rclone:
  25850. 1. Log into the [Google API
  25851. Console](https://console.developers.google.com/) with your Google
  25852. account. It doesn't matter what Google account you use. (It need not
  25853. be the same account as the Google Drive you want to access)
  25854. 2. Select a project or create a new project.
  25855. 3. Under "ENABLE APIS AND SERVICES" search for "Drive", and enable the
  25856. "Google Drive API".
  25857. 4. Click "Credentials" in the left-side panel (not "Create
  25858. credentials", which opens the wizard).
  25859. 5. If you already configured an "Oauth Consent Screen", then skip
  25860. to the next step; if not, click on "CONFIGURE CONSENT SCREEN" button
  25861. (near the top right corner of the right panel), then select "External"
  25862. and click on "CREATE"; on the next screen, enter an "Application name"
  25863. ("rclone" is OK); enter "User Support Email" (your own email is OK);
  25864. enter "Developer Contact Email" (your own email is OK); then click on
  25865. "Save" (all other data is optional). You will also have to add some scopes,
  25866. including `.../auth/docs` and `.../auth/drive` in order to be able to edit,
  25867. create and delete files with RClone. You may also want to include the
  25868. `../auth/drive.metadata.readonly` scope. After adding scopes, click
  25869. "Save and continue" to add test users. Be sure to add your own account to
  25870. the test users. Once you've added yourself as a test user and saved the
  25871. changes, click again on "Credentials" on the left panel to go back to
  25872. the "Credentials" screen.
  25873. (PS: if you are a GSuite user, you could also select "Internal" instead
  25874. of "External" above, but this will restrict API use to Google Workspace
  25875. users in your organisation).
  25876. 6. Click on the "+ CREATE CREDENTIALS" button at the top of the screen,
  25877. then select "OAuth client ID".
  25878. 7. Choose an application type of "Desktop app" and click "Create". (the default name is fine)
  25879. 8. It will show you a client ID and client secret. Make a note of these.
  25880. (If you selected "External" at Step 5 continue to Step 9.
  25881. If you chose "Internal" you don't need to publish and can skip straight to
  25882. Step 10 but your destination drive must be part of the same Google Workspace.)
  25883. 9. Go to "Oauth consent screen" and then click "PUBLISH APP" button and confirm.
  25884. You will also want to add yourself as a test user.
  25885. 10. Provide the noted client ID and client secret to rclone.
  25886. Be aware that, due to the "enhanced security" recently introduced by
  25887. Google, you are theoretically expected to "submit your app for verification"
  25888. and then wait a few weeks(!) for their response; in practice, you can go right
  25889. ahead and use the client ID and client secret with rclone, the only issue will
  25890. be a very scary confirmation screen shown when you connect via your browser
  25891. for rclone to be able to get its token-id (but as this only happens during
  25892. the remote configuration, it's not such a big deal). Keeping the application in
  25893. "Testing" will work as well, but the limitation is that any grants will expire
  25894. after a week, which can be annoying to refresh constantly. If, for whatever
  25895. reason, a short grant time is not a problem, then keeping the application in
  25896. testing mode would also be sufficient.
  25897. (Thanks to @balazer on github for these instructions.)
  25898. Sometimes, creation of an OAuth consent in Google API Console fails due to an error message
  25899. “The request failed because changes to one of the field of the resource is not supported”.
  25900. As a convenient workaround, the necessary Google Drive API key can be created on the
  25901. [Python Quickstart](https://developers.google.com/drive/api/v3/quickstart/python) page.
  25902. Just push the Enable the Drive API button to receive the Client ID and Secret.
  25903. Note that it will automatically create a new project in the API Console.
  25904. # Google Photos
  25905. The rclone backend for [Google Photos](https://www.google.com/photos/about/) is
  25906. a specialized backend for transferring photos and videos to and from
  25907. Google Photos.
  25908. **NB** The Google Photos API which rclone uses has quite a few
  25909. limitations, so please read the [limitations section](#limitations)
  25910. carefully to make sure it is suitable for your use.
  25911. ## Configuration
  25912. The initial setup for google cloud storage involves getting a token from Google Photos
  25913. which you need to do in your browser. `rclone config` walks you
  25914. through it.
  25915. Here is an example of how to make a remote called `remote`. First run:
  25916. rclone config
  25917. This will guide you through an interactive setup process:
  25918. No remotes found, make a new one? n) New remote s) Set configuration
  25919. password q) Quit config n/s/q> n name> remote Type of storage to
  25920. configure. Enter a string value. Press Enter for the default ("").
  25921. Choose a number from below, or type in your own value [snip] XX / Google
  25922. Photos  "google photos" [snip] Storage> google photos ** See help for
  25923. google photos backend at: https://rclone.org/googlephotos/ **
  25924. Google Application Client Id Leave blank normally. Enter a string value.
  25925. Press Enter for the default (""). client_id> Google Application Client
  25926. Secret Leave blank normally. Enter a string value. Press Enter for the
  25927. default (""). client_secret> Set to make the Google Photos backend read
  25928. only.
  25929. If you choose read only then rclone will only request read only access
  25930. to your photos, otherwise rclone will request full access. Enter a
  25931. boolean value (true or false). Press Enter for the default ("false").
  25932. read_only> Edit advanced config? (y/n) y) Yes n) No y/n> n Remote config
  25933. Use web browser to automatically authenticate rclone with remote? * Say
  25934. Y if the machine running rclone has a web browser you can use * Say N if
  25935. running rclone on a (remote) machine without web browser access If not
  25936. sure try Y. If Y failed, try N. y) Yes n) No y/n> y If your browser
  25937. doesn't open automatically go to the following link:
  25938. http://127.0.0.1:53682/auth Log in and authorize rclone for access
  25939. Waiting for code... Got code
  25940. *** IMPORTANT: All media items uploaded to Google Photos with rclone ***
  25941. are stored in full resolution at original quality. These uploads ***
  25942. will count towards storage in your Google Account.
  25943. -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  25944. [remote] type = google photos token = {"access_token":"XXX","token_type":"Bearer","refresh_token":"XXX","expiry":"2019-06-28T17:38:04.644930156+01:00"}
  25945. -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  25946. y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y ```
  25947. See the remote setup docs for how to set it up on a machine with no Internet browser available.
  25948. Note that rclone runs a webserver on your local machine to collect the token as returned from Google if using web browser to automatically authenticate. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on http://127.0.0.1:53682/ and this may require you to unblock it temporarily if you are running a host firewall, or use manual mode.
  25949. This remote is called remote and can now be used like this
  25950. See all the albums in your photos
  25951. rclone lsd remote:album
  25952. Make a new album
  25953. rclone mkdir remote:album/newAlbum
  25954. List the contents of an album
  25955. rclone ls remote:album/newAlbum
  25956. Sync /home/local/images to the Google Photos, removing any excess files in the album.
  25957. rclone sync --interactive /home/local/image remote:album/newAlbum
  25958. ### Layout
  25959. As Google Photos is not a general purpose cloud storage system, the backend is laid out to help you navigate it.
  25960. The directories under media show different ways of categorizing the media. Each file will appear multiple times. So if you want to make a backup of your google photos you might choose to backup remote:media/by-month. (NB remote:media/by-day is rather slow at the moment so avoid for syncing.)
  25961. Note that all your photos and videos will appear somewhere under media, but they may not appear under album unless you've put them into albums.
  25962. / - upload - file1.jpg - file2.jpg - ... - media - all - file1.jpg - file2.jpg - ... - by-year - 2000 - file1.jpg - ... - 2001 - file2.jpg - ... - ... - by-month - 2000 - 2000-01 - file1.jpg - ... - 2000-02 - file2.jpg - ... - ... - by-day - 2000 - 2000-01-01 - file1.jpg - ... - 2000-01-02 - file2.jpg - ... - ... - album - album name - album name/sub - shared-album - album name - album name/sub - feature - favorites - file1.jpg - file2.jpg
  25963. There are two writable parts of the tree, the upload directory and sub directories of the album directory.
  25964. The upload directory is for uploading files you don't want to put into albums. This will be empty to start with and will contain the files you've uploaded for one rclone session only, becoming empty again when you restart rclone. The use case for this would be if you have a load of files you just want to once off dump into Google Photos. For repeated syncing, uploading to album will work better.
  25965. Directories within the album directory are also writeable and you may create new directories (albums) under album. If you copy files with a directory hierarchy in there then rclone will create albums with the / character in them. For example if you do
  25966. rclone copy /path/to/images remote:album/images
  25967. and the images directory contains
  25968. images - file1.jpg dir file2.jpg dir2 dir3 file3.jpg
  25969. Then rclone will create the following albums with the following files in
  25970. - images - file1.jpg - images/dir - file2.jpg - images/dir2/dir3 - file3.jpg
  25971. This means that you can use the album path pretty much like a normal filesystem and it is a good target for repeated syncing.
  25972. The shared-album directory shows albums shared with you or by you. This is similar to the Sharing tab in the Google Photos web interface.
  25973. ### Standard options
  25974. Here are the Standard options specific to google photos (Google Photos).
  25975. #### --gphotos-client-id
  25976. OAuth Client Id.
  25977. Leave blank normally.
  25978. Properties:
  25979. - Config: client_id - Env Var: RCLONE_GPHOTOS_CLIENT_ID - Type: string - Required: false
  25980. #### --gphotos-client-secret
  25981. OAuth Client Secret.
  25982. Leave blank normally.
  25983. Properties:
  25984. - Config: client_secret - Env Var: RCLONE_GPHOTOS_CLIENT_SECRET - Type: string - Required: false
  25985. #### --gphotos-read-only
  25986. Set to make the Google Photos backend read only.
  25987. If you choose read only then rclone will only request read only access to your photos, otherwise rclone will request full access.
  25988. Properties:
  25989. - Config: read_only - Env Var: RCLONE_GPHOTOS_READ_ONLY - Type: bool - Default: false
  25990. ### Advanced options
  25991. Here are the Advanced options specific to google photos (Google Photos).
  25992. #### --gphotos-token
  25993. OAuth Access Token as a JSON blob.
  25994. Properties:
  25995. - Config: token - Env Var: RCLONE_GPHOTOS_TOKEN - Type: string - Required: false
  25996. #### --gphotos-auth-url
  25997. Auth server URL.
  25998. Leave blank to use the provider defaults.
  25999. Properties:
  26000. - Config: auth_url - Env Var: RCLONE_GPHOTOS_AUTH_URL - Type: string - Required: false
  26001. #### --gphotos-token-url
  26002. Token server url.
  26003. Leave blank to use the provider defaults.
  26004. Properties:
  26005. - Config: token_url - Env Var: RCLONE_GPHOTOS_TOKEN_URL - Type: string - Required: false
  26006. #### --gphotos-read-size
  26007. Set to read the size of media items.
  26008. Normally rclone does not read the size of media items since this takes another transaction. This isn't necessary for syncing. However rclone mount needs to know the size of files in advance of reading them, so setting this flag when using rclone mount is recommended if you want to read the media.
  26009. Properties:
  26010. - Config: read_size - Env Var: RCLONE_GPHOTOS_READ_SIZE - Type: bool - Default: false
  26011. #### --gphotos-start-year
  26012. Year limits the photos to be downloaded to those which are uploaded after the given year.
  26013. Properties:
  26014. - Config: start_year - Env Var: RCLONE_GPHOTOS_START_YEAR - Type: int - Default: 2000
  26015. #### --gphotos-include-archived
  26016. Also view and download archived media.
  26017. By default, rclone does not request archived media. Thus, when syncing, archived media is not visible in directory listings or transferred.
  26018. Note that media in albums is always visible and synced, no matter their archive status.
  26019. With this flag, archived media are always visible in directory listings and transferred.
  26020. Without this flag, archived media will not be visible in directory listings and won't be transferred.
  26021. Properties:
  26022. - Config: include_archived - Env Var: RCLONE_GPHOTOS_INCLUDE_ARCHIVED - Type: bool - Default: false
  26023. #### --gphotos-encoding
  26024. The encoding for the backend.
  26025. See the encoding section in the overview for more info.
  26026. Properties:
  26027. - Config: encoding - Env Var: RCLONE_GPHOTOS_ENCODING - Type: Encoding - Default: Slash,CrLf,InvalidUtf8,Dot
  26028. #### --gphotos-batch-mode
  26029. Upload file batching sync|async|off.
  26030. This sets the batch mode used by rclone.
  26031. This has 3 possible values
  26032. - off - no batching - sync - batch uploads and check completion (default) - async - batch upload and don't check completion
  26033. Rclone will close any outstanding batches when it exits which may make a delay on quit.
  26034. Properties:
  26035. - Config: batch_mode - Env Var: RCLONE_GPHOTOS_BATCH_MODE - Type: string - Default: "sync"
  26036. #### --gphotos-batch-size
  26037. Max number of files in upload batch.
  26038. This sets the batch size of files to upload. It has to be less than 50.
  26039. By default this is 0 which means rclone which calculate the batch size depending on the setting of batch_mode.
  26040. - batch_mode: async - default batch_size is 50 - batch_mode: sync - default batch_size is the same as --transfers - batch_mode: off - not in use
  26041. Rclone will close any outstanding batches when it exits which may make a delay on quit.
  26042. Setting this is a great idea if you are uploading lots of small files as it will make them a lot quicker. You can use --transfers 32 to maximise throughput.
  26043. Properties:
  26044. - Config: batch_size - Env Var: RCLONE_GPHOTOS_BATCH_SIZE - Type: int - Default: 0
  26045. #### --gphotos-batch-timeout
  26046. Max time to allow an idle upload batch before uploading.
  26047. If an upload batch is idle for more than this long then it will be uploaded.
  26048. The default for this is 0 which means rclone will choose a sensible default based on the batch_mode in use.
  26049. - batch_mode: async - default batch_timeout is 10s - batch_mode: sync - default batch_timeout is 1s - batch_mode: off - not in use
  26050. Properties:
  26051. - Config: batch_timeout - Env Var: RCLONE_GPHOTOS_BATCH_TIMEOUT - Type: Duration - Default: 0s
  26052. #### --gphotos-batch-commit-timeout
  26053. Max time to wait for a batch to finish committing
  26054. Properties:
  26055. - Config: batch_commit_timeout - Env Var: RCLONE_GPHOTOS_BATCH_COMMIT_TIMEOUT - Type: Duration - Default: 10m0s
  26056. #### --gphotos-description
  26057. Description of the remote
  26058. Properties:
  26059. - Config: description - Env Var: RCLONE_GPHOTOS_DESCRIPTION - Type: string - Required: false
  26060. ## Limitations
  26061. Only images and videos can be uploaded. If you attempt to upload non videos or images or formats that Google Photos doesn't understand, rclone will upload the file, then Google Photos will give an error when it is put turned into a media item.
  26062. Note that all media items uploaded to Google Photos through the API are stored in full resolution at "original quality" and will count towards your storage quota in your Google Account. The API does not offer a way to upload in "high quality" mode..
  26063. rclone about is not supported by the Google Photos backend. Backends without this capability cannot determine free space for an rclone mount or use policy mfs (most free space) as a member of an rclone union remote.
  26064. See List of backends that do not support rclone about See rclone about
  26065. ### Downloading Images
  26066. When Images are downloaded this strips EXIF location (according to the docs and my tests). This is a limitation of the Google Photos API and is covered by bug #112096115.
  26067. The current google API does not allow photos to be downloaded at original resolution. This is very important if you are, for example, relying on "Google Photos" as a backup of your photos. You will not be able to use rclone to redownload original images. You could use 'google takeout' to recover the original photos as a last resort
  26068. ### Downloading Videos
  26069. When videos are downloaded they are downloaded in a really compressed version of the video compared to downloading it via the Google Photos web interface. This is covered by bug #113672044.
  26070. ### Duplicates
  26071. If a file name is duplicated in a directory then rclone will add the file ID into its name. So two files called file.jpg would then appear as file {123456}.jpg and file {ABCDEF}.jpg (the actual IDs are a lot longer alas!).
  26072. If you upload the same image (with the same binary data) twice then Google Photos will deduplicate it. However it will retain the filename from the first upload which may confuse rclone. For example if you uploaded an image to upload then uploaded the same image to album/my_album the filename of the image in album/my_album will be what it was uploaded with initially, not what you uploaded it with to album. In practise this shouldn't cause
  26073. too many problems.
  26074. ### Modification times
  26075. The date shown of media in Google Photos is the creation date as determined by the EXIF information, or the upload date if that is not known.
  26076. This is not changeable by rclone and is not the modification date of the media on local disk. This means that rclone cannot use the dates from Google Photos for syncing purposes.
  26077. ### Size
  26078. The Google Photos API does not return the size of media. This means that when syncing to Google Photos, rclone can only do a file existence check.
  26079. It is possible to read the size of the media, but this needs an extra HTTP HEAD request per media item so is very slow and uses up a lot of transactions. This can be enabled with the --gphotos-read-size option or the read_size = true config parameter.
  26080. If you want to use the backend with rclone mount you may need to enable this flag (depending on your OS and application using the photos) otherwise you may not be able to read media off the mount. You'll need to experiment to see if it works for you without the flag.
  26081. ### Albums
  26082. Rclone can only upload files to albums it created. This is a limitation of the Google Photos API.
  26083. Rclone can remove files it uploaded from albums it created only.
  26084. ### Deleting files
  26085. Rclone can remove files from albums it created, but note that the Google Photos API does not allow media to be deleted permanently so this media will still remain. See bug #109759781.
  26086. Rclone cannot delete files anywhere except under album.
  26087. ### Deleting albums
  26088. The Google Photos API does not support deleting albums - see bug #135714733.
  26089. # Hasher
  26090. Hasher is a special overlay backend to create remotes which handle checksums for other remotes. It's main functions include: - Emulate hash types unimplemented by backends - Cache checksums to help with slow hashing of large local or (S)FTP files - Warm up checksum cache from external SUM files
  26091. ## Getting started
  26092. To use Hasher, first set up the underlying remote following the configuration instructions for that remote. You can also use a local pathname instead of a remote. Check that your base remote is working.
  26093. Let's call the base remote myRemote:path here. Note that anything inside myRemote:path will be handled by hasher and anything outside won't. This means that if you are using a bucket based remote (S3, B2, Swift) then you should put the bucket in the remote s3:bucket.
  26094. Now proceed to interactive or manual configuration.
  26095. ### Interactive configuration
  26096. Run rclone config: ``` No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> Hasher1 Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / Handle checksums for other remotes  "hasher" [snip] Storage> hasher Remote to cache checksums for, like myremote:mypath. Enter a string value. Press Enter for the default (""). remote> myRemote:path Comma
  26097. separated list of supported checksum types. Enter a string value. Press Enter for the default ("md5,sha1"). hashsums> md5 Maximum time to keep checksums in cache. 0 = no cache, off = cache forever. max_age> off Edit advanced config? (y/n) y) Yes n) No y/n> n Remote config
  26098. -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  26099. [Hasher1] type = hasher remote = myRemote:path hashsums = md5 max_age =
  26100. off -------------------- y) Yes this is OK e) Edit this remote d) Delete
  26101. this remote y/e/d> y
  26102. ### Manual configuration
  26103. Run `rclone config path` to see the path of current active config file,
  26104. usually `YOURHOME/.config/rclone/rclone.conf`.
  26105. Open it in your favorite text editor, find section for the base remote
  26106. and create new section for hasher like in the following examples:
  26107. [Hasher1] type = hasher remote = myRemote:path hashes = md5 max_age =
  26108. off
  26109. [Hasher2] type = hasher remote = /local/path hashes = dropbox,sha1
  26110. max_age = 24h
  26111. Hasher takes basically the following parameters:
  26112. - `remote` is required,
  26113. - `hashes` is a comma separated list of supported checksums
  26114. (by default `md5,sha1`),
  26115. - `max_age` - maximum time to keep a checksum value in the cache,
  26116. `0` will disable caching completely,
  26117. `off` will cache "forever" (that is until the files get changed).
  26118. Make sure the `remote` has `:` (colon) in. If you specify the remote without
  26119. a colon then rclone will use a local directory of that name. So if you use
  26120. a remote of `/local/path` then rclone will handle hashes for that directory.
  26121. If you use `remote = name` literally then rclone will put files
  26122. **in a directory called `name` located under current directory**.
  26123. ## Usage
  26124. ### Basic operations
  26125. Now you can use it as `Hasher2:subdir/file` instead of base remote.
  26126. Hasher will transparently update cache with new checksums when a file
  26127. is fully read or overwritten, like:
  26128. rclone copy External:path/file Hasher:dest/path
  26129. rclone cat Hasher:path/to/file > /dev/null
  26130. The way to refresh **all** cached checksums (even unsupported by the base backend)
  26131. for a subtree is to **re-download** all files in the subtree. For example,
  26132. use `hashsum --download` using **any** supported hashsum on the command line
  26133. (we just care to re-read):
  26134. rclone hashsum MD5 --download Hasher:path/to/subtree > /dev/null
  26135. rclone backend dump Hasher:path/to/subtree
  26136. You can print or drop hashsum cache using custom backend commands:
  26137. rclone backend dump Hasher:dir/subdir
  26138. rclone backend drop Hasher:
  26139. ### Pre-Seed from a SUM File
  26140. Hasher supports two backend commands: generic SUM file `import` and faster
  26141. but less consistent `stickyimport`.
  26142. rclone backend import Hasher:dir/subdir SHA1 /path/to/SHA1SUM
  26143. [--checkers 4]
  26144. Instead of SHA1 it can be any hash supported by the remote. The last argument
  26145. can point to either a local or an `other-remote:path` text file in SUM format.
  26146. The command will parse the SUM file, then walk down the path given by the
  26147. first argument, snapshot current fingerprints and fill in the cache entries
  26148. correspondingly.
  26149. - Paths in the SUM file are treated as relative to `hasher:dir/subdir`.
  26150. - The command will **not** check that supplied values are correct.
  26151. You **must know** what you are doing.
  26152. - This is a one-time action. The SUM file will not get "attached" to the
  26153. remote. Cache entries can still be overwritten later, should the object's
  26154. fingerprint change.
  26155. - The tree walk can take long depending on the tree size. You can increase
  26156. `--checkers` to make it faster. Or use `stickyimport` if you don't care
  26157. about fingerprints and consistency.
  26158. rclone backend stickyimport hasher:path/to/data sha1
  26159. remote:/path/to/sum.sha1
  26160. `stickyimport` is similar to `import` but works much faster because it
  26161. does not need to stat existing files and skips initial tree walk.
  26162. Instead of binding cache entries to file fingerprints it creates _sticky_
  26163. entries bound to the file name alone ignoring size, modification time etc.
  26164. Such hash entries can be replaced only by `purge`, `delete`, `backend drop`
  26165. or by full re-read/re-write of the files.
  26166. ## Configuration reference
  26167. ### Standard options
  26168. Here are the Standard options specific to hasher (Better checksums for other remotes).
  26169. #### --hasher-remote
  26170. Remote to cache checksums for (e.g. myRemote:path).
  26171. Properties:
  26172. - Config: remote
  26173. - Env Var: RCLONE_HASHER_REMOTE
  26174. - Type: string
  26175. - Required: true
  26176. #### --hasher-hashes
  26177. Comma separated list of supported checksum types.
  26178. Properties:
  26179. - Config: hashes
  26180. - Env Var: RCLONE_HASHER_HASHES
  26181. - Type: CommaSepList
  26182. - Default: md5,sha1
  26183. #### --hasher-max-age
  26184. Maximum time to keep checksums in cache (0 = no cache, off = cache forever).
  26185. Properties:
  26186. - Config: max_age
  26187. - Env Var: RCLONE_HASHER_MAX_AGE
  26188. - Type: Duration
  26189. - Default: off
  26190. ### Advanced options
  26191. Here are the Advanced options specific to hasher (Better checksums for other remotes).
  26192. #### --hasher-auto-size
  26193. Auto-update checksum for files smaller than this size (disabled by default).
  26194. Properties:
  26195. - Config: auto_size
  26196. - Env Var: RCLONE_HASHER_AUTO_SIZE
  26197. - Type: SizeSuffix
  26198. - Default: 0
  26199. #### --hasher-description
  26200. Description of the remote
  26201. Properties:
  26202. - Config: description
  26203. - Env Var: RCLONE_HASHER_DESCRIPTION
  26204. - Type: string
  26205. - Required: false
  26206. ### Metadata
  26207. Any metadata supported by the underlying remote is read and written.
  26208. See the [metadata](https://rclone.org/docs/#metadata) docs for more info.
  26209. ## Backend commands
  26210. Here are the commands specific to the hasher backend.
  26211. Run them with
  26212. rclone backend COMMAND remote:
  26213. The help below will explain what arguments each command takes.
  26214. See the [backend](https://rclone.org/commands/rclone_backend/) command for more
  26215. info on how to pass options and arguments.
  26216. These can be run on a running backend using the rc command
  26217. [backend/command](https://rclone.org/rc/#backend-command).
  26218. ### drop
  26219. Drop cache
  26220. rclone backend drop remote: [options] [<arguments>+]
  26221. Completely drop checksum cache.
  26222. Usage Example:
  26223. rclone backend drop hasher:
  26224. ### dump
  26225. Dump the database
  26226. rclone backend dump remote: [options] [<arguments>+]
  26227. Dump cache records covered by the current remote
  26228. ### fulldump
  26229. Full dump of the database
  26230. rclone backend fulldump remote: [options] [<arguments>+]
  26231. Dump all cache records in the database
  26232. ### import
  26233. Import a SUM file
  26234. rclone backend import remote: [options] [<arguments>+]
  26235. Amend hash cache from a SUM file and bind checksums to files by size/time.
  26236. Usage Example:
  26237. rclone backend import hasher:subdir md5 /path/to/sum.md5
  26238. ### stickyimport
  26239. Perform fast import of a SUM file
  26240. rclone backend stickyimport remote: [options] [<arguments>+]
  26241. Fill hash cache from a SUM file without verifying file fingerprints.
  26242. Usage Example:
  26243. rclone backend stickyimport hasher:subdir md5 remote:path/to/sum.md5
  26244. ## Implementation details (advanced)
  26245. This section explains how various rclone operations work on a hasher remote.
  26246. **Disclaimer. This section describes current implementation which can
  26247. change in future rclone versions!.**
  26248. ### Hashsum command
  26249. The `rclone hashsum` (or `md5sum` or `sha1sum`) command will:
  26250. 1. if requested hash is supported by lower level, just pass it.
  26251. 2. if object size is below `auto_size` then download object and calculate
  26252. _requested_ hashes on the fly.
  26253. 3. if unsupported and the size is big enough, build object `fingerprint`
  26254. (including size, modtime if supported, first-found _other_ hash if any).
  26255. 4. if the strict match is found in cache for the requested remote, return
  26256. the stored hash.
  26257. 5. if remote found but fingerprint mismatched, then purge the entry and
  26258. proceed to step 6.
  26259. 6. if remote not found or had no requested hash type or after step 5:
  26260. download object, calculate all _supported_ hashes on the fly and store
  26261. in cache; return requested hash.
  26262. ### Other operations
  26263. - whenever a file is uploaded or downloaded **in full**, capture the stream
  26264. to calculate all supported hashes on the fly and update database
  26265. - server-side `move` will update keys of existing cache entries
  26266. - `deletefile` will remove a single cache entry
  26267. - `purge` will remove all cache entries under the purged path
  26268. Note that setting `max_age = 0` will disable checksum caching completely.
  26269. If you set `max_age = off`, checksums in cache will never age, unless you
  26270. fully rewrite or delete the file.
  26271. ### Cache storage
  26272. Cached checksums are stored as `bolt` database files under rclone cache
  26273. directory, usually `~/.cache/rclone/kv/`. Databases are maintained
  26274. one per _base_ backend, named like `BaseRemote~hasher.bolt`.
  26275. Checksums for multiple `alias`-es into a single base backend
  26276. will be stored in the single database. All local paths are treated as
  26277. aliases into the `local` backend (unless encrypted or chunked) and stored
  26278. in `~/.cache/rclone/kv/local~hasher.bolt`.
  26279. Databases can be shared between multiple rclone processes.
  26280. # HDFS
  26281. [HDFS](https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-hdfs/HdfsDesign.html) is a
  26282. distributed file-system, part of the [Apache Hadoop](https://hadoop.apache.org/) framework.
  26283. Paths are specified as `remote:` or `remote:path/to/dir`.
  26284. ## Configuration
  26285. Here is an example of how to make a remote called `remote`. First run:
  26286. rclone config
  26287. This will guide you through an interactive setup process:
  26288. No remotes found, make a new one? n) New remote s) Set configuration
  26289. password q) Quit config n/s/q> n name> remote Type of storage to
  26290. configure. Enter a string value. Press Enter for the default ("").
  26291. Choose a number from below, or type in your own value [skip] XX / Hadoop
  26292. distributed file system  "hdfs" [skip] Storage> hdfs ** See help for
  26293. hdfs backend at: https://rclone.org/hdfs/ **
  26294. hadoop name node and port Enter a string value. Press Enter for the
  26295. default (""). Choose a number from below, or type in your own value 1 /
  26296. Connect to host namenode at port 8020  "namenode:8020" namenode>
  26297. namenode.hadoop:8020 hadoop user name Enter a string value. Press Enter
  26298. for the default (""). Choose a number from below, or type in your own
  26299. value 1 / Connect to hdfs as root  "root" username> root Edit advanced
  26300. config? (y/n) y) Yes n) No (default) y/n> n Remote config
  26301. -------------------- [remote] type = hdfs namenode =
  26302. namenode.hadoop:8020 username = root -------------------- y) Yes this is
  26303. OK (default) e) Edit this remote d) Delete this remote y/e/d> y Current
  26304. remotes:
  26305. Name Type ==== ==== hadoop hdfs
  26306. e) Edit existing remote
  26307. f) New remote
  26308. g) Delete remote
  26309. h) Rename remote
  26310. i) Copy remote
  26311. j) Set configuration password
  26312. k) Quit config e/n/d/r/c/s/q> q
  26313. This remote is called `remote` and can now be used like this
  26314. See all the top level directories
  26315. rclone lsd remote:
  26316. List the contents of a directory
  26317. rclone ls remote:directory
  26318. Sync the remote `directory` to `/home/local/directory`, deleting any excess files.
  26319. rclone sync --interactive remote:directory /home/local/directory
  26320. ### Setting up your own HDFS instance for testing
  26321. You may start with a [manual setup](https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/SingleCluster.html)
  26322. or use the docker image from the tests:
  26323. If you want to build the docker image
  26324. git clone https://github.com/rclone/rclone.git cd
  26325. rclone/fstest/testserver/images/test-hdfs docker build --rm -t
  26326. rclone/test-hdfs .
  26327. Or you can just use the latest one pushed
  26328. docker run --rm --name "rclone-hdfs" -p 127.0.0.1:9866:9866 -p
  26329. 127.0.0.1:8020:8020 --hostname "rclone-hdfs" rclone/test-hdfs
  26330. **NB** it need few seconds to startup.
  26331. For this docker image the remote needs to be configured like this:
  26332. [remote] type = hdfs namenode = 127.0.0.1:8020 username = root
  26333. You can stop this image with `docker kill rclone-hdfs` (**NB** it does not use volumes, so all data
  26334. uploaded will be lost.)
  26335. ### Modification times
  26336. Time accurate to 1 second is stored.
  26337. ### Checksum
  26338. No checksums are implemented.
  26339. ### Usage information
  26340. You can use the `rclone about remote:` command which will display filesystem size and current usage.
  26341. ### Restricted filename characters
  26342. In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
  26343. the following characters are also replaced:
  26344. | Character | Value | Replacement |
  26345. | --------- |:-----:|:-----------:|
  26346. | : | 0x3A | : |
  26347. Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8).
  26348. ### Standard options
  26349. Here are the Standard options specific to hdfs (Hadoop distributed file system).
  26350. #### --hdfs-namenode
  26351. Hadoop name nodes and ports.
  26352. E.g. "namenode-1:8020,namenode-2:8020,..." to connect to host namenodes at port 8020.
  26353. Properties:
  26354. - Config: namenode
  26355. - Env Var: RCLONE_HDFS_NAMENODE
  26356. - Type: CommaSepList
  26357. - Default:
  26358. #### --hdfs-username
  26359. Hadoop user name.
  26360. Properties:
  26361. - Config: username
  26362. - Env Var: RCLONE_HDFS_USERNAME
  26363. - Type: string
  26364. - Required: false
  26365. - Examples:
  26366. - "root"
  26367. - Connect to hdfs as root.
  26368. ### Advanced options
  26369. Here are the Advanced options specific to hdfs (Hadoop distributed file system).
  26370. #### --hdfs-service-principal-name
  26371. Kerberos service principal name for the namenode.
  26372. Enables KERBEROS authentication. Specifies the Service Principal Name
  26373. (SERVICE/FQDN) for the namenode. E.g. \"hdfs/namenode.hadoop.docker\"
  26374. for namenode running as service 'hdfs' with FQDN 'namenode.hadoop.docker'.
  26375. Properties:
  26376. - Config: service_principal_name
  26377. - Env Var: RCLONE_HDFS_SERVICE_PRINCIPAL_NAME
  26378. - Type: string
  26379. - Required: false
  26380. #### --hdfs-data-transfer-protection
  26381. Kerberos data transfer protection: authentication|integrity|privacy.
  26382. Specifies whether or not authentication, data signature integrity
  26383. checks, and wire encryption are required when communicating with
  26384. the datanodes. Possible values are 'authentication', 'integrity'
  26385. and 'privacy'. Used only with KERBEROS enabled.
  26386. Properties:
  26387. - Config: data_transfer_protection
  26388. - Env Var: RCLONE_HDFS_DATA_TRANSFER_PROTECTION
  26389. - Type: string
  26390. - Required: false
  26391. - Examples:
  26392. - "privacy"
  26393. - Ensure authentication, integrity and encryption enabled.
  26394. #### --hdfs-encoding
  26395. The encoding for the backend.
  26396. See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
  26397. Properties:
  26398. - Config: encoding
  26399. - Env Var: RCLONE_HDFS_ENCODING
  26400. - Type: Encoding
  26401. - Default: Slash,Colon,Del,Ctl,InvalidUtf8,Dot
  26402. #### --hdfs-description
  26403. Description of the remote
  26404. Properties:
  26405. - Config: description
  26406. - Env Var: RCLONE_HDFS_DESCRIPTION
  26407. - Type: string
  26408. - Required: false
  26409. ## Limitations
  26410. - No server-side `Move` or `DirMove`.
  26411. - Checksums not implemented.
  26412. # HiDrive
  26413. Paths are specified as `remote:path`
  26414. Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
  26415. The initial setup for hidrive involves getting a token from HiDrive
  26416. which you need to do in your browser.
  26417. `rclone config` walks you through it.
  26418. ## Configuration
  26419. Here is an example of how to make a remote called `remote`. First run:
  26420. rclone config
  26421. This will guide you through an interactive setup process:
  26422. No remotes found - make a new one n) New remote s) Set configuration
  26423. password q) Quit config n/s/q> n name> remote Type of storage to
  26424. configure. Choose a number from below, or type in your own value [snip]
  26425. XX / HiDrive  "hidrive" [snip] Storage> hidrive OAuth Client Id - Leave
  26426. blank normally. client_id> OAuth Client Secret - Leave blank normally.
  26427. client_secret> Access permissions that rclone should use when requesting
  26428. access from HiDrive. Leave blank normally. scope_access> Edit advanced
  26429. config? y/n> n Use web browser to automatically authenticate rclone with
  26430. remote? * Say Y if the machine running rclone has a web browser you can
  26431. use * Say N if running rclone on a (remote) machine without web browser
  26432. access If not sure try Y. If Y failed, try N. y/n> y If your browser
  26433. doesn't open automatically go to the following link:
  26434. http://127.0.0.1:53682/auth?state=xxxxxxxxxxxxxxxxxxxxxx Log in and
  26435. authorize rclone for access Waiting for code... Got code
  26436. -------------------- [remote] type = hidrive token =
  26437. {"access_token":"xxxxxxxxxxxxxxxxxxxx","token_type":"Bearer","refresh_token":"xxxxxxxxxxxxxxxxxxxxxxx","expiry":"xxxxxxxxxxxxxxxxxxxxxxx"}
  26438. -------------------- y) Yes this is OK (default) e) Edit this remote d)
  26439. Delete this remote y/e/d> y
  26440. **You should be aware that OAuth-tokens can be used to access your account
  26441. and hence should not be shared with other persons.**
  26442. See the [below section](#keeping-your-tokens-safe) for more information.
  26443. See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
  26444. machine with no Internet browser available.
  26445. Note that rclone runs a webserver on your local machine to collect the
  26446. token as returned from HiDrive. This only runs from the moment it opens
  26447. your browser to the moment you get back the verification code.
  26448. The webserver runs on `http://127.0.0.1:53682/`.
  26449. If local port `53682` is protected by a firewall you may need to temporarily
  26450. unblock the firewall to complete authorization.
  26451. Once configured you can then use `rclone` like this,
  26452. List directories in top level of your HiDrive root folder
  26453. rclone lsd remote:
  26454. List all the files in your HiDrive filesystem
  26455. rclone ls remote:
  26456. To copy a local directory to a HiDrive directory called backup
  26457. rclone copy /home/source remote:backup
  26458. ### Keeping your tokens safe
  26459. Any OAuth-tokens will be stored by rclone in the remote's configuration file as unencrypted text.
  26460. Anyone can use a valid refresh-token to access your HiDrive filesystem without knowing your password.
  26461. Therefore you should make sure no one else can access your configuration.
  26462. It is possible to encrypt rclone's configuration file.
  26463. You can find information on securing your configuration file by viewing the [configuration encryption docs](https://rclone.org/docs/#configuration-encryption).
  26464. ### Invalid refresh token
  26465. As can be verified [here](https://developer.hidrive.com/basics-flows/),
  26466. each `refresh_token` (for Native Applications) is valid for 60 days.
  26467. If used to access HiDrivei, its validity will be automatically extended.
  26468. This means that if you
  26469. * Don't use the HiDrive remote for 60 days
  26470. then rclone will return an error which includes a text
  26471. that implies the refresh token is *invalid* or *expired*.
  26472. To fix this you will need to authorize rclone to access your HiDrive account again.
  26473. Using
  26474. rclone config reconnect remote:
  26475. the process is very similar to the process of initial setup exemplified before.
  26476. ### Modification times and hashes
  26477. HiDrive allows modification times to be set on objects accurate to 1 second.
  26478. HiDrive supports [its own hash type](https://static.hidrive.com/dev/0001)
  26479. which is used to verify the integrity of file contents after successful transfers.
  26480. ### Restricted filename characters
  26481. HiDrive cannot store files or folders that include
  26482. `/` (0x2F) or null-bytes (0x00) in their name.
  26483. Any other characters can be used in the names of files or folders.
  26484. Additionally, files or folders cannot be named either of the following: `.` or `..`
  26485. Therefore rclone will automatically replace these characters,
  26486. if files or folders are stored or accessed with such names.
  26487. You can read about how this filename encoding works in general
  26488. [here](overview/#restricted-filenames).
  26489. Keep in mind that HiDrive only supports file or folder names
  26490. with a length of 255 characters or less.
  26491. ### Transfers
  26492. HiDrive limits file sizes per single request to a maximum of 2 GiB.
  26493. To allow storage of larger files and allow for better upload performance,
  26494. the hidrive backend will use a chunked transfer for files larger than 96 MiB.
  26495. Rclone will upload multiple parts/chunks of the file at the same time.
  26496. Chunks in the process of being uploaded are buffered in memory,
  26497. so you may want to restrict this behaviour on systems with limited resources.
  26498. You can customize this behaviour using the following options:
  26499. * `chunk_size`: size of file parts
  26500. * `upload_cutoff`: files larger or equal to this in size will use a chunked transfer
  26501. * `upload_concurrency`: number of file-parts to upload at the same time
  26502. See the below section about configuration options for more details.
  26503. ### Root folder
  26504. You can set the root folder for rclone.
  26505. This is the directory that rclone considers to be the root of your HiDrive.
  26506. Usually, you will leave this blank, and rclone will use the root of the account.
  26507. However, you can set this to restrict rclone to a specific folder hierarchy.
  26508. This works by prepending the contents of the `root_prefix` option
  26509. to any paths accessed by rclone.
  26510. For example, the following two ways to access the home directory are equivalent:
  26511. rclone lsd --hidrive-root-prefix="/users/test/" remote:path
  26512. rclone lsd remote:/users/test/path
  26513. See the below section about configuration options for more details.
  26514. ### Directory member count
  26515. By default, rclone will know the number of directory members contained in a directory.
  26516. For example, `rclone lsd` uses this information.
  26517. The acquisition of this information will result in additional time costs for HiDrive's API.
  26518. When dealing with large directory structures, it may be desirable to circumvent this time cost,
  26519. especially when this information is not explicitly needed.
  26520. For this, the `disable_fetching_member_count` option can be used.
  26521. See the below section about configuration options for more details.
  26522. ### Standard options
  26523. Here are the Standard options specific to hidrive (HiDrive).
  26524. #### --hidrive-client-id
  26525. OAuth Client Id.
  26526. Leave blank normally.
  26527. Properties:
  26528. - Config: client_id
  26529. - Env Var: RCLONE_HIDRIVE_CLIENT_ID
  26530. - Type: string
  26531. - Required: false
  26532. #### --hidrive-client-secret
  26533. OAuth Client Secret.
  26534. Leave blank normally.
  26535. Properties:
  26536. - Config: client_secret
  26537. - Env Var: RCLONE_HIDRIVE_CLIENT_SECRET
  26538. - Type: string
  26539. - Required: false
  26540. #### --hidrive-scope-access
  26541. Access permissions that rclone should use when requesting access from HiDrive.
  26542. Properties:
  26543. - Config: scope_access
  26544. - Env Var: RCLONE_HIDRIVE_SCOPE_ACCESS
  26545. - Type: string
  26546. - Default: "rw"
  26547. - Examples:
  26548. - "rw"
  26549. - Read and write access to resources.
  26550. - "ro"
  26551. - Read-only access to resources.
  26552. ### Advanced options
  26553. Here are the Advanced options specific to hidrive (HiDrive).
  26554. #### --hidrive-token
  26555. OAuth Access Token as a JSON blob.
  26556. Properties:
  26557. - Config: token
  26558. - Env Var: RCLONE_HIDRIVE_TOKEN
  26559. - Type: string
  26560. - Required: false
  26561. #### --hidrive-auth-url
  26562. Auth server URL.
  26563. Leave blank to use the provider defaults.
  26564. Properties:
  26565. - Config: auth_url
  26566. - Env Var: RCLONE_HIDRIVE_AUTH_URL
  26567. - Type: string
  26568. - Required: false
  26569. #### --hidrive-token-url
  26570. Token server url.
  26571. Leave blank to use the provider defaults.
  26572. Properties:
  26573. - Config: token_url
  26574. - Env Var: RCLONE_HIDRIVE_TOKEN_URL
  26575. - Type: string
  26576. - Required: false
  26577. #### --hidrive-scope-role
  26578. User-level that rclone should use when requesting access from HiDrive.
  26579. Properties:
  26580. - Config: scope_role
  26581. - Env Var: RCLONE_HIDRIVE_SCOPE_ROLE
  26582. - Type: string
  26583. - Default: "user"
  26584. - Examples:
  26585. - "user"
  26586. - User-level access to management permissions.
  26587. - This will be sufficient in most cases.
  26588. - "admin"
  26589. - Extensive access to management permissions.
  26590. - "owner"
  26591. - Full access to management permissions.
  26592. #### --hidrive-root-prefix
  26593. The root/parent folder for all paths.
  26594. Fill in to use the specified folder as the parent for all paths given to the remote.
  26595. This way rclone can use any folder as its starting point.
  26596. Properties:
  26597. - Config: root_prefix
  26598. - Env Var: RCLONE_HIDRIVE_ROOT_PREFIX
  26599. - Type: string
  26600. - Default: "/"
  26601. - Examples:
  26602. - "/"
  26603. - The topmost directory accessible by rclone.
  26604. - This will be equivalent with "root" if rclone uses a regular HiDrive user account.
  26605. - "root"
  26606. - The topmost directory of the HiDrive user account
  26607. - ""
  26608. - This specifies that there is no root-prefix for your paths.
  26609. - When using this you will always need to specify paths to this remote with a valid parent e.g. "remote:/path/to/dir" or "remote:root/path/to/dir".
  26610. #### --hidrive-endpoint
  26611. Endpoint for the service.
  26612. This is the URL that API-calls will be made to.
  26613. Properties:
  26614. - Config: endpoint
  26615. - Env Var: RCLONE_HIDRIVE_ENDPOINT
  26616. - Type: string
  26617. - Default: "https://api.hidrive.strato.com/2.1"
  26618. #### --hidrive-disable-fetching-member-count
  26619. Do not fetch number of objects in directories unless it is absolutely necessary.
  26620. Requests may be faster if the number of objects in subdirectories is not fetched.
  26621. Properties:
  26622. - Config: disable_fetching_member_count
  26623. - Env Var: RCLONE_HIDRIVE_DISABLE_FETCHING_MEMBER_COUNT
  26624. - Type: bool
  26625. - Default: false
  26626. #### --hidrive-chunk-size
  26627. Chunksize for chunked uploads.
  26628. Any files larger than the configured cutoff (or files of unknown size) will be uploaded in chunks of this size.
  26629. The upper limit for this is 2147483647 bytes (about 2.000Gi).
  26630. That is the maximum amount of bytes a single upload-operation will support.
  26631. Setting this above the upper limit or to a negative value will cause uploads to fail.
  26632. Setting this to larger values may increase the upload speed at the cost of using more memory.
  26633. It can be set to smaller values smaller to save on memory.
  26634. Properties:
  26635. - Config: chunk_size
  26636. - Env Var: RCLONE_HIDRIVE_CHUNK_SIZE
  26637. - Type: SizeSuffix
  26638. - Default: 48Mi
  26639. #### --hidrive-upload-cutoff
  26640. Cutoff/Threshold for chunked uploads.
  26641. Any files larger than this will be uploaded in chunks of the configured chunksize.
  26642. The upper limit for this is 2147483647 bytes (about 2.000Gi).
  26643. That is the maximum amount of bytes a single upload-operation will support.
  26644. Setting this above the upper limit will cause uploads to fail.
  26645. Properties:
  26646. - Config: upload_cutoff
  26647. - Env Var: RCLONE_HIDRIVE_UPLOAD_CUTOFF
  26648. - Type: SizeSuffix
  26649. - Default: 96Mi
  26650. #### --hidrive-upload-concurrency
  26651. Concurrency for chunked uploads.
  26652. This is the upper limit for how many transfers for the same file are running concurrently.
  26653. Setting this above to a value smaller than 1 will cause uploads to deadlock.
  26654. If you are uploading small numbers of large files over high-speed links
  26655. and these uploads do not fully utilize your bandwidth, then increasing
  26656. this may help to speed up the transfers.
  26657. Properties:
  26658. - Config: upload_concurrency
  26659. - Env Var: RCLONE_HIDRIVE_UPLOAD_CONCURRENCY
  26660. - Type: int
  26661. - Default: 4
  26662. #### --hidrive-encoding
  26663. The encoding for the backend.
  26664. See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
  26665. Properties:
  26666. - Config: encoding
  26667. - Env Var: RCLONE_HIDRIVE_ENCODING
  26668. - Type: Encoding
  26669. - Default: Slash,Dot
  26670. #### --hidrive-description
  26671. Description of the remote
  26672. Properties:
  26673. - Config: description
  26674. - Env Var: RCLONE_HIDRIVE_DESCRIPTION
  26675. - Type: string
  26676. - Required: false
  26677. ## Limitations
  26678. ### Symbolic links
  26679. HiDrive is able to store symbolic links (*symlinks*) by design,
  26680. for example, when unpacked from a zip archive.
  26681. There exists no direct mechanism to manage native symlinks in remotes.
  26682. As such this implementation has chosen to ignore any native symlinks present in the remote.
  26683. rclone will not be able to access or show any symlinks stored in the hidrive-remote.
  26684. This means symlinks cannot be individually removed, copied, or moved,
  26685. except when removing, copying, or moving the parent folder.
  26686. *This does not affect the `.rclonelink`-files
  26687. that rclone uses to encode and store symbolic links.*
  26688. ### Sparse files
  26689. It is possible to store sparse files in HiDrive.
  26690. Note that copying a sparse file will expand the holes
  26691. into null-byte (0x00) regions that will then consume disk space.
  26692. Likewise, when downloading a sparse file,
  26693. the resulting file will have null-byte regions in the place of file holes.
  26694. # HTTP
  26695. The HTTP remote is a read only remote for reading files of a
  26696. webserver. The webserver should provide file listings which rclone
  26697. will read and turn into a remote. This has been tested with common
  26698. webservers such as Apache/Nginx/Caddy and will likely work with file
  26699. listings from most web servers. (If it doesn't then please file an
  26700. issue, or send a pull request!)
  26701. Paths are specified as `remote:` or `remote:path`.
  26702. The `remote:` represents the configured [url](#http-url), and any path following
  26703. it will be resolved relative to this url, according to the URL standard. This
  26704. means with remote url `https://beta.rclone.org/branch` and path `fix`, the
  26705. resolved URL will be `https://beta.rclone.org/branch/fix`, while with path
  26706. `/fix` the resolved URL will be `https://beta.rclone.org/fix` as the absolute
  26707. path is resolved from the root of the domain.
  26708. If the path following the `remote:` ends with `/` it will be assumed to point
  26709. to a directory. If the path does not end with `/`, then a HEAD request is sent
  26710. and the response used to decide if it it is treated as a file or a directory
  26711. (run with `-vv` to see details). When [--http-no-head](#http-no-head) is
  26712. specified, a path without ending `/` is always assumed to be a file. If rclone
  26713. incorrectly assumes the path is a file, the solution is to specify the path with
  26714. ending `/`. When you know the path is a directory, ending it with `/` is always
  26715. better as it avoids the initial HEAD request.
  26716. To just download a single file it is easier to use
  26717. [copyurl](https://rclone.org/commands/rclone_copyurl/).
  26718. ## Configuration
  26719. Here is an example of how to make a remote called `remote`. First
  26720. run:
  26721. rclone config
  26722. This will guide you through an interactive setup process:
  26723. No remotes found, make a new one? n) New remote s) Set configuration
  26724. password q) Quit config n/s/q> n name> remote Type of storage to
  26725. configure. Choose a number from below, or type in your own value [snip]
  26726. XX / HTTP  "http" [snip] Storage> http URL of http host to connect to
  26727. Choose a number from below, or type in your own value 1 / Connect to
  26728. example.com  "https://example.com" url> https://beta.rclone.org Remote
  26729. config -------------------- [remote] url = https://beta.rclone.org
  26730. -------------------- y) Yes this is OK e) Edit this remote d) Delete
  26731. this remote y/e/d> y Current remotes:
  26732. Name Type ==== ==== remote http
  26733. e) Edit existing remote
  26734. f) New remote
  26735. g) Delete remote
  26736. h) Rename remote
  26737. i) Copy remote
  26738. j) Set configuration password
  26739. k) Quit config e/n/d/r/c/s/q> q
  26740. This remote is called `remote` and can now be used like this
  26741. See all the top level directories
  26742. rclone lsd remote:
  26743. List the contents of a directory
  26744. rclone ls remote:directory
  26745. Sync the remote `directory` to `/home/local/directory`, deleting any excess files.
  26746. rclone sync --interactive remote:directory /home/local/directory
  26747. ### Read only
  26748. This remote is read only - you can't upload files to an HTTP server.
  26749. ### Modification times
  26750. Most HTTP servers store time accurate to 1 second.
  26751. ### Checksum
  26752. No checksums are stored.
  26753. ### Usage without a config file
  26754. Since the http remote only has one config parameter it is easy to use
  26755. without a config file:
  26756. rclone lsd --http-url https://beta.rclone.org :http:
  26757. or:
  26758. rclone lsd :http,url='https://beta.rclone.org':
  26759. ### Standard options
  26760. Here are the Standard options specific to http (HTTP).
  26761. #### --http-url
  26762. URL of HTTP host to connect to.
  26763. E.g. "https://example.com", or "https://user:pass@example.com" to use a username and password.
  26764. Properties:
  26765. - Config: url
  26766. - Env Var: RCLONE_HTTP_URL
  26767. - Type: string
  26768. - Required: true
  26769. ### Advanced options
  26770. Here are the Advanced options specific to http (HTTP).
  26771. #### --http-headers
  26772. Set HTTP headers for all transactions.
  26773. Use this to set additional HTTP headers for all transactions.
  26774. The input format is comma separated list of key,value pairs. Standard
  26775. [CSV encoding](https://godoc.org/encoding/csv) may be used.
  26776. For example, to set a Cookie use 'Cookie,name=value', or '"Cookie","name=value"'.
  26777. You can set multiple headers, e.g. '"Cookie","name=value","Authorization","xxx"'.
  26778. Properties:
  26779. - Config: headers
  26780. - Env Var: RCLONE_HTTP_HEADERS
  26781. - Type: CommaSepList
  26782. - Default:
  26783. #### --http-no-slash
  26784. Set this if the site doesn't end directories with /.
  26785. Use this if your target website does not use / on the end of
  26786. directories.
  26787. A / on the end of a path is how rclone normally tells the difference
  26788. between files and directories. If this flag is set, then rclone will
  26789. treat all files with Content-Type: text/html as directories and read
  26790. URLs from them rather than downloading them.
  26791. Note that this may cause rclone to confuse genuine HTML files with
  26792. directories.
  26793. Properties:
  26794. - Config: no_slash
  26795. - Env Var: RCLONE_HTTP_NO_SLASH
  26796. - Type: bool
  26797. - Default: false
  26798. #### --http-no-head
  26799. Don't use HEAD requests.
  26800. HEAD requests are mainly used to find file sizes in dir listing.
  26801. If your site is being very slow to load then you can try this option.
  26802. Normally rclone does a HEAD request for each potential file in a
  26803. directory listing to:
  26804. - find its size
  26805. - check it really exists
  26806. - check to see if it is a directory
  26807. If you set this option, rclone will not do the HEAD request. This will mean
  26808. that directory listings are much quicker, but rclone won't have the times or
  26809. sizes of any files, and some files that don't exist may be in the listing.
  26810. Properties:
  26811. - Config: no_head
  26812. - Env Var: RCLONE_HTTP_NO_HEAD
  26813. - Type: bool
  26814. - Default: false
  26815. #### --http-description
  26816. Description of the remote
  26817. Properties:
  26818. - Config: description
  26819. - Env Var: RCLONE_HTTP_DESCRIPTION
  26820. - Type: string
  26821. - Required: false
  26822. ## Backend commands
  26823. Here are the commands specific to the http backend.
  26824. Run them with
  26825. rclone backend COMMAND remote:
  26826. The help below will explain what arguments each command takes.
  26827. See the [backend](https://rclone.org/commands/rclone_backend/) command for more
  26828. info on how to pass options and arguments.
  26829. These can be run on a running backend using the rc command
  26830. [backend/command](https://rclone.org/rc/#backend-command).
  26831. ### set
  26832. Set command for updating the config parameters.
  26833. rclone backend set remote: [options] [<arguments>+]
  26834. This set command can be used to update the config parameters
  26835. for a running http backend.
  26836. Usage Examples:
  26837. rclone backend set remote: [-o opt_name=opt_value] [-o opt_name2=opt_value2]
  26838. rclone rc backend/command command=set fs=remote: [-o opt_name=opt_value] [-o opt_name2=opt_value2]
  26839. rclone rc backend/command command=set fs=remote: -o url=https://example.com
  26840. The option keys are named as they are in the config file.
  26841. This rebuilds the connection to the http backend when it is called with
  26842. the new parameters. Only new parameters need be passed as the values
  26843. will default to those currently in use.
  26844. It doesn't return anything.
  26845. ## Limitations
  26846. `rclone about` is not supported by the HTTP backend. Backends without
  26847. this capability cannot determine free space for an rclone mount or
  26848. use policy `mfs` (most free space) as a member of an rclone union
  26849. remote.
  26850. See [List of backends that do not support rclone about](https://rclone.org/overview/#optional-features) and [rclone about](https://rclone.org/commands/rclone_about/)
  26851. # ImageKit
  26852. This is a backend for the [ImageKit.io](https://imagekit.io/) storage service.
  26853. #### About ImageKit
  26854. [ImageKit.io](https://imagekit.io/) provides real-time image and video optimizations, transformations, and CDN delivery. Over 1,000 businesses and 70,000 developers trust ImageKit with their images and videos on the web.
  26855. #### Accounts & Pricing
  26856. To use this backend, you need to [create an account](https://imagekit.io/registration/) on ImageKit. Start with a free plan with generous usage limits. Then, as your requirements grow, upgrade to a plan that best fits your needs. See [the pricing details](https://imagekit.io/plans).
  26857. ## Configuration
  26858. Here is an example of making an imagekit configuration.
  26859. Firstly create a [ImageKit.io](https://imagekit.io/) account and choose a plan.
  26860. You will need to log in and get the `publicKey` and `privateKey` for your account from the developer section.
  26861. Now run
  26862. rclone config
  26863. This will guide you through an interactive setup process:
  26864. No remotes found, make a new one? n) New remote s) Set configuration
  26865. password q) Quit config n/s/q> n
  26866. Enter the name for the new remote. name> imagekit-media-library
  26867. Option Storage. Type of storage to configure. Choose a number from
  26868. below, or type in your own value. [snip] XX / ImageKit.io  (imagekit)
  26869. [snip] Storage> imagekit
  26870. Option endpoint. You can find your ImageKit.io URL endpoint in your
  26871. dashboard Enter a value. endpoint> https://ik.imagekit.io/imagekit_id
  26872. Option public_key. You can find your ImageKit.io public key in your
  26873. dashboard Enter a value. public_key> public_****************************
  26874. Option private_key. You can find your ImageKit.io private key in your
  26875. dashboard Enter a value. private_key>
  26876. private_****************************
  26877. Edit advanced config? y) Yes n) No (default) y/n> n
  26878. Configuration complete. Options: - type: imagekit - endpoint:
  26879. https://ik.imagekit.io/imagekit_id - public_key:
  26880. public_**************************** - private_key:
  26881. private_****************************
  26882. Keep this "imagekit-media-library" remote? y) Yes this is OK (default)
  26883. e) Edit this remote d) Delete this remote y/e/d> y
  26884. List directories in the top level of your Media Library
  26885. rclone lsd imagekit-media-library:
  26886. Make a new directory.
  26887. rclone mkdir imagekit-media-library:directory
  26888. List the contents of a directory.
  26889. rclone ls imagekit-media-library:directory
  26890. ### Modified time and hashes
  26891. ImageKit does not support modification times or hashes yet.
  26892. ### Checksums
  26893. No checksums are supported.
  26894. ### Standard options
  26895. Here are the Standard options specific to imagekit (ImageKit.io).
  26896. #### --imagekit-endpoint
  26897. You can find your ImageKit.io URL endpoint in your [dashboard](https://imagekit.io/dashboard/developer/api-keys)
  26898. Properties:
  26899. - Config: endpoint
  26900. - Env Var: RCLONE_IMAGEKIT_ENDPOINT
  26901. - Type: string
  26902. - Required: true
  26903. #### --imagekit-public-key
  26904. You can find your ImageKit.io public key in your [dashboard](https://imagekit.io/dashboard/developer/api-keys)
  26905. Properties:
  26906. - Config: public_key
  26907. - Env Var: RCLONE_IMAGEKIT_PUBLIC_KEY
  26908. - Type: string
  26909. - Required: true
  26910. #### --imagekit-private-key
  26911. You can find your ImageKit.io private key in your [dashboard](https://imagekit.io/dashboard/developer/api-keys)
  26912. Properties:
  26913. - Config: private_key
  26914. - Env Var: RCLONE_IMAGEKIT_PRIVATE_KEY
  26915. - Type: string
  26916. - Required: true
  26917. ### Advanced options
  26918. Here are the Advanced options specific to imagekit (ImageKit.io).
  26919. #### --imagekit-only-signed
  26920. If you have configured `Restrict unsigned image URLs` in your dashboard settings, set this to true.
  26921. Properties:
  26922. - Config: only_signed
  26923. - Env Var: RCLONE_IMAGEKIT_ONLY_SIGNED
  26924. - Type: bool
  26925. - Default: false
  26926. #### --imagekit-versions
  26927. Include old versions in directory listings.
  26928. Properties:
  26929. - Config: versions
  26930. - Env Var: RCLONE_IMAGEKIT_VERSIONS
  26931. - Type: bool
  26932. - Default: false
  26933. #### --imagekit-upload-tags
  26934. Tags to add to the uploaded files, e.g. "tag1,tag2".
  26935. Properties:
  26936. - Config: upload_tags
  26937. - Env Var: RCLONE_IMAGEKIT_UPLOAD_TAGS
  26938. - Type: string
  26939. - Required: false
  26940. #### --imagekit-encoding
  26941. The encoding for the backend.
  26942. See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
  26943. Properties:
  26944. - Config: encoding
  26945. - Env Var: RCLONE_IMAGEKIT_ENCODING
  26946. - Type: Encoding
  26947. - Default: Slash,LtGt,DoubleQuote,Dollar,Question,Hash,Percent,BackSlash,Del,Ctl,InvalidUtf8,Dot,SquareBracket
  26948. #### --imagekit-description
  26949. Description of the remote
  26950. Properties:
  26951. - Config: description
  26952. - Env Var: RCLONE_IMAGEKIT_DESCRIPTION
  26953. - Type: string
  26954. - Required: false
  26955. ### Metadata
  26956. Any metadata supported by the underlying remote is read and written.
  26957. Here are the possible system metadata items for the imagekit backend.
  26958. | Name | Help | Type | Example | Read Only |
  26959. |------|------|------|---------|-----------|
  26960. | aws-tags | AI generated tags by AWS Rekognition associated with the image | string | tag1,tag2 | **Y** |
  26961. | btime | Time of file birth (creation) read from Last-Modified header | RFC 3339 | 2006-01-02T15:04:05.999999999Z07:00 | **Y** |
  26962. | custom-coordinates | Custom coordinates of the file | string | 0,0,100,100 | **Y** |
  26963. | file-type | Type of the file | string | image | **Y** |
  26964. | google-tags | AI generated tags by Google Cloud Vision associated with the image | string | tag1,tag2 | **Y** |
  26965. | has-alpha | Whether the image has alpha channel or not | bool | | **Y** |
  26966. | height | Height of the image or video in pixels | int | | **Y** |
  26967. | is-private-file | Whether the file is private or not | bool | | **Y** |
  26968. | size | Size of the object in bytes | int64 | | **Y** |
  26969. | tags | Tags associated with the file | string | tag1,tag2 | **Y** |
  26970. | width | Width of the image or video in pixels | int | | **Y** |
  26971. See the [metadata](https://rclone.org/docs/#metadata) docs for more info.
  26972. # Internet Archive
  26973. The Internet Archive backend utilizes Items on [archive.org](https://archive.org/)
  26974. Refer to [IAS3 API documentation](https://archive.org/services/docs/api/ias3.html) for the API this backend uses.
  26975. Paths are specified as `remote:bucket` (or `remote:` for the `lsd`
  26976. command.) You may put subdirectories in too, e.g. `remote:item/path/to/dir`.
  26977. Unlike S3, listing up all items uploaded by you isn't supported.
  26978. Once you have made a remote, you can use it like this:
  26979. Make a new item
  26980. rclone mkdir remote:item
  26981. List the contents of a item
  26982. rclone ls remote:item
  26983. Sync `/home/local/directory` to the remote item, deleting any excess
  26984. files in the item.
  26985. rclone sync --interactive /home/local/directory remote:item
  26986. ## Notes
  26987. Because of Internet Archive's architecture, it enqueues write operations (and extra post-processings) in a per-item queue. You can check item's queue at https://catalogd.archive.org/history/item-name-here . Because of that, all uploads/deletes will not show up immediately and takes some time to be available.
  26988. The per-item queue is enqueued to an another queue, Item Deriver Queue. [You can check the status of Item Deriver Queue here.](https://catalogd.archive.org/catalog.php?whereami=1) This queue has a limit, and it may block you from uploading, or even deleting. You should avoid uploading a lot of small files for better behavior.
  26989. You can optionally wait for the server's processing to finish, by setting non-zero value to `wait_archive` key.
  26990. By making it wait, rclone can do normal file comparison.
  26991. Make sure to set a large enough value (e.g. `30m0s` for smaller files) as it can take a long time depending on server's queue.
  26992. ## About metadata
  26993. This backend supports setting, updating and reading metadata of each file.
  26994. The metadata will appear as file metadata on Internet Archive.
  26995. However, some fields are reserved by both Internet Archive and rclone.
  26996. The following are reserved by Internet Archive:
  26997. - `name`
  26998. - `source`
  26999. - `size`
  27000. - `md5`
  27001. - `crc32`
  27002. - `sha1`
  27003. - `format`
  27004. - `old_version`
  27005. - `viruscheck`
  27006. - `summation`
  27007. Trying to set values to these keys is ignored with a warning.
  27008. Only setting `mtime` is an exception. Doing so make it the identical behavior as setting ModTime.
  27009. rclone reserves all the keys starting with `rclone-`. Setting value for these keys will give you warnings, but values are set according to request.
  27010. If there are multiple values for a key, only the first one is returned.
  27011. This is a limitation of rclone, that supports one value per one key.
  27012. It can be triggered when you did a server-side copy.
  27013. Reading metadata will also provide custom (non-standard nor reserved) ones.
  27014. ## Filtering auto generated files
  27015. The Internet Archive automatically creates metadata files after
  27016. upload. These can cause problems when doing an `rclone sync` as rclone
  27017. will try, and fail, to delete them. These metadata files are not
  27018. changeable, as they are created by the Internet Archive automatically.
  27019. These auto-created files can be excluded from the sync using [metadata
  27020. filtering](https://rclone.org/filtering/#metadata).
  27021. rclone sync ... --metadata-exclude "source=metadata" --metadata-exclude "format=Metadata"
  27022. Which excludes from the sync any files which have the
  27023. `source=metadata` or `format=Metadata` flags which are added to
  27024. Internet Archive auto-created files.
  27025. ## Configuration
  27026. Here is an example of making an internetarchive configuration.
  27027. Most applies to the other providers as well, any differences are described [below](#providers).
  27028. First run
  27029. rclone config
  27030. This will guide you through an interactive setup process.
  27031. No remotes found, make a new one? n) New remote s) Set configuration
  27032. password q) Quit config n/s/q> n name> remote Option Storage. Type of
  27033. storage to configure. Choose a number from below, or type in your own
  27034. value. XX / InternetArchive Items  (internetarchive) Storage>
  27035. internetarchive Option access_key_id. IAS3 Access Key. Leave blank for
  27036. anonymous access. You can find one here:
  27037. https://archive.org/account/s3.php Enter a value. Press Enter to leave
  27038. empty. access_key_id> XXXX Option secret_access_key. IAS3 Secret Key
  27039. (password). Leave blank for anonymous access. Enter a value. Press Enter
  27040. to leave empty. secret_access_key> XXXX Edit advanced config? y) Yes n)
  27041. No (default) y/n> y Option endpoint. IAS3 Endpoint. Leave blank for
  27042. default value. Enter a string value. Press Enter for the default
  27043. (https://s3.us.archive.org). endpoint> Option front_endpoint. Host of
  27044. InternetArchive Frontend. Leave blank for default value. Enter a string
  27045. value. Press Enter for the default (https://archive.org).
  27046. front_endpoint> Option disable_checksum. Don't store MD5 checksum with
  27047. object metadata. Normally rclone will calculate the MD5 checksum of the
  27048. input before uploading it so it can ask the server to check the object
  27049. against checksum. This is great for data integrity checking but can
  27050. cause long delays for large files to start uploading. Enter a boolean
  27051. value (true or false). Press Enter for the default (true).
  27052. disable_checksum> true Option encoding. The encoding for the backend.
  27053. See the encoding section in the overview for more info. Enter a
  27054. encoder.MultiEncoder value. Press Enter for the default
  27055. (Slash,Question,Hash,Percent,Del,Ctl,InvalidUtf8,Dot). encoding> Edit
  27056. advanced config? y) Yes n) No (default) y/n> n --------------------
  27057. [remote] type = internetarchive access_key_id = XXXX secret_access_key =
  27058. XXXX -------------------- y) Yes this is OK (default) e) Edit this
  27059. remote d) Delete this remote y/e/d> y
  27060. ### Standard options
  27061. Here are the Standard options specific to internetarchive (Internet Archive).
  27062. #### --internetarchive-access-key-id
  27063. IAS3 Access Key.
  27064. Leave blank for anonymous access.
  27065. You can find one here: https://archive.org/account/s3.php
  27066. Properties:
  27067. - Config: access_key_id
  27068. - Env Var: RCLONE_INTERNETARCHIVE_ACCESS_KEY_ID
  27069. - Type: string
  27070. - Required: false
  27071. #### --internetarchive-secret-access-key
  27072. IAS3 Secret Key (password).
  27073. Leave blank for anonymous access.
  27074. Properties:
  27075. - Config: secret_access_key
  27076. - Env Var: RCLONE_INTERNETARCHIVE_SECRET_ACCESS_KEY
  27077. - Type: string
  27078. - Required: false
  27079. ### Advanced options
  27080. Here are the Advanced options specific to internetarchive (Internet Archive).
  27081. #### --internetarchive-endpoint
  27082. IAS3 Endpoint.
  27083. Leave blank for default value.
  27084. Properties:
  27085. - Config: endpoint
  27086. - Env Var: RCLONE_INTERNETARCHIVE_ENDPOINT
  27087. - Type: string
  27088. - Default: "https://s3.us.archive.org"
  27089. #### --internetarchive-front-endpoint
  27090. Host of InternetArchive Frontend.
  27091. Leave blank for default value.
  27092. Properties:
  27093. - Config: front_endpoint
  27094. - Env Var: RCLONE_INTERNETARCHIVE_FRONT_ENDPOINT
  27095. - Type: string
  27096. - Default: "https://archive.org"
  27097. #### --internetarchive-disable-checksum
  27098. Don't ask the server to test against MD5 checksum calculated by rclone.
  27099. Normally rclone will calculate the MD5 checksum of the input before
  27100. uploading it so it can ask the server to check the object against checksum.
  27101. This is great for data integrity checking but can cause long delays for
  27102. large files to start uploading.
  27103. Properties:
  27104. - Config: disable_checksum
  27105. - Env Var: RCLONE_INTERNETARCHIVE_DISABLE_CHECKSUM
  27106. - Type: bool
  27107. - Default: true
  27108. #### --internetarchive-wait-archive
  27109. Timeout for waiting the server's processing tasks (specifically archive and book_op) to finish.
  27110. Only enable if you need to be guaranteed to be reflected after write operations.
  27111. 0 to disable waiting. No errors to be thrown in case of timeout.
  27112. Properties:
  27113. - Config: wait_archive
  27114. - Env Var: RCLONE_INTERNETARCHIVE_WAIT_ARCHIVE
  27115. - Type: Duration
  27116. - Default: 0s
  27117. #### --internetarchive-encoding
  27118. The encoding for the backend.
  27119. See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
  27120. Properties:
  27121. - Config: encoding
  27122. - Env Var: RCLONE_INTERNETARCHIVE_ENCODING
  27123. - Type: Encoding
  27124. - Default: Slash,LtGt,CrLf,Del,Ctl,InvalidUtf8,Dot
  27125. #### --internetarchive-description
  27126. Description of the remote
  27127. Properties:
  27128. - Config: description
  27129. - Env Var: RCLONE_INTERNETARCHIVE_DESCRIPTION
  27130. - Type: string
  27131. - Required: false
  27132. ### Metadata
  27133. Metadata fields provided by Internet Archive.
  27134. If there are multiple values for a key, only the first one is returned.
  27135. This is a limitation of Rclone, that supports one value per one key.
  27136. Owner is able to add custom keys. Metadata feature grabs all the keys including them.
  27137. Here are the possible system metadata items for the internetarchive backend.
  27138. | Name | Help | Type | Example | Read Only |
  27139. |------|------|------|---------|-----------|
  27140. | crc32 | CRC32 calculated by Internet Archive | string | 01234567 | **Y** |
  27141. | format | Name of format identified by Internet Archive | string | Comma-Separated Values | **Y** |
  27142. | md5 | MD5 hash calculated by Internet Archive | string | 01234567012345670123456701234567 | **Y** |
  27143. | mtime | Time of last modification, managed by Rclone | RFC 3339 | 2006-01-02T15:04:05.999999999Z | **Y** |
  27144. | name | Full file path, without the bucket part | filename | backend/internetarchive/internetarchive.go | **Y** |
  27145. | old_version | Whether the file was replaced and moved by keep-old-version flag | boolean | true | **Y** |
  27146. | rclone-ia-mtime | Time of last modification, managed by Internet Archive | RFC 3339 | 2006-01-02T15:04:05.999999999Z | N |
  27147. | rclone-mtime | Time of last modification, managed by Rclone | RFC 3339 | 2006-01-02T15:04:05.999999999Z | N |
  27148. | rclone-update-track | Random value used by Rclone for tracking changes inside Internet Archive | string | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | N |
  27149. | sha1 | SHA1 hash calculated by Internet Archive | string | 0123456701234567012345670123456701234567 | **Y** |
  27150. | size | File size in bytes | decimal number | 123456 | **Y** |
  27151. | source | The source of the file | string | original | **Y** |
  27152. | summation | Check https://forum.rclone.org/t/31922 for how it is used | string | md5 | **Y** |
  27153. | viruscheck | The last time viruscheck process was run for the file (?) | unixtime | 1654191352 | **Y** |
  27154. See the [metadata](https://rclone.org/docs/#metadata) docs for more info.
  27155. # Jottacloud
  27156. Jottacloud is a cloud storage service provider from a Norwegian company, using its own datacenters
  27157. in Norway. In addition to the official service at [jottacloud.com](https://www.jottacloud.com/),
  27158. it also provides white-label solutions to different companies, such as:
  27159. * Telia
  27160. * Telia Cloud (cloud.telia.se)
  27161. * Telia Sky (sky.telia.no)
  27162. * Tele2
  27163. * Tele2 Cloud (mittcloud.tele2.se)
  27164. * Onlime
  27165. * Onlime Cloud Storage (onlime.dk)
  27166. * Elkjøp (with subsidiaries):
  27167. * Elkjøp Cloud (cloud.elkjop.no)
  27168. * Elgiganten Sweden (cloud.elgiganten.se)
  27169. * Elgiganten Denmark (cloud.elgiganten.dk)
  27170. * Giganti Cloud (cloud.gigantti.fi)
  27171. * ELKO Cloud (cloud.elko.is)
  27172. Most of the white-label versions are supported by this backend, although may require different
  27173. authentication setup - described below.
  27174. Paths are specified as `remote:path`
  27175. Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
  27176. ## Authentication types
  27177. Some of the whitelabel versions uses a different authentication method than the official service,
  27178. and you have to choose the correct one when setting up the remote.
  27179. ### Standard authentication
  27180. The standard authentication method used by the official service (jottacloud.com), as well as
  27181. some of the whitelabel services, requires you to generate a single-use personal login token
  27182. from the account security settings in the service's web interface. Log in to your account,
  27183. go to "Settings" and then "Security", or use the direct link presented to you by rclone when
  27184. configuring the remote: <https://www.jottacloud.com/web/secure>. Scroll down to the section
  27185. "Personal login token", and click the "Generate" button. Note that if you are using a
  27186. whitelabel service you probably can't use the direct link, you need to find the same page in
  27187. their dedicated web interface, and also it may be in a different location than described above.
  27188. To access your account from multiple instances of rclone, you need to configure each of them
  27189. with a separate personal login token. E.g. you create a Jottacloud remote with rclone in one
  27190. location, and copy the configuration file to a second location where you also want to run
  27191. rclone and access the same remote. Then you need to replace the token for one of them, using
  27192. the [config reconnect](https://rclone.org/commands/rclone_config_reconnect/) command, which
  27193. requires you to generate a new personal login token and supply as input. If you do not
  27194. do this, the token may easily end up being invalidated, resulting in both instances failing
  27195. with an error message something along the lines of:
  27196. oauth2: cannot fetch token: 400 Bad Request
  27197. Response: {"error":"invalid_grant","error_description":"Stale token"}
  27198. When this happens, you need to replace the token as described above to be able to use your
  27199. remote again.
  27200. All personal login tokens you have taken into use will be listed in the web interface under
  27201. "My logged in devices", and from the right side of that list you can click the "X" button to
  27202. revoke individual tokens.
  27203. ### Legacy authentication
  27204. If you are using one of the whitelabel versions (e.g. from Elkjøp) you may not have the option
  27205. to generate a CLI token. In this case you'll have to use the legacy authentication. To do this select
  27206. yes when the setup asks for legacy authentication and enter your username and password.
  27207. The rest of the setup is identical to the default setup.
  27208. ### Telia Cloud authentication
  27209. Similar to other whitelabel versions Telia Cloud doesn't offer the option of creating a CLI token, and
  27210. additionally uses a separate authentication flow where the username is generated internally. To setup
  27211. rclone to use Telia Cloud, choose Telia Cloud authentication in the setup. The rest of the setup is
  27212. identical to the default setup.
  27213. ### Tele2 Cloud authentication
  27214. As Tele2-Com Hem merger was completed this authentication can be used for former Com Hem Cloud and
  27215. Tele2 Cloud customers as no support for creating a CLI token exists, and additionally uses a separate
  27216. authentication flow where the username is generated internally. To setup rclone to use Tele2 Cloud,
  27217. choose Tele2 Cloud authentication in the setup. The rest of the setup is identical to the default setup.
  27218. ### Onlime Cloud Storage authentication
  27219. Onlime has sold access to Jottacloud proper, while providing localized support to Danish Customers, but
  27220. have recently set up their own hosting, transferring their customers from Jottacloud servers to their
  27221. own ones.
  27222. This, of course, necessitates using their servers for authentication, but otherwise functionality and
  27223. architecture seems equivalent to Jottacloud.
  27224. To setup rclone to use Onlime Cloud Storage, choose Onlime Cloud authentication in the setup. The rest
  27225. of the setup is identical to the default setup.
  27226. ## Configuration
  27227. Here is an example of how to make a remote called `remote` with the default setup. First run:
  27228. rclone config
  27229. This will guide you through an interactive setup process:
  27230. No remotes found, make a new one? n) New remote s) Set configuration
  27231. password q) Quit config n/s/q> n name> remote Option Storage. Type of
  27232. storage to configure. Choose a number from below, or type in your own
  27233. value. [snip] XX / Jottacloud  (jottacloud) [snip] Storage> jottacloud
  27234. Edit advanced config? y) Yes n) No (default) y/n> n Option config_type.
  27235. Select authentication type. Choose a number from below, or type in an
  27236. existing string value. Press Enter for the default (standard). /
  27237. Standard authentication. 1 | Use this if you're a normal Jottacloud
  27238. user.  (standard) / Legacy authentication. 2 | This is only required for
  27239. certain whitelabel versions of Jottacloud and not recommended for normal
  27240. users.  (legacy) / Telia Cloud authentication. 3 | Use this if you are
  27241. using Telia Cloud.  (telia) / Tele2 Cloud authentication. 4 | Use this
  27242. if you are using Tele2 Cloud.  (tele2) / Onlime Cloud authentication. 5
  27243. | Use this if you are using Onlime Cloud.  (onlime) config_type> 1
  27244. Personal login token. Generate here:
  27245. https://www.jottacloud.com/web/secure Login Token> Use a non-standard
  27246. device/mountpoint? Choosing no, the default, will let you access the
  27247. storage used for the archive section of the official Jottacloud client.
  27248. If you instead want to access the sync or the backup section, for
  27249. example, you must choose yes. y) Yes n) No (default) y/n> y Option
  27250. config_device. The device to use. In standard setup the built-in Jotta
  27251. device is used, which contains predefined mountpoints for archive, sync
  27252. etc. All other devices are treated as backup devices by the official
  27253. Jottacloud client. You may create a new by entering a unique name.
  27254. Choose a number from below, or type in your own string value. Press
  27255. Enter for the default (DESKTOP-3H31129). 1 > DESKTOP-3H31129 2 > Jotta
  27256. config_device> 2 Option config_mountpoint. The mountpoint to use for the
  27257. built-in device Jotta. The standard setup is to use the Archive
  27258. mountpoint. Most other mountpoints have very limited support in rclone
  27259. and should generally be avoided. Choose a number from below, or type in
  27260. an existing string value. Press Enter for the default (Archive). 1 >
  27261. Archive 2 > Shared 3 > Sync config_mountpoint> 1 --------------------
  27262. [remote] type = jottacloud configVersion = 1 client_id = jottacli
  27263. client_secret = tokenURL =
  27264. https://id.jottacloud.com/auth/realms/jottacloud/protocol/openid-connect/token
  27265. token = {........} username = 2940e57271a93d987d6f8a21 device = Jotta
  27266. mountpoint = Archive -------------------- y) Yes this is OK (default) e)
  27267. Edit this remote d) Delete this remote y/e/d> y
  27268. Once configured you can then use `rclone` like this,
  27269. List directories in top level of your Jottacloud
  27270. rclone lsd remote:
  27271. List all the files in your Jottacloud
  27272. rclone ls remote:
  27273. To copy a local directory to an Jottacloud directory called backup
  27274. rclone copy /home/source remote:backup
  27275. ### Devices and Mountpoints
  27276. The official Jottacloud client registers a device for each computer you install
  27277. it on, and shows them in the backup section of the user interface. For each
  27278. folder you select for backup it will create a mountpoint within this device.
  27279. A built-in device called Jotta is special, and contains mountpoints Archive,
  27280. Sync and some others, used for corresponding features in official clients.
  27281. With rclone you'll want to use the standard Jotta/Archive device/mountpoint in
  27282. most cases. However, you may for example want to access files from the sync or
  27283. backup functionality provided by the official clients, and rclone therefore
  27284. provides the option to select other devices and mountpoints during config.
  27285. You are allowed to create new devices and mountpoints. All devices except the
  27286. built-in Jotta device are treated as backup devices by official Jottacloud
  27287. clients, and the mountpoints on them are individual backup sets.
  27288. With the built-in Jotta device, only existing, built-in, mountpoints can be
  27289. selected. In addition to the mentioned Archive and Sync, it may contain
  27290. several other mountpoints such as: Latest, Links, Shared and Trash. All of
  27291. these are special mountpoints with a different internal representation than
  27292. the "regular" mountpoints. Rclone will only to a very limited degree support
  27293. them. Generally you should avoid these, unless you know what you are doing.
  27294. ### --fast-list
  27295. This backend supports `--fast-list` which allows you to use fewer
  27296. transactions in exchange for more memory. See the [rclone
  27297. docs](https://rclone.org/docs/#fast-list) for more details.
  27298. Note that the implementation in Jottacloud always uses only a single
  27299. API request to get the entire list, so for large folders this could
  27300. lead to long wait time before the first results are shown.
  27301. Note also that with rclone version 1.58 and newer, information about
  27302. [MIME types](https://rclone.org/overview/#mime-type) and metadata item [utime](#metadata)
  27303. are not available when using `--fast-list`.
  27304. ### Modification times and hashes
  27305. Jottacloud allows modification times to be set on objects accurate to 1
  27306. second. These will be used to detect whether objects need syncing or
  27307. not.
  27308. Jottacloud supports MD5 type hashes, so you can use the `--checksum`
  27309. flag.
  27310. Note that Jottacloud requires the MD5 hash before upload so if the
  27311. source does not have an MD5 checksum then the file will be cached
  27312. temporarily on disk (in location given by
  27313. [--temp-dir](https://rclone.org/docs/#temp-dir-dir)) before it is uploaded.
  27314. Small files will be cached in memory - see the
  27315. [--jottacloud-md5-memory-limit](#jottacloud-md5-memory-limit) flag.
  27316. When uploading from local disk the source checksum is always available,
  27317. so this does not apply. Starting with rclone version 1.52 the same is
  27318. true for encrypted remotes (in older versions the crypt backend would not
  27319. calculate hashes for uploads from local disk, so the Jottacloud
  27320. backend had to do it as described above).
  27321. ### Restricted filename characters
  27322. In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
  27323. the following characters are also replaced:
  27324. | Character | Value | Replacement |
  27325. | --------- |:-----:|:-----------:|
  27326. | " | 0x22 | " |
  27327. | * | 0x2A | * |
  27328. | : | 0x3A | : |
  27329. | < | 0x3C | < |
  27330. | > | 0x3E | > |
  27331. | ? | 0x3F | ? |
  27332. | \| | 0x7C | | |
  27333. Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
  27334. as they can't be used in XML strings.
  27335. ### Deleting files
  27336. By default, rclone will send all files to the trash when deleting files. They will be permanently
  27337. deleted automatically after 30 days. You may bypass the trash and permanently delete files immediately
  27338. by using the [--jottacloud-hard-delete](#jottacloud-hard-delete) flag, or set the equivalent environment variable.
  27339. Emptying the trash is supported by the [cleanup](https://rclone.org/commands/rclone_cleanup/) command.
  27340. ### Versions
  27341. Jottacloud supports file versioning. When rclone uploads a new version of a file it creates a new version of it.
  27342. Currently rclone only supports retrieving the current version but older versions can be accessed via the Jottacloud Website.
  27343. Versioning can be disabled by `--jottacloud-no-versions` option. This is achieved by deleting the remote file prior to uploading
  27344. a new version. If the upload the fails no version of the file will be available in the remote.
  27345. ### Quota information
  27346. To view your current quota you can use the `rclone about remote:`
  27347. command which will display your usage limit (unless it is unlimited)
  27348. and the current usage.
  27349. ### Standard options
  27350. Here are the Standard options specific to jottacloud (Jottacloud).
  27351. #### --jottacloud-client-id
  27352. OAuth Client Id.
  27353. Leave blank normally.
  27354. Properties:
  27355. - Config: client_id
  27356. - Env Var: RCLONE_JOTTACLOUD_CLIENT_ID
  27357. - Type: string
  27358. - Required: false
  27359. #### --jottacloud-client-secret
  27360. OAuth Client Secret.
  27361. Leave blank normally.
  27362. Properties:
  27363. - Config: client_secret
  27364. - Env Var: RCLONE_JOTTACLOUD_CLIENT_SECRET
  27365. - Type: string
  27366. - Required: false
  27367. ### Advanced options
  27368. Here are the Advanced options specific to jottacloud (Jottacloud).
  27369. #### --jottacloud-token
  27370. OAuth Access Token as a JSON blob.
  27371. Properties:
  27372. - Config: token
  27373. - Env Var: RCLONE_JOTTACLOUD_TOKEN
  27374. - Type: string
  27375. - Required: false
  27376. #### --jottacloud-auth-url
  27377. Auth server URL.
  27378. Leave blank to use the provider defaults.
  27379. Properties:
  27380. - Config: auth_url
  27381. - Env Var: RCLONE_JOTTACLOUD_AUTH_URL
  27382. - Type: string
  27383. - Required: false
  27384. #### --jottacloud-token-url
  27385. Token server url.
  27386. Leave blank to use the provider defaults.
  27387. Properties:
  27388. - Config: token_url
  27389. - Env Var: RCLONE_JOTTACLOUD_TOKEN_URL
  27390. - Type: string
  27391. - Required: false
  27392. #### --jottacloud-md5-memory-limit
  27393. Files bigger than this will be cached on disk to calculate the MD5 if required.
  27394. Properties:
  27395. - Config: md5_memory_limit
  27396. - Env Var: RCLONE_JOTTACLOUD_MD5_MEMORY_LIMIT
  27397. - Type: SizeSuffix
  27398. - Default: 10Mi
  27399. #### --jottacloud-trashed-only
  27400. Only show files that are in the trash.
  27401. This will show trashed files in their original directory structure.
  27402. Properties:
  27403. - Config: trashed_only
  27404. - Env Var: RCLONE_JOTTACLOUD_TRASHED_ONLY
  27405. - Type: bool
  27406. - Default: false
  27407. #### --jottacloud-hard-delete
  27408. Delete files permanently rather than putting them into the trash.
  27409. Properties:
  27410. - Config: hard_delete
  27411. - Env Var: RCLONE_JOTTACLOUD_HARD_DELETE
  27412. - Type: bool
  27413. - Default: false
  27414. #### --jottacloud-upload-resume-limit
  27415. Files bigger than this can be resumed if the upload fail's.
  27416. Properties:
  27417. - Config: upload_resume_limit
  27418. - Env Var: RCLONE_JOTTACLOUD_UPLOAD_RESUME_LIMIT
  27419. - Type: SizeSuffix
  27420. - Default: 10Mi
  27421. #### --jottacloud-no-versions
  27422. Avoid server side versioning by deleting files and recreating files instead of overwriting them.
  27423. Properties:
  27424. - Config: no_versions
  27425. - Env Var: RCLONE_JOTTACLOUD_NO_VERSIONS
  27426. - Type: bool
  27427. - Default: false
  27428. #### --jottacloud-encoding
  27429. The encoding for the backend.
  27430. See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
  27431. Properties:
  27432. - Config: encoding
  27433. - Env Var: RCLONE_JOTTACLOUD_ENCODING
  27434. - Type: Encoding
  27435. - Default: Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,Del,Ctl,InvalidUtf8,Dot
  27436. #### --jottacloud-description
  27437. Description of the remote
  27438. Properties:
  27439. - Config: description
  27440. - Env Var: RCLONE_JOTTACLOUD_DESCRIPTION
  27441. - Type: string
  27442. - Required: false
  27443. ### Metadata
  27444. Jottacloud has limited support for metadata, currently an extended set of timestamps.
  27445. Here are the possible system metadata items for the jottacloud backend.
  27446. | Name | Help | Type | Example | Read Only |
  27447. |------|------|------|---------|-----------|
  27448. | btime | Time of file birth (creation), read from rclone metadata | RFC 3339 | 2006-01-02T15:04:05.999999999Z07:00 | N |
  27449. | content-type | MIME type, also known as media type | string | text/plain | **Y** |
  27450. | mtime | Time of last modification, read from rclone metadata | RFC 3339 | 2006-01-02T15:04:05.999999999Z07:00 | N |
  27451. | utime | Time of last upload, when current revision was created, generated by backend | RFC 3339 | 2006-01-02T15:04:05.999999999Z07:00 | **Y** |
  27452. See the [metadata](https://rclone.org/docs/#metadata) docs for more info.
  27453. ## Limitations
  27454. Note that Jottacloud is case insensitive so you can't have a file called
  27455. "Hello.doc" and one called "hello.doc".
  27456. There are quite a few characters that can't be in Jottacloud file names. Rclone will map these names to and from an identical
  27457. looking unicode equivalent. For example if a file has a ? in it will be mapped to ? instead.
  27458. Jottacloud only supports filenames up to 255 characters in length.
  27459. ## Troubleshooting
  27460. Jottacloud exhibits some inconsistent behaviours regarding deleted files and folders which may cause Copy, Move and DirMove
  27461. operations to previously deleted paths to fail. Emptying the trash should help in such cases.
  27462. # Koofr
  27463. Paths are specified as `remote:path`
  27464. Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
  27465. ## Configuration
  27466. The initial setup for Koofr involves creating an application password for
  27467. rclone. You can do that by opening the Koofr
  27468. [web application](https://app.koofr.net/app/admin/preferences/password),
  27469. giving the password a nice name like `rclone` and clicking on generate.
  27470. Here is an example of how to make a remote called `koofr`. First run:
  27471. rclone config
  27472. This will guide you through an interactive setup process:
  27473. No remotes found, make a new one? n) New remote s) Set configuration
  27474. password q) Quit config n/s/q> n name> koofr Option Storage. Type of
  27475. storage to configure. Choose a number from below, or type in your own
  27476. value. [snip] 22 / Koofr, Digi Storage and other Koofr-compatible
  27477. storage providers  (koofr) [snip] Storage> koofr Option provider. Choose
  27478. your storage provider. Choose a number from below, or type in your own
  27479. value. Press Enter to leave empty. 1 / Koofr, https://app.koofr.net/
  27480.  (koofr) 2 / Digi Storage, https://storage.rcs-rds.ro/  (digistorage) 3
  27481. / Any other Koofr API compatible storage service  (other) provider> 1
  27482. Option user. Your user name. Enter a value. user> USERNAME Option
  27483. password. Your password for rclone (generate one at
  27484. https://app.koofr.net/app/admin/preferences/password). Choose an
  27485. alternative below. y) Yes, type in my own password g) Generate random
  27486. password y/g> y Enter the password: password: Confirm the password:
  27487. password: Edit advanced config? y) Yes n) No (default) y/n> n Remote
  27488. config -------------------- [koofr] type = koofr provider = koofr user =
  27489. USERNAME password = *** ENCRYPTED *** -------------------- y) Yes this
  27490. is OK (default) e) Edit this remote d) Delete this remote y/e/d> y
  27491. You can choose to edit advanced config in order to enter your own service URL
  27492. if you use an on-premise or white label Koofr instance, or choose an alternative
  27493. mount instead of your primary storage.
  27494. Once configured you can then use `rclone` like this,
  27495. List directories in top level of your Koofr
  27496. rclone lsd koofr:
  27497. List all the files in your Koofr
  27498. rclone ls koofr:
  27499. To copy a local directory to an Koofr directory called backup
  27500. rclone copy /home/source koofr:backup
  27501. ### Restricted filename characters
  27502. In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
  27503. the following characters are also replaced:
  27504. | Character | Value | Replacement |
  27505. | --------- |:-----:|:-----------:|
  27506. | \ | 0x5C | \ |
  27507. Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
  27508. as they can't be used in XML strings.
  27509. ### Standard options
  27510. Here are the Standard options specific to koofr (Koofr, Digi Storage and other Koofr-compatible storage providers).
  27511. #### --koofr-provider
  27512. Choose your storage provider.
  27513. Properties:
  27514. - Config: provider
  27515. - Env Var: RCLONE_KOOFR_PROVIDER
  27516. - Type: string
  27517. - Required: false
  27518. - Examples:
  27519. - "koofr"
  27520. - Koofr, https://app.koofr.net/
  27521. - "digistorage"
  27522. - Digi Storage, https://storage.rcs-rds.ro/
  27523. - "other"
  27524. - Any other Koofr API compatible storage service
  27525. #### --koofr-endpoint
  27526. The Koofr API endpoint to use.
  27527. Properties:
  27528. - Config: endpoint
  27529. - Env Var: RCLONE_KOOFR_ENDPOINT
  27530. - Provider: other
  27531. - Type: string
  27532. - Required: true
  27533. #### --koofr-user
  27534. Your user name.
  27535. Properties:
  27536. - Config: user
  27537. - Env Var: RCLONE_KOOFR_USER
  27538. - Type: string
  27539. - Required: true
  27540. #### --koofr-password
  27541. Your password for rclone (generate one at https://app.koofr.net/app/admin/preferences/password).
  27542. **NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
  27543. Properties:
  27544. - Config: password
  27545. - Env Var: RCLONE_KOOFR_PASSWORD
  27546. - Provider: koofr
  27547. - Type: string
  27548. - Required: true
  27549. ### Advanced options
  27550. Here are the Advanced options specific to koofr (Koofr, Digi Storage and other Koofr-compatible storage providers).
  27551. #### --koofr-mountid
  27552. Mount ID of the mount to use.
  27553. If omitted, the primary mount is used.
  27554. Properties:
  27555. - Config: mountid
  27556. - Env Var: RCLONE_KOOFR_MOUNTID
  27557. - Type: string
  27558. - Required: false
  27559. #### --koofr-setmtime
  27560. Does the backend support setting modification time.
  27561. Set this to false if you use a mount ID that points to a Dropbox or Amazon Drive backend.
  27562. Properties:
  27563. - Config: setmtime
  27564. - Env Var: RCLONE_KOOFR_SETMTIME
  27565. - Type: bool
  27566. - Default: true
  27567. #### --koofr-encoding
  27568. The encoding for the backend.
  27569. See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
  27570. Properties:
  27571. - Config: encoding
  27572. - Env Var: RCLONE_KOOFR_ENCODING
  27573. - Type: Encoding
  27574. - Default: Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot
  27575. #### --koofr-description
  27576. Description of the remote
  27577. Properties:
  27578. - Config: description
  27579. - Env Var: RCLONE_KOOFR_DESCRIPTION
  27580. - Type: string
  27581. - Required: false
  27582. ## Limitations
  27583. Note that Koofr is case insensitive so you can't have a file called
  27584. "Hello.doc" and one called "hello.doc".
  27585. ## Providers
  27586. ### Koofr
  27587. This is the original [Koofr](https://koofr.eu) storage provider used as main example and described in the [configuration](#configuration) section above.
  27588. ### Digi Storage
  27589. [Digi Storage](https://www.digi.ro/servicii/online/digi-storage) is a cloud storage service run by [Digi.ro](https://www.digi.ro/) that
  27590. provides a Koofr API.
  27591. Here is an example of how to make a remote called `ds`. First run:
  27592. rclone config
  27593. This will guide you through an interactive setup process:
  27594. No remotes found, make a new one? n) New remote s) Set configuration
  27595. password q) Quit config n/s/q> n name> ds Option Storage. Type of
  27596. storage to configure. Choose a number from below, or type in your own
  27597. value. [snip] 22 / Koofr, Digi Storage and other Koofr-compatible
  27598. storage providers  (koofr) [snip] Storage> koofr Option provider. Choose
  27599. your storage provider. Choose a number from below, or type in your own
  27600. value. Press Enter to leave empty. 1 / Koofr, https://app.koofr.net/
  27601.  (koofr) 2 / Digi Storage, https://storage.rcs-rds.ro/  (digistorage) 3
  27602. / Any other Koofr API compatible storage service  (other) provider> 2
  27603. Option user. Your user name. Enter a value. user> USERNAME Option
  27604. password. Your password for rclone (generate one at
  27605. https://storage.rcs-rds.ro/app/admin/preferences/password). Choose an
  27606. alternative below. y) Yes, type in my own password g) Generate random
  27607. password y/g> y Enter the password: password: Confirm the password:
  27608. password: Edit advanced config? y) Yes n) No (default) y/n> n
  27609. -------------------- [ds] type = koofr provider = digistorage user =
  27610. USERNAME password = *** ENCRYPTED *** -------------------- y) Yes this
  27611. is OK (default) e) Edit this remote d) Delete this remote y/e/d> y
  27612. ### Other
  27613. You may also want to use another, public or private storage provider that runs a Koofr API compatible service, by simply providing the base URL to connect to.
  27614. Here is an example of how to make a remote called `other`. First run:
  27615. rclone config
  27616. This will guide you through an interactive setup process:
  27617. No remotes found, make a new one? n) New remote s) Set configuration
  27618. password q) Quit config n/s/q> n name> other Option Storage. Type of
  27619. storage to configure. Choose a number from below, or type in your own
  27620. value. [snip] 22 / Koofr, Digi Storage and other Koofr-compatible
  27621. storage providers  (koofr) [snip] Storage> koofr Option provider. Choose
  27622. your storage provider. Choose a number from below, or type in your own
  27623. value. Press Enter to leave empty. 1 / Koofr, https://app.koofr.net/
  27624.  (koofr) 2 / Digi Storage, https://storage.rcs-rds.ro/  (digistorage) 3
  27625. / Any other Koofr API compatible storage service  (other) provider> 3
  27626. Option endpoint. The Koofr API endpoint to use. Enter a value. endpoint>
  27627. https://koofr.other.org Option user. Your user name. Enter a value.
  27628. user> USERNAME Option password. Your password for rclone (generate one
  27629. at your service's settings page). Choose an alternative below. y) Yes,
  27630. type in my own password g) Generate random password y/g> y Enter the
  27631. password: password: Confirm the password: password: Edit advanced
  27632. config? y) Yes n) No (default) y/n> n -------------------- [other] type
  27633. = koofr provider = other endpoint = https://koofr.other.org user =
  27634. USERNAME password = *** ENCRYPTED *** -------------------- y) Yes this
  27635. is OK (default) e) Edit this remote d) Delete this remote y/e/d> y
  27636. # Linkbox
  27637. Linkbox is [a private cloud drive](https://linkbox.to/).
  27638. ## Configuration
  27639. Here is an example of making a remote for Linkbox.
  27640. First run:
  27641. rclone config
  27642. This will guide you through an interactive setup process:
  27643. No remotes found, make a new one? n) New remote s) Set configuration
  27644. password q) Quit config n/s/q> n
  27645. Enter name for new remote. name> remote
  27646. Option Storage. Type of storage to configure. Choose a number from
  27647. below, or type in your own value. XX / Linkbox  (linkbox) Storage> XX
  27648. Option token. Token from https://www.linkbox.to/admin/account Enter a
  27649. value. token> testFromCLToken
  27650. Configuration complete. Options: - type: linkbox - token: XXXXXXXXXXX
  27651. Keep this "linkbox" remote? y) Yes this is OK (default) e) Edit this
  27652. remote d) Delete this remote y/e/d> y
  27653. ### Standard options
  27654. Here are the Standard options specific to linkbox (Linkbox).
  27655. #### --linkbox-token
  27656. Token from https://www.linkbox.to/admin/account
  27657. Properties:
  27658. - Config: token
  27659. - Env Var: RCLONE_LINKBOX_TOKEN
  27660. - Type: string
  27661. - Required: true
  27662. ### Advanced options
  27663. Here are the Advanced options specific to linkbox (Linkbox).
  27664. #### --linkbox-description
  27665. Description of the remote
  27666. Properties:
  27667. - Config: description
  27668. - Env Var: RCLONE_LINKBOX_DESCRIPTION
  27669. - Type: string
  27670. - Required: false
  27671. ## Limitations
  27672. Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
  27673. as they can't be used in JSON strings.
  27674. # Mail.ru Cloud
  27675. [Mail.ru Cloud](https://cloud.mail.ru/) is a cloud storage provided by a Russian internet company [Mail.Ru Group](https://mail.ru). The official desktop client is [Disk-O:](https://disk-o.cloud/en), available on Windows and Mac OS.
  27676. ## Features highlights
  27677. - Paths may be as deep as required, e.g. `remote:directory/subdirectory`
  27678. - Files have a `last modified time` property, directories don't
  27679. - Deleted files are by default moved to the trash
  27680. - Files and directories can be shared via public links
  27681. - Partial uploads or streaming are not supported, file size must be known before upload
  27682. - Maximum file size is limited to 2G for a free account, unlimited for paid accounts
  27683. - Storage keeps hash for all files and performs transparent deduplication,
  27684. the hash algorithm is a modified SHA1
  27685. - If a particular file is already present in storage, one can quickly submit file hash
  27686. instead of long file upload (this optimization is supported by rclone)
  27687. ## Configuration
  27688. Here is an example of making a mailru configuration.
  27689. First create a Mail.ru Cloud account and choose a tariff.
  27690. You will need to log in and create an app password for rclone. Rclone
  27691. **will not work** with your normal username and password - it will
  27692. give an error like `oauth2: server response missing access_token`.
  27693. - Click on your user icon in the top right
  27694. - Go to Security / "Пароль и безопасность"
  27695. - Click password for apps / "Пароли для внешних приложений"
  27696. - Add the password - give it a name - eg "rclone"
  27697. - Copy the password and use this password below - your normal login password won't work.
  27698. Now run
  27699. rclone config
  27700. This will guide you through an interactive setup process:
  27701. No remotes found, make a new one? n) New remote s) Set configuration
  27702. password q) Quit config n/s/q> n name> remote Type of storage to
  27703. configure. Type of storage to configure. Enter a string value. Press
  27704. Enter for the default (""). Choose a number from below, or type in your
  27705. own value [snip] XX / Mail.ru Cloud  "mailru" [snip] Storage> mailru
  27706. User name (usually email) Enter a string value. Press Enter for the
  27707. default (""). user> username@mail.ru Password
  27708. This must be an app password - rclone will not work with your normal
  27709. password. See the Configuration section in the docs for how to make an
  27710. app password. y) Yes type in my own password g) Generate random password
  27711. y/g> y Enter the password: password: Confirm the password: password:
  27712. Skip full upload if there is another file with same data hash. This
  27713. feature is called "speedup" or "put by hash". It is especially efficient
  27714. in case of generally available files like popular books, video or audio
  27715. clips [snip] Enter a boolean value (true or false). Press Enter for the
  27716. default ("true"). Choose a number from below, or type in your own value
  27717. 1 / Enable  "true" 2 / Disable  "false" speedup_enable> 1 Edit advanced
  27718. config? (y/n) y) Yes n) No y/n> n Remote config --------------------
  27719. [remote] type = mailru user = username@mail.ru pass = *** ENCRYPTED ***
  27720. speedup_enable = true -------------------- y) Yes this is OK e) Edit
  27721. this remote d) Delete this remote y/e/d> y
  27722. Configuration of this backend does not require a local web browser.
  27723. You can use the configured backend as shown below:
  27724. See top level directories
  27725. rclone lsd remote:
  27726. Make a new directory
  27727. rclone mkdir remote:directory
  27728. List the contents of a directory
  27729. rclone ls remote:directory
  27730. Sync `/home/local/directory` to the remote path, deleting any
  27731. excess files in the path.
  27732. rclone sync --interactive /home/local/directory remote:directory
  27733. ### Modification times and hashes
  27734. Files support a modification time attribute with up to 1 second precision.
  27735. Directories do not have a modification time, which is shown as "Jan 1 1970".
  27736. File hashes are supported, with a custom Mail.ru algorithm based on SHA1.
  27737. If file size is less than or equal to the SHA1 block size (20 bytes),
  27738. its hash is simply its data right-padded with zero bytes.
  27739. Hashes of a larger file is computed as a SHA1 of the file data
  27740. bytes concatenated with a decimal representation of the data length.
  27741. ### Emptying Trash
  27742. Removing a file or directory actually moves it to the trash, which is not
  27743. visible to rclone but can be seen in a web browser. The trashed file
  27744. still occupies part of total quota. If you wish to empty your trash
  27745. and free some quota, you can use the `rclone cleanup remote:` command,
  27746. which will permanently delete all your trashed files.
  27747. This command does not take any path arguments.
  27748. ### Quota information
  27749. To view your current quota you can use the `rclone about remote:`
  27750. command which will display your usage limit (quota) and the current usage.
  27751. ### Restricted filename characters
  27752. In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
  27753. the following characters are also replaced:
  27754. | Character | Value | Replacement |
  27755. | --------- |:-----:|:-----------:|
  27756. | " | 0x22 | " |
  27757. | * | 0x2A | * |
  27758. | : | 0x3A | : |
  27759. | < | 0x3C | < |
  27760. | > | 0x3E | > |
  27761. | ? | 0x3F | ? |
  27762. | \ | 0x5C | \ |
  27763. | \| | 0x7C | | |
  27764. Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
  27765. as they can't be used in JSON strings.
  27766. ### Standard options
  27767. Here are the Standard options specific to mailru (Mail.ru Cloud).
  27768. #### --mailru-client-id
  27769. OAuth Client Id.
  27770. Leave blank normally.
  27771. Properties:
  27772. - Config: client_id
  27773. - Env Var: RCLONE_MAILRU_CLIENT_ID
  27774. - Type: string
  27775. - Required: false
  27776. #### --mailru-client-secret
  27777. OAuth Client Secret.
  27778. Leave blank normally.
  27779. Properties:
  27780. - Config: client_secret
  27781. - Env Var: RCLONE_MAILRU_CLIENT_SECRET
  27782. - Type: string
  27783. - Required: false
  27784. #### --mailru-user
  27785. User name (usually email).
  27786. Properties:
  27787. - Config: user
  27788. - Env Var: RCLONE_MAILRU_USER
  27789. - Type: string
  27790. - Required: true
  27791. #### --mailru-pass
  27792. Password.
  27793. This must be an app password - rclone will not work with your normal
  27794. password. See the Configuration section in the docs for how to make an
  27795. app password.
  27796. **NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
  27797. Properties:
  27798. - Config: pass
  27799. - Env Var: RCLONE_MAILRU_PASS
  27800. - Type: string
  27801. - Required: true
  27802. #### --mailru-speedup-enable
  27803. Skip full upload if there is another file with same data hash.
  27804. This feature is called "speedup" or "put by hash". It is especially efficient
  27805. in case of generally available files like popular books, video or audio clips,
  27806. because files are searched by hash in all accounts of all mailru users.
  27807. It is meaningless and ineffective if source file is unique or encrypted.
  27808. Please note that rclone may need local memory and disk space to calculate
  27809. content hash in advance and decide whether full upload is required.
  27810. Also, if rclone does not know file size in advance (e.g. in case of
  27811. streaming or partial uploads), it will not even try this optimization.
  27812. Properties:
  27813. - Config: speedup_enable
  27814. - Env Var: RCLONE_MAILRU_SPEEDUP_ENABLE
  27815. - Type: bool
  27816. - Default: true
  27817. - Examples:
  27818. - "true"
  27819. - Enable
  27820. - "false"
  27821. - Disable
  27822. ### Advanced options
  27823. Here are the Advanced options specific to mailru (Mail.ru Cloud).
  27824. #### --mailru-token
  27825. OAuth Access Token as a JSON blob.
  27826. Properties:
  27827. - Config: token
  27828. - Env Var: RCLONE_MAILRU_TOKEN
  27829. - Type: string
  27830. - Required: false
  27831. #### --mailru-auth-url
  27832. Auth server URL.
  27833. Leave blank to use the provider defaults.
  27834. Properties:
  27835. - Config: auth_url
  27836. - Env Var: RCLONE_MAILRU_AUTH_URL
  27837. - Type: string
  27838. - Required: false
  27839. #### --mailru-token-url
  27840. Token server url.
  27841. Leave blank to use the provider defaults.
  27842. Properties:
  27843. - Config: token_url
  27844. - Env Var: RCLONE_MAILRU_TOKEN_URL
  27845. - Type: string
  27846. - Required: false
  27847. #### --mailru-speedup-file-patterns
  27848. Comma separated list of file name patterns eligible for speedup (put by hash).
  27849. Patterns are case insensitive and can contain '*' or '?' meta characters.
  27850. Properties:
  27851. - Config: speedup_file_patterns
  27852. - Env Var: RCLONE_MAILRU_SPEEDUP_FILE_PATTERNS
  27853. - Type: string
  27854. - Default: "*.mkv,*.avi,*.mp4,*.mp3,*.zip,*.gz,*.rar,*.pdf"
  27855. - Examples:
  27856. - ""
  27857. - Empty list completely disables speedup (put by hash).
  27858. - "*"
  27859. - All files will be attempted for speedup.
  27860. - "*.mkv,*.avi,*.mp4,*.mp3"
  27861. - Only common audio/video files will be tried for put by hash.
  27862. - "*.zip,*.gz,*.rar,*.pdf"
  27863. - Only common archives or PDF books will be tried for speedup.
  27864. #### --mailru-speedup-max-disk
  27865. This option allows you to disable speedup (put by hash) for large files.
  27866. Reason is that preliminary hashing can exhaust your RAM or disk space.
  27867. Properties:
  27868. - Config: speedup_max_disk
  27869. - Env Var: RCLONE_MAILRU_SPEEDUP_MAX_DISK
  27870. - Type: SizeSuffix
  27871. - Default: 3Gi
  27872. - Examples:
  27873. - "0"
  27874. - Completely disable speedup (put by hash).
  27875. - "1G"
  27876. - Files larger than 1Gb will be uploaded directly.
  27877. - "3G"
  27878. - Choose this option if you have less than 3Gb free on local disk.
  27879. #### --mailru-speedup-max-memory
  27880. Files larger than the size given below will always be hashed on disk.
  27881. Properties:
  27882. - Config: speedup_max_memory
  27883. - Env Var: RCLONE_MAILRU_SPEEDUP_MAX_MEMORY
  27884. - Type: SizeSuffix
  27885. - Default: 32Mi
  27886. - Examples:
  27887. - "0"
  27888. - Preliminary hashing will always be done in a temporary disk location.
  27889. - "32M"
  27890. - Do not dedicate more than 32Mb RAM for preliminary hashing.
  27891. - "256M"
  27892. - You have at most 256Mb RAM free for hash calculations.
  27893. #### --mailru-check-hash
  27894. What should copy do if file checksum is mismatched or invalid.
  27895. Properties:
  27896. - Config: check_hash
  27897. - Env Var: RCLONE_MAILRU_CHECK_HASH
  27898. - Type: bool
  27899. - Default: true
  27900. - Examples:
  27901. - "true"
  27902. - Fail with error.
  27903. - "false"
  27904. - Ignore and continue.
  27905. #### --mailru-user-agent
  27906. HTTP user agent used internally by client.
  27907. Defaults to "rclone/VERSION" or "--user-agent" provided on command line.
  27908. Properties:
  27909. - Config: user_agent
  27910. - Env Var: RCLONE_MAILRU_USER_AGENT
  27911. - Type: string
  27912. - Required: false
  27913. #### --mailru-quirks
  27914. Comma separated list of internal maintenance flags.
  27915. This option must not be used by an ordinary user. It is intended only to
  27916. facilitate remote troubleshooting of backend issues. Strict meaning of
  27917. flags is not documented and not guaranteed to persist between releases.
  27918. Quirks will be removed when the backend grows stable.
  27919. Supported quirks: atomicmkdir binlist unknowndirs
  27920. Properties:
  27921. - Config: quirks
  27922. - Env Var: RCLONE_MAILRU_QUIRKS
  27923. - Type: string
  27924. - Required: false
  27925. #### --mailru-encoding
  27926. The encoding for the backend.
  27927. See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
  27928. Properties:
  27929. - Config: encoding
  27930. - Env Var: RCLONE_MAILRU_ENCODING
  27931. - Type: Encoding
  27932. - Default: Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Del,Ctl,InvalidUtf8,Dot
  27933. #### --mailru-description
  27934. Description of the remote
  27935. Properties:
  27936. - Config: description
  27937. - Env Var: RCLONE_MAILRU_DESCRIPTION
  27938. - Type: string
  27939. - Required: false
  27940. ## Limitations
  27941. File size limits depend on your account. A single file size is limited by 2G
  27942. for a free account and unlimited for paid tariffs. Please refer to the Mail.ru
  27943. site for the total uploaded size limits.
  27944. Note that Mailru is case insensitive so you can't have a file called
  27945. "Hello.doc" and one called "hello.doc".
  27946. # Mega
  27947. [Mega](https://mega.nz/) is a cloud storage and file hosting service
  27948. known for its security feature where all files are encrypted locally
  27949. before they are uploaded. This prevents anyone (including employees of
  27950. Mega) from accessing the files without knowledge of the key used for
  27951. encryption.
  27952. This is an rclone backend for Mega which supports the file transfer
  27953. features of Mega using the same client side encryption.
  27954. Paths are specified as `remote:path`
  27955. Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
  27956. ## Configuration
  27957. Here is an example of how to make a remote called `remote`. First run:
  27958. rclone config
  27959. This will guide you through an interactive setup process:
  27960. No remotes found, make a new one? n) New remote s) Set configuration
  27961. password q) Quit config n/s/q> n name> remote Type of storage to
  27962. configure. Choose a number from below, or type in your own value [snip]
  27963. XX / Mega  "mega" [snip] Storage> mega User name user> you@example.com
  27964. Password. y) Yes type in my own password g) Generate random password n)
  27965. No leave this optional password blank y/g/n> y Enter the password:
  27966. password: Confirm the password: password: Remote config
  27967. -------------------- [remote] type = mega user = you@example.com pass =
  27968. *** ENCRYPTED *** -------------------- y) Yes this is OK e) Edit this
  27969. remote d) Delete this remote y/e/d> y
  27970. **NOTE:** The encryption keys need to have been already generated after a regular login
  27971. via the browser, otherwise attempting to use the credentials in `rclone` will fail.
  27972. Once configured you can then use `rclone` like this,
  27973. List directories in top level of your Mega
  27974. rclone lsd remote:
  27975. List all the files in your Mega
  27976. rclone ls remote:
  27977. To copy a local directory to an Mega directory called backup
  27978. rclone copy /home/source remote:backup
  27979. ### Modification times and hashes
  27980. Mega does not support modification times or hashes yet.
  27981. ### Restricted filename characters
  27982. | Character | Value | Replacement |
  27983. | --------- |:-----:|:-----------:|
  27984. | NUL | 0x00 | ␀ |
  27985. | / | 0x2F | / |
  27986. Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
  27987. as they can't be used in JSON strings.
  27988. ### Duplicated files
  27989. Mega can have two files with exactly the same name and path (unlike a
  27990. normal file system).
  27991. Duplicated files cause problems with the syncing and you will see
  27992. messages in the log about duplicates.
  27993. Use `rclone dedupe` to fix duplicated files.
  27994. ### Failure to log-in
  27995. #### Object not found
  27996. If you are connecting to your Mega remote for the first time,
  27997. to test access and synchronization, you may receive an error such as
  27998. Failed to create file system for "my-mega-remote:": couldn't login:
  27999. Object (typically, node or user) not found
  28000. The diagnostic steps often recommended in the [rclone forum](https://forum.rclone.org/search?q=mega)
  28001. start with the **MEGAcmd** utility. Note that this refers to
  28002. the official C++ command from https://github.com/meganz/MEGAcmd
  28003. and not the go language built command from t3rm1n4l/megacmd
  28004. that is no longer maintained.
  28005. Follow the instructions for installing MEGAcmd and try accessing
  28006. your remote as they recommend. You can establish whether or not
  28007. you can log in using MEGAcmd, and obtain diagnostic information
  28008. to help you, and search or work with others in the forum.
  28009. MEGA CMD> login me@example.com Password: Fetching nodes ... Loading
  28010. transfers from local cache Login complete as me@example.com
  28011. me@example.com:/$
  28012. Note that some have found issues with passwords containing special
  28013. characters. If you can not log on with rclone, but MEGAcmd logs on
  28014. just fine, then consider changing your password temporarily to
  28015. pure alphanumeric characters, in case that helps.
  28016. #### Repeated commands blocks access
  28017. Mega remotes seem to get blocked (reject logins) under "heavy use".
  28018. We haven't worked out the exact blocking rules but it seems to be
  28019. related to fast paced, successive rclone commands.
  28020. For example, executing this command 90 times in a row `rclone link
  28021. remote:file` will cause the remote to become "blocked". This is not an
  28022. abnormal situation, for example if you wish to get the public links of
  28023. a directory with hundred of files... After more or less a week, the
  28024. remote will remote accept rclone logins normally again.
  28025. You can mitigate this issue by mounting the remote it with `rclone
  28026. mount`. This will log-in when mounting and a log-out when unmounting
  28027. only. You can also run `rclone rcd` and then use `rclone rc` to run
  28028. the commands over the API to avoid logging in each time.
  28029. Rclone does not currently close mega sessions (you can see them in the
  28030. web interface), however closing the sessions does not solve the issue.
  28031. If you space rclone commands by 3 seconds it will avoid blocking the
  28032. remote. We haven't identified the exact blocking rules, so perhaps one
  28033. could execute the command 80 times without waiting and avoid blocking
  28034. by waiting 3 seconds, then continuing...
  28035. Note that this has been observed by trial and error and might not be
  28036. set in stone.
  28037. Other tools seem not to produce this blocking effect, as they use a
  28038. different working approach (state-based, using sessionIDs instead of
  28039. log-in) which isn't compatible with the current stateless rclone
  28040. approach.
  28041. Note that once blocked, the use of other tools (such as megacmd) is
  28042. not a sure workaround: following megacmd login times have been
  28043. observed in succession for blocked remote: 7 minutes, 20 min, 30min, 30
  28044. min, 30min. Web access looks unaffected though.
  28045. Investigation is continuing in relation to workarounds based on
  28046. timeouts, pacers, retrials and tpslimits - if you discover something
  28047. relevant, please post on the forum.
  28048. So, if rclone was working nicely and suddenly you are unable to log-in
  28049. and you are sure the user and the password are correct, likely you
  28050. have got the remote blocked for a while.
  28051. ### Standard options
  28052. Here are the Standard options specific to mega (Mega).
  28053. #### --mega-user
  28054. User name.
  28055. Properties:
  28056. - Config: user
  28057. - Env Var: RCLONE_MEGA_USER
  28058. - Type: string
  28059. - Required: true
  28060. #### --mega-pass
  28061. Password.
  28062. **NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
  28063. Properties:
  28064. - Config: pass
  28065. - Env Var: RCLONE_MEGA_PASS
  28066. - Type: string
  28067. - Required: true
  28068. ### Advanced options
  28069. Here are the Advanced options specific to mega (Mega).
  28070. #### --mega-debug
  28071. Output more debug from Mega.
  28072. If this flag is set (along with -vv) it will print further debugging
  28073. information from the mega backend.
  28074. Properties:
  28075. - Config: debug
  28076. - Env Var: RCLONE_MEGA_DEBUG
  28077. - Type: bool
  28078. - Default: false
  28079. #### --mega-hard-delete
  28080. Delete files permanently rather than putting them into the trash.
  28081. Normally the mega backend will put all deletions into the trash rather
  28082. than permanently deleting them. If you specify this then rclone will
  28083. permanently delete objects instead.
  28084. Properties:
  28085. - Config: hard_delete
  28086. - Env Var: RCLONE_MEGA_HARD_DELETE
  28087. - Type: bool
  28088. - Default: false
  28089. #### --mega-use-https
  28090. Use HTTPS for transfers.
  28091. MEGA uses plain text HTTP connections by default.
  28092. Some ISPs throttle HTTP connections, this causes transfers to become very slow.
  28093. Enabling this will force MEGA to use HTTPS for all transfers.
  28094. HTTPS is normally not necessary since all data is already encrypted anyway.
  28095. Enabling it will increase CPU usage and add network overhead.
  28096. Properties:
  28097. - Config: use_https
  28098. - Env Var: RCLONE_MEGA_USE_HTTPS
  28099. - Type: bool
  28100. - Default: false
  28101. #### --mega-encoding
  28102. The encoding for the backend.
  28103. See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
  28104. Properties:
  28105. - Config: encoding
  28106. - Env Var: RCLONE_MEGA_ENCODING
  28107. - Type: Encoding
  28108. - Default: Slash,InvalidUtf8,Dot
  28109. #### --mega-description
  28110. Description of the remote
  28111. Properties:
  28112. - Config: description
  28113. - Env Var: RCLONE_MEGA_DESCRIPTION
  28114. - Type: string
  28115. - Required: false
  28116. ### Process `killed`
  28117. On accounts with large files or something else, memory usage can significantly increase when executing list/sync instructions. When running on cloud providers (like AWS with EC2), check if the instance type has sufficient memory/CPU to execute the commands. Use the resource monitoring tools to inspect after sending the commands. Look [at this issue](https://forum.rclone.org/t/rclone-with-mega-appears-to-work-only-in-some-accounts/40233/4).
  28118. ## Limitations
  28119. This backend uses the [go-mega go library](https://github.com/t3rm1n4l/go-mega) which is an opensource
  28120. go library implementing the Mega API. There doesn't appear to be any
  28121. documentation for the mega protocol beyond the [mega C++ SDK](https://github.com/meganz/sdk) source code
  28122. so there are likely quite a few errors still remaining in this library.
  28123. Mega allows duplicate files which may confuse rclone.
  28124. # Memory
  28125. The memory backend is an in RAM backend. It does not persist its
  28126. data - use the local backend for that.
  28127. The memory backend behaves like a bucket-based remote (e.g. like
  28128. s3). Because it has no parameters you can just use it with the
  28129. `:memory:` remote name.
  28130. ## Configuration
  28131. You can configure it as a remote like this with `rclone config` too if
  28132. you want to:
  28133. No remotes found, make a new one? n) New remote s) Set configuration
  28134. password q) Quit config n/s/q> n name> remote Type of storage to
  28135. configure. Enter a string value. Press Enter for the default ("").
  28136. Choose a number from below, or type in your own value [snip] XX / Memory
  28137.  "memory" [snip] Storage> memory ** See help for memory backend at:
  28138. https://rclone.org/memory/ **
  28139. Remote config
  28140. ---------------
  28141. [remote]
  28142. type = memory
  28143. ---------------
  28144. y) Yes this is OK (default)
  28145. z) Edit this remote
  28146. a) Delete this remote y/e/d> y
  28147. Because the memory backend isn't persistent it is most useful for
  28148. testing or with an rclone server or rclone mount, e.g.
  28149. rclone mount :memory: /mnt/tmp
  28150. rclone serve webdav :memory:
  28151. rclone serve sftp :memory:
  28152. ### Modification times and hashes
  28153. The memory backend supports MD5 hashes and modification times accurate to 1 nS.
  28154. ### Restricted filename characters
  28155. The memory backend replaces the [default restricted characters
  28156. set](https://rclone.org/overview/#restricted-characters).
  28157. ### Advanced options
  28158. Here are the Advanced options specific to memory (In memory object storage system.).
  28159. #### --memory-description
  28160. Description of the remote
  28161. Properties:
  28162. - Config: description
  28163. - Env Var: RCLONE_MEMORY_DESCRIPTION
  28164. - Type: string
  28165. - Required: false
  28166. # Akamai NetStorage
  28167. Paths are specified as `remote:`
  28168. You may put subdirectories in too, e.g. `remote:/path/to/dir`.
  28169. If you have a CP code you can use that as the folder after the domain such as \<domain>\/\<cpcode>\/\<internal directories within cpcode>.
  28170. For example, this is commonly configured with or without a CP code:
  28171. * **With a CP code**. `[your-domain-prefix]-nsu.akamaihd.net/123456/subdirectory/`
  28172. * **Without a CP code**. `[your-domain-prefix]-nsu.akamaihd.net`
  28173. See all buckets
  28174. rclone lsd remote:
  28175. The initial setup for Netstorage involves getting an account and secret. Use `rclone config` to walk you through the setup process.
  28176. ## Configuration
  28177. Here's an example of how to make a remote called `ns1`.
  28178. 1. To begin the interactive configuration process, enter this command:
  28179. rclone config
  28180. 2. Type `n` to create a new remote.
  28181. n) New remote
  28182. o) Delete remote
  28183. p) Quit config e/n/d/q> n
  28184. 3. For this example, enter `ns1` when you reach the name> prompt.
  28185. name> ns1
  28186. 4. Enter `netstorage` as the type of storage to configure.
  28187. Type of storage to configure. Enter a string value. Press Enter for the
  28188. default (""). Choose a number from below, or type in your own value XX /
  28189. NetStorage  "netstorage" Storage> netstorage
  28190. 5. Select between the HTTP or HTTPS protocol. Most users should choose HTTPS, which is the default. HTTP is provided primarily for debugging purposes.
  28191. Enter a string value. Press Enter for the default (""). Choose a number
  28192. from below, or type in your own value 1 / HTTP protocol  "http" 2 /
  28193. HTTPS protocol  "https" protocol> 1
  28194. 6. Specify your NetStorage host, CP code, and any necessary content paths using this format: `<domain>/<cpcode>/<content>/`
  28195. Enter a string value. Press Enter for the default (""). host>
  28196. baseball-nsu.akamaihd.net/123456/content/
  28197. 7. Set the netstorage account name
  28198. Enter a string value. Press Enter for the default (""). account>
  28199. username
  28200. 8. Set the Netstorage account secret/G2O key which will be used for authentication purposes. Select the `y` option to set your own password then enter your secret.
  28201. Note: The secret is stored in the `rclone.conf` file with hex-encoded encryption.
  28202. y) Yes type in my own password
  28203. z) Generate random password y/g> y Enter the password: password:
  28204. Confirm the password: password:
  28205. 9. View the summary and confirm your remote configuration.
  28206. [ns1] type = netstorage protocol = http host =
  28207. baseball-nsu.akamaihd.net/123456/content/ account = username secret =
  28208. *** ENCRYPTED *** -------------------- y) Yes this is OK (default) e)
  28209. Edit this remote d) Delete this remote y/e/d> y
  28210. This remote is called `ns1` and can now be used.
  28211. ## Example operations
  28212. Get started with rclone and NetStorage with these examples. For additional rclone commands, visit https://rclone.org/commands/.
  28213. ### See contents of a directory in your project
  28214. rclone lsd ns1:/974012/testing/
  28215. ### Sync the contents local with remote
  28216. rclone sync . ns1:/974012/testing/
  28217. ### Upload local content to remote
  28218. rclone copy notes.txt ns1:/974012/testing/
  28219. ### Delete content on remote
  28220. rclone delete ns1:/974012/testing/notes.txt
  28221. ### Move or copy content between CP codes.
  28222. Your credentials must have access to two CP codes on the same remote. You can't perform operations between different remotes.
  28223. rclone move ns1:/974012/testing/notes.txt ns1:/974450/testing2/
  28224. ## Features
  28225. ### Symlink Support
  28226. The Netstorage backend changes the rclone `--links, -l` behavior. When uploading, instead of creating the .rclonelink file, use the "symlink" API in order to create the corresponding symlink on the remote. The .rclonelink file will not be created, the upload will be intercepted and only the symlink file that matches the source file name with no suffix will be created on the remote.
  28227. This will effectively allow commands like copy/copyto, move/moveto and sync to upload from local to remote and download from remote to local directories with symlinks. Due to internal rclone limitations, it is not possible to upload an individual symlink file to any remote backend. You can always use the "backend symlink" command to create a symlink on the NetStorage server, refer to "symlink" section below.
  28228. Individual symlink files on the remote can be used with the commands like "cat" to print the destination name, or "delete" to delete symlink, or copy, copy/to and move/moveto to download from the remote to local. Note: individual symlink files on the remote should be specified including the suffix .rclonelink.
  28229. **Note**: No file with the suffix .rclonelink should ever exist on the server since it is not possible to actually upload/create a file with .rclonelink suffix with rclone, it can only exist if it is manually created through a non-rclone method on the remote.
  28230. ### Implicit vs. Explicit Directories
  28231. With NetStorage, directories can exist in one of two forms:
  28232. 1. **Explicit Directory**. This is an actual, physical directory that you have created in a storage group.
  28233. 2. **Implicit Directory**. This refers to a directory within a path that has not been physically created. For example, during upload of a file, nonexistent subdirectories can be specified in the target path. NetStorage creates these as "implicit." While the directories aren't physically created, they exist implicitly and the noted path is connected with the uploaded file.
  28234. Rclone will intercept all file uploads and mkdir commands for the NetStorage remote and will explicitly issue the mkdir command for each directory in the uploading path. This will help with the interoperability with the other Akamai services such as SFTP and the Content Management Shell (CMShell). Rclone will not guarantee correctness of operations with implicit directories which might have been created as a result of using an upload API directly.
  28235. ### `--fast-list` / ListR support
  28236. NetStorage remote supports the ListR feature by using the "list" NetStorage API action to return a lexicographical list of all objects within the specified CP code, recursing into subdirectories as they're encountered.
  28237. * **Rclone will use the ListR method for some commands by default**. Commands such as `lsf -R` will use ListR by default. To disable this, include the `--disable listR` option to use the non-recursive method of listing objects.
  28238. * **Rclone will not use the ListR method for some commands**. Commands such as `sync` don't use ListR by default. To force using the ListR method, include the `--fast-list` option.
  28239. There are pros and cons of using the ListR method, refer to [rclone documentation](https://rclone.org/docs/#fast-list). In general, the sync command over an existing deep tree on the remote will run faster with the "--fast-list" flag but with extra memory usage as a side effect. It might also result in higher CPU utilization but the whole task can be completed faster.
  28240. **Note**: There is a known limitation that "lsf -R" will display number of files in the directory and directory size as -1 when ListR method is used. The workaround is to pass "--disable listR" flag if these numbers are important in the output.
  28241. ### Purge
  28242. NetStorage remote supports the purge feature by using the "quick-delete" NetStorage API action. The quick-delete action is disabled by default for security reasons and can be enabled for the account through the Akamai portal. Rclone will first try to use quick-delete action for the purge command and if this functionality is disabled then will fall back to a standard delete method.
  28243. **Note**: Read the [NetStorage Usage API](https://learn.akamai.com/en-us/webhelp/netstorage/netstorage-http-api-developer-guide/GUID-15836617-9F50-405A-833C-EA2556756A30.html) for considerations when using "quick-delete". In general, using quick-delete method will not delete the tree immediately and objects targeted for quick-delete may still be accessible.
  28244. ### Standard options
  28245. Here are the Standard options specific to netstorage (Akamai NetStorage).
  28246. #### --netstorage-host
  28247. Domain+path of NetStorage host to connect to.
  28248. Format should be `<domain>/<internal folders>`
  28249. Properties:
  28250. - Config: host
  28251. - Env Var: RCLONE_NETSTORAGE_HOST
  28252. - Type: string
  28253. - Required: true
  28254. #### --netstorage-account
  28255. Set the NetStorage account name
  28256. Properties:
  28257. - Config: account
  28258. - Env Var: RCLONE_NETSTORAGE_ACCOUNT
  28259. - Type: string
  28260. - Required: true
  28261. #### --netstorage-secret
  28262. Set the NetStorage account secret/G2O key for authentication.
  28263. Please choose the 'y' option to set your own password then enter your secret.
  28264. **NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
  28265. Properties:
  28266. - Config: secret
  28267. - Env Var: RCLONE_NETSTORAGE_SECRET
  28268. - Type: string
  28269. - Required: true
  28270. ### Advanced options
  28271. Here are the Advanced options specific to netstorage (Akamai NetStorage).
  28272. #### --netstorage-protocol
  28273. Select between HTTP or HTTPS protocol.
  28274. Most users should choose HTTPS, which is the default.
  28275. HTTP is provided primarily for debugging purposes.
  28276. Properties:
  28277. - Config: protocol
  28278. - Env Var: RCLONE_NETSTORAGE_PROTOCOL
  28279. - Type: string
  28280. - Default: "https"
  28281. - Examples:
  28282. - "http"
  28283. - HTTP protocol
  28284. - "https"
  28285. - HTTPS protocol
  28286. #### --netstorage-description
  28287. Description of the remote
  28288. Properties:
  28289. - Config: description
  28290. - Env Var: RCLONE_NETSTORAGE_DESCRIPTION
  28291. - Type: string
  28292. - Required: false
  28293. ## Backend commands
  28294. Here are the commands specific to the netstorage backend.
  28295. Run them with
  28296. rclone backend COMMAND remote:
  28297. The help below will explain what arguments each command takes.
  28298. See the [backend](https://rclone.org/commands/rclone_backend/) command for more
  28299. info on how to pass options and arguments.
  28300. These can be run on a running backend using the rc command
  28301. [backend/command](https://rclone.org/rc/#backend-command).
  28302. ### du
  28303. Return disk usage information for a specified directory
  28304. rclone backend du remote: [options] [<arguments>+]
  28305. The usage information returned, includes the targeted directory as well as all
  28306. files stored in any sub-directories that may exist.
  28307. ### symlink
  28308. You can create a symbolic link in ObjectStore with the symlink action.
  28309. rclone backend symlink remote: [options] [<arguments>+]
  28310. The desired path location (including applicable sub-directories) ending in
  28311. the object that will be the target of the symlink (for example, /links/mylink).
  28312. Include the file extension for the object, if applicable.
  28313. `rclone backend symlink <src> <path>`
  28314. # Microsoft Azure Blob Storage
  28315. Paths are specified as `remote:container` (or `remote:` for the `lsd`
  28316. command.) You may put subdirectories in too, e.g.
  28317. `remote:container/path/to/dir`.
  28318. ## Configuration
  28319. Here is an example of making a Microsoft Azure Blob Storage
  28320. configuration. For a remote called `remote`. First run:
  28321. rclone config
  28322. This will guide you through an interactive setup process:
  28323. No remotes found, make a new one? n) New remote s) Set configuration
  28324. password q) Quit config n/s/q> n name> remote Type of storage to
  28325. configure. Choose a number from below, or type in your own value [snip]
  28326. XX / Microsoft Azure Blob Storage  "azureblob" [snip] Storage> azureblob
  28327. Storage Account Name account> account_name Storage Account Key key>
  28328. base64encodedkey== Endpoint for the service - leave blank normally.
  28329. endpoint> Remote config -------------------- [remote] account =
  28330. account_name key = base64encodedkey== endpoint = -------------------- y)
  28331. Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y
  28332. See all containers
  28333. rclone lsd remote:
  28334. Make a new container
  28335. rclone mkdir remote:container
  28336. List the contents of a container
  28337. rclone ls remote:container
  28338. Sync `/home/local/directory` to the remote container, deleting any excess
  28339. files in the container.
  28340. rclone sync --interactive /home/local/directory remote:container
  28341. ### --fast-list
  28342. This remote supports `--fast-list` which allows you to use fewer
  28343. transactions in exchange for more memory. See the [rclone
  28344. docs](https://rclone.org/docs/#fast-list) for more details.
  28345. ### Modification times and hashes
  28346. The modification time is stored as metadata on the object with the
  28347. `mtime` key. It is stored using RFC3339 Format time with nanosecond
  28348. precision. The metadata is supplied during directory listings so
  28349. there is no performance overhead to using it.
  28350. If you wish to use the Azure standard `LastModified` time stored on
  28351. the object as the modified time, then use the `--use-server-modtime`
  28352. flag. Note that rclone can't set `LastModified`, so using the
  28353. `--update` flag when syncing is recommended if using
  28354. `--use-server-modtime`.
  28355. MD5 hashes are stored with blobs. However blobs that were uploaded in
  28356. chunks only have an MD5 if the source remote was capable of MD5
  28357. hashes, e.g. the local disk.
  28358. ### Performance
  28359. When uploading large files, increasing the value of
  28360. `--azureblob-upload-concurrency` will increase performance at the cost
  28361. of using more memory. The default of 16 is set quite conservatively to
  28362. use less memory. It maybe be necessary raise it to 64 or higher to
  28363. fully utilize a 1 GBit/s link with a single file transfer.
  28364. ### Restricted filename characters
  28365. In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
  28366. the following characters are also replaced:
  28367. | Character | Value | Replacement |
  28368. | --------- |:-----:|:-----------:|
  28369. | / | 0x2F | / |
  28370. | \ | 0x5C | \ |
  28371. File names can also not end with the following characters.
  28372. These only get replaced if they are the last character in the name:
  28373. | Character | Value | Replacement |
  28374. | --------- |:-----:|:-----------:|
  28375. | . | 0x2E | . |
  28376. Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
  28377. as they can't be used in JSON strings.
  28378. ### Authentication {#authentication}
  28379. There are a number of ways of supplying credentials for Azure Blob
  28380. Storage. Rclone tries them in the order of the sections below.
  28381. #### Env Auth
  28382. If the `env_auth` config parameter is `true` then rclone will pull
  28383. credentials from the environment or runtime.
  28384. It tries these authentication methods in this order:
  28385. 1. Environment Variables
  28386. 2. Managed Service Identity Credentials
  28387. 3. Azure CLI credentials (as used by the az tool)
  28388. These are described in the following sections
  28389. ##### Env Auth: 1. Environment Variables
  28390. If `env_auth` is set and environment variables are present rclone
  28391. authenticates a service principal with a secret or certificate, or a
  28392. user with a password, depending on which environment variable are set.
  28393. It reads configuration from these variables, in the following order:
  28394. 1. Service principal with client secret
  28395. - `AZURE_TENANT_ID`: ID of the service principal's tenant. Also called its "directory" ID.
  28396. - `AZURE_CLIENT_ID`: the service principal's client ID
  28397. - `AZURE_CLIENT_SECRET`: one of the service principal's client secrets
  28398. 2. Service principal with certificate
  28399. - `AZURE_TENANT_ID`: ID of the service principal's tenant. Also called its "directory" ID.
  28400. - `AZURE_CLIENT_ID`: the service principal's client ID
  28401. - `AZURE_CLIENT_CERTIFICATE_PATH`: path to a PEM or PKCS12 certificate file including the private key.
  28402. - `AZURE_CLIENT_CERTIFICATE_PASSWORD`: (optional) password for the certificate file.
  28403. - `AZURE_CLIENT_SEND_CERTIFICATE_CHAIN`: (optional) Specifies whether an authentication request will include an x5c header to support subject name / issuer based authentication. When set to "true" or "1", authentication requests include the x5c header.
  28404. 3. User with username and password
  28405. - `AZURE_TENANT_ID`: (optional) tenant to authenticate in. Defaults to "organizations".
  28406. - `AZURE_CLIENT_ID`: client ID of the application the user will authenticate to
  28407. - `AZURE_USERNAME`: a username (usually an email address)
  28408. - `AZURE_PASSWORD`: the user's password
  28409. 4. Workload Identity
  28410. - `AZURE_TENANT_ID`: Tenant to authenticate in.
  28411. - `AZURE_CLIENT_ID`: Client ID of the application the user will authenticate to.
  28412. - `AZURE_FEDERATED_TOKEN_FILE`: Path to projected service account token file.
  28413. - `AZURE_AUTHORITY_HOST`: Authority of an Azure Active Directory endpoint (default: login.microsoftonline.com).
  28414. ##### Env Auth: 2. Managed Service Identity Credentials
  28415. When using Managed Service Identity if the VM(SS) on which this
  28416. program is running has a system-assigned identity, it will be used by
  28417. default. If the resource has no system-assigned but exactly one
  28418. user-assigned identity, the user-assigned identity will be used by
  28419. default.
  28420. If the resource has multiple user-assigned identities you will need to
  28421. unset `env_auth` and set `use_msi` instead. See the [`use_msi`
  28422. section](#use_msi).
  28423. ##### Env Auth: 3. Azure CLI credentials (as used by the az tool)
  28424. Credentials created with the `az` tool can be picked up using `env_auth`.
  28425. For example if you were to login with a service principal like this:
  28426. az login --service-principal -u XXX -p XXX --tenant XXX
  28427. Then you could access rclone resources like this:
  28428. rclone lsf :azureblob,env_auth,account=ACCOUNT:CONTAINER
  28429. Or
  28430. rclone lsf --azureblob-env-auth --azureblob-account=ACCOUNT :azureblob:CONTAINER
  28431. Which is analogous to using the `az` tool:
  28432. az storage blob list --container-name CONTAINER --account-name ACCOUNT --auth-mode login
  28433. #### Account and Shared Key
  28434. This is the most straight forward and least flexible way. Just fill
  28435. in the `account` and `key` lines and leave the rest blank.
  28436. #### SAS URL
  28437. This can be an account level SAS URL or container level SAS URL.
  28438. To use it leave `account` and `key` blank and fill in `sas_url`.
  28439. An account level SAS URL or container level SAS URL can be obtained
  28440. from the Azure portal or the Azure Storage Explorer. To get a
  28441. container level SAS URL right click on a container in the Azure Blob
  28442. explorer in the Azure portal.
  28443. If you use a container level SAS URL, rclone operations are permitted
  28444. only on a particular container, e.g.
  28445. rclone ls azureblob:container
  28446. You can also list the single container from the root. This will only
  28447. show the container specified by the SAS URL.
  28448. $ rclone lsd azureblob:
  28449. container/
  28450. Note that you can't see or access any other containers - this will
  28451. fail
  28452. rclone ls azureblob:othercontainer
  28453. Container level SAS URLs are useful for temporarily allowing third
  28454. parties access to a single container or putting credentials into an
  28455. untrusted environment such as a CI build server.
  28456. #### Service principal with client secret
  28457. If these variables are set, rclone will authenticate with a service principal with a client secret.
  28458. - `tenant`: ID of the service principal's tenant. Also called its "directory" ID.
  28459. - `client_id`: the service principal's client ID
  28460. - `client_secret`: one of the service principal's client secrets
  28461. The credentials can also be placed in a file using the
  28462. `service_principal_file` configuration option.
  28463. #### Service principal with certificate
  28464. If these variables are set, rclone will authenticate with a service principal with certificate.
  28465. - `tenant`: ID of the service principal's tenant. Also called its "directory" ID.
  28466. - `client_id`: the service principal's client ID
  28467. - `client_certificate_path`: path to a PEM or PKCS12 certificate file including the private key.
  28468. - `client_certificate_password`: (optional) password for the certificate file.
  28469. - `client_send_certificate_chain`: (optional) Specifies whether an authentication request will include an x5c header to support subject name / issuer based authentication. When set to "true" or "1", authentication requests include the x5c header.
  28470. **NB** `client_certificate_password` must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
  28471. #### User with username and password
  28472. If these variables are set, rclone will authenticate with username and password.
  28473. - `tenant`: (optional) tenant to authenticate in. Defaults to "organizations".
  28474. - `client_id`: client ID of the application the user will authenticate to
  28475. - `username`: a username (usually an email address)
  28476. - `password`: the user's password
  28477. Microsoft doesn't recommend this kind of authentication, because it's
  28478. less secure than other authentication flows. This method is not
  28479. interactive, so it isn't compatible with any form of multi-factor
  28480. authentication, and the application must already have user or admin
  28481. consent. This credential can only authenticate work and school
  28482. accounts; it can't authenticate Microsoft accounts.
  28483. **NB** `password` must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
  28484. #### Managed Service Identity Credentials {#use_msi}
  28485. If `use_msi` is set then managed service identity credentials are
  28486. used. This authentication only works when running in an Azure service.
  28487. `env_auth` needs to be unset to use this.
  28488. However if you have multiple user identities to choose from these must
  28489. be explicitly specified using exactly one of the `msi_object_id`,
  28490. `msi_client_id`, or `msi_mi_res_id` parameters.
  28491. If none of `msi_object_id`, `msi_client_id`, or `msi_mi_res_id` is
  28492. set, this is is equivalent to using `env_auth`.
  28493. ### Standard options
  28494. Here are the Standard options specific to azureblob (Microsoft Azure Blob Storage).
  28495. #### --azureblob-account
  28496. Azure Storage Account Name.
  28497. Set this to the Azure Storage Account Name in use.
  28498. Leave blank to use SAS URL or Emulator, otherwise it needs to be set.
  28499. If this is blank and if env_auth is set it will be read from the
  28500. environment variable `AZURE_STORAGE_ACCOUNT_NAME` if possible.
  28501. Properties:
  28502. - Config: account
  28503. - Env Var: RCLONE_AZUREBLOB_ACCOUNT
  28504. - Type: string
  28505. - Required: false
  28506. #### --azureblob-env-auth
  28507. Read credentials from runtime (environment variables, CLI or MSI).
  28508. See the [authentication docs](/azureblob#authentication) for full info.
  28509. Properties:
  28510. - Config: env_auth
  28511. - Env Var: RCLONE_AZUREBLOB_ENV_AUTH
  28512. - Type: bool
  28513. - Default: false
  28514. #### --azureblob-key
  28515. Storage Account Shared Key.
  28516. Leave blank to use SAS URL or Emulator.
  28517. Properties:
  28518. - Config: key
  28519. - Env Var: RCLONE_AZUREBLOB_KEY
  28520. - Type: string
  28521. - Required: false
  28522. #### --azureblob-sas-url
  28523. SAS URL for container level access only.
  28524. Leave blank if using account/key or Emulator.
  28525. Properties:
  28526. - Config: sas_url
  28527. - Env Var: RCLONE_AZUREBLOB_SAS_URL
  28528. - Type: string
  28529. - Required: false
  28530. #### --azureblob-tenant
  28531. ID of the service principal's tenant. Also called its directory ID.
  28532. Set this if using
  28533. - Service principal with client secret
  28534. - Service principal with certificate
  28535. - User with username and password
  28536. Properties:
  28537. - Config: tenant
  28538. - Env Var: RCLONE_AZUREBLOB_TENANT
  28539. - Type: string
  28540. - Required: false
  28541. #### --azureblob-client-id
  28542. The ID of the client in use.
  28543. Set this if using
  28544. - Service principal with client secret
  28545. - Service principal with certificate
  28546. - User with username and password
  28547. Properties:
  28548. - Config: client_id
  28549. - Env Var: RCLONE_AZUREBLOB_CLIENT_ID
  28550. - Type: string
  28551. - Required: false
  28552. #### --azureblob-client-secret
  28553. One of the service principal's client secrets
  28554. Set this if using
  28555. - Service principal with client secret
  28556. Properties:
  28557. - Config: client_secret
  28558. - Env Var: RCLONE_AZUREBLOB_CLIENT_SECRET
  28559. - Type: string
  28560. - Required: false
  28561. #### --azureblob-client-certificate-path
  28562. Path to a PEM or PKCS12 certificate file including the private key.
  28563. Set this if using
  28564. - Service principal with certificate
  28565. Properties:
  28566. - Config: client_certificate_path
  28567. - Env Var: RCLONE_AZUREBLOB_CLIENT_CERTIFICATE_PATH
  28568. - Type: string
  28569. - Required: false
  28570. #### --azureblob-client-certificate-password
  28571. Password for the certificate file (optional).
  28572. Optionally set this if using
  28573. - Service principal with certificate
  28574. And the certificate has a password.
  28575. **NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
  28576. Properties:
  28577. - Config: client_certificate_password
  28578. - Env Var: RCLONE_AZUREBLOB_CLIENT_CERTIFICATE_PASSWORD
  28579. - Type: string
  28580. - Required: false
  28581. ### Advanced options
  28582. Here are the Advanced options specific to azureblob (Microsoft Azure Blob Storage).
  28583. #### --azureblob-client-send-certificate-chain
  28584. Send the certificate chain when using certificate auth.
  28585. Specifies whether an authentication request will include an x5c header
  28586. to support subject name / issuer based authentication. When set to
  28587. true, authentication requests include the x5c header.
  28588. Optionally set this if using
  28589. - Service principal with certificate
  28590. Properties:
  28591. - Config: client_send_certificate_chain
  28592. - Env Var: RCLONE_AZUREBLOB_CLIENT_SEND_CERTIFICATE_CHAIN
  28593. - Type: bool
  28594. - Default: false
  28595. #### --azureblob-username
  28596. User name (usually an email address)
  28597. Set this if using
  28598. - User with username and password
  28599. Properties:
  28600. - Config: username
  28601. - Env Var: RCLONE_AZUREBLOB_USERNAME
  28602. - Type: string
  28603. - Required: false
  28604. #### --azureblob-password
  28605. The user's password
  28606. Set this if using
  28607. - User with username and password
  28608. **NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
  28609. Properties:
  28610. - Config: password
  28611. - Env Var: RCLONE_AZUREBLOB_PASSWORD
  28612. - Type: string
  28613. - Required: false
  28614. #### --azureblob-service-principal-file
  28615. Path to file containing credentials for use with a service principal.
  28616. Leave blank normally. Needed only if you want to use a service principal instead of interactive login.
  28617. $ az ad sp create-for-rbac --name "<name>" \
  28618. --role "Storage Blob Data Owner" \
  28619. --scopes "/subscriptions/<subscription>/resourceGroups/<resource-group>/providers/Microsoft.Storage/storageAccounts/<storage-account>/blobServices/default/containers/<container>" \
  28620. > azure-principal.json
  28621. See ["Create an Azure service principal"](https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli) and ["Assign an Azure role for access to blob data"](https://docs.microsoft.com/en-us/azure/storage/common/storage-auth-aad-rbac-cli) pages for more details.
  28622. It may be more convenient to put the credentials directly into the
  28623. rclone config file under the `client_id`, `tenant` and `client_secret`
  28624. keys instead of setting `service_principal_file`.
  28625. Properties:
  28626. - Config: service_principal_file
  28627. - Env Var: RCLONE_AZUREBLOB_SERVICE_PRINCIPAL_FILE
  28628. - Type: string
  28629. - Required: false
  28630. #### --azureblob-use-msi
  28631. Use a managed service identity to authenticate (only works in Azure).
  28632. When true, use a [managed service identity](https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/)
  28633. to authenticate to Azure Storage instead of a SAS token or account key.
  28634. If the VM(SS) on which this program is running has a system-assigned identity, it will
  28635. be used by default. If the resource has no system-assigned but exactly one user-assigned identity,
  28636. the user-assigned identity will be used by default. If the resource has multiple user-assigned
  28637. identities, the identity to use must be explicitly specified using exactly one of the msi_object_id,
  28638. msi_client_id, or msi_mi_res_id parameters.
  28639. Properties:
  28640. - Config: use_msi
  28641. - Env Var: RCLONE_AZUREBLOB_USE_MSI
  28642. - Type: bool
  28643. - Default: false
  28644. #### --azureblob-msi-object-id
  28645. Object ID of the user-assigned MSI to use, if any.
  28646. Leave blank if msi_client_id or msi_mi_res_id specified.
  28647. Properties:
  28648. - Config: msi_object_id
  28649. - Env Var: RCLONE_AZUREBLOB_MSI_OBJECT_ID
  28650. - Type: string
  28651. - Required: false
  28652. #### --azureblob-msi-client-id
  28653. Object ID of the user-assigned MSI to use, if any.
  28654. Leave blank if msi_object_id or msi_mi_res_id specified.
  28655. Properties:
  28656. - Config: msi_client_id
  28657. - Env Var: RCLONE_AZUREBLOB_MSI_CLIENT_ID
  28658. - Type: string
  28659. - Required: false
  28660. #### --azureblob-msi-mi-res-id
  28661. Azure resource ID of the user-assigned MSI to use, if any.
  28662. Leave blank if msi_client_id or msi_object_id specified.
  28663. Properties:
  28664. - Config: msi_mi_res_id
  28665. - Env Var: RCLONE_AZUREBLOB_MSI_MI_RES_ID
  28666. - Type: string
  28667. - Required: false
  28668. #### --azureblob-use-emulator
  28669. Uses local storage emulator if provided as 'true'.
  28670. Leave blank if using real azure storage endpoint.
  28671. Properties:
  28672. - Config: use_emulator
  28673. - Env Var: RCLONE_AZUREBLOB_USE_EMULATOR
  28674. - Type: bool
  28675. - Default: false
  28676. #### --azureblob-endpoint
  28677. Endpoint for the service.
  28678. Leave blank normally.
  28679. Properties:
  28680. - Config: endpoint
  28681. - Env Var: RCLONE_AZUREBLOB_ENDPOINT
  28682. - Type: string
  28683. - Required: false
  28684. #### --azureblob-upload-cutoff
  28685. Cutoff for switching to chunked upload (<= 256 MiB) (deprecated).
  28686. Properties:
  28687. - Config: upload_cutoff
  28688. - Env Var: RCLONE_AZUREBLOB_UPLOAD_CUTOFF
  28689. - Type: string
  28690. - Required: false
  28691. #### --azureblob-chunk-size
  28692. Upload chunk size.
  28693. Note that this is stored in memory and there may be up to
  28694. "--transfers" * "--azureblob-upload-concurrency" chunks stored at once
  28695. in memory.
  28696. Properties:
  28697. - Config: chunk_size
  28698. - Env Var: RCLONE_AZUREBLOB_CHUNK_SIZE
  28699. - Type: SizeSuffix
  28700. - Default: 4Mi
  28701. #### --azureblob-upload-concurrency
  28702. Concurrency for multipart uploads.
  28703. This is the number of chunks of the same file that are uploaded
  28704. concurrently.
  28705. If you are uploading small numbers of large files over high-speed
  28706. links and these uploads do not fully utilize your bandwidth, then
  28707. increasing this may help to speed up the transfers.
  28708. In tests, upload speed increases almost linearly with upload
  28709. concurrency. For example to fill a gigabit pipe it may be necessary to
  28710. raise this to 64. Note that this will use more memory.
  28711. Note that chunks are stored in memory and there may be up to
  28712. "--transfers" * "--azureblob-upload-concurrency" chunks stored at once
  28713. in memory.
  28714. Properties:
  28715. - Config: upload_concurrency
  28716. - Env Var: RCLONE_AZUREBLOB_UPLOAD_CONCURRENCY
  28717. - Type: int
  28718. - Default: 16
  28719. #### --azureblob-list-chunk
  28720. Size of blob list.
  28721. This sets the number of blobs requested in each listing chunk. Default
  28722. is the maximum, 5000. "List blobs" requests are permitted 2 minutes
  28723. per megabyte to complete. If an operation is taking longer than 2
  28724. minutes per megabyte on average, it will time out (
  28725. [source](https://docs.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-blob-service-operations#exceptions-to-default-timeout-interval)
  28726. ). This can be used to limit the number of blobs items to return, to
  28727. avoid the time out.
  28728. Properties:
  28729. - Config: list_chunk
  28730. - Env Var: RCLONE_AZUREBLOB_LIST_CHUNK
  28731. - Type: int
  28732. - Default: 5000
  28733. #### --azureblob-access-tier
  28734. Access tier of blob: hot, cool, cold or archive.
  28735. Archived blobs can be restored by setting access tier to hot, cool or
  28736. cold. Leave blank if you intend to use default access tier, which is
  28737. set at account level
  28738. If there is no "access tier" specified, rclone doesn't apply any tier.
  28739. rclone performs "Set Tier" operation on blobs while uploading, if objects
  28740. are not modified, specifying "access tier" to new one will have no effect.
  28741. If blobs are in "archive tier" at remote, trying to perform data transfer
  28742. operations from remote will not be allowed. User should first restore by
  28743. tiering blob to "Hot", "Cool" or "Cold".
  28744. Properties:
  28745. - Config: access_tier
  28746. - Env Var: RCLONE_AZUREBLOB_ACCESS_TIER
  28747. - Type: string
  28748. - Required: false
  28749. #### --azureblob-archive-tier-delete
  28750. Delete archive tier blobs before overwriting.
  28751. Archive tier blobs cannot be updated. So without this flag, if you
  28752. attempt to update an archive tier blob, then rclone will produce the
  28753. error:
  28754. can't update archive tier blob without --azureblob-archive-tier-delete
  28755. With this flag set then before rclone attempts to overwrite an archive
  28756. tier blob, it will delete the existing blob before uploading its
  28757. replacement. This has the potential for data loss if the upload fails
  28758. (unlike updating a normal blob) and also may cost more since deleting
  28759. archive tier blobs early may be chargable.
  28760. Properties:
  28761. - Config: archive_tier_delete
  28762. - Env Var: RCLONE_AZUREBLOB_ARCHIVE_TIER_DELETE
  28763. - Type: bool
  28764. - Default: false
  28765. #### --azureblob-disable-checksum
  28766. Don't store MD5 checksum with object metadata.
  28767. Normally rclone will calculate the MD5 checksum of the input before
  28768. uploading it so it can add it to metadata on the object. This is great
  28769. for data integrity checking but can cause long delays for large files
  28770. to start uploading.
  28771. Properties:
  28772. - Config: disable_checksum
  28773. - Env Var: RCLONE_AZUREBLOB_DISABLE_CHECKSUM
  28774. - Type: bool
  28775. - Default: false
  28776. #### --azureblob-memory-pool-flush-time
  28777. How often internal memory buffer pools will be flushed. (no longer used)
  28778. Properties:
  28779. - Config: memory_pool_flush_time
  28780. - Env Var: RCLONE_AZUREBLOB_MEMORY_POOL_FLUSH_TIME
  28781. - Type: Duration
  28782. - Default: 1m0s
  28783. #### --azureblob-memory-pool-use-mmap
  28784. Whether to use mmap buffers in internal memory pool. (no longer used)
  28785. Properties:
  28786. - Config: memory_pool_use_mmap
  28787. - Env Var: RCLONE_AZUREBLOB_MEMORY_POOL_USE_MMAP
  28788. - Type: bool
  28789. - Default: false
  28790. #### --azureblob-encoding
  28791. The encoding for the backend.
  28792. See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
  28793. Properties:
  28794. - Config: encoding
  28795. - Env Var: RCLONE_AZUREBLOB_ENCODING
  28796. - Type: Encoding
  28797. - Default: Slash,BackSlash,Del,Ctl,RightPeriod,InvalidUtf8
  28798. #### --azureblob-public-access
  28799. Public access level of a container: blob or container.
  28800. Properties:
  28801. - Config: public_access
  28802. - Env Var: RCLONE_AZUREBLOB_PUBLIC_ACCESS
  28803. - Type: string
  28804. - Required: false
  28805. - Examples:
  28806. - ""
  28807. - The container and its blobs can be accessed only with an authorized request.
  28808. - It's a default value.
  28809. - "blob"
  28810. - Blob data within this container can be read via anonymous request.
  28811. - "container"
  28812. - Allow full public read access for container and blob data.
  28813. #### --azureblob-directory-markers
  28814. Upload an empty object with a trailing slash when a new directory is created
  28815. Empty folders are unsupported for bucket based remotes, this option
  28816. creates an empty object ending with "/", to persist the folder.
  28817. This object also has the metadata "hdi_isfolder = true" to conform to
  28818. the Microsoft standard.
  28819. Properties:
  28820. - Config: directory_markers
  28821. - Env Var: RCLONE_AZUREBLOB_DIRECTORY_MARKERS
  28822. - Type: bool
  28823. - Default: false
  28824. #### --azureblob-no-check-container
  28825. If set, don't attempt to check the container exists or create it.
  28826. This can be useful when trying to minimise the number of transactions
  28827. rclone does if you know the container exists already.
  28828. Properties:
  28829. - Config: no_check_container
  28830. - Env Var: RCLONE_AZUREBLOB_NO_CHECK_CONTAINER
  28831. - Type: bool
  28832. - Default: false
  28833. #### --azureblob-no-head-object
  28834. If set, do not do HEAD before GET when getting objects.
  28835. Properties:
  28836. - Config: no_head_object
  28837. - Env Var: RCLONE_AZUREBLOB_NO_HEAD_OBJECT
  28838. - Type: bool
  28839. - Default: false
  28840. #### --azureblob-delete-snapshots
  28841. Set to specify how to deal with snapshots on blob deletion.
  28842. Properties:
  28843. - Config: delete_snapshots
  28844. - Env Var: RCLONE_AZUREBLOB_DELETE_SNAPSHOTS
  28845. - Type: string
  28846. - Required: false
  28847. - Choices:
  28848. - ""
  28849. - By default, the delete operation fails if a blob has snapshots
  28850. - "include"
  28851. - Specify 'include' to remove the root blob and all its snapshots
  28852. - "only"
  28853. - Specify 'only' to remove only the snapshots but keep the root blob.
  28854. #### --azureblob-description
  28855. Description of the remote
  28856. Properties:
  28857. - Config: description
  28858. - Env Var: RCLONE_AZUREBLOB_DESCRIPTION
  28859. - Type: string
  28860. - Required: false
  28861. ### Custom upload headers
  28862. You can set custom upload headers with the `--header-upload` flag.
  28863. - Cache-Control
  28864. - Content-Disposition
  28865. - Content-Encoding
  28866. - Content-Language
  28867. - Content-Type
  28868. Eg `--header-upload "Content-Type: text/potato"`
  28869. ## Limitations
  28870. MD5 sums are only uploaded with chunked files if the source has an MD5
  28871. sum. This will always be the case for a local to azure copy.
  28872. `rclone about` is not supported by the Microsoft Azure Blob storage backend. Backends without
  28873. this capability cannot determine free space for an rclone mount or
  28874. use policy `mfs` (most free space) as a member of an rclone union
  28875. remote.
  28876. See [List of backends that do not support rclone about](https://rclone.org/overview/#optional-features) and [rclone about](https://rclone.org/commands/rclone_about/)
  28877. ## Azure Storage Emulator Support
  28878. You can run rclone with the storage emulator (usually _azurite_).
  28879. To do this, just set up a new remote with `rclone config` following
  28880. the instructions in the introduction and set `use_emulator` in the
  28881. advanced settings as `true`. You do not need to provide a default
  28882. account name nor an account key. But you can override them in the
  28883. `account` and `key` options. (Prior to v1.61 they were hard coded to
  28884. _azurite_'s `devstoreaccount1`.)
  28885. Also, if you want to access a storage emulator instance running on a
  28886. different machine, you can override the `endpoint` parameter in the
  28887. advanced settings, setting it to
  28888. `http(s)://<host>:<port>/devstoreaccount1`
  28889. (e.g. `http://10.254.2.5:10000/devstoreaccount1`).
  28890. # Microsoft Azure Files Storage
  28891. Paths are specified as `remote:` You may put subdirectories in too,
  28892. e.g. `remote:path/to/dir`.
  28893. ## Configuration
  28894. Here is an example of making a Microsoft Azure Files Storage
  28895. configuration. For a remote called `remote`. First run:
  28896. rclone config
  28897. This will guide you through an interactive setup process:
  28898. No remotes found, make a new one? n) New remote s) Set configuration
  28899. password q) Quit config n/s/q> n name> remote Type of storage to
  28900. configure. Choose a number from below, or type in your own value [snip]
  28901. XX / Microsoft Azure Files Storage  "azurefiles" [snip]
  28902. Option account. Azure Storage Account Name. Set this to the Azure
  28903. Storage Account Name in use. Leave blank to use SAS URL or connection
  28904. string, otherwise it needs to be set. If this is blank and if env_auth
  28905. is set it will be read from the environment variable
  28906. AZURE_STORAGE_ACCOUNT_NAME if possible. Enter a value. Press Enter to
  28907. leave empty. account> account_name
  28908. Option share_name. Azure Files Share Name. This is required and is the
  28909. name of the share to access. Enter a value. Press Enter to leave empty.
  28910. share_name> share_name
  28911. Option env_auth. Read credentials from runtime (environment variables,
  28912. CLI or MSI). See the authentication docs for full info. Enter a boolean
  28913. value (true or false). Press Enter for the default (false). env_auth>
  28914. Option key. Storage Account Shared Key. Leave blank to use SAS URL or
  28915. connection string. Enter a value. Press Enter to leave empty. key>
  28916. base64encodedkey==
  28917. Option sas_url. SAS URL. Leave blank if using account/key or connection
  28918. string. Enter a value. Press Enter to leave empty. sas_url>
  28919. Option connection_string. Azure Files Connection String. Enter a value.
  28920. Press Enter to leave empty. connection_string> [snip]
  28921. Configuration complete. Options: - type: azurefiles - account:
  28922. account_name - share_name: share_name - key: base64encodedkey== Keep
  28923. this "remote" remote? y) Yes this is OK (default) e) Edit this remote d)
  28924. Delete this remote y/e/d>
  28925. Once configured you can use rclone.
  28926. See all files in the top level:
  28927. rclone lsf remote:
  28928. Make a new directory in the root:
  28929. rclone mkdir remote:dir
  28930. Recursively List the contents:
  28931. rclone ls remote:
  28932. Sync `/home/local/directory` to the remote directory, deleting any
  28933. excess files in the directory.
  28934. rclone sync --interactive /home/local/directory remote:dir
  28935. ### Modified time
  28936. The modified time is stored as Azure standard `LastModified` time on
  28937. files
  28938. ### Performance
  28939. When uploading large files, increasing the value of
  28940. `--azurefiles-upload-concurrency` will increase performance at the cost
  28941. of using more memory. The default of 16 is set quite conservatively to
  28942. use less memory. It maybe be necessary raise it to 64 or higher to
  28943. fully utilize a 1 GBit/s link with a single file transfer.
  28944. ### Restricted filename characters
  28945. In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
  28946. the following characters are also replaced:
  28947. | Character | Value | Replacement |
  28948. | --------- |:-----:|:-----------:|
  28949. | " | 0x22 | " |
  28950. | * | 0x2A | * |
  28951. | : | 0x3A | : |
  28952. | < | 0x3C | < |
  28953. | > | 0x3E | > |
  28954. | ? | 0x3F | ? |
  28955. | \ | 0x5C | \ |
  28956. | \| | 0x7C | | |
  28957. File names can also not end with the following characters.
  28958. These only get replaced if they are the last character in the name:
  28959. | Character | Value | Replacement |
  28960. | --------- |:-----:|:-----------:|
  28961. | . | 0x2E | . |
  28962. Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
  28963. as they can't be used in JSON strings.
  28964. ### Hashes
  28965. MD5 hashes are stored with files. Not all files will have MD5 hashes
  28966. as these have to be uploaded with the file.
  28967. ### Authentication {#authentication}
  28968. There are a number of ways of supplying credentials for Azure Files
  28969. Storage. Rclone tries them in the order of the sections below.
  28970. #### Env Auth
  28971. If the `env_auth` config parameter is `true` then rclone will pull
  28972. credentials from the environment or runtime.
  28973. It tries these authentication methods in this order:
  28974. 1. Environment Variables
  28975. 2. Managed Service Identity Credentials
  28976. 3. Azure CLI credentials (as used by the az tool)
  28977. These are described in the following sections
  28978. ##### Env Auth: 1. Environment Variables
  28979. If `env_auth` is set and environment variables are present rclone
  28980. authenticates a service principal with a secret or certificate, or a
  28981. user with a password, depending on which environment variable are set.
  28982. It reads configuration from these variables, in the following order:
  28983. 1. Service principal with client secret
  28984. - `AZURE_TENANT_ID`: ID of the service principal's tenant. Also called its "directory" ID.
  28985. - `AZURE_CLIENT_ID`: the service principal's client ID
  28986. - `AZURE_CLIENT_SECRET`: one of the service principal's client secrets
  28987. 2. Service principal with certificate
  28988. - `AZURE_TENANT_ID`: ID of the service principal's tenant. Also called its "directory" ID.
  28989. - `AZURE_CLIENT_ID`: the service principal's client ID
  28990. - `AZURE_CLIENT_CERTIFICATE_PATH`: path to a PEM or PKCS12 certificate file including the private key.
  28991. - `AZURE_CLIENT_CERTIFICATE_PASSWORD`: (optional) password for the certificate file.
  28992. - `AZURE_CLIENT_SEND_CERTIFICATE_CHAIN`: (optional) Specifies whether an authentication request will include an x5c header to support subject name / issuer based authentication. When set to "true" or "1", authentication requests include the x5c header.
  28993. 3. User with username and password
  28994. - `AZURE_TENANT_ID`: (optional) tenant to authenticate in. Defaults to "organizations".
  28995. - `AZURE_CLIENT_ID`: client ID of the application the user will authenticate to
  28996. - `AZURE_USERNAME`: a username (usually an email address)
  28997. - `AZURE_PASSWORD`: the user's password
  28998. 4. Workload Identity
  28999. - `AZURE_TENANT_ID`: Tenant to authenticate in.
  29000. - `AZURE_CLIENT_ID`: Client ID of the application the user will authenticate to.
  29001. - `AZURE_FEDERATED_TOKEN_FILE`: Path to projected service account token file.
  29002. - `AZURE_AUTHORITY_HOST`: Authority of an Azure Active Directory endpoint (default: login.microsoftonline.com).
  29003. ##### Env Auth: 2. Managed Service Identity Credentials
  29004. When using Managed Service Identity if the VM(SS) on which this
  29005. program is running has a system-assigned identity, it will be used by
  29006. default. If the resource has no system-assigned but exactly one
  29007. user-assigned identity, the user-assigned identity will be used by
  29008. default.
  29009. If the resource has multiple user-assigned identities you will need to
  29010. unset `env_auth` and set `use_msi` instead. See the [`use_msi`
  29011. section](#use_msi).
  29012. ##### Env Auth: 3. Azure CLI credentials (as used by the az tool)
  29013. Credentials created with the `az` tool can be picked up using `env_auth`.
  29014. For example if you were to login with a service principal like this:
  29015. az login --service-principal -u XXX -p XXX --tenant XXX
  29016. Then you could access rclone resources like this:
  29017. rclone lsf :azurefiles,env_auth,account=ACCOUNT:
  29018. Or
  29019. rclone lsf --azurefiles-env-auth --azurefiles-account=ACCOUNT :azurefiles:
  29020. #### Account and Shared Key
  29021. This is the most straight forward and least flexible way. Just fill
  29022. in the `account` and `key` lines and leave the rest blank.
  29023. #### SAS URL
  29024. To use it leave `account`, `key` and `connection_string` blank and fill in `sas_url`.
  29025. #### Connection String
  29026. To use it leave `account`, `key` and "sas_url" blank and fill in `connection_string`.
  29027. #### Service principal with client secret
  29028. If these variables are set, rclone will authenticate with a service principal with a client secret.
  29029. - `tenant`: ID of the service principal's tenant. Also called its "directory" ID.
  29030. - `client_id`: the service principal's client ID
  29031. - `client_secret`: one of the service principal's client secrets
  29032. The credentials can also be placed in a file using the
  29033. `service_principal_file` configuration option.
  29034. #### Service principal with certificate
  29035. If these variables are set, rclone will authenticate with a service principal with certificate.
  29036. - `tenant`: ID of the service principal's tenant. Also called its "directory" ID.
  29037. - `client_id`: the service principal's client ID
  29038. - `client_certificate_path`: path to a PEM or PKCS12 certificate file including the private key.
  29039. - `client_certificate_password`: (optional) password for the certificate file.
  29040. - `client_send_certificate_chain`: (optional) Specifies whether an authentication request will include an x5c header to support subject name / issuer based authentication. When set to "true" or "1", authentication requests include the x5c header.
  29041. **NB** `client_certificate_password` must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
  29042. #### User with username and password
  29043. If these variables are set, rclone will authenticate with username and password.
  29044. - `tenant`: (optional) tenant to authenticate in. Defaults to "organizations".
  29045. - `client_id`: client ID of the application the user will authenticate to
  29046. - `username`: a username (usually an email address)
  29047. - `password`: the user's password
  29048. Microsoft doesn't recommend this kind of authentication, because it's
  29049. less secure than other authentication flows. This method is not
  29050. interactive, so it isn't compatible with any form of multi-factor
  29051. authentication, and the application must already have user or admin
  29052. consent. This credential can only authenticate work and school
  29053. accounts; it can't authenticate Microsoft accounts.
  29054. **NB** `password` must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
  29055. #### Managed Service Identity Credentials {#use_msi}
  29056. If `use_msi` is set then managed service identity credentials are
  29057. used. This authentication only works when running in an Azure service.
  29058. `env_auth` needs to be unset to use this.
  29059. However if you have multiple user identities to choose from these must
  29060. be explicitly specified using exactly one of the `msi_object_id`,
  29061. `msi_client_id`, or `msi_mi_res_id` parameters.
  29062. If none of `msi_object_id`, `msi_client_id`, or `msi_mi_res_id` is
  29063. set, this is is equivalent to using `env_auth`.
  29064. ### Standard options
  29065. Here are the Standard options specific to azurefiles (Microsoft Azure Files).
  29066. #### --azurefiles-account
  29067. Azure Storage Account Name.
  29068. Set this to the Azure Storage Account Name in use.
  29069. Leave blank to use SAS URL or connection string, otherwise it needs to be set.
  29070. If this is blank and if env_auth is set it will be read from the
  29071. environment variable `AZURE_STORAGE_ACCOUNT_NAME` if possible.
  29072. Properties:
  29073. - Config: account
  29074. - Env Var: RCLONE_AZUREFILES_ACCOUNT
  29075. - Type: string
  29076. - Required: false
  29077. #### --azurefiles-share-name
  29078. Azure Files Share Name.
  29079. This is required and is the name of the share to access.
  29080. Properties:
  29081. - Config: share_name
  29082. - Env Var: RCLONE_AZUREFILES_SHARE_NAME
  29083. - Type: string
  29084. - Required: false
  29085. #### --azurefiles-env-auth
  29086. Read credentials from runtime (environment variables, CLI or MSI).
  29087. See the [authentication docs](/azurefiles#authentication) for full info.
  29088. Properties:
  29089. - Config: env_auth
  29090. - Env Var: RCLONE_AZUREFILES_ENV_AUTH
  29091. - Type: bool
  29092. - Default: false
  29093. #### --azurefiles-key
  29094. Storage Account Shared Key.
  29095. Leave blank to use SAS URL or connection string.
  29096. Properties:
  29097. - Config: key
  29098. - Env Var: RCLONE_AZUREFILES_KEY
  29099. - Type: string
  29100. - Required: false
  29101. #### --azurefiles-sas-url
  29102. SAS URL.
  29103. Leave blank if using account/key or connection string.
  29104. Properties:
  29105. - Config: sas_url
  29106. - Env Var: RCLONE_AZUREFILES_SAS_URL
  29107. - Type: string
  29108. - Required: false
  29109. #### --azurefiles-connection-string
  29110. Azure Files Connection String.
  29111. Properties:
  29112. - Config: connection_string
  29113. - Env Var: RCLONE_AZUREFILES_CONNECTION_STRING
  29114. - Type: string
  29115. - Required: false
  29116. #### --azurefiles-tenant
  29117. ID of the service principal's tenant. Also called its directory ID.
  29118. Set this if using
  29119. - Service principal with client secret
  29120. - Service principal with certificate
  29121. - User with username and password
  29122. Properties:
  29123. - Config: tenant
  29124. - Env Var: RCLONE_AZUREFILES_TENANT
  29125. - Type: string
  29126. - Required: false
  29127. #### --azurefiles-client-id
  29128. The ID of the client in use.
  29129. Set this if using
  29130. - Service principal with client secret
  29131. - Service principal with certificate
  29132. - User with username and password
  29133. Properties:
  29134. - Config: client_id
  29135. - Env Var: RCLONE_AZUREFILES_CLIENT_ID
  29136. - Type: string
  29137. - Required: false
  29138. #### --azurefiles-client-secret
  29139. One of the service principal's client secrets
  29140. Set this if using
  29141. - Service principal with client secret
  29142. Properties:
  29143. - Config: client_secret
  29144. - Env Var: RCLONE_AZUREFILES_CLIENT_SECRET
  29145. - Type: string
  29146. - Required: false
  29147. #### --azurefiles-client-certificate-path
  29148. Path to a PEM or PKCS12 certificate file including the private key.
  29149. Set this if using
  29150. - Service principal with certificate
  29151. Properties:
  29152. - Config: client_certificate_path
  29153. - Env Var: RCLONE_AZUREFILES_CLIENT_CERTIFICATE_PATH
  29154. - Type: string
  29155. - Required: false
  29156. #### --azurefiles-client-certificate-password
  29157. Password for the certificate file (optional).
  29158. Optionally set this if using
  29159. - Service principal with certificate
  29160. And the certificate has a password.
  29161. **NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
  29162. Properties:
  29163. - Config: client_certificate_password
  29164. - Env Var: RCLONE_AZUREFILES_CLIENT_CERTIFICATE_PASSWORD
  29165. - Type: string
  29166. - Required: false
  29167. ### Advanced options
  29168. Here are the Advanced options specific to azurefiles (Microsoft Azure Files).
  29169. #### --azurefiles-client-send-certificate-chain
  29170. Send the certificate chain when using certificate auth.
  29171. Specifies whether an authentication request will include an x5c header
  29172. to support subject name / issuer based authentication. When set to
  29173. true, authentication requests include the x5c header.
  29174. Optionally set this if using
  29175. - Service principal with certificate
  29176. Properties:
  29177. - Config: client_send_certificate_chain
  29178. - Env Var: RCLONE_AZUREFILES_CLIENT_SEND_CERTIFICATE_CHAIN
  29179. - Type: bool
  29180. - Default: false
  29181. #### --azurefiles-username
  29182. User name (usually an email address)
  29183. Set this if using
  29184. - User with username and password
  29185. Properties:
  29186. - Config: username
  29187. - Env Var: RCLONE_AZUREFILES_USERNAME
  29188. - Type: string
  29189. - Required: false
  29190. #### --azurefiles-password
  29191. The user's password
  29192. Set this if using
  29193. - User with username and password
  29194. **NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
  29195. Properties:
  29196. - Config: password
  29197. - Env Var: RCLONE_AZUREFILES_PASSWORD
  29198. - Type: string
  29199. - Required: false
  29200. #### --azurefiles-service-principal-file
  29201. Path to file containing credentials for use with a service principal.
  29202. Leave blank normally. Needed only if you want to use a service principal instead of interactive login.
  29203. $ az ad sp create-for-rbac --name "<name>" \
  29204. --role "Storage Files Data Owner" \
  29205. --scopes "/subscriptions/<subscription>/resourceGroups/<resource-group>/providers/Microsoft.Storage/storageAccounts/<storage-account>/blobServices/default/containers/<container>" \
  29206. > azure-principal.json
  29207. See ["Create an Azure service principal"](https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli) and ["Assign an Azure role for access to files data"](https://docs.microsoft.com/en-us/azure/storage/common/storage-auth-aad-rbac-cli) pages for more details.
  29208. **NB** this section needs updating for Azure Files - pull requests appreciated!
  29209. It may be more convenient to put the credentials directly into the
  29210. rclone config file under the `client_id`, `tenant` and `client_secret`
  29211. keys instead of setting `service_principal_file`.
  29212. Properties:
  29213. - Config: service_principal_file
  29214. - Env Var: RCLONE_AZUREFILES_SERVICE_PRINCIPAL_FILE
  29215. - Type: string
  29216. - Required: false
  29217. #### --azurefiles-use-msi
  29218. Use a managed service identity to authenticate (only works in Azure).
  29219. When true, use a [managed service identity](https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/)
  29220. to authenticate to Azure Storage instead of a SAS token or account key.
  29221. If the VM(SS) on which this program is running has a system-assigned identity, it will
  29222. be used by default. If the resource has no system-assigned but exactly one user-assigned identity,
  29223. the user-assigned identity will be used by default. If the resource has multiple user-assigned
  29224. identities, the identity to use must be explicitly specified using exactly one of the msi_object_id,
  29225. msi_client_id, or msi_mi_res_id parameters.
  29226. Properties:
  29227. - Config: use_msi
  29228. - Env Var: RCLONE_AZUREFILES_USE_MSI
  29229. - Type: bool
  29230. - Default: false
  29231. #### --azurefiles-msi-object-id
  29232. Object ID of the user-assigned MSI to use, if any.
  29233. Leave blank if msi_client_id or msi_mi_res_id specified.
  29234. Properties:
  29235. - Config: msi_object_id
  29236. - Env Var: RCLONE_AZUREFILES_MSI_OBJECT_ID
  29237. - Type: string
  29238. - Required: false
  29239. #### --azurefiles-msi-client-id
  29240. Object ID of the user-assigned MSI to use, if any.
  29241. Leave blank if msi_object_id or msi_mi_res_id specified.
  29242. Properties:
  29243. - Config: msi_client_id
  29244. - Env Var: RCLONE_AZUREFILES_MSI_CLIENT_ID
  29245. - Type: string
  29246. - Required: false
  29247. #### --azurefiles-msi-mi-res-id
  29248. Azure resource ID of the user-assigned MSI to use, if any.
  29249. Leave blank if msi_client_id or msi_object_id specified.
  29250. Properties:
  29251. - Config: msi_mi_res_id
  29252. - Env Var: RCLONE_AZUREFILES_MSI_MI_RES_ID
  29253. - Type: string
  29254. - Required: false
  29255. #### --azurefiles-endpoint
  29256. Endpoint for the service.
  29257. Leave blank normally.
  29258. Properties:
  29259. - Config: endpoint
  29260. - Env Var: RCLONE_AZUREFILES_ENDPOINT
  29261. - Type: string
  29262. - Required: false
  29263. #### --azurefiles-chunk-size
  29264. Upload chunk size.
  29265. Note that this is stored in memory and there may be up to
  29266. "--transfers" * "--azurefile-upload-concurrency" chunks stored at once
  29267. in memory.
  29268. Properties:
  29269. - Config: chunk_size
  29270. - Env Var: RCLONE_AZUREFILES_CHUNK_SIZE
  29271. - Type: SizeSuffix
  29272. - Default: 4Mi
  29273. #### --azurefiles-upload-concurrency
  29274. Concurrency for multipart uploads.
  29275. This is the number of chunks of the same file that are uploaded
  29276. concurrently.
  29277. If you are uploading small numbers of large files over high-speed
  29278. links and these uploads do not fully utilize your bandwidth, then
  29279. increasing this may help to speed up the transfers.
  29280. Note that chunks are stored in memory and there may be up to
  29281. "--transfers" * "--azurefile-upload-concurrency" chunks stored at once
  29282. in memory.
  29283. Properties:
  29284. - Config: upload_concurrency
  29285. - Env Var: RCLONE_AZUREFILES_UPLOAD_CONCURRENCY
  29286. - Type: int
  29287. - Default: 16
  29288. #### --azurefiles-max-stream-size
  29289. Max size for streamed files.
  29290. Azure files needs to know in advance how big the file will be. When
  29291. rclone doesn't know it uses this value instead.
  29292. This will be used when rclone is streaming data, the most common uses are:
  29293. - Uploading files with `--vfs-cache-mode off` with `rclone mount`
  29294. - Using `rclone rcat`
  29295. - Copying files with unknown length
  29296. You will need this much free space in the share as the file will be this size temporarily.
  29297. Properties:
  29298. - Config: max_stream_size
  29299. - Env Var: RCLONE_AZUREFILES_MAX_STREAM_SIZE
  29300. - Type: SizeSuffix
  29301. - Default: 10Gi
  29302. #### --azurefiles-encoding
  29303. The encoding for the backend.
  29304. See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
  29305. Properties:
  29306. - Config: encoding
  29307. - Env Var: RCLONE_AZUREFILES_ENCODING
  29308. - Type: Encoding
  29309. - Default: Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Del,Ctl,RightPeriod,InvalidUtf8,Dot
  29310. #### --azurefiles-description
  29311. Description of the remote
  29312. Properties:
  29313. - Config: description
  29314. - Env Var: RCLONE_AZUREFILES_DESCRIPTION
  29315. - Type: string
  29316. - Required: false
  29317. ### Custom upload headers
  29318. You can set custom upload headers with the `--header-upload` flag.
  29319. - Cache-Control
  29320. - Content-Disposition
  29321. - Content-Encoding
  29322. - Content-Language
  29323. - Content-Type
  29324. Eg `--header-upload "Content-Type: text/potato"`
  29325. ## Limitations
  29326. MD5 sums are only uploaded with chunked files if the source has an MD5
  29327. sum. This will always be the case for a local to azure copy.
  29328. # Microsoft OneDrive
  29329. Paths are specified as `remote:path`
  29330. Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
  29331. ## Configuration
  29332. The initial setup for OneDrive involves getting a token from
  29333. Microsoft which you need to do in your browser. `rclone config` walks
  29334. you through it.
  29335. Here is an example of how to make a remote called `remote`. First run:
  29336. rclone config
  29337. This will guide you through an interactive setup process:
  29338. e) Edit existing remote
  29339. f) New remote
  29340. g) Delete remote
  29341. h) Rename remote
  29342. i) Copy remote
  29343. j) Set configuration password
  29344. k) Quit config e/n/d/r/c/s/q> n name> remote Type of storage to
  29345. configure. Enter a string value. Press Enter for the default ("").
  29346. Choose a number from below, or type in your own value [snip] XX /
  29347. Microsoft OneDrive  "onedrive" [snip] Storage> onedrive Microsoft
  29348. App Client Id Leave blank normally. Enter a string value. Press
  29349. Enter for the default (""). client_id> Microsoft App Client Secret
  29350. Leave blank normally. Enter a string value. Press Enter for the
  29351. default (""). client_secret> Edit advanced config? (y/n)
  29352. l) Yes
  29353. m) No y/n> n Remote config Use web browser to automatically
  29354. authenticate rclone with remote?
  29355. - Say Y if the machine running rclone has a web browser you can use
  29356. - Say N if running rclone on a (remote) machine without web browser
  29357. access If not sure try Y. If Y failed, try N.
  29358. y) Yes
  29359. z) No y/n> y If your browser doesn't open automatically go to the
  29360. following link: http://127.0.0.1:53682/auth Log in and authorize
  29361. rclone for access Waiting for code... Got code Choose a number from
  29362. below, or type in an existing value 1 / OneDrive Personal or
  29363. Business  "onedrive" 2 / Sharepoint site  "sharepoint" 3 / Type in
  29364. driveID  "driveid" 4 / Type in SiteID  "siteid" 5 / Search a
  29365. Sharepoint site  "search" Your choice> 1 Found 1 drives, please
  29366. select the one you want to use: 0: OneDrive (business)
  29367. id=b!Eqwertyuiopasdfghjklzxcvbnm-7mnbvcxzlkjhgfdsapoiuytrewqk Chose
  29368. drive to use:> 0 Found drive 'root' of type 'business', URL:
  29369. https://org-my.sharepoint.com/personal/you/Documents Is that okay?
  29370. a) Yes
  29371. b) No y/n> y -------------------- [remote] type = onedrive token =
  29372. {"access_token":"youraccesstoken","token_type":"Bearer","refresh_token":"yourrefreshtoken","expiry":"2018-08-26T22:39:52.486512262+08:00"}
  29373. drive_id =
  29374. b!Eqwertyuiopasdfghjklzxcvbnm-7mnbvcxzlkjhgfdsapoiuytrewqk
  29375. drive_type = business --------------------
  29376. c) Yes this is OK
  29377. d) Edit this remote
  29378. e) Delete this remote y/e/d> y
  29379. See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
  29380. machine with no Internet browser available.
  29381. Note that rclone runs a webserver on your local machine to collect the
  29382. token as returned from Microsoft. This only runs from the moment it
  29383. opens your browser to the moment you get back the verification
  29384. code. This is on `http://127.0.0.1:53682/` and this it may require
  29385. you to unblock it temporarily if you are running a host firewall.
  29386. Once configured you can then use `rclone` like this,
  29387. List directories in top level of your OneDrive
  29388. rclone lsd remote:
  29389. List all the files in your OneDrive
  29390. rclone ls remote:
  29391. To copy a local directory to an OneDrive directory called backup
  29392. rclone copy /home/source remote:backup
  29393. ### Getting your own Client ID and Key
  29394. rclone uses a default Client ID when talking to OneDrive, unless a custom `client_id` is specified in the config.
  29395. The default Client ID and Key are shared by all rclone users when performing requests.
  29396. You may choose to create and use your own Client ID, in case the default one does not work well for you.
  29397. For example, you might see throttling.
  29398. #### Creating Client ID for OneDrive Personal
  29399. To create your own Client ID, please follow these steps:
  29400. 1. Open https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade and then click `New registration`.
  29401. 2. Enter a name for your app, choose account type `Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)`, select `Web` in `Redirect URI`, then type (do not copy and paste) `http://localhost:53682/` and click Register. Copy and keep the `Application (client) ID` under the app name for later use.
  29402. 3. Under `manage` select `Certificates & secrets`, click `New client secret`. Enter a description (can be anything) and set `Expires` to 24 months. Copy and keep that secret _Value_ for later use (you _won't_ be able to see this value afterwards).
  29403. 4. Under `manage` select `API permissions`, click `Add a permission` and select `Microsoft Graph` then select `delegated permissions`.
  29404. 5. Search and select the following permissions: `Files.Read`, `Files.ReadWrite`, `Files.Read.All`, `Files.ReadWrite.All`, `offline_access`, `User.Read` and `Sites.Read.All` (if custom access scopes are configured, select the permissions accordingly). Once selected click `Add permissions` at the bottom.
  29405. Now the application is complete. Run `rclone config` to create or edit a OneDrive remote.
  29406. Supply the app ID and password as Client ID and Secret, respectively. rclone will walk you through the remaining steps.
  29407. The access_scopes option allows you to configure the permissions requested by rclone.
  29408. See [Microsoft Docs](https://docs.microsoft.com/en-us/graph/permissions-reference#files-permissions) for more information about the different scopes.
  29409. The `Sites.Read.All` permission is required if you need to [search SharePoint sites when configuring the remote](https://github.com/rclone/rclone/pull/5883). However, if that permission is not assigned, you need to exclude `Sites.Read.All` from your access scopes or set `disable_site_permission` option to true in the advanced options.
  29410. #### Creating Client ID for OneDrive Business
  29411. The steps for OneDrive Personal may or may not work for OneDrive Business, depending on the security settings of the organization.
  29412. A common error is that the publisher of the App is not verified.
  29413. You may try to [verify you account](https://docs.microsoft.com/en-us/azure/active-directory/develop/publisher-verification-overview), or try to limit the App to your organization only, as shown below.
  29414. 1. Make sure to create the App with your business account.
  29415. 2. Follow the steps above to create an App. However, we need a different account type here: `Accounts in this organizational directory only (*** - Single tenant)`. Note that you can also change the account type after creating the App.
  29416. 3. Find the [tenant ID](https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-how-to-find-tenant) of your organization.
  29417. 4. In the rclone config, set `auth_url` to `https://login.microsoftonline.com/YOUR_TENANT_ID/oauth2/v2.0/authorize`.
  29418. 5. In the rclone config, set `token_url` to `https://login.microsoftonline.com/YOUR_TENANT_ID/oauth2/v2.0/token`.
  29419. Note: If you have a special region, you may need a different host in step 4 and 5. Here are [some hints](https://github.com/rclone/rclone/blob/bc23bf11db1c78c6ebbf8ea538fbebf7058b4176/backend/onedrive/onedrive.go#L86).
  29420. ### Modification times and hashes
  29421. OneDrive allows modification times to be set on objects accurate to 1
  29422. second. These will be used to detect whether objects need syncing or
  29423. not.
  29424. OneDrive Personal, OneDrive for Business and Sharepoint Server support
  29425. [QuickXorHash](https://docs.microsoft.com/en-us/onedrive/developer/code-snippets/quickxorhash).
  29426. Before rclone 1.62 the default hash for Onedrive Personal was `SHA1`.
  29427. For rclone 1.62 and above the default for all Onedrive backends is
  29428. `QuickXorHash`.
  29429. Starting from July 2023 `SHA1` support is being phased out in Onedrive
  29430. Personal in favour of `QuickXorHash`. If necessary the
  29431. `--onedrive-hash-type` flag (or `hash_type` config option) can be used
  29432. to select `SHA1` during the transition period if this is important
  29433. your workflow.
  29434. For all types of OneDrive you can use the `--checksum` flag.
  29435. ### --fast-list
  29436. This remote supports `--fast-list` which allows you to use fewer
  29437. transactions in exchange for more memory. See the [rclone
  29438. docs](https://rclone.org/docs/#fast-list) for more details.
  29439. This must be enabled with the `--onedrive-delta` flag (or `delta =
  29440. true` in the config file) as it can cause performance degradation.
  29441. It does this by using the delta listing facilities of OneDrive which
  29442. returns all the files in the remote very efficiently. This is much
  29443. more efficient than listing directories recursively and is Microsoft's
  29444. recommended way of reading all the file information from a drive.
  29445. This can be useful with `rclone mount` and [rclone rc vfs/refresh
  29446. recursive=true](https://rclone.org/rc/#vfs-refresh)) to very quickly fill the mount with
  29447. information about all the files.
  29448. The API used for the recursive listing (`ListR`) only supports listing
  29449. from the root of the drive. This will become increasingly inefficient
  29450. the further away you get from the root as rclone will have to discard
  29451. files outside of the directory you are using.
  29452. Some commands (like `rclone lsf -R`) will use `ListR` by default - you
  29453. can turn this off with `--disable ListR` if you need to.
  29454. ### Restricted filename characters
  29455. In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
  29456. the following characters are also replaced:
  29457. | Character | Value | Replacement |
  29458. | --------- |:-----:|:-----------:|
  29459. | " | 0x22 | " |
  29460. | * | 0x2A | * |
  29461. | : | 0x3A | : |
  29462. | < | 0x3C | < |
  29463. | > | 0x3E | > |
  29464. | ? | 0x3F | ? |
  29465. | \ | 0x5C | \ |
  29466. | \| | 0x7C | | |
  29467. File names can also not end with the following characters.
  29468. These only get replaced if they are the last character in the name:
  29469. | Character | Value | Replacement |
  29470. | --------- |:-----:|:-----------:|
  29471. | SP | 0x20 | ␠ |
  29472. | . | 0x2E | . |
  29473. File names can also not begin with the following characters.
  29474. These only get replaced if they are the first character in the name:
  29475. | Character | Value | Replacement |
  29476. | --------- |:-----:|:-----------:|
  29477. | SP | 0x20 | ␠ |
  29478. | ~ | 0x7E | ~ |
  29479. Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
  29480. as they can't be used in JSON strings.
  29481. ### Deleting files
  29482. Any files you delete with rclone will end up in the trash. Microsoft
  29483. doesn't provide an API to permanently delete files, nor to empty the
  29484. trash, so you will have to do that with one of Microsoft's apps or via
  29485. the OneDrive website.
  29486. ### Standard options
  29487. Here are the Standard options specific to onedrive (Microsoft OneDrive).
  29488. #### --onedrive-client-id
  29489. OAuth Client Id.
  29490. Leave blank normally.
  29491. Properties:
  29492. - Config: client_id
  29493. - Env Var: RCLONE_ONEDRIVE_CLIENT_ID
  29494. - Type: string
  29495. - Required: false
  29496. #### --onedrive-client-secret
  29497. OAuth Client Secret.
  29498. Leave blank normally.
  29499. Properties:
  29500. - Config: client_secret
  29501. - Env Var: RCLONE_ONEDRIVE_CLIENT_SECRET
  29502. - Type: string
  29503. - Required: false
  29504. #### --onedrive-region
  29505. Choose national cloud region for OneDrive.
  29506. Properties:
  29507. - Config: region
  29508. - Env Var: RCLONE_ONEDRIVE_REGION
  29509. - Type: string
  29510. - Default: "global"
  29511. - Examples:
  29512. - "global"
  29513. - Microsoft Cloud Global
  29514. - "us"
  29515. - Microsoft Cloud for US Government
  29516. - "de"
  29517. - Microsoft Cloud Germany
  29518. - "cn"
  29519. - Azure and Office 365 operated by Vnet Group in China
  29520. ### Advanced options
  29521. Here are the Advanced options specific to onedrive (Microsoft OneDrive).
  29522. #### --onedrive-token
  29523. OAuth Access Token as a JSON blob.
  29524. Properties:
  29525. - Config: token
  29526. - Env Var: RCLONE_ONEDRIVE_TOKEN
  29527. - Type: string
  29528. - Required: false
  29529. #### --onedrive-auth-url
  29530. Auth server URL.
  29531. Leave blank to use the provider defaults.
  29532. Properties:
  29533. - Config: auth_url
  29534. - Env Var: RCLONE_ONEDRIVE_AUTH_URL
  29535. - Type: string
  29536. - Required: false
  29537. #### --onedrive-token-url
  29538. Token server url.
  29539. Leave blank to use the provider defaults.
  29540. Properties:
  29541. - Config: token_url
  29542. - Env Var: RCLONE_ONEDRIVE_TOKEN_URL
  29543. - Type: string
  29544. - Required: false
  29545. #### --onedrive-chunk-size
  29546. Chunk size to upload files with - must be multiple of 320k (327,680 bytes).
  29547. Above this size files will be chunked - must be multiple of 320k (327,680 bytes) and
  29548. should not exceed 250M (262,144,000 bytes) else you may encounter \"Microsoft.SharePoint.Client.InvalidClientQueryException: The request message is too big.\"
  29549. Note that the chunks will be buffered into memory.
  29550. Properties:
  29551. - Config: chunk_size
  29552. - Env Var: RCLONE_ONEDRIVE_CHUNK_SIZE
  29553. - Type: SizeSuffix
  29554. - Default: 10Mi
  29555. #### --onedrive-drive-id
  29556. The ID of the drive to use.
  29557. Properties:
  29558. - Config: drive_id
  29559. - Env Var: RCLONE_ONEDRIVE_DRIVE_ID
  29560. - Type: string
  29561. - Required: false
  29562. #### --onedrive-drive-type
  29563. The type of the drive (personal | business | documentLibrary).
  29564. Properties:
  29565. - Config: drive_type
  29566. - Env Var: RCLONE_ONEDRIVE_DRIVE_TYPE
  29567. - Type: string
  29568. - Required: false
  29569. #### --onedrive-root-folder-id
  29570. ID of the root folder.
  29571. This isn't normally needed, but in special circumstances you might
  29572. know the folder ID that you wish to access but not be able to get
  29573. there through a path traversal.
  29574. Properties:
  29575. - Config: root_folder_id
  29576. - Env Var: RCLONE_ONEDRIVE_ROOT_FOLDER_ID
  29577. - Type: string
  29578. - Required: false
  29579. #### --onedrive-access-scopes
  29580. Set scopes to be requested by rclone.
  29581. Choose or manually enter a custom space separated list with all scopes, that rclone should request.
  29582. Properties:
  29583. - Config: access_scopes
  29584. - Env Var: RCLONE_ONEDRIVE_ACCESS_SCOPES
  29585. - Type: SpaceSepList
  29586. - Default: Files.Read Files.ReadWrite Files.Read.All Files.ReadWrite.All Sites.Read.All offline_access
  29587. - Examples:
  29588. - "Files.Read Files.ReadWrite Files.Read.All Files.ReadWrite.All Sites.Read.All offline_access"
  29589. - Read and write access to all resources
  29590. - "Files.Read Files.Read.All Sites.Read.All offline_access"
  29591. - Read only access to all resources
  29592. - "Files.Read Files.ReadWrite Files.Read.All Files.ReadWrite.All offline_access"
  29593. - Read and write access to all resources, without the ability to browse SharePoint sites.
  29594. - Same as if disable_site_permission was set to true
  29595. #### --onedrive-disable-site-permission
  29596. Disable the request for Sites.Read.All permission.
  29597. If set to true, you will no longer be able to search for a SharePoint site when
  29598. configuring drive ID, because rclone will not request Sites.Read.All permission.
  29599. Set it to true if your organization didn't assign Sites.Read.All permission to the
  29600. application, and your organization disallows users to consent app permission
  29601. request on their own.
  29602. Properties:
  29603. - Config: disable_site_permission
  29604. - Env Var: RCLONE_ONEDRIVE_DISABLE_SITE_PERMISSION
  29605. - Type: bool
  29606. - Default: false
  29607. #### --onedrive-expose-onenote-files
  29608. Set to make OneNote files show up in directory listings.
  29609. By default, rclone will hide OneNote files in directory listings because
  29610. operations like "Open" and "Update" won't work on them. But this
  29611. behaviour may also prevent you from deleting them. If you want to
  29612. delete OneNote files or otherwise want them to show up in directory
  29613. listing, set this option.
  29614. Properties:
  29615. - Config: expose_onenote_files
  29616. - Env Var: RCLONE_ONEDRIVE_EXPOSE_ONENOTE_FILES
  29617. - Type: bool
  29618. - Default: false
  29619. #### --onedrive-server-side-across-configs
  29620. Deprecated: use --server-side-across-configs instead.
  29621. Allow server-side operations (e.g. copy) to work across different onedrive configs.
  29622. This will only work if you are copying between two OneDrive *Personal* drives AND
  29623. the files to copy are already shared between them. In other cases, rclone will
  29624. fall back to normal copy (which will be slightly slower).
  29625. Properties:
  29626. - Config: server_side_across_configs
  29627. - Env Var: RCLONE_ONEDRIVE_SERVER_SIDE_ACROSS_CONFIGS
  29628. - Type: bool
  29629. - Default: false
  29630. #### --onedrive-list-chunk
  29631. Size of listing chunk.
  29632. Properties:
  29633. - Config: list_chunk
  29634. - Env Var: RCLONE_ONEDRIVE_LIST_CHUNK
  29635. - Type: int
  29636. - Default: 1000
  29637. #### --onedrive-no-versions
  29638. Remove all versions on modifying operations.
  29639. Onedrive for business creates versions when rclone uploads new files
  29640. overwriting an existing one and when it sets the modification time.
  29641. These versions take up space out of the quota.
  29642. This flag checks for versions after file upload and setting
  29643. modification time and removes all but the last version.
  29644. **NB** Onedrive personal can't currently delete versions so don't use
  29645. this flag there.
  29646. Properties:
  29647. - Config: no_versions
  29648. - Env Var: RCLONE_ONEDRIVE_NO_VERSIONS
  29649. - Type: bool
  29650. - Default: false
  29651. #### --onedrive-link-scope
  29652. Set the scope of the links created by the link command.
  29653. Properties:
  29654. - Config: link_scope
  29655. - Env Var: RCLONE_ONEDRIVE_LINK_SCOPE
  29656. - Type: string
  29657. - Default: "anonymous"
  29658. - Examples:
  29659. - "anonymous"
  29660. - Anyone with the link has access, without needing to sign in.
  29661. - This may include people outside of your organization.
  29662. - Anonymous link support may be disabled by an administrator.
  29663. - "organization"
  29664. - Anyone signed into your organization (tenant) can use the link to get access.
  29665. - Only available in OneDrive for Business and SharePoint.
  29666. #### --onedrive-link-type
  29667. Set the type of the links created by the link command.
  29668. Properties:
  29669. - Config: link_type
  29670. - Env Var: RCLONE_ONEDRIVE_LINK_TYPE
  29671. - Type: string
  29672. - Default: "view"
  29673. - Examples:
  29674. - "view"
  29675. - Creates a read-only link to the item.
  29676. - "edit"
  29677. - Creates a read-write link to the item.
  29678. - "embed"
  29679. - Creates an embeddable link to the item.
  29680. #### --onedrive-link-password
  29681. Set the password for links created by the link command.
  29682. At the time of writing this only works with OneDrive personal paid accounts.
  29683. Properties:
  29684. - Config: link_password
  29685. - Env Var: RCLONE_ONEDRIVE_LINK_PASSWORD
  29686. - Type: string
  29687. - Required: false
  29688. #### --onedrive-hash-type
  29689. Specify the hash in use for the backend.
  29690. This specifies the hash type in use. If set to "auto" it will use the
  29691. default hash which is QuickXorHash.
  29692. Before rclone 1.62 an SHA1 hash was used by default for Onedrive
  29693. Personal. For 1.62 and later the default is to use a QuickXorHash for
  29694. all onedrive types. If an SHA1 hash is desired then set this option
  29695. accordingly.
  29696. From July 2023 QuickXorHash will be the only available hash for
  29697. both OneDrive for Business and OneDriver Personal.
  29698. This can be set to "none" to not use any hashes.
  29699. If the hash requested does not exist on the object, it will be
  29700. returned as an empty string which is treated as a missing hash by
  29701. rclone.
  29702. Properties:
  29703. - Config: hash_type
  29704. - Env Var: RCLONE_ONEDRIVE_HASH_TYPE
  29705. - Type: string
  29706. - Default: "auto"
  29707. - Examples:
  29708. - "auto"
  29709. - Rclone chooses the best hash
  29710. - "quickxor"
  29711. - QuickXor
  29712. - "sha1"
  29713. - SHA1
  29714. - "sha256"
  29715. - SHA256
  29716. - "crc32"
  29717. - CRC32
  29718. - "none"
  29719. - None - don't use any hashes
  29720. #### --onedrive-av-override
  29721. Allows download of files the server thinks has a virus.
  29722. The onedrive/sharepoint server may check files uploaded with an Anti
  29723. Virus checker. If it detects any potential viruses or malware it will
  29724. block download of the file.
  29725. In this case you will see a message like this
  29726. server reports this file is infected with a virus - use --onedrive-av-override to download anyway: Infected (name of virus): 403 Forbidden:
  29727. If you are 100% sure you want to download this file anyway then use
  29728. the --onedrive-av-override flag, or av_override = true in the config
  29729. file.
  29730. Properties:
  29731. - Config: av_override
  29732. - Env Var: RCLONE_ONEDRIVE_AV_OVERRIDE
  29733. - Type: bool
  29734. - Default: false
  29735. #### --onedrive-delta
  29736. If set rclone will use delta listing to implement recursive listings.
  29737. If this flag is set the onedrive backend will advertise `ListR`
  29738. support for recursive listings.
  29739. Setting this flag speeds up these things greatly:
  29740. rclone lsf -R onedrive:
  29741. rclone size onedrive:
  29742. rclone rc vfs/refresh recursive=true
  29743. **However** the delta listing API **only** works at the root of the
  29744. drive. If you use it not at the root then it recurses from the root
  29745. and discards all the data that is not under the directory you asked
  29746. for. So it will be correct but may not be very efficient.
  29747. This is why this flag is not set as the default.
  29748. As a rule of thumb if nearly all of your data is under rclone's root
  29749. directory (the `root/directory` in `onedrive:root/directory`) then
  29750. using this flag will be be a big performance win. If your data is
  29751. mostly not under the root then using this flag will be a big
  29752. performance loss.
  29753. It is recommended if you are mounting your onedrive at the root
  29754. (or near the root when using crypt) and using rclone `rc vfs/refresh`.
  29755. Properties:
  29756. - Config: delta
  29757. - Env Var: RCLONE_ONEDRIVE_DELTA
  29758. - Type: bool
  29759. - Default: false
  29760. #### --onedrive-metadata-permissions
  29761. Control whether permissions should be read or written in metadata.
  29762. Reading permissions metadata from files can be done quickly, but it
  29763. isn't always desirable to set the permissions from the metadata.
  29764. Properties:
  29765. - Config: metadata_permissions
  29766. - Env Var: RCLONE_ONEDRIVE_METADATA_PERMISSIONS
  29767. - Type: Bits
  29768. - Default: off
  29769. - Examples:
  29770. - "off"
  29771. - Do not read or write the value
  29772. - "read"
  29773. - Read the value only
  29774. - "write"
  29775. - Write the value only
  29776. - "read,write"
  29777. - Read and Write the value.
  29778. #### --onedrive-encoding
  29779. The encoding for the backend.
  29780. See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
  29781. Properties:
  29782. - Config: encoding
  29783. - Env Var: RCLONE_ONEDRIVE_ENCODING
  29784. - Type: Encoding
  29785. - Default: Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Del,Ctl,LeftSpace,LeftTilde,RightSpace,RightPeriod,InvalidUtf8,Dot
  29786. #### --onedrive-description
  29787. Description of the remote
  29788. Properties:
  29789. - Config: description
  29790. - Env Var: RCLONE_ONEDRIVE_DESCRIPTION
  29791. - Type: string
  29792. - Required: false
  29793. ### Metadata
  29794. OneDrive supports System Metadata (not User Metadata, as of this writing) for
  29795. both files and directories. Much of the metadata is read-only, and there are some
  29796. differences between OneDrive Personal and Business (see table below for
  29797. details).
  29798. Permissions are also supported, if `--onedrive-metadata-permissions` is set. The
  29799. accepted values for `--onedrive-metadata-permissions` are `read`, `write`,
  29800. `read,write`, and `off` (the default). `write` supports adding new permissions,
  29801. updating the "role" of existing permissions, and removing permissions. Updating
  29802. and removing require the Permission ID to be known, so it is recommended to use
  29803. `read,write` instead of `write` if you wish to update/remove permissions.
  29804. Permissions are read/written in JSON format using the same schema as the
  29805. [OneDrive API](https://learn.microsoft.com/en-us/onedrive/developer/rest-api/resources/permission?view=odsp-graph-online),
  29806. which differs slightly between OneDrive Personal and Business.
  29807. Example for OneDrive Personal:
  29808. ```json
  29809. [
  29810. {
  29811. "id": "1234567890ABC!123",
  29812. "grantedTo": {
  29813. "user": {
  29814. "id": "ryan@contoso.com"
  29815. },
  29816. "application": {},
  29817. "device": {}
  29818. },
  29819. "invitation": {
  29820. "email": "ryan@contoso.com"
  29821. },
  29822. "link": {
  29823. "webUrl": "https://1drv.ms/t/s!1234567890ABC"
  29824. },
  29825. "roles": [
  29826. "read"
  29827. ],
  29828. "shareId": "s!1234567890ABC"
  29829. }
  29830. ]
  29831. Example for OneDrive Business:
  29832. [
  29833. {
  29834. "id": "48d31887-5fad-4d73-a9f5-3c356e68a038",
  29835. "grantedToIdentities": [
  29836. {
  29837. "user": {
  29838. "displayName": "ryan@contoso.com"
  29839. },
  29840. "application": {},
  29841. "device": {}
  29842. }
  29843. ],
  29844. "link": {
  29845. "type": "view",
  29846. "scope": "users",
  29847. "webUrl": "https://contoso.sharepoint.com/:w:/t/design/a577ghg9hgh737613bmbjf839026561fmzhsr85ng9f3hjck2t5s"
  29848. },
  29849. "roles": [
  29850. "read"
  29851. ],
  29852. "shareId": "u!LKj1lkdlals90j1nlkascl"
  29853. },
  29854. {
  29855. "id": "5D33DD65C6932946",
  29856. "grantedTo": {
  29857. "user": {
  29858. "displayName": "John Doe",
  29859. "id": "efee1b77-fb3b-4f65-99d6-274c11914d12"
  29860. },
  29861. "application": {},
  29862. "device": {}
  29863. },
  29864. "roles": [
  29865. "owner"
  29866. ],
  29867. "shareId": "FWxc1lasfdbEAGM5fI7B67aB5ZMPDMmQ11U"
  29868. }
  29869. ]
  29870. To write permissions, pass in a "permissions" metadata key using this
  29871. same format. The --metadata-mapper tool can be very helpful for this.
  29872. When adding permissions, an email address can be provided in the User.ID
  29873. or DisplayName properties of grantedTo or grantedToIdentities.
  29874. Alternatively, an ObjectID can be provided in User.ID. At least one
  29875. valid recipient must be provided in order to add a permission for a
  29876. user. Creating a Public Link is also supported, if Link.Scope is set to
  29877. "anonymous".
  29878. Example request to add a "read" permission:
  29879. [
  29880. {
  29881. "id": "",
  29882. "grantedTo": {
  29883. "user": {},
  29884. "application": {},
  29885. "device": {}
  29886. },
  29887. "grantedToIdentities": [
  29888. {
  29889. "user": {
  29890. "id": "ryan@contoso.com"
  29891. },
  29892. "application": {},
  29893. "device": {}
  29894. }
  29895. ],
  29896. "roles": [
  29897. "read"
  29898. ]
  29899. }
  29900. ]
  29901. Note that adding a permission can fail if a conflicting permission
  29902. already exists for the file/folder.
  29903. To update an existing permission, include both the Permission ID and the
  29904. new roles to be assigned. roles is the only property that can be
  29905. changed.
  29906. To remove permissions, pass in a blob containing only the permissions
  29907. you wish to keep (which can be empty, to remove all.)
  29908. Note that both reading and writing permissions requires extra API calls,
  29909. so if you don't need to read or write permissions it is recommended to
  29910. omit --onedrive-metadata-permissions.
  29911. Metadata and permissions are supported for Folders (directories) as well
  29912. as Files. Note that setting the mtime or btime on a Folder requires one
  29913. extra API call on OneDrive Business only.
  29914. OneDrive does not currently support User Metadata. When writing
  29915. metadata, only writeable system properties will be written -- any
  29916. read-only or unrecognized keys passed in will be ignored.
  29917. TIP: to see the metadata and permissions for any file or folder, run:
  29918. rclone lsjson remote:path --stat -M --onedrive-metadata-permissions read
  29919. Here are the possible system metadata items for the onedrive backend.
  29920. ------------------------------------------------------------------------------------------------------------------------------------------
  29921. Name Help Type Example Read Only
  29922. ------------------------------- ---------------------------------- ----------- -------------------------------------- --------------------
  29923. btime Time of file birth (creation) with RFC 3339 2006-01-02T15:04:05Z N
  29924. S accuracy (mS for OneDrive
  29925. Personal).
  29926. content-type The MIME type of the file. string text/plain Y
  29927. created-by-display-name Display name of the user that string John Doe Y
  29928. created the item.
  29929. created-by-id ID of the user that created the string 48d31887-5fad-4d73-a9f5-3c356e68a038 Y
  29930. item.
  29931. description A short description of the file. string Contract for signing N
  29932. Max 1024 characters. Only
  29933. supported for OneDrive Personal.
  29934. id The unique identifier of the item string 01BYE5RZ6QN3ZWBTUFOFD3GSPGOHDJD36K Y
  29935. within OneDrive.
  29936. last-modified-by-display-name Display name of the user that last string John Doe Y
  29937. modified the item.
  29938. last-modified-by-id ID of the user that last modified string 48d31887-5fad-4d73-a9f5-3c356e68a038 Y
  29939. the item.
  29940. malware-detected Whether OneDrive has detected that boolean true Y
  29941. the item contains malware.
  29942. mtime Time of last modification with S RFC 3339 2006-01-02T15:04:05Z N
  29943. accuracy (mS for OneDrive
  29944. Personal).
  29945. package-type If present, indicates that this string oneNote Y
  29946. item is a package instead of a
  29947. folder or file. Packages are
  29948. treated like files in some
  29949. contexts and folders in others.
  29950. permissions Permissions in a JSON dump of JSON {} N
  29951. OneDrive format. Enable with
  29952. --onedrive-metadata-permissions.
  29953. Properties: id, grantedTo,
  29954. grantedToIdentities, invitation,
  29955. inheritedFrom, link, roles,
  29956. shareId
  29957. shared-by-id ID of the user that shared the string 48d31887-5fad-4d73-a9f5-3c356e68a038 Y
  29958. item (if shared).
  29959. shared-owner-id ID of the owner of the shared item string 48d31887-5fad-4d73-a9f5-3c356e68a038 Y
  29960. (if shared).
  29961. shared-scope If shared, indicates the scope of string users Y
  29962. how the item is shared: anonymous,
  29963. organization, or users.
  29964. shared-time Time when the item was shared, RFC 3339 2006-01-02T15:04:05Z Y
  29965. with S accuracy (mS for OneDrive
  29966. Personal).
  29967. utime Time of upload with S accuracy (mS RFC 3339 2006-01-02T15:04:05Z Y
  29968. for OneDrive Personal).
  29969. ------------------------------------------------------------------------------------------------------------------------------------------
  29970. See the metadata docs for more info.
  29971. Limitations
  29972. If you don't use rclone for 90 days the refresh token will expire. This
  29973. will result in authorization problems. This is easy to fix by running
  29974. the rclone config reconnect remote: command to get a new token and
  29975. refresh token.
  29976. Naming
  29977. Note that OneDrive is case insensitive so you can't have a file called
  29978. "Hello.doc" and one called "hello.doc".
  29979. There are quite a few characters that can't be in OneDrive file names.
  29980. These can't occur on Windows platforms, but on non-Windows platforms
  29981. they are common. Rclone will map these names to and from an identical
  29982. looking unicode equivalent. For example if a file has a ? in it will be
  29983. mapped to ? instead.
  29984. File sizes
  29985. The largest allowed file size is 250 GiB for both OneDrive Personal and
  29986. OneDrive for Business (Updated 13 Jan 2021).
  29987. Path length
  29988. The entire path, including the file name, must contain fewer than 400
  29989. characters for OneDrive, OneDrive for Business and SharePoint Online. If
  29990. you are encrypting file and folder names with rclone, you may want to
  29991. pay attention to this limitation because the encrypted names are
  29992. typically longer than the original ones.
  29993. Number of files
  29994. OneDrive seems to be OK with at least 50,000 files in a folder, but at
  29995. 100,000 rclone will get errors listing the directory like
  29996. couldn’t list files: UnknownError:. See #2707 for more info.
  29997. An official document about the limitations for different types of
  29998. OneDrive can be found here.
  29999. Versions
  30000. Every change in a file OneDrive causes the service to create a new
  30001. version of the file. This counts against a users quota. For example
  30002. changing the modification time of a file creates a second version, so
  30003. the file apparently uses twice the space.
  30004. For example the copy command is affected by this as rclone copies the
  30005. file and then afterwards sets the modification time to match the source
  30006. file which uses another version.
  30007. You can use the rclone cleanup command (see below) to remove all old
  30008. versions.
  30009. Or you can set the no_versions parameter to true and rclone will remove
  30010. versions after operations which create new versions. This takes extra
  30011. transactions so only enable it if you need it.
  30012. Note At the time of writing Onedrive Personal creates versions (but not
  30013. for setting the modification time) but the API for removing them returns
  30014. "API not found" so cleanup and no_versions should not be used on
  30015. Onedrive Personal.
  30016. Disabling versioning
  30017. Starting October 2018, users will no longer be able to disable
  30018. versioning by default. This is because Microsoft has brought an update
  30019. to the mechanism. To change this new default setting, a PowerShell
  30020. command is required to be run by a SharePoint admin. If you are an
  30021. admin, you can run these commands in PowerShell to change that setting:
  30022. 1. Install-Module -Name Microsoft.Online.SharePoint.PowerShell (in case
  30023. you haven't installed this already)
  30024. 2. Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking
  30025. 3. Connect-SPOService -Url https://YOURSITE-admin.sharepoint.com -Credential YOU@YOURSITE.COM
  30026. (replacing YOURSITE, YOU, YOURSITE.COM with the actual values; this
  30027. will prompt for your credentials)
  30028. 4. Set-SPOTenant -EnableMinimumVersionRequirement $False
  30029. 5. Disconnect-SPOService (to disconnect from the server)
  30030. Below are the steps for normal users to disable versioning. If you don't
  30031. see the "No Versioning" option, make sure the above requirements are
  30032. met.
  30033. User Weropol has found a method to disable versioning on OneDrive
  30034. 1. Open the settings menu by clicking on the gear symbol at the top of
  30035. the OneDrive Business page.
  30036. 2. Click Site settings.
  30037. 3. Once on the Site settings page, navigate to Site Administration >
  30038. Site libraries and lists.
  30039. 4. Click Customize "Documents".
  30040. 5. Click General Settings > Versioning Settings.
  30041. 6. Under Document Version History select the option No versioning.
  30042. Note: This will disable the creation of new file versions, but will
  30043. not remove any previous versions. Your documents are safe.
  30044. 7. Apply the changes by clicking OK.
  30045. 8. Use rclone to upload or modify files. (I also use the
  30046. --no-update-modtime flag)
  30047. 9. Restore the versioning settings after using rclone. (Optional)
  30048. Cleanup
  30049. OneDrive supports rclone cleanup which causes rclone to look through
  30050. every file under the path supplied and delete all version but the
  30051. current version. Because this involves traversing all the files, then
  30052. querying each file for versions it can be quite slow. Rclone does
  30053. --checkers tests in parallel. The command also supports --interactive/i
  30054. or --dry-run which is a great way to see what it would do.
  30055. rclone cleanup --interactive remote:path/subdir # interactively remove all old version for path/subdir
  30056. rclone cleanup remote:path/subdir # unconditionally remove all old version for path/subdir
  30057. NB Onedrive personal can't currently delete versions
  30058. Troubleshooting
  30059. Excessive throttling or blocked on SharePoint
  30060. If you experience excessive throttling or is being blocked on SharePoint
  30061. then it may help to set the user agent explicitly with a flag like this:
  30062. --user-agent "ISV|rclone.org|rclone/v1.55.1"
  30063. The specific details can be found in the Microsoft document: Avoid
  30064. getting throttled or blocked in SharePoint Online
  30065. Unexpected file size/hash differences on Sharepoint
  30066. It is a known issue that Sharepoint (not OneDrive or OneDrive for
  30067. Business) silently modifies uploaded files, mainly Office files (.docx,
  30068. .xlsx, etc.), causing file size and hash checks to fail. There are also
  30069. other situations that will cause OneDrive to report inconsistent file
  30070. sizes. To use rclone with such affected files on Sharepoint, you may
  30071. disable these checks with the following command line arguments:
  30072. --ignore-checksum --ignore-size
  30073. Alternatively, if you have write access to the OneDrive files, it may be
  30074. possible to fix this problem for certain files, by attempting the steps
  30075. below. Open the web interface for OneDrive and find the affected files
  30076. (which will be in the error messages/log for rclone). Simply click on
  30077. each of these files, causing OneDrive to open them on the web. This will
  30078. cause each file to be converted in place to a format that is
  30079. functionally equivalent but which will no longer trigger the size
  30080. discrepancy. Once all problematic files are converted you will no longer
  30081. need the ignore options above.
  30082. Replacing/deleting existing files on Sharepoint gets "item not found"
  30083. It is a known issue that Sharepoint (not OneDrive or OneDrive for
  30084. Business) may return "item not found" errors when users try to replace
  30085. or delete uploaded files; this seems to mainly affect Office files
  30086. (.docx, .xlsx, etc.) and web files (.html, .aspx, etc.). As a
  30087. workaround, you may use the --backup-dir <BACKUP_DIR> command line
  30088. argument so rclone moves the files to be replaced/deleted into a given
  30089. backup directory (instead of directly replacing/deleting them). For
  30090. example, to instruct rclone to move the files into the directory
  30091. rclone-backup-dir on backend mysharepoint, you may use:
  30092. --backup-dir mysharepoint:rclone-backup-dir
  30093. access_denied (AADSTS65005)
  30094. Error: access_denied
  30095. Code: AADSTS65005
  30096. Description: Using application 'rclone' is currently not supported for your organization [YOUR_ORGANIZATION] because it is in an unmanaged state. An administrator needs to claim ownership of the company by DNS validation of [YOUR_ORGANIZATION] before the application rclone can be provisioned.
  30097. This means that rclone can't use the OneDrive for Business API with your
  30098. account. You can't do much about it, maybe write an email to your
  30099. admins.
  30100. However, there are other ways to interact with your OneDrive account.
  30101. Have a look at the WebDAV backend: https://rclone.org/webdav/#sharepoint
  30102. invalid_grant (AADSTS50076)
  30103. Error: invalid_grant
  30104. Code: AADSTS50076
  30105. Description: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '...'.
  30106. If you see the error above after enabling multi-factor authentication
  30107. for your account, you can fix it by refreshing your OAuth refresh token.
  30108. To do that, run rclone config, and choose to edit your OneDrive backend.
  30109. Then, you don't need to actually make any changes until you reach this
  30110. question: Already have a token - refresh?. For this question, answer y
  30111. and go through the process to refresh your token, just like the first
  30112. time the backend is configured. After this, rclone should work again for
  30113. this backend.
  30114. Invalid request when making public links
  30115. On Sharepoint and OneDrive for Business, rclone link may return an
  30116. "Invalid request" error. A possible cause is that the organisation admin
  30117. didn't allow public links to be made for the organisation/sharepoint
  30118. library. To fix the permissions as an admin, take a look at the docs: 1,
  30119. 2.
  30120. Can not access Shared with me files
  30121. Shared with me files is not supported by rclone currently, but there is
  30122. a workaround:
  30123. 1. Visit https://onedrive.live.com
  30124. 2. Right click a item in Shared, then click Add shortcut to My files in
  30125. the context [make_shortcut]
  30126. 3. The shortcut will appear in My files, you can access it with rclone,
  30127. it behaves like a normal folder/file. [in_my_files] [rclone_mount]
  30128. Live Photos uploaded from iOS (small video clips in .heic files)
  30129. The iOS OneDrive app introduced upload and storage of Live Photos in
  30130. 2020. The usage and download of these uploaded Live Photos is
  30131. unfortunately still work-in-progress and this introduces several issues
  30132. when copying, synchronising and mounting – both in rclone and in the
  30133. native OneDrive client on Windows.
  30134. The root cause can easily be seen if you locate one of your Live Photos
  30135. in the OneDrive web interface. Then download the photo from the web
  30136. interface. You will then see that the size of downloaded .heic file is
  30137. smaller than the size displayed in the web interface. The downloaded
  30138. file is smaller because it only contains a single frame (still photo)
  30139. extracted from the Live Photo (movie) stored in OneDrive.
  30140. The different sizes will cause rclone copy/sync to repeatedly recopy
  30141. unmodified photos something like this:
  30142. DEBUG : 20230203_123826234_iOS.heic: Sizes differ (src 4470314 vs dst 1298667)
  30143. DEBUG : 20230203_123826234_iOS.heic: sha1 = fc2edde7863b7a7c93ca6771498ac797f8460750 OK
  30144. INFO : 20230203_123826234_iOS.heic: Copied (replaced existing)
  30145. These recopies can be worked around by adding --ignore-size. Please note
  30146. that this workaround only syncs the still-picture not the movie clip,
  30147. and relies on modification dates being correctly updated on all files in
  30148. all situations.
  30149. The different sizes will also cause rclone check to report size errors
  30150. something like this:
  30151. ERROR : 20230203_123826234_iOS.heic: sizes differ
  30152. These check errors can be suppressed by adding --ignore-size.
  30153. The different sizes will also cause rclone mount to fail downloading
  30154. with an error something like this:
  30155. ERROR : 20230203_123826234_iOS.heic: ReadFileHandle.Read error: low level retry 1/10: unexpected EOF
  30156. or like this when using --cache-mode=full:
  30157. INFO : 20230203_123826234_iOS.heic: vfs cache: downloader: error count now 1: vfs reader: failed to write to cache file: 416 Requested Range Not Satisfiable:
  30158. ERROR : 20230203_123826234_iOS.heic: vfs cache: failed to download: vfs reader: failed to write to cache file: 416 Requested Range Not Satisfiable:
  30159. OpenDrive
  30160. Paths are specified as remote:path
  30161. Paths may be as deep as required, e.g. remote:directory/subdirectory.
  30162. Configuration
  30163. Here is an example of how to make a remote called remote. First run:
  30164. rclone config
  30165. This will guide you through an interactive setup process:
  30166. n) New remote
  30167. d) Delete remote
  30168. q) Quit config
  30169. e/n/d/q> n
  30170. name> remote
  30171. Type of storage to configure.
  30172. Choose a number from below, or type in your own value
  30173. [snip]
  30174. XX / OpenDrive
  30175. \ "opendrive"
  30176. [snip]
  30177. Storage> opendrive
  30178. Username
  30179. username>
  30180. Password
  30181. y) Yes type in my own password
  30182. g) Generate random password
  30183. y/g> y
  30184. Enter the password:
  30185. password:
  30186. Confirm the password:
  30187. password:
  30188. --------------------
  30189. [remote]
  30190. username =
  30191. password = *** ENCRYPTED ***
  30192. --------------------
  30193. y) Yes this is OK
  30194. e) Edit this remote
  30195. d) Delete this remote
  30196. y/e/d> y
  30197. List directories in top level of your OpenDrive
  30198. rclone lsd remote:
  30199. List all the files in your OpenDrive
  30200. rclone ls remote:
  30201. To copy a local directory to an OpenDrive directory called backup
  30202. rclone copy /home/source remote:backup
  30203. Modification times and hashes
  30204. OpenDrive allows modification times to be set on objects accurate to 1
  30205. second. These will be used to detect whether objects need syncing or
  30206. not.
  30207. The MD5 hash algorithm is supported.
  30208. Restricted filename characters
  30209. Character Value Replacement
  30210. ----------- ------- -------------
  30211. NUL 0x00 ␀
  30212. / 0x2F /
  30213. " 0x22 "
  30214. * 0x2A *
  30215. : 0x3A :
  30216. < 0x3C <
  30217. > 0x3E >
  30218. ? 0x3F ?
  30219. \ 0x5C \
  30220. | 0x7C |
  30221. File names can also not begin or end with the following characters.
  30222. These only get replaced if they are the first or last character in the
  30223. name:
  30224. Character Value Replacement
  30225. ----------- ------- -------------
  30226. SP 0x20 ␠
  30227. HT 0x09 ␉
  30228. LF 0x0A ␊
  30229. VT 0x0B ␋
  30230. CR 0x0D ␍
  30231. Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
  30232. strings.
  30233. Standard options
  30234. Here are the Standard options specific to opendrive (OpenDrive).
  30235. --opendrive-username
  30236. Username.
  30237. Properties:
  30238. - Config: username
  30239. - Env Var: RCLONE_OPENDRIVE_USERNAME
  30240. - Type: string
  30241. - Required: true
  30242. --opendrive-password
  30243. Password.
  30244. NB Input to this must be obscured - see rclone obscure.
  30245. Properties:
  30246. - Config: password
  30247. - Env Var: RCLONE_OPENDRIVE_PASSWORD
  30248. - Type: string
  30249. - Required: true
  30250. Advanced options
  30251. Here are the Advanced options specific to opendrive (OpenDrive).
  30252. --opendrive-encoding
  30253. The encoding for the backend.
  30254. See the encoding section in the overview for more info.
  30255. Properties:
  30256. - Config: encoding
  30257. - Env Var: RCLONE_OPENDRIVE_ENCODING
  30258. - Type: Encoding
  30259. - Default:
  30260. Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,LeftSpace,LeftCrLfHtVt,RightSpace,RightCrLfHtVt,InvalidUtf8,Dot
  30261. --opendrive-chunk-size
  30262. Files will be uploaded in chunks this size.
  30263. Note that these chunks are buffered in memory so increasing them will
  30264. increase memory use.
  30265. Properties:
  30266. - Config: chunk_size
  30267. - Env Var: RCLONE_OPENDRIVE_CHUNK_SIZE
  30268. - Type: SizeSuffix
  30269. - Default: 10Mi
  30270. --opendrive-description
  30271. Description of the remote
  30272. Properties:
  30273. - Config: description
  30274. - Env Var: RCLONE_OPENDRIVE_DESCRIPTION
  30275. - Type: string
  30276. - Required: false
  30277. Limitations
  30278. Note that OpenDrive is case insensitive so you can't have a file called
  30279. "Hello.doc" and one called "hello.doc".
  30280. There are quite a few characters that can't be in OpenDrive file names.
  30281. These can't occur on Windows platforms, but on non-Windows platforms
  30282. they are common. Rclone will map these names to and from an identical
  30283. looking unicode equivalent. For example if a file has a ? in it will be
  30284. mapped to ? instead.
  30285. rclone about is not supported by the OpenDrive backend. Backends without
  30286. this capability cannot determine free space for an rclone mount or use
  30287. policy mfs (most free space) as a member of an rclone union remote.
  30288. See List of backends that do not support rclone about and rclone about
  30289. Oracle Object Storage
  30290. - Oracle Object Storage Overview
  30291. - Oracle Object Storage FAQ
  30292. - Oracle Object Storage Limits
  30293. Paths are specified as remote:bucket (or remote: for the lsd command.)
  30294. You may put subdirectories in too, e.g. remote:bucket/path/to/dir.
  30295. Sample command to transfer local artifacts to remote:bucket in oracle
  30296. object storage:
  30297. rclone -vvv --progress --stats-one-line --max-stats-groups 10 --log-format date,time,UTC,longfile --fast-list --buffer-size 256Mi --oos-no-check-bucket --oos-upload-cutoff 10Mi --multi-thread-cutoff 16Mi --multi-thread-streams 3000 --transfers 3000 --checkers 64 --retries 2 --oos-chunk-size 10Mi --oos-upload-concurrency 10000 --oos-attempt-resume-upload --oos-leave-parts-on-error sync ./artifacts remote:bucket -vv
  30298. Configuration
  30299. Here is an example of making an oracle object storage configuration.
  30300. rclone config walks you through it.
  30301. Here is an example of how to make a remote called remote. First run:
  30302. rclone config
  30303. This will guide you through an interactive setup process:
  30304. n) New remote
  30305. d) Delete remote
  30306. r) Rename remote
  30307. c) Copy remote
  30308. s) Set configuration password
  30309. q) Quit config
  30310. e/n/d/r/c/s/q> n
  30311. Enter name for new remote.
  30312. name> remote
  30313. Option Storage.
  30314. Type of storage to configure.
  30315. Choose a number from below, or type in your own value.
  30316. [snip]
  30317. XX / Oracle Cloud Infrastructure Object Storage
  30318. \ (oracleobjectstorage)
  30319. Storage> oracleobjectstorage
  30320. Option provider.
  30321. Choose your Auth Provider
  30322. Choose a number from below, or type in your own string value.
  30323. Press Enter for the default (env_auth).
  30324. 1 / automatically pickup the credentials from runtime(env), first one to provide auth wins
  30325. \ (env_auth)
  30326. / use an OCI user and an API key for authentication.
  30327. 2 | you’ll need to put in a config file your tenancy OCID, user OCID, region, the path, fingerprint to an API key.
  30328. | https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm
  30329. \ (user_principal_auth)
  30330. / use instance principals to authorize an instance to make API calls.
  30331. 3 | each instance has its own identity, and authenticates using the certificates that are read from instance metadata.
  30332. | https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/callingservicesfrominstances.htm
  30333. \ (instance_principal_auth)
  30334. / use workload identity to grant Kubernetes pods policy-driven access to Oracle Cloud
  30335. 4 | Infrastructure (OCI) resources using OCI Identity and Access Management (IAM).
  30336. | https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contenggrantingworkloadaccesstoresources.htm
  30337. \ (workload_identity_auth)
  30338. 5 / use resource principals to make API calls
  30339. \ (resource_principal_auth)
  30340. 6 / no credentials needed, this is typically for reading public buckets
  30341. \ (no_auth)
  30342. provider> 2
  30343. Option namespace.
  30344. Object storage namespace
  30345. Enter a value.
  30346. namespace> idbamagbg734
  30347. Option compartment.
  30348. Object storage compartment OCID
  30349. Enter a value.
  30350. compartment> ocid1.compartment.oc1..aaaaaaaapufkxc7ame3sthry5i7ujrwfc7ejnthhu6bhanm5oqfjpyasjkba
  30351. Option region.
  30352. Object storage Region
  30353. Enter a value.
  30354. region> us-ashburn-1
  30355. Option endpoint.
  30356. Endpoint for Object storage API.
  30357. Leave blank to use the default endpoint for the region.
  30358. Enter a value. Press Enter to leave empty.
  30359. endpoint>
  30360. Option config_file.
  30361. Full Path to OCI config file
  30362. Choose a number from below, or type in your own string value.
  30363. Press Enter for the default (~/.oci/config).
  30364. 1 / oci configuration file location
  30365. \ (~/.oci/config)
  30366. config_file> /etc/oci/dev.conf
  30367. Option config_profile.
  30368. Profile name inside OCI config file
  30369. Choose a number from below, or type in your own string value.
  30370. Press Enter for the default (Default).
  30371. 1 / Use the default profile
  30372. \ (Default)
  30373. config_profile> Test
  30374. Edit advanced config?
  30375. y) Yes
  30376. n) No (default)
  30377. y/n> n
  30378. Configuration complete.
  30379. Options:
  30380. - type: oracleobjectstorage
  30381. - namespace: idbamagbg734
  30382. - compartment: ocid1.compartment.oc1..aaaaaaaapufkxc7ame3sthry5i7ujrwfc7ejnthhu6bhanm5oqfjpyasjkba
  30383. - region: us-ashburn-1
  30384. - provider: user_principal_auth
  30385. - config_file: /etc/oci/dev.conf
  30386. - config_profile: Test
  30387. Keep this "remote" remote?
  30388. y) Yes this is OK (default)
  30389. e) Edit this remote
  30390. d) Delete this remote
  30391. y/e/d> y
  30392. See all buckets
  30393. rclone lsd remote:
  30394. Create a new bucket
  30395. rclone mkdir remote:bucket
  30396. List the contents of a bucket
  30397. rclone ls remote:bucket
  30398. rclone ls remote:bucket --max-depth 1
  30399. Authentication Providers
  30400. OCI has various authentication methods. To learn more about
  30401. authentication methods please refer oci authentication methods These
  30402. choices can be specified in the rclone config file.
  30403. Rclone supports the following OCI authentication provider.
  30404. User Principal
  30405. Instance Principal
  30406. Resource Principal
  30407. Workload Identity
  30408. No authentication
  30409. User Principal
  30410. Sample rclone config file for Authentication Provider User Principal:
  30411. [oos]
  30412. type = oracleobjectstorage
  30413. namespace = id<redacted>34
  30414. compartment = ocid1.compartment.oc1..aa<redacted>ba
  30415. region = us-ashburn-1
  30416. provider = user_principal_auth
  30417. config_file = /home/opc/.oci/config
  30418. config_profile = Default
  30419. Advantages: - One can use this method from any server within OCI or
  30420. on-premises or from other cloud provider.
  30421. Considerations: - you need to configure user’s privileges / policy to
  30422. allow access to object storage - Overhead of managing users and keys. -
  30423. If the user is deleted, the config file will no longer work and may
  30424. cause automation regressions that use the user's credentials.
  30425. Instance Principal
  30426. An OCI compute instance can be authorized to use rclone by using it's
  30427. identity and certificates as an instance principal. With this approach
  30428. no credentials have to be stored and managed.
  30429. Sample rclone configuration file for Authentication Provider Instance
  30430. Principal:
  30431. [opc@rclone ~]$ cat ~/.config/rclone/rclone.conf
  30432. [oos]
  30433. type = oracleobjectstorage
  30434. namespace = id<redacted>fn
  30435. compartment = ocid1.compartment.oc1..aa<redacted>k7a
  30436. region = us-ashburn-1
  30437. provider = instance_principal_auth
  30438. Advantages:
  30439. - With instance principals, you don't need to configure user
  30440. credentials and transfer/ save it to disk in your compute instances
  30441. or rotate the credentials.
  30442. - You don’t need to deal with users and keys.
  30443. - Greatly helps in automation as you don't have to manage access keys,
  30444. user private keys, storing them in vault, using kms etc.
  30445. Considerations:
  30446. - You need to configure a dynamic group having this instance as member
  30447. and add policy to read object storage to that dynamic group.
  30448. - Everyone who has access to this machine can execute the CLI
  30449. commands.
  30450. - It is applicable for oci compute instances only. It cannot be used
  30451. on external instance or resources.
  30452. Resource Principal
  30453. Resource principal auth is very similar to instance principal auth but
  30454. used for resources that are not compute instances such as serverless
  30455. functions. To use resource principal ensure Rclone process is started
  30456. with these environment variables set in its process.
  30457. export OCI_RESOURCE_PRINCIPAL_VERSION=2.2
  30458. export OCI_RESOURCE_PRINCIPAL_REGION=us-ashburn-1
  30459. export OCI_RESOURCE_PRINCIPAL_PRIVATE_PEM=/usr/share/model-server/key.pem
  30460. export OCI_RESOURCE_PRINCIPAL_RPST=/usr/share/model-server/security_token
  30461. Sample rclone configuration file for Authentication Provider Resource
  30462. Principal:
  30463. [oos]
  30464. type = oracleobjectstorage
  30465. namespace = id<redacted>34
  30466. compartment = ocid1.compartment.oc1..aa<redacted>ba
  30467. region = us-ashburn-1
  30468. provider = resource_principal_auth
  30469. Workload Identity
  30470. Workload Identity auth may be used when running Rclone from Kubernetes
  30471. pod on a Container Engine for Kubernetes (OKE) cluster. For more details
  30472. on configuring Workload Identity, see Granting Workloads Access to OCI
  30473. Resources. To use workload identity, ensure Rclone is started with these
  30474. environment variables set in its process.
  30475. export OCI_RESOURCE_PRINCIPAL_VERSION=2.2
  30476. export OCI_RESOURCE_PRINCIPAL_REGION=us-ashburn-1
  30477. No authentication
  30478. Public buckets do not require any authentication mechanism to read
  30479. objects. Sample rclone configuration file for No authentication:
  30480. [oos]
  30481. type = oracleobjectstorage
  30482. namespace = id<redacted>34
  30483. compartment = ocid1.compartment.oc1..aa<redacted>ba
  30484. region = us-ashburn-1
  30485. provider = no_auth
  30486. Modification times and hashes
  30487. The modification time is stored as metadata on the object as
  30488. opc-meta-mtime as floating point since the epoch, accurate to 1 ns.
  30489. If the modification time needs to be updated rclone will attempt to
  30490. perform a server side copy to update the modification if the object can
  30491. be copied in a single part. In the case the object is larger than 5Gb,
  30492. the object will be uploaded rather than copied.
  30493. Note that reading this from the object takes an additional HEAD request
  30494. as the metadata isn't returned in object listings.
  30495. The MD5 hash algorithm is supported.
  30496. Multipart uploads
  30497. rclone supports multipart uploads with OOS which means that it can
  30498. upload files bigger than 5 GiB.
  30499. Note that files uploaded both with multipart upload and through crypt
  30500. remotes do not have MD5 sums.
  30501. rclone switches from single part uploads to multipart uploads at the
  30502. point specified by --oos-upload-cutoff. This can be a maximum of 5 GiB
  30503. and a minimum of 0 (ie always upload multipart files).
  30504. The chunk sizes used in the multipart upload are specified by
  30505. --oos-chunk-size and the number of chunks uploaded concurrently is
  30506. specified by --oos-upload-concurrency.
  30507. Multipart uploads will use --transfers * --oos-upload-concurrency *
  30508. --oos-chunk-size extra memory. Single part uploads to not use extra
  30509. memory.
  30510. Single part transfers can be faster than multipart transfers or slower
  30511. depending on your latency from oos - the more latency, the more likely
  30512. single part transfers will be faster.
  30513. Increasing --oos-upload-concurrency will increase throughput (8 would be
  30514. a sensible value) and increasing --oos-chunk-size also increases
  30515. throughput (16M would be sensible). Increasing either of these will use
  30516. more memory. The default values are high enough to gain most of the
  30517. possible performance without using too much memory.
  30518. Standard options
  30519. Here are the Standard options specific to oracleobjectstorage (Oracle
  30520. Cloud Infrastructure Object Storage).
  30521. --oos-provider
  30522. Choose your Auth Provider
  30523. Properties:
  30524. - Config: provider
  30525. - Env Var: RCLONE_OOS_PROVIDER
  30526. - Type: string
  30527. - Default: "env_auth"
  30528. - Examples:
  30529. - "env_auth"
  30530. - automatically pickup the credentials from runtime(env),
  30531. first one to provide auth wins
  30532. - "user_principal_auth"
  30533. - use an OCI user and an API key for authentication.
  30534. - you’ll need to put in a config file your tenancy OCID, user
  30535. OCID, region, the path, fingerprint to an API key.
  30536. - https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm
  30537. - "instance_principal_auth"
  30538. - use instance principals to authorize an instance to make API
  30539. calls.
  30540. - each instance has its own identity, and authenticates using
  30541. the certificates that are read from instance metadata.
  30542. - https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/callingservicesfrominstances.htm
  30543. - "workload_identity_auth"
  30544. - use workload identity to grant OCI Container Engine for
  30545. Kubernetes workloads policy-driven access to OCI resources
  30546. using OCI Identity and Access Management (IAM).
  30547. - https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contenggrantingworkloadaccesstoresources.htm
  30548. - "resource_principal_auth"
  30549. - use resource principals to make API calls
  30550. - "no_auth"
  30551. - no credentials needed, this is typically for reading public
  30552. buckets
  30553. --oos-namespace
  30554. Object storage namespace
  30555. Properties:
  30556. - Config: namespace
  30557. - Env Var: RCLONE_OOS_NAMESPACE
  30558. - Type: string
  30559. - Required: true
  30560. --oos-compartment
  30561. Object storage compartment OCID
  30562. Properties:
  30563. - Config: compartment
  30564. - Env Var: RCLONE_OOS_COMPARTMENT
  30565. - Provider: !no_auth
  30566. - Type: string
  30567. - Required: true
  30568. --oos-region
  30569. Object storage Region
  30570. Properties:
  30571. - Config: region
  30572. - Env Var: RCLONE_OOS_REGION
  30573. - Type: string
  30574. - Required: true
  30575. --oos-endpoint
  30576. Endpoint for Object storage API.
  30577. Leave blank to use the default endpoint for the region.
  30578. Properties:
  30579. - Config: endpoint
  30580. - Env Var: RCLONE_OOS_ENDPOINT
  30581. - Type: string
  30582. - Required: false
  30583. --oos-config-file
  30584. Path to OCI config file
  30585. Properties:
  30586. - Config: config_file
  30587. - Env Var: RCLONE_OOS_CONFIG_FILE
  30588. - Provider: user_principal_auth
  30589. - Type: string
  30590. - Default: "~/.oci/config"
  30591. - Examples:
  30592. - "~/.oci/config"
  30593. - oci configuration file location
  30594. --oos-config-profile
  30595. Profile name inside the oci config file
  30596. Properties:
  30597. - Config: config_profile
  30598. - Env Var: RCLONE_OOS_CONFIG_PROFILE
  30599. - Provider: user_principal_auth
  30600. - Type: string
  30601. - Default: "Default"
  30602. - Examples:
  30603. - "Default"
  30604. - Use the default profile
  30605. Advanced options
  30606. Here are the Advanced options specific to oracleobjectstorage (Oracle
  30607. Cloud Infrastructure Object Storage).
  30608. --oos-storage-tier
  30609. The storage class to use when storing new objects in storage.
  30610. https://docs.oracle.com/en-us/iaas/Content/Object/Concepts/understandingstoragetiers.htm
  30611. Properties:
  30612. - Config: storage_tier
  30613. - Env Var: RCLONE_OOS_STORAGE_TIER
  30614. - Type: string
  30615. - Default: "Standard"
  30616. - Examples:
  30617. - "Standard"
  30618. - Standard storage tier, this is the default tier
  30619. - "InfrequentAccess"
  30620. - InfrequentAccess storage tier
  30621. - "Archive"
  30622. - Archive storage tier
  30623. --oos-upload-cutoff
  30624. Cutoff for switching to chunked upload.
  30625. Any files larger than this will be uploaded in chunks of chunk_size. The
  30626. minimum is 0 and the maximum is 5 GiB.
  30627. Properties:
  30628. - Config: upload_cutoff
  30629. - Env Var: RCLONE_OOS_UPLOAD_CUTOFF
  30630. - Type: SizeSuffix
  30631. - Default: 200Mi
  30632. --oos-chunk-size
  30633. Chunk size to use for uploading.
  30634. When uploading files larger than upload_cutoff or files with unknown
  30635. size (e.g. from "rclone rcat" or uploaded with "rclone mount" they will
  30636. be uploaded as multipart uploads using this chunk size.
  30637. Note that "upload_concurrency" chunks of this size are buffered in
  30638. memory per transfer.
  30639. If you are transferring large files over high-speed links and you have
  30640. enough memory, then increasing this will speed up the transfers.
  30641. Rclone will automatically increase the chunk size when uploading a large
  30642. file of known size to stay below the 10,000 chunks limit.
  30643. Files of unknown size are uploaded with the configured chunk_size. Since
  30644. the default chunk size is 5 MiB and there can be at most 10,000 chunks,
  30645. this means that by default the maximum size of a file you can stream
  30646. upload is 48 GiB. If you wish to stream upload larger files then you
  30647. will need to increase chunk_size.
  30648. Increasing the chunk size decreases the accuracy of the progress
  30649. statistics displayed with "-P" flag.
  30650. Properties:
  30651. - Config: chunk_size
  30652. - Env Var: RCLONE_OOS_CHUNK_SIZE
  30653. - Type: SizeSuffix
  30654. - Default: 5Mi
  30655. --oos-max-upload-parts
  30656. Maximum number of parts in a multipart upload.
  30657. This option defines the maximum number of multipart chunks to use when
  30658. doing a multipart upload.
  30659. OCI has max parts limit of 10,000 chunks.
  30660. Rclone will automatically increase the chunk size when uploading a large
  30661. file of a known size to stay below this number of chunks limit.
  30662. Properties:
  30663. - Config: max_upload_parts
  30664. - Env Var: RCLONE_OOS_MAX_UPLOAD_PARTS
  30665. - Type: int
  30666. - Default: 10000
  30667. --oos-upload-concurrency
  30668. Concurrency for multipart uploads.
  30669. This is the number of chunks of the same file that are uploaded
  30670. concurrently.
  30671. If you are uploading small numbers of large files over high-speed links
  30672. and these uploads do not fully utilize your bandwidth, then increasing
  30673. this may help to speed up the transfers.
  30674. Properties:
  30675. - Config: upload_concurrency
  30676. - Env Var: RCLONE_OOS_UPLOAD_CONCURRENCY
  30677. - Type: int
  30678. - Default: 10
  30679. --oos-copy-cutoff
  30680. Cutoff for switching to multipart copy.
  30681. Any files larger than this that need to be server-side copied will be
  30682. copied in chunks of this size.
  30683. The minimum is 0 and the maximum is 5 GiB.
  30684. Properties:
  30685. - Config: copy_cutoff
  30686. - Env Var: RCLONE_OOS_COPY_CUTOFF
  30687. - Type: SizeSuffix
  30688. - Default: 4.656Gi
  30689. --oos-copy-timeout
  30690. Timeout for copy.
  30691. Copy is an asynchronous operation, specify timeout to wait for copy to
  30692. succeed
  30693. Properties:
  30694. - Config: copy_timeout
  30695. - Env Var: RCLONE_OOS_COPY_TIMEOUT
  30696. - Type: Duration
  30697. - Default: 1m0s
  30698. --oos-disable-checksum
  30699. Don't store MD5 checksum with object metadata.
  30700. Normally rclone will calculate the MD5 checksum of the input before
  30701. uploading it so it can add it to metadata on the object. This is great
  30702. for data integrity checking but can cause long delays for large files to
  30703. start uploading.
  30704. Properties:
  30705. - Config: disable_checksum
  30706. - Env Var: RCLONE_OOS_DISABLE_CHECKSUM
  30707. - Type: bool
  30708. - Default: false
  30709. --oos-encoding
  30710. The encoding for the backend.
  30711. See the encoding section in the overview for more info.
  30712. Properties:
  30713. - Config: encoding
  30714. - Env Var: RCLONE_OOS_ENCODING
  30715. - Type: Encoding
  30716. - Default: Slash,InvalidUtf8,Dot
  30717. --oos-leave-parts-on-error
  30718. If true avoid calling abort upload on a failure, leaving all
  30719. successfully uploaded parts for manual recovery.
  30720. It should be set to true for resuming uploads across different sessions.
  30721. WARNING: Storing parts of an incomplete multipart upload counts towards
  30722. space usage on object storage and will add additional costs if not
  30723. cleaned up.
  30724. Properties:
  30725. - Config: leave_parts_on_error
  30726. - Env Var: RCLONE_OOS_LEAVE_PARTS_ON_ERROR
  30727. - Type: bool
  30728. - Default: false
  30729. --oos-attempt-resume-upload
  30730. If true attempt to resume previously started multipart upload for the
  30731. object. This will be helpful to speed up multipart transfers by resuming
  30732. uploads from past session.
  30733. WARNING: If chunk size differs in resumed session from past incomplete
  30734. session, then the resumed multipart upload is aborted and a new
  30735. multipart upload is started with the new chunk size.
  30736. The flag leave_parts_on_error must be true to resume and optimize to
  30737. skip parts that were already uploaded successfully.
  30738. Properties:
  30739. - Config: attempt_resume_upload
  30740. - Env Var: RCLONE_OOS_ATTEMPT_RESUME_UPLOAD
  30741. - Type: bool
  30742. - Default: false
  30743. --oos-no-check-bucket
  30744. If set, don't attempt to check the bucket exists or create it.
  30745. This can be useful when trying to minimise the number of transactions
  30746. rclone does if you know the bucket exists already.
  30747. It can also be needed if the user you are using does not have bucket
  30748. creation permissions.
  30749. Properties:
  30750. - Config: no_check_bucket
  30751. - Env Var: RCLONE_OOS_NO_CHECK_BUCKET
  30752. - Type: bool
  30753. - Default: false
  30754. --oos-sse-customer-key-file
  30755. To use SSE-C, a file containing the base64-encoded string of the AES-256
  30756. encryption key associated with the object. Please note only one of
  30757. sse_customer_key_file|sse_customer_key|sse_kms_key_id is needed.'
  30758. Properties:
  30759. - Config: sse_customer_key_file
  30760. - Env Var: RCLONE_OOS_SSE_CUSTOMER_KEY_FILE
  30761. - Type: string
  30762. - Required: false
  30763. - Examples:
  30764. - ""
  30765. - None
  30766. --oos-sse-customer-key
  30767. To use SSE-C, the optional header that specifies the base64-encoded
  30768. 256-bit encryption key to use to encrypt or decrypt the data. Please
  30769. note only one of sse_customer_key_file|sse_customer_key|sse_kms_key_id
  30770. is needed. For more information, see Using Your Own Keys for Server-Side
  30771. Encryption
  30772. (https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm)
  30773. Properties:
  30774. - Config: sse_customer_key
  30775. - Env Var: RCLONE_OOS_SSE_CUSTOMER_KEY
  30776. - Type: string
  30777. - Required: false
  30778. - Examples:
  30779. - ""
  30780. - None
  30781. --oos-sse-customer-key-sha256
  30782. If using SSE-C, The optional header that specifies the base64-encoded
  30783. SHA256 hash of the encryption key. This value is used to check the
  30784. integrity of the encryption key. see Using Your Own Keys for Server-Side
  30785. Encryption
  30786. (https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm).
  30787. Properties:
  30788. - Config: sse_customer_key_sha256
  30789. - Env Var: RCLONE_OOS_SSE_CUSTOMER_KEY_SHA256
  30790. - Type: string
  30791. - Required: false
  30792. - Examples:
  30793. - ""
  30794. - None
  30795. --oos-sse-kms-key-id
  30796. if using your own master key in vault, this header specifies the OCID
  30797. (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
  30798. of a master encryption key used to call the Key Management service to
  30799. generate a data encryption key or to encrypt or decrypt a data
  30800. encryption key. Please note only one of
  30801. sse_customer_key_file|sse_customer_key|sse_kms_key_id is needed.
  30802. Properties:
  30803. - Config: sse_kms_key_id
  30804. - Env Var: RCLONE_OOS_SSE_KMS_KEY_ID
  30805. - Type: string
  30806. - Required: false
  30807. - Examples:
  30808. - ""
  30809. - None
  30810. --oos-sse-customer-algorithm
  30811. If using SSE-C, the optional header that specifies "AES256" as the
  30812. encryption algorithm. Object Storage supports "AES256" as the encryption
  30813. algorithm. For more information, see Using Your Own Keys for Server-Side
  30814. Encryption
  30815. (https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm).
  30816. Properties:
  30817. - Config: sse_customer_algorithm
  30818. - Env Var: RCLONE_OOS_SSE_CUSTOMER_ALGORITHM
  30819. - Type: string
  30820. - Required: false
  30821. - Examples:
  30822. - ""
  30823. - None
  30824. - "AES256"
  30825. - AES256
  30826. --oos-description
  30827. Description of the remote
  30828. Properties:
  30829. - Config: description
  30830. - Env Var: RCLONE_OOS_DESCRIPTION
  30831. - Type: string
  30832. - Required: false
  30833. Backend commands
  30834. Here are the commands specific to the oracleobjectstorage backend.
  30835. Run them with
  30836. rclone backend COMMAND remote:
  30837. The help below will explain what arguments each command takes.
  30838. See the backend command for more info on how to pass options and
  30839. arguments.
  30840. These can be run on a running backend using the rc command
  30841. backend/command.
  30842. rename
  30843. change the name of an object
  30844. rclone backend rename remote: [options] [<arguments>+]
  30845. This command can be used to rename a object.
  30846. Usage Examples:
  30847. rclone backend rename oos:bucket relative-object-path-under-bucket object-new-name
  30848. list-multipart-uploads
  30849. List the unfinished multipart uploads
  30850. rclone backend list-multipart-uploads remote: [options] [<arguments>+]
  30851. This command lists the unfinished multipart uploads in JSON format.
  30852. rclone backend list-multipart-uploads oos:bucket/path/to/object
  30853. It returns a dictionary of buckets with values as lists of unfinished
  30854. multipart uploads.
  30855. You can call it with no bucket in which case it lists all bucket, with a
  30856. bucket or with a bucket and path.
  30857. {
  30858. "test-bucket": [
  30859. {
  30860. "namespace": "test-namespace",
  30861. "bucket": "test-bucket",
  30862. "object": "600m.bin",
  30863. "uploadId": "51dd8114-52a4-b2f2-c42f-5291f05eb3c8",
  30864. "timeCreated": "2022-07-29T06:21:16.595Z",
  30865. "storageTier": "Standard"
  30866. }
  30867. ]
  30868. cleanup
  30869. Remove unfinished multipart uploads.
  30870. rclone backend cleanup remote: [options] [<arguments>+]
  30871. This command removes unfinished multipart uploads of age greater than
  30872. max-age which defaults to 24 hours.
  30873. Note that you can use --interactive/-i or --dry-run with this command to
  30874. see what it would do.
  30875. rclone backend cleanup oos:bucket/path/to/object
  30876. rclone backend cleanup -o max-age=7w oos:bucket/path/to/object
  30877. Durations are parsed as per the rest of rclone, 2h, 7d, 7w etc.
  30878. Options:
  30879. - "max-age": Max age of upload to delete
  30880. restore
  30881. Restore objects from Archive to Standard storage
  30882. rclone backend restore remote: [options] [<arguments>+]
  30883. This command can be used to restore one or more objects from Archive to
  30884. Standard storage.
  30885. Usage Examples:
  30886. rclone backend restore oos:bucket/path/to/directory -o hours=HOURS
  30887. rclone backend restore oos:bucket -o hours=HOURS
  30888. This flag also obeys the filters. Test first with --interactive/-i or
  30889. --dry-run flags
  30890. rclone --interactive backend restore --include "*.txt" oos:bucket/path -o hours=72
  30891. All the objects shown will be marked for restore, then
  30892. rclone backend restore --include "*.txt" oos:bucket/path -o hours=72
  30893. It returns a list of status dictionaries with Object Name and Status
  30894. keys. The Status will be "RESTORED"" if it was successful or an error message
  30895. if not.
  30896. [
  30897. {
  30898. "Object": "test.txt"
  30899. "Status": "RESTORED",
  30900. },
  30901. {
  30902. "Object": "test/file4.txt"
  30903. "Status": "RESTORED",
  30904. }
  30905. ]
  30906. Options:
  30907. - "hours": The number of hours for which this object will be restored.
  30908. Default is 24 hrs.
  30909. Tutorials
  30910. Mounting Buckets
  30911. QingStor
  30912. Paths are specified as remote:bucket (or remote: for the lsd command.)
  30913. You may put subdirectories in too, e.g. remote:bucket/path/to/dir.
  30914. Configuration
  30915. Here is an example of making an QingStor configuration. First run
  30916. rclone config
  30917. This will guide you through an interactive setup process.
  30918. No remotes found, make a new one?
  30919. n) New remote
  30920. r) Rename remote
  30921. c) Copy remote
  30922. s) Set configuration password
  30923. q) Quit config
  30924. n/r/c/s/q> n
  30925. name> remote
  30926. Type of storage to configure.
  30927. Choose a number from below, or type in your own value
  30928. [snip]
  30929. XX / QingStor Object Storage
  30930. \ "qingstor"
  30931. [snip]
  30932. Storage> qingstor
  30933. Get QingStor credentials from runtime. Only applies if access_key_id and secret_access_key is blank.
  30934. Choose a number from below, or type in your own value
  30935. 1 / Enter QingStor credentials in the next step
  30936. \ "false"
  30937. 2 / Get QingStor credentials from the environment (env vars or IAM)
  30938. \ "true"
  30939. env_auth> 1
  30940. QingStor Access Key ID - leave blank for anonymous access or runtime credentials.
  30941. access_key_id> access_key
  30942. QingStor Secret Access Key (password) - leave blank for anonymous access or runtime credentials.
  30943. secret_access_key> secret_key
  30944. Enter an endpoint URL to connection QingStor API.
  30945. Leave blank will use the default value "https://qingstor.com:443"
  30946. endpoint>
  30947. Zone connect to. Default is "pek3a".
  30948. Choose a number from below, or type in your own value
  30949. / The Beijing (China) Three Zone
  30950. 1 | Needs location constraint pek3a.
  30951. \ "pek3a"
  30952. / The Shanghai (China) First Zone
  30953. 2 | Needs location constraint sh1a.
  30954. \ "sh1a"
  30955. zone> 1
  30956. Number of connection retry.
  30957. Leave blank will use the default value "3".
  30958. connection_retries>
  30959. Remote config
  30960. --------------------
  30961. [remote]
  30962. env_auth = false
  30963. access_key_id = access_key
  30964. secret_access_key = secret_key
  30965. endpoint =
  30966. zone = pek3a
  30967. connection_retries =
  30968. --------------------
  30969. y) Yes this is OK
  30970. e) Edit this remote
  30971. d) Delete this remote
  30972. y/e/d> y
  30973. This remote is called remote and can now be used like this
  30974. See all buckets
  30975. rclone lsd remote:
  30976. Make a new bucket
  30977. rclone mkdir remote:bucket
  30978. List the contents of a bucket
  30979. rclone ls remote:bucket
  30980. Sync /home/local/directory to the remote bucket, deleting any excess
  30981. files in the bucket.
  30982. rclone sync --interactive /home/local/directory remote:bucket
  30983. --fast-list
  30984. This remote supports --fast-list which allows you to use fewer
  30985. transactions in exchange for more memory. See the rclone docs for more
  30986. details.
  30987. Multipart uploads
  30988. rclone supports multipart uploads with QingStor which means that it can
  30989. upload files bigger than 5 GiB. Note that files uploaded with multipart
  30990. upload don't have an MD5SUM.
  30991. Note that incomplete multipart uploads older than 24 hours can be
  30992. removed with rclone cleanup remote:bucket just for one bucket
  30993. rclone cleanup remote: for all buckets. QingStor does not ever remove
  30994. incomplete multipart uploads so it may be necessary to run this from
  30995. time to time.
  30996. Buckets and Zone
  30997. With QingStor you can list buckets (rclone lsd) using any zone, but you
  30998. can only access the content of a bucket from the zone it was created in.
  30999. If you attempt to access a bucket from the wrong zone, you will get an
  31000. error, incorrect zone, the bucket is not in 'XXX' zone.
  31001. Authentication
  31002. There are two ways to supply rclone with a set of QingStor credentials.
  31003. In order of precedence:
  31004. - Directly in the rclone configuration file (as configured by
  31005. rclone config)
  31006. - set access_key_id and secret_access_key
  31007. - Runtime configuration:
  31008. - set env_auth to true in the config file
  31009. - Exporting the following environment variables before running
  31010. rclone
  31011. - Access Key ID: QS_ACCESS_KEY_ID or QS_ACCESS_KEY
  31012. - Secret Access Key: QS_SECRET_ACCESS_KEY or QS_SECRET_KEY
  31013. Restricted filename characters
  31014. The control characters 0x00-0x1F and / are replaced as in the default
  31015. restricted characters set. Note that 0x7F is not replaced.
  31016. Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
  31017. strings.
  31018. Standard options
  31019. Here are the Standard options specific to qingstor (QingCloud Object
  31020. Storage).
  31021. --qingstor-env-auth
  31022. Get QingStor credentials from runtime.
  31023. Only applies if access_key_id and secret_access_key is blank.
  31024. Properties:
  31025. - Config: env_auth
  31026. - Env Var: RCLONE_QINGSTOR_ENV_AUTH
  31027. - Type: bool
  31028. - Default: false
  31029. - Examples:
  31030. - "false"
  31031. - Enter QingStor credentials in the next step.
  31032. - "true"
  31033. - Get QingStor credentials from the environment (env vars or
  31034. IAM).
  31035. --qingstor-access-key-id
  31036. QingStor Access Key ID.
  31037. Leave blank for anonymous access or runtime credentials.
  31038. Properties:
  31039. - Config: access_key_id
  31040. - Env Var: RCLONE_QINGSTOR_ACCESS_KEY_ID
  31041. - Type: string
  31042. - Required: false
  31043. --qingstor-secret-access-key
  31044. QingStor Secret Access Key (password).
  31045. Leave blank for anonymous access or runtime credentials.
  31046. Properties:
  31047. - Config: secret_access_key
  31048. - Env Var: RCLONE_QINGSTOR_SECRET_ACCESS_KEY
  31049. - Type: string
  31050. - Required: false
  31051. --qingstor-endpoint
  31052. Enter an endpoint URL to connection QingStor API.
  31053. Leave blank will use the default value "https://qingstor.com:443".
  31054. Properties:
  31055. - Config: endpoint
  31056. - Env Var: RCLONE_QINGSTOR_ENDPOINT
  31057. - Type: string
  31058. - Required: false
  31059. --qingstor-zone
  31060. Zone to connect to.
  31061. Default is "pek3a".
  31062. Properties:
  31063. - Config: zone
  31064. - Env Var: RCLONE_QINGSTOR_ZONE
  31065. - Type: string
  31066. - Required: false
  31067. - Examples:
  31068. - "pek3a"
  31069. - The Beijing (China) Three Zone.
  31070. - Needs location constraint pek3a.
  31071. - "sh1a"
  31072. - The Shanghai (China) First Zone.
  31073. - Needs location constraint sh1a.
  31074. - "gd2a"
  31075. - The Guangdong (China) Second Zone.
  31076. - Needs location constraint gd2a.
  31077. Advanced options
  31078. Here are the Advanced options specific to qingstor (QingCloud Object
  31079. Storage).
  31080. --qingstor-connection-retries
  31081. Number of connection retries.
  31082. Properties:
  31083. - Config: connection_retries
  31084. - Env Var: RCLONE_QINGSTOR_CONNECTION_RETRIES
  31085. - Type: int
  31086. - Default: 3
  31087. --qingstor-upload-cutoff
  31088. Cutoff for switching to chunked upload.
  31089. Any files larger than this will be uploaded in chunks of chunk_size. The
  31090. minimum is 0 and the maximum is 5 GiB.
  31091. Properties:
  31092. - Config: upload_cutoff
  31093. - Env Var: RCLONE_QINGSTOR_UPLOAD_CUTOFF
  31094. - Type: SizeSuffix
  31095. - Default: 200Mi
  31096. --qingstor-chunk-size
  31097. Chunk size to use for uploading.
  31098. When uploading files larger than upload_cutoff they will be uploaded as
  31099. multipart uploads using this chunk size.
  31100. Note that "--qingstor-upload-concurrency" chunks of this size are
  31101. buffered in memory per transfer.
  31102. If you are transferring large files over high-speed links and you have
  31103. enough memory, then increasing this will speed up the transfers.
  31104. Properties:
  31105. - Config: chunk_size
  31106. - Env Var: RCLONE_QINGSTOR_CHUNK_SIZE
  31107. - Type: SizeSuffix
  31108. - Default: 4Mi
  31109. --qingstor-upload-concurrency
  31110. Concurrency for multipart uploads.
  31111. This is the number of chunks of the same file that are uploaded
  31112. concurrently.
  31113. NB if you set this to > 1 then the checksums of multipart uploads become
  31114. corrupted (the uploads themselves are not corrupted though).
  31115. If you are uploading small numbers of large files over high-speed links
  31116. and these uploads do not fully utilize your bandwidth, then increasing
  31117. this may help to speed up the transfers.
  31118. Properties:
  31119. - Config: upload_concurrency
  31120. - Env Var: RCLONE_QINGSTOR_UPLOAD_CONCURRENCY
  31121. - Type: int
  31122. - Default: 1
  31123. --qingstor-encoding
  31124. The encoding for the backend.
  31125. See the encoding section in the overview for more info.
  31126. Properties:
  31127. - Config: encoding
  31128. - Env Var: RCLONE_QINGSTOR_ENCODING
  31129. - Type: Encoding
  31130. - Default: Slash,Ctl,InvalidUtf8
  31131. --qingstor-description
  31132. Description of the remote
  31133. Properties:
  31134. - Config: description
  31135. - Env Var: RCLONE_QINGSTOR_DESCRIPTION
  31136. - Type: string
  31137. - Required: false
  31138. Limitations
  31139. rclone about is not supported by the qingstor backend. Backends without
  31140. this capability cannot determine free space for an rclone mount or use
  31141. policy mfs (most free space) as a member of an rclone union remote.
  31142. See List of backends that do not support rclone about and rclone about
  31143. Quatrix
  31144. Quatrix by Maytech is Quatrix Secure Compliant File Sharing | Maytech.
  31145. Paths are specified as remote:path
  31146. Paths may be as deep as required, e.g., remote:directory/subdirectory.
  31147. The initial setup for Quatrix involves getting an API Key from Quatrix.
  31148. You can get the API key in the user's profile at
  31149. https://<account>/profile/api-keys or with the help of the API -
  31150. https://docs.maytech.net/quatrix/quatrix-api/api-explorer#/API-Key/post_api_key_create.
  31151. See complete Swagger documentation for Quatrix -
  31152. https://docs.maytech.net/quatrix/quatrix-api/api-explorer
  31153. Configuration
  31154. Here is an example of how to make a remote called remote. First run:
  31155. rclone config
  31156. This will guide you through an interactive setup process:
  31157. No remotes found, make a new one?
  31158. n) New remote
  31159. s) Set configuration password
  31160. q) Quit config
  31161. n/s/q> n
  31162. name> remote
  31163. Type of storage to configure.
  31164. Choose a number from below, or type in your own value
  31165. [snip]
  31166. XX / Quatrix by Maytech
  31167. \ "quatrix"
  31168. [snip]
  31169. Storage> quatrix
  31170. API key for accessing Quatrix account.
  31171. api_key> your_api_key
  31172. Host name of Quatrix account.
  31173. host> example.quatrix.it
  31174. --------------------
  31175. [remote]
  31176. api_key = your_api_key
  31177. host = example.quatrix.it
  31178. --------------------
  31179. y) Yes this is OK
  31180. e) Edit this remote
  31181. d) Delete this remote
  31182. y/e/d> y
  31183. Once configured you can then use rclone like this,
  31184. List directories in top level of your Quatrix
  31185. rclone lsd remote:
  31186. List all the files in your Quatrix
  31187. rclone ls remote:
  31188. To copy a local directory to an Quatrix directory called backup
  31189. rclone copy /home/source remote:backup
  31190. API key validity
  31191. API Key is created with no expiration date. It will be valid until you
  31192. delete or deactivate it in your account. After disabling, the API Key
  31193. can be enabled back. If the API Key was deleted and a new key was
  31194. created, you can update it in rclone config. The same happens if the
  31195. hostname was changed.
  31196. $ rclone config
  31197. Current remotes:
  31198. Name Type
  31199. ==== ====
  31200. remote quatrix
  31201. e) Edit existing remote
  31202. n) New remote
  31203. d) Delete remote
  31204. r) Rename remote
  31205. c) Copy remote
  31206. s) Set configuration password
  31207. q) Quit config
  31208. e/n/d/r/c/s/q> e
  31209. Choose a number from below, or type in an existing value
  31210. 1 > remote
  31211. remote> remote
  31212. --------------------
  31213. [remote]
  31214. type = quatrix
  31215. host = some_host.quatrix.it
  31216. api_key = your_api_key
  31217. --------------------
  31218. Edit remote
  31219. Option api_key.
  31220. API key for accessing Quatrix account
  31221. Enter a string value. Press Enter for the default (your_api_key)
  31222. api_key>
  31223. Option host.
  31224. Host name of Quatrix account
  31225. Enter a string value. Press Enter for the default (some_host.quatrix.it).
  31226. --------------------
  31227. [remote]
  31228. type = quatrix
  31229. host = some_host.quatrix.it
  31230. api_key = your_api_key
  31231. --------------------
  31232. y) Yes this is OK
  31233. e) Edit this remote
  31234. d) Delete this remote
  31235. y/e/d> y
  31236. Modification times and hashes
  31237. Quatrix allows modification times to be set on objects accurate to 1
  31238. microsecond. These will be used to detect whether objects need syncing
  31239. or not.
  31240. Quatrix does not support hashes, so you cannot use the --checksum flag.
  31241. Restricted filename characters
  31242. File names in Quatrix are case sensitive and have limitations like the
  31243. maximum length of a filename is 255, and the minimum length is 1. A file
  31244. name cannot be equal to . or .. nor contain / , \ or non-printable
  31245. ascii.
  31246. Transfers
  31247. For files above 50 MiB rclone will use a chunked transfer. Rclone will
  31248. upload up to --transfers chunks at the same time (shared among all
  31249. multipart uploads). Chunks are buffered in memory, and the minimal chunk
  31250. size is 10_000_000 bytes by default, and it can be changed in the
  31251. advanced configuration, so increasing --transfers will increase the
  31252. memory use. The chunk size has a maximum size limit, which is set to
  31253. 100_000_000 bytes by default and can be changed in the advanced
  31254. configuration. The size of the uploaded chunk will dynamically change
  31255. depending on the upload speed. The total memory use equals the number of
  31256. transfers multiplied by the minimal chunk size. In case there's free
  31257. memory allocated for the upload (which equals the difference of
  31258. maximal_summary_chunk_size and minimal_chunk_size * transfers), the
  31259. chunk size may increase in case of high upload speed. As well as it can
  31260. decrease in case of upload speed problems. If no free memory is
  31261. available, all chunks will equal minimal_chunk_size.
  31262. Deleting files
  31263. Files you delete with rclone will end up in Trash and be stored there
  31264. for 30 days. Quatrix also provides an API to permanently delete files
  31265. and an API to empty the Trash so that you can remove files permanently
  31266. from your account.
  31267. Standard options
  31268. Here are the Standard options specific to quatrix (Quatrix by Maytech).
  31269. --quatrix-api-key
  31270. API key for accessing Quatrix account
  31271. Properties:
  31272. - Config: api_key
  31273. - Env Var: RCLONE_QUATRIX_API_KEY
  31274. - Type: string
  31275. - Required: true
  31276. --quatrix-host
  31277. Host name of Quatrix account
  31278. Properties:
  31279. - Config: host
  31280. - Env Var: RCLONE_QUATRIX_HOST
  31281. - Type: string
  31282. - Required: true
  31283. Advanced options
  31284. Here are the Advanced options specific to quatrix (Quatrix by Maytech).
  31285. --quatrix-encoding
  31286. The encoding for the backend.
  31287. See the encoding section in the overview for more info.
  31288. Properties:
  31289. - Config: encoding
  31290. - Env Var: RCLONE_QUATRIX_ENCODING
  31291. - Type: Encoding
  31292. - Default: Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot
  31293. --quatrix-effective-upload-time
  31294. Wanted upload time for one chunk
  31295. Properties:
  31296. - Config: effective_upload_time
  31297. - Env Var: RCLONE_QUATRIX_EFFECTIVE_UPLOAD_TIME
  31298. - Type: string
  31299. - Default: "4s"
  31300. --quatrix-minimal-chunk-size
  31301. The minimal size for one chunk
  31302. Properties:
  31303. - Config: minimal_chunk_size
  31304. - Env Var: RCLONE_QUATRIX_MINIMAL_CHUNK_SIZE
  31305. - Type: SizeSuffix
  31306. - Default: 9.537Mi
  31307. --quatrix-maximal-summary-chunk-size
  31308. The maximal summary for all chunks. It should not be less than
  31309. 'transfers'*'minimal_chunk_size'
  31310. Properties:
  31311. - Config: maximal_summary_chunk_size
  31312. - Env Var: RCLONE_QUATRIX_MAXIMAL_SUMMARY_CHUNK_SIZE
  31313. - Type: SizeSuffix
  31314. - Default: 95.367Mi
  31315. --quatrix-hard-delete
  31316. Delete files permanently rather than putting them into the trash
  31317. Properties:
  31318. - Config: hard_delete
  31319. - Env Var: RCLONE_QUATRIX_HARD_DELETE
  31320. - Type: bool
  31321. - Default: false
  31322. --quatrix-skip-project-folders
  31323. Skip project folders in operations
  31324. Properties:
  31325. - Config: skip_project_folders
  31326. - Env Var: RCLONE_QUATRIX_SKIP_PROJECT_FOLDERS
  31327. - Type: bool
  31328. - Default: false
  31329. --quatrix-description
  31330. Description of the remote
  31331. Properties:
  31332. - Config: description
  31333. - Env Var: RCLONE_QUATRIX_DESCRIPTION
  31334. - Type: string
  31335. - Required: false
  31336. Storage usage
  31337. The storage usage in Quatrix is restricted to the account during the
  31338. purchase. You can restrict any user with a smaller storage limit. The
  31339. account limit is applied if the user has no custom storage limit. Once
  31340. you've reached the limit, the upload of files will fail. This can be
  31341. fixed by freeing up the space or increasing the quota.
  31342. Server-side operations
  31343. Quatrix supports server-side operations (copy and move). In case of
  31344. conflict, files are overwritten during server-side operation.
  31345. Sia
  31346. Sia (sia.tech) is a decentralized cloud storage platform based on the
  31347. blockchain technology. With rclone you can use it like any other remote
  31348. filesystem or mount Sia folders locally. The technology behind it
  31349. involves a number of new concepts such as Siacoins and Wallet,
  31350. Blockchain and Consensus, Renting and Hosting, and so on. If you are new
  31351. to it, you'd better first familiarize yourself using their excellent
  31352. support documentation.
  31353. Introduction
  31354. Before you can use rclone with Sia, you will need to have a running copy
  31355. of Sia-UI or siad (the Sia daemon) locally on your computer or on local
  31356. network (e.g. a NAS). Please follow the Get started guide and install
  31357. one.
  31358. rclone interacts with Sia network by talking to the Sia daemon via HTTP
  31359. API which is usually available on port 9980. By default you will run the
  31360. daemon locally on the same computer so it's safe to leave the API
  31361. password blank (the API URL will be http://127.0.0.1:9980 making
  31362. external access impossible).
  31363. However, if you want to access Sia daemon running on another node, for
  31364. example due to memory constraints or because you want to share single
  31365. daemon between several rclone and Sia-UI instances, you'll need to make
  31366. a few more provisions: - Ensure you have Sia daemon installed directly
  31367. or in a docker container because Sia-UI does not support this mode
  31368. natively. - Run it on externally accessible port, for example provide
  31369. --api-addr :9980 and --disable-api-security arguments on the daemon
  31370. command line. - Enforce API password for the siad daemon via environment
  31371. variable SIA_API_PASSWORD or text file named apipassword in the daemon
  31372. directory. - Set rclone backend option api_password taking it from above
  31373. locations.
  31374. Notes: 1. If your wallet is locked, rclone cannot unlock it
  31375. automatically. You should either unlock it in advance by using Sia-UI or
  31376. via command line siac wallet unlock. Alternatively you can make siad
  31377. unlock your wallet automatically upon startup by running it with
  31378. environment variable SIA_WALLET_PASSWORD. 2. If siad cannot find the
  31379. SIA_API_PASSWORD variable or the apipassword file in the SIA_DIR
  31380. directory, it will generate a random password and store in the text file
  31381. named apipassword under YOUR_HOME/.sia/ directory on Unix or
  31382. C:\Users\YOUR_HOME\AppData\Local\Sia\apipassword on Windows. Remember
  31383. this when you configure password in rclone. 3. The only way to use siad
  31384. without API password is to run it on localhost with command line
  31385. argument --authorize-api=false, but this is insecure and strongly
  31386. discouraged.
  31387. Configuration
  31388. Here is an example of how to make a sia remote called mySia. First, run:
  31389. rclone config
  31390. This will guide you through an interactive setup process:
  31391. No remotes found, make a new one?
  31392. n) New remote
  31393. s) Set configuration password
  31394. q) Quit config
  31395. n/s/q> n
  31396. name> mySia
  31397. Type of storage to configure.
  31398. Enter a string value. Press Enter for the default ("").
  31399. Choose a number from below, or type in your own value
  31400. ...
  31401. 29 / Sia Decentralized Cloud
  31402. \ "sia"
  31403. ...
  31404. Storage> sia
  31405. Sia daemon API URL, like http://sia.daemon.host:9980.
  31406. Note that siad must run with --disable-api-security to open API port for other hosts (not recommended).
  31407. Keep default if Sia daemon runs on localhost.
  31408. Enter a string value. Press Enter for the default ("http://127.0.0.1:9980").
  31409. api_url> http://127.0.0.1:9980
  31410. Sia Daemon API Password.
  31411. Can be found in the apipassword file located in HOME/.sia/ or in the daemon directory.
  31412. y) Yes type in my own password
  31413. g) Generate random password
  31414. n) No leave this optional password blank (default)
  31415. y/g/n> y
  31416. Enter the password:
  31417. password:
  31418. Confirm the password:
  31419. password:
  31420. Edit advanced config?
  31421. y) Yes
  31422. n) No (default)
  31423. y/n> n
  31424. --------------------
  31425. [mySia]
  31426. type = sia
  31427. api_url = http://127.0.0.1:9980
  31428. api_password = *** ENCRYPTED ***
  31429. --------------------
  31430. y) Yes this is OK (default)
  31431. e) Edit this remote
  31432. d) Delete this remote
  31433. y/e/d> y
  31434. Once configured, you can then use rclone like this:
  31435. - List directories in top level of your Sia storage
  31436. rclone lsd mySia:
  31437. - List all the files in your Sia storage
  31438. rclone ls mySia:
  31439. - Upload a local directory to the Sia directory called backup
  31440. rclone copy /home/source mySia:backup
  31441. Standard options
  31442. Here are the Standard options specific to sia (Sia Decentralized Cloud).
  31443. --sia-api-url
  31444. Sia daemon API URL, like http://sia.daemon.host:9980.
  31445. Note that siad must run with --disable-api-security to open API port for
  31446. other hosts (not recommended). Keep default if Sia daemon runs on
  31447. localhost.
  31448. Properties:
  31449. - Config: api_url
  31450. - Env Var: RCLONE_SIA_API_URL
  31451. - Type: string
  31452. - Default: "http://127.0.0.1:9980"
  31453. --sia-api-password
  31454. Sia Daemon API Password.
  31455. Can be found in the apipassword file located in HOME/.sia/ or in the
  31456. daemon directory.
  31457. NB Input to this must be obscured - see rclone obscure.
  31458. Properties:
  31459. - Config: api_password
  31460. - Env Var: RCLONE_SIA_API_PASSWORD
  31461. - Type: string
  31462. - Required: false
  31463. Advanced options
  31464. Here are the Advanced options specific to sia (Sia Decentralized Cloud).
  31465. --sia-user-agent
  31466. Siad User Agent
  31467. Sia daemon requires the 'Sia-Agent' user agent by default for security
  31468. Properties:
  31469. - Config: user_agent
  31470. - Env Var: RCLONE_SIA_USER_AGENT
  31471. - Type: string
  31472. - Default: "Sia-Agent"
  31473. --sia-encoding
  31474. The encoding for the backend.
  31475. See the encoding section in the overview for more info.
  31476. Properties:
  31477. - Config: encoding
  31478. - Env Var: RCLONE_SIA_ENCODING
  31479. - Type: Encoding
  31480. - Default: Slash,Question,Hash,Percent,Del,Ctl,InvalidUtf8,Dot
  31481. --sia-description
  31482. Description of the remote
  31483. Properties:
  31484. - Config: description
  31485. - Env Var: RCLONE_SIA_DESCRIPTION
  31486. - Type: string
  31487. - Required: false
  31488. Limitations
  31489. - Modification times not supported
  31490. - Checksums not supported
  31491. - rclone about not supported
  31492. - rclone can work only with Siad or Sia-UI at the moment, the SkyNet
  31493. daemon is not supported yet.
  31494. - Sia does not allow control characters or symbols like question and
  31495. pound signs in file names. rclone will transparently encode them for
  31496. you, but you'd better be aware
  31497. Swift
  31498. Swift refers to OpenStack Object Storage. Commercial implementations of
  31499. that being:
  31500. - Rackspace Cloud Files
  31501. - Memset Memstore
  31502. - OVH Object Storage
  31503. - Oracle Cloud Storage
  31504. - Blomp Cloud Storage
  31505. - IBM Bluemix Cloud ObjectStorage Swift
  31506. Paths are specified as remote:container (or remote: for the lsd
  31507. command.) You may put subdirectories in too, e.g.
  31508. remote:container/path/to/dir.
  31509. Configuration
  31510. Here is an example of making a swift configuration. First run
  31511. rclone config
  31512. This will guide you through an interactive setup process.
  31513. No remotes found, make a new one?
  31514. n) New remote
  31515. s) Set configuration password
  31516. q) Quit config
  31517. n/s/q> n
  31518. name> remote
  31519. Type of storage to configure.
  31520. Choose a number from below, or type in your own value
  31521. [snip]
  31522. XX / OpenStack Swift (Rackspace Cloud Files, Blomp Cloud Storage, Memset Memstore, OVH)
  31523. \ "swift"
  31524. [snip]
  31525. Storage> swift
  31526. Get swift credentials from environment variables in standard OpenStack form.
  31527. Choose a number from below, or type in your own value
  31528. 1 / Enter swift credentials in the next step
  31529. \ "false"
  31530. 2 / Get swift credentials from environment vars. Leave other fields blank if using this.
  31531. \ "true"
  31532. env_auth> true
  31533. User name to log in (OS_USERNAME).
  31534. user>
  31535. API key or password (OS_PASSWORD).
  31536. key>
  31537. Authentication URL for server (OS_AUTH_URL).
  31538. Choose a number from below, or type in your own value
  31539. 1 / Rackspace US
  31540. \ "https://auth.api.rackspacecloud.com/v1.0"
  31541. 2 / Rackspace UK
  31542. \ "https://lon.auth.api.rackspacecloud.com/v1.0"
  31543. 3 / Rackspace v2
  31544. \ "https://identity.api.rackspacecloud.com/v2.0"
  31545. 4 / Memset Memstore UK
  31546. \ "https://auth.storage.memset.com/v1.0"
  31547. 5 / Memset Memstore UK v2
  31548. \ "https://auth.storage.memset.com/v2.0"
  31549. 6 / OVH
  31550. \ "https://auth.cloud.ovh.net/v3"
  31551. 7 / Blomp Cloud Storage
  31552. \ "https://authenticate.ain.net"
  31553. auth>
  31554. User ID to log in - optional - most swift systems use user and leave this blank (v3 auth) (OS_USER_ID).
  31555. user_id>
  31556. User domain - optional (v3 auth) (OS_USER_DOMAIN_NAME)
  31557. domain>
  31558. Tenant name - optional for v1 auth, this or tenant_id required otherwise (OS_TENANT_NAME or OS_PROJECT_NAME)
  31559. tenant>
  31560. Tenant ID - optional for v1 auth, this or tenant required otherwise (OS_TENANT_ID)
  31561. tenant_id>
  31562. Tenant domain - optional (v3 auth) (OS_PROJECT_DOMAIN_NAME)
  31563. tenant_domain>
  31564. Region name - optional (OS_REGION_NAME)
  31565. region>
  31566. Storage URL - optional (OS_STORAGE_URL)
  31567. storage_url>
  31568. Auth Token from alternate authentication - optional (OS_AUTH_TOKEN)
  31569. auth_token>
  31570. AuthVersion - optional - set to (1,2,3) if your auth URL has no version (ST_AUTH_VERSION)
  31571. auth_version>
  31572. Endpoint type to choose from the service catalogue (OS_ENDPOINT_TYPE)
  31573. Choose a number from below, or type in your own value
  31574. 1 / Public (default, choose this if not sure)
  31575. \ "public"
  31576. 2 / Internal (use internal service net)
  31577. \ "internal"
  31578. 3 / Admin
  31579. \ "admin"
  31580. endpoint_type>
  31581. Remote config
  31582. --------------------
  31583. [test]
  31584. env_auth = true
  31585. user =
  31586. key =
  31587. auth =
  31588. user_id =
  31589. domain =
  31590. tenant =
  31591. tenant_id =
  31592. tenant_domain =
  31593. region =
  31594. storage_url =
  31595. auth_token =
  31596. auth_version =
  31597. endpoint_type =
  31598. --------------------
  31599. y) Yes this is OK
  31600. e) Edit this remote
  31601. d) Delete this remote
  31602. y/e/d> y
  31603. This remote is called remote and can now be used like this
  31604. See all containers
  31605. rclone lsd remote:
  31606. Make a new container
  31607. rclone mkdir remote:container
  31608. List the contents of a container
  31609. rclone ls remote:container
  31610. Sync /home/local/directory to the remote container, deleting any excess
  31611. files in the container.
  31612. rclone sync --interactive /home/local/directory remote:container
  31613. Configuration from an OpenStack credentials file
  31614. An OpenStack credentials file typically looks something something like
  31615. this (without the comments)
  31616. export OS_AUTH_URL=https://a.provider.net/v2.0
  31617. export OS_TENANT_ID=ffffffffffffffffffffffffffffffff
  31618. export OS_TENANT_NAME="1234567890123456"
  31619. export OS_USERNAME="123abc567xy"
  31620. echo "Please enter your OpenStack Password: "
  31621. read -sr OS_PASSWORD_INPUT
  31622. export OS_PASSWORD=$OS_PASSWORD_INPUT
  31623. export OS_REGION_NAME="SBG1"
  31624. if [ -z "$OS_REGION_NAME" ]; then unset OS_REGION_NAME; fi
  31625. The config file needs to look something like this where $OS_USERNAME
  31626. represents the value of the OS_USERNAME variable - 123abc567xy in the
  31627. example above.
  31628. [remote]
  31629. type = swift
  31630. user = $OS_USERNAME
  31631. key = $OS_PASSWORD
  31632. auth = $OS_AUTH_URL
  31633. tenant = $OS_TENANT_NAME
  31634. Note that you may (or may not) need to set region too - try without
  31635. first.
  31636. Configuration from the environment
  31637. If you prefer you can configure rclone to use swift using a standard set
  31638. of OpenStack environment variables.
  31639. When you run through the config, make sure you choose true for env_auth
  31640. and leave everything else blank.
  31641. rclone will then set any empty config parameters from the environment
  31642. using standard OpenStack environment variables. There is a list of the
  31643. variables in the docs for the swift library.
  31644. Using an alternate authentication method
  31645. If your OpenStack installation uses a non-standard authentication method
  31646. that might not be yet supported by rclone or the underlying swift
  31647. library, you can authenticate externally (e.g. calling manually the
  31648. openstack commands to get a token). Then, you just need to pass the two
  31649. configuration variables auth_token and storage_url. If they are both
  31650. provided, the other variables are ignored. rclone will not try to
  31651. authenticate but instead assume it is already authenticated and use
  31652. these two variables to access the OpenStack installation.
  31653. Using rclone without a config file
  31654. You can use rclone with swift without a config file, if desired, like
  31655. this:
  31656. source openstack-credentials-file
  31657. export RCLONE_CONFIG_MYREMOTE_TYPE=swift
  31658. export RCLONE_CONFIG_MYREMOTE_ENV_AUTH=true
  31659. rclone lsd myremote:
  31660. --fast-list
  31661. This remote supports --fast-list which allows you to use fewer
  31662. transactions in exchange for more memory. See the rclone docs for more
  31663. details.
  31664. --update and --use-server-modtime
  31665. As noted below, the modified time is stored on metadata on the object.
  31666. It is used by default for all operations that require checking the time
  31667. a file was last updated. It allows rclone to treat the remote more like
  31668. a true filesystem, but it is inefficient because it requires an extra
  31669. API call to retrieve the metadata.
  31670. For many operations, the time the object was last uploaded to the remote
  31671. is sufficient to determine if it is "dirty". By using --update along
  31672. with --use-server-modtime, you can avoid the extra API call and simply
  31673. upload files whose local modtime is newer than the time it was last
  31674. uploaded.
  31675. Modification times and hashes
  31676. The modified time is stored as metadata on the object as
  31677. X-Object-Meta-Mtime as floating point since the epoch accurate to 1 ns.
  31678. This is a de facto standard (used in the official python-swiftclient
  31679. amongst others) for storing the modification time for an object.
  31680. The MD5 hash algorithm is supported.
  31681. Restricted filename characters
  31682. Character Value Replacement
  31683. ----------- ------- -------------
  31684. NUL 0x00 ␀
  31685. / 0x2F /
  31686. Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
  31687. strings.
  31688. Standard options
  31689. Here are the Standard options specific to swift (OpenStack Swift
  31690. (Rackspace Cloud Files, Blomp Cloud Storage, Memset Memstore, OVH)).
  31691. --swift-env-auth
  31692. Get swift credentials from environment variables in standard OpenStack
  31693. form.
  31694. Properties:
  31695. - Config: env_auth
  31696. - Env Var: RCLONE_SWIFT_ENV_AUTH
  31697. - Type: bool
  31698. - Default: false
  31699. - Examples:
  31700. - "false"
  31701. - Enter swift credentials in the next step.
  31702. - "true"
  31703. - Get swift credentials from environment vars.
  31704. - Leave other fields blank if using this.
  31705. --swift-user
  31706. User name to log in (OS_USERNAME).
  31707. Properties:
  31708. - Config: user
  31709. - Env Var: RCLONE_SWIFT_USER
  31710. - Type: string
  31711. - Required: false
  31712. --swift-key
  31713. API key or password (OS_PASSWORD).
  31714. Properties:
  31715. - Config: key
  31716. - Env Var: RCLONE_SWIFT_KEY
  31717. - Type: string
  31718. - Required: false
  31719. --swift-auth
  31720. Authentication URL for server (OS_AUTH_URL).
  31721. Properties:
  31722. - Config: auth
  31723. - Env Var: RCLONE_SWIFT_AUTH
  31724. - Type: string
  31725. - Required: false
  31726. - Examples:
  31727. - "https://auth.api.rackspacecloud.com/v1.0"
  31728. - Rackspace US
  31729. - "https://lon.auth.api.rackspacecloud.com/v1.0"
  31730. - Rackspace UK
  31731. - "https://identity.api.rackspacecloud.com/v2.0"
  31732. - Rackspace v2
  31733. - "https://auth.storage.memset.com/v1.0"
  31734. - Memset Memstore UK
  31735. - "https://auth.storage.memset.com/v2.0"
  31736. - Memset Memstore UK v2
  31737. - "https://auth.cloud.ovh.net/v3"
  31738. - OVH
  31739. - "https://authenticate.ain.net"
  31740. - Blomp Cloud Storage
  31741. --swift-user-id
  31742. User ID to log in - optional - most swift systems use user and leave
  31743. this blank (v3 auth) (OS_USER_ID).
  31744. Properties:
  31745. - Config: user_id
  31746. - Env Var: RCLONE_SWIFT_USER_ID
  31747. - Type: string
  31748. - Required: false
  31749. --swift-domain
  31750. User domain - optional (v3 auth) (OS_USER_DOMAIN_NAME)
  31751. Properties:
  31752. - Config: domain
  31753. - Env Var: RCLONE_SWIFT_DOMAIN
  31754. - Type: string
  31755. - Required: false
  31756. --swift-tenant
  31757. Tenant name - optional for v1 auth, this or tenant_id required otherwise
  31758. (OS_TENANT_NAME or OS_PROJECT_NAME).
  31759. Properties:
  31760. - Config: tenant
  31761. - Env Var: RCLONE_SWIFT_TENANT
  31762. - Type: string
  31763. - Required: false
  31764. --swift-tenant-id
  31765. Tenant ID - optional for v1 auth, this or tenant required otherwise
  31766. (OS_TENANT_ID).
  31767. Properties:
  31768. - Config: tenant_id
  31769. - Env Var: RCLONE_SWIFT_TENANT_ID
  31770. - Type: string
  31771. - Required: false
  31772. --swift-tenant-domain
  31773. Tenant domain - optional (v3 auth) (OS_PROJECT_DOMAIN_NAME).
  31774. Properties:
  31775. - Config: tenant_domain
  31776. - Env Var: RCLONE_SWIFT_TENANT_DOMAIN
  31777. - Type: string
  31778. - Required: false
  31779. --swift-region
  31780. Region name - optional (OS_REGION_NAME).
  31781. Properties:
  31782. - Config: region
  31783. - Env Var: RCLONE_SWIFT_REGION
  31784. - Type: string
  31785. - Required: false
  31786. --swift-storage-url
  31787. Storage URL - optional (OS_STORAGE_URL).
  31788. Properties:
  31789. - Config: storage_url
  31790. - Env Var: RCLONE_SWIFT_STORAGE_URL
  31791. - Type: string
  31792. - Required: false
  31793. --swift-auth-token
  31794. Auth Token from alternate authentication - optional (OS_AUTH_TOKEN).
  31795. Properties:
  31796. - Config: auth_token
  31797. - Env Var: RCLONE_SWIFT_AUTH_TOKEN
  31798. - Type: string
  31799. - Required: false
  31800. --swift-application-credential-id
  31801. Application Credential ID (OS_APPLICATION_CREDENTIAL_ID).
  31802. Properties:
  31803. - Config: application_credential_id
  31804. - Env Var: RCLONE_SWIFT_APPLICATION_CREDENTIAL_ID
  31805. - Type: string
  31806. - Required: false
  31807. --swift-application-credential-name
  31808. Application Credential Name (OS_APPLICATION_CREDENTIAL_NAME).
  31809. Properties:
  31810. - Config: application_credential_name
  31811. - Env Var: RCLONE_SWIFT_APPLICATION_CREDENTIAL_NAME
  31812. - Type: string
  31813. - Required: false
  31814. --swift-application-credential-secret
  31815. Application Credential Secret (OS_APPLICATION_CREDENTIAL_SECRET).
  31816. Properties:
  31817. - Config: application_credential_secret
  31818. - Env Var: RCLONE_SWIFT_APPLICATION_CREDENTIAL_SECRET
  31819. - Type: string
  31820. - Required: false
  31821. --swift-auth-version
  31822. AuthVersion - optional - set to (1,2,3) if your auth URL has no version
  31823. (ST_AUTH_VERSION).
  31824. Properties:
  31825. - Config: auth_version
  31826. - Env Var: RCLONE_SWIFT_AUTH_VERSION
  31827. - Type: int
  31828. - Default: 0
  31829. --swift-endpoint-type
  31830. Endpoint type to choose from the service catalogue (OS_ENDPOINT_TYPE).
  31831. Properties:
  31832. - Config: endpoint_type
  31833. - Env Var: RCLONE_SWIFT_ENDPOINT_TYPE
  31834. - Type: string
  31835. - Default: "public"
  31836. - Examples:
  31837. - "public"
  31838. - Public (default, choose this if not sure)
  31839. - "internal"
  31840. - Internal (use internal service net)
  31841. - "admin"
  31842. - Admin
  31843. --swift-storage-policy
  31844. The storage policy to use when creating a new container.
  31845. This applies the specified storage policy when creating a new container.
  31846. The policy cannot be changed afterwards. The allowed configuration
  31847. values and their meaning depend on your Swift storage provider.
  31848. Properties:
  31849. - Config: storage_policy
  31850. - Env Var: RCLONE_SWIFT_STORAGE_POLICY
  31851. - Type: string
  31852. - Required: false
  31853. - Examples:
  31854. - ""
  31855. - Default
  31856. - "pcs"
  31857. - OVH Public Cloud Storage
  31858. - "pca"
  31859. - OVH Public Cloud Archive
  31860. Advanced options
  31861. Here are the Advanced options specific to swift (OpenStack Swift
  31862. (Rackspace Cloud Files, Blomp Cloud Storage, Memset Memstore, OVH)).
  31863. --swift-leave-parts-on-error
  31864. If true avoid calling abort upload on a failure.
  31865. It should be set to true for resuming uploads across different sessions.
  31866. Properties:
  31867. - Config: leave_parts_on_error
  31868. - Env Var: RCLONE_SWIFT_LEAVE_PARTS_ON_ERROR
  31869. - Type: bool
  31870. - Default: false
  31871. --swift-chunk-size
  31872. Above this size files will be chunked into a _segments container.
  31873. Above this size files will be chunked into a _segments container. The
  31874. default for this is 5 GiB which is its maximum value.
  31875. Properties:
  31876. - Config: chunk_size
  31877. - Env Var: RCLONE_SWIFT_CHUNK_SIZE
  31878. - Type: SizeSuffix
  31879. - Default: 5Gi
  31880. --swift-no-chunk
  31881. Don't chunk files during streaming upload.
  31882. When doing streaming uploads (e.g. using rcat or mount) setting this
  31883. flag will cause the swift backend to not upload chunked files.
  31884. This will limit the maximum upload size to 5 GiB. However non chunked
  31885. files are easier to deal with and have an MD5SUM.
  31886. Rclone will still chunk files bigger than chunk_size when doing normal
  31887. copy operations.
  31888. Properties:
  31889. - Config: no_chunk
  31890. - Env Var: RCLONE_SWIFT_NO_CHUNK
  31891. - Type: bool
  31892. - Default: false
  31893. --swift-no-large-objects
  31894. Disable support for static and dynamic large objects
  31895. Swift cannot transparently store files bigger than 5 GiB. There are two
  31896. schemes for doing that, static or dynamic large objects, and the API
  31897. does not allow rclone to determine whether a file is a static or dynamic
  31898. large object without doing a HEAD on the object. Since these need to be
  31899. treated differently, this means rclone has to issue HEAD requests for
  31900. objects for example when reading checksums.
  31901. When no_large_objects is set, rclone will assume that there are no
  31902. static or dynamic large objects stored. This means it can stop doing the
  31903. extra HEAD calls which in turn increases performance greatly especially
  31904. when doing a swift to swift transfer with --checksum set.
  31905. Setting this option implies no_chunk and also that no files will be
  31906. uploaded in chunks, so files bigger than 5 GiB will just fail on upload.
  31907. If you set this option and there are static or dynamic large objects,
  31908. then this will give incorrect hashes for them. Downloads will succeed,
  31909. but other operations such as Remove and Copy will fail.
  31910. Properties:
  31911. - Config: no_large_objects
  31912. - Env Var: RCLONE_SWIFT_NO_LARGE_OBJECTS
  31913. - Type: bool
  31914. - Default: false
  31915. --swift-encoding
  31916. The encoding for the backend.
  31917. See the encoding section in the overview for more info.
  31918. Properties:
  31919. - Config: encoding
  31920. - Env Var: RCLONE_SWIFT_ENCODING
  31921. - Type: Encoding
  31922. - Default: Slash,InvalidUtf8
  31923. --swift-description
  31924. Description of the remote
  31925. Properties:
  31926. - Config: description
  31927. - Env Var: RCLONE_SWIFT_DESCRIPTION
  31928. - Type: string
  31929. - Required: false
  31930. Limitations
  31931. The Swift API doesn't return a correct MD5SUM for segmented files
  31932. (Dynamic or Static Large Objects) so rclone won't check or use the
  31933. MD5SUM for these.
  31934. Troubleshooting
  31935. Rclone gives Failed to create file system for "remote:": Bad Request
  31936. Due to an oddity of the underlying swift library, it gives a "Bad
  31937. Request" error rather than a more sensible error when the authentication
  31938. fails for Swift.
  31939. So this most likely means your username / password is wrong. You can
  31940. investigate further with the --dump-bodies flag.
  31941. This may also be caused by specifying the region when you shouldn't have
  31942. (e.g. OVH).
  31943. Rclone gives Failed to create file system: Response didn't have storage url and auth token
  31944. This is most likely caused by forgetting to specify your tenant when
  31945. setting up a swift remote.
  31946. OVH Cloud Archive
  31947. To use rclone with OVH cloud archive, first use rclone config to set up
  31948. a swift backend with OVH, choosing pca as the storage_policy.
  31949. Uploading Objects
  31950. Uploading objects to OVH cloud archive is no different to object
  31951. storage, you just simply run the command you like (move, copy or sync)
  31952. to upload the objects. Once uploaded the objects will show in a "Frozen"
  31953. state within the OVH control panel.
  31954. Retrieving Objects
  31955. To retrieve objects use rclone copy as normal. If the objects are in a
  31956. frozen state then rclone will ask for them all to be unfrozen and it
  31957. will wait at the end of the output with a message like the following:
  31958. 2019/03/23 13:06:33 NOTICE: Received retry after error - sleeping until 2019-03-23T13:16:33.481657164+01:00 (9m59.99985121s)
  31959. Rclone will wait for the time specified then retry the copy.
  31960. pCloud
  31961. Paths are specified as remote:path
  31962. Paths may be as deep as required, e.g. remote:directory/subdirectory.
  31963. Configuration
  31964. The initial setup for pCloud involves getting a token from pCloud which
  31965. you need to do in your browser. rclone config walks you through it.
  31966. Here is an example of how to make a remote called remote. First run:
  31967. rclone config
  31968. This will guide you through an interactive setup process:
  31969. No remotes found, make a new one?
  31970. n) New remote
  31971. s) Set configuration password
  31972. q) Quit config
  31973. n/s/q> n
  31974. name> remote
  31975. Type of storage to configure.
  31976. Choose a number from below, or type in your own value
  31977. [snip]
  31978. XX / Pcloud
  31979. \ "pcloud"
  31980. [snip]
  31981. Storage> pcloud
  31982. Pcloud App Client Id - leave blank normally.
  31983. client_id>
  31984. Pcloud App Client Secret - leave blank normally.
  31985. client_secret>
  31986. Remote config
  31987. Use web browser to automatically authenticate rclone with remote?
  31988. * Say Y if the machine running rclone has a web browser you can use
  31989. * Say N if running rclone on a (remote) machine without web browser access
  31990. If not sure try Y. If Y failed, try N.
  31991. y) Yes
  31992. n) No
  31993. y/n> y
  31994. If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
  31995. Log in and authorize rclone for access
  31996. Waiting for code...
  31997. Got code
  31998. --------------------
  31999. [remote]
  32000. client_id =
  32001. client_secret =
  32002. token = {"access_token":"XXX","token_type":"bearer","expiry":"0001-01-01T00:00:00Z"}
  32003. --------------------
  32004. y) Yes this is OK
  32005. e) Edit this remote
  32006. d) Delete this remote
  32007. y/e/d> y
  32008. See the remote setup docs for how to set it up on a machine with no
  32009. Internet browser available.
  32010. Note that rclone runs a webserver on your local machine to collect the
  32011. token as returned from pCloud. This only runs from the moment it opens
  32012. your browser to the moment you get back the verification code. This is
  32013. on http://127.0.0.1:53682/ and this it may require you to unblock it
  32014. temporarily if you are running a host firewall.
  32015. Once configured you can then use rclone like this,
  32016. List directories in top level of your pCloud
  32017. rclone lsd remote:
  32018. List all the files in your pCloud
  32019. rclone ls remote:
  32020. To copy a local directory to a pCloud directory called backup
  32021. rclone copy /home/source remote:backup
  32022. Modification times and hashes
  32023. pCloud allows modification times to be set on objects accurate to 1
  32024. second. These will be used to detect whether objects need syncing or
  32025. not. In order to set a Modification time pCloud requires the object be
  32026. re-uploaded.
  32027. pCloud supports MD5 and SHA1 hashes in the US region, and SHA1 and
  32028. SHA256 hashes in the EU region, so you can use the --checksum flag.
  32029. Restricted filename characters
  32030. In addition to the default restricted characters set the following
  32031. characters are also replaced:
  32032. Character Value Replacement
  32033. ----------- ------- -------------
  32034. \ 0x5C \
  32035. Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
  32036. strings.
  32037. Deleting files
  32038. Deleted files will be moved to the trash. Your subscription level will
  32039. determine how long items stay in the trash. rclone cleanup can be used
  32040. to empty the trash.
  32041. Emptying the trash
  32042. Due to an API limitation, the rclone cleanup command will only work if
  32043. you set your username and password in the advanced options for this
  32044. backend. Since we generally want to avoid storing user passwords in the
  32045. rclone config file, we advise you to only set this up if you need the
  32046. rclone cleanup command to work.
  32047. Root folder ID
  32048. You can set the root_folder_id for rclone. This is the directory
  32049. (identified by its Folder ID) that rclone considers to be the root of
  32050. your pCloud drive.
  32051. Normally you will leave this blank and rclone will determine the correct
  32052. root to use itself.
  32053. However you can set this to restrict rclone to a specific folder
  32054. hierarchy.
  32055. In order to do this you will have to find the Folder ID of the directory
  32056. you wish rclone to display. This will be the folder field of the URL
  32057. when you open the relevant folder in the pCloud web interface.
  32058. So if the folder you want rclone to use has a URL which looks like
  32059. https://my.pcloud.com/#page=filemanager&folder=5xxxxxxxx8&tpl=foldergrid
  32060. in the browser, then you use 5xxxxxxxx8 as the root_folder_id in the
  32061. config.
  32062. Standard options
  32063. Here are the Standard options specific to pcloud (Pcloud).
  32064. --pcloud-client-id
  32065. OAuth Client Id.
  32066. Leave blank normally.
  32067. Properties:
  32068. - Config: client_id
  32069. - Env Var: RCLONE_PCLOUD_CLIENT_ID
  32070. - Type: string
  32071. - Required: false
  32072. --pcloud-client-secret
  32073. OAuth Client Secret.
  32074. Leave blank normally.
  32075. Properties:
  32076. - Config: client_secret
  32077. - Env Var: RCLONE_PCLOUD_CLIENT_SECRET
  32078. - Type: string
  32079. - Required: false
  32080. Advanced options
  32081. Here are the Advanced options specific to pcloud (Pcloud).
  32082. --pcloud-token
  32083. OAuth Access Token as a JSON blob.
  32084. Properties:
  32085. - Config: token
  32086. - Env Var: RCLONE_PCLOUD_TOKEN
  32087. - Type: string
  32088. - Required: false
  32089. --pcloud-auth-url
  32090. Auth server URL.
  32091. Leave blank to use the provider defaults.
  32092. Properties:
  32093. - Config: auth_url
  32094. - Env Var: RCLONE_PCLOUD_AUTH_URL
  32095. - Type: string
  32096. - Required: false
  32097. --pcloud-token-url
  32098. Token server url.
  32099. Leave blank to use the provider defaults.
  32100. Properties:
  32101. - Config: token_url
  32102. - Env Var: RCLONE_PCLOUD_TOKEN_URL
  32103. - Type: string
  32104. - Required: false
  32105. --pcloud-encoding
  32106. The encoding for the backend.
  32107. See the encoding section in the overview for more info.
  32108. Properties:
  32109. - Config: encoding
  32110. - Env Var: RCLONE_PCLOUD_ENCODING
  32111. - Type: Encoding
  32112. - Default: Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot
  32113. --pcloud-root-folder-id
  32114. Fill in for rclone to use a non root folder as its starting point.
  32115. Properties:
  32116. - Config: root_folder_id
  32117. - Env Var: RCLONE_PCLOUD_ROOT_FOLDER_ID
  32118. - Type: string
  32119. - Default: "d0"
  32120. --pcloud-hostname
  32121. Hostname to connect to.
  32122. This is normally set when rclone initially does the oauth connection,
  32123. however you will need to set it by hand if you are using remote config
  32124. with rclone authorize.
  32125. Properties:
  32126. - Config: hostname
  32127. - Env Var: RCLONE_PCLOUD_HOSTNAME
  32128. - Type: string
  32129. - Default: "api.pcloud.com"
  32130. - Examples:
  32131. - "api.pcloud.com"
  32132. - Original/US region
  32133. - "eapi.pcloud.com"
  32134. - EU region
  32135. --pcloud-username
  32136. Your pcloud username.
  32137. This is only required when you want to use the cleanup command. Due to a
  32138. bug in the pcloud API the required API does not support OAuth
  32139. authentication so we have to rely on user password authentication for
  32140. it.
  32141. Properties:
  32142. - Config: username
  32143. - Env Var: RCLONE_PCLOUD_USERNAME
  32144. - Type: string
  32145. - Required: false
  32146. --pcloud-password
  32147. Your pcloud password.
  32148. NB Input to this must be obscured - see rclone obscure.
  32149. Properties:
  32150. - Config: password
  32151. - Env Var: RCLONE_PCLOUD_PASSWORD
  32152. - Type: string
  32153. - Required: false
  32154. --pcloud-description
  32155. Description of the remote
  32156. Properties:
  32157. - Config: description
  32158. - Env Var: RCLONE_PCLOUD_DESCRIPTION
  32159. - Type: string
  32160. - Required: false
  32161. PikPak
  32162. PikPak is a private cloud drive.
  32163. Paths are specified as remote:path, and may be as deep as required, e.g.
  32164. remote:directory/subdirectory.
  32165. Configuration
  32166. Here is an example of making a remote for PikPak.
  32167. First run:
  32168. rclone config
  32169. This will guide you through an interactive setup process:
  32170. No remotes found, make a new one?
  32171. n) New remote
  32172. s) Set configuration password
  32173. q) Quit config
  32174. n/s/q> n
  32175. Enter name for new remote.
  32176. name> remote
  32177. Option Storage.
  32178. Type of storage to configure.
  32179. Choose a number from below, or type in your own value.
  32180. XX / PikPak
  32181. \ (pikpak)
  32182. Storage> XX
  32183. Option user.
  32184. Pikpak username.
  32185. Enter a value.
  32186. user> USERNAME
  32187. Option pass.
  32188. Pikpak password.
  32189. Choose an alternative below.
  32190. y) Yes, type in my own password
  32191. g) Generate random password
  32192. y/g> y
  32193. Enter the password:
  32194. password:
  32195. Confirm the password:
  32196. password:
  32197. Edit advanced config?
  32198. y) Yes
  32199. n) No (default)
  32200. y/n>
  32201. Configuration complete.
  32202. Options:
  32203. - type: pikpak
  32204. - user: USERNAME
  32205. - pass: *** ENCRYPTED ***
  32206. - token: {"access_token":"eyJ...","token_type":"Bearer","refresh_token":"os...","expiry":"2023-01-26T18:54:32.170582647+09:00"}
  32207. Keep this "remote" remote?
  32208. y) Yes this is OK (default)
  32209. e) Edit this remote
  32210. d) Delete this remote
  32211. y/e/d> y
  32212. Modification times and hashes
  32213. PikPak keeps modification times on objects, and updates them when
  32214. uploading objects, but it does not support changing only the
  32215. modification time
  32216. The MD5 hash algorithm is supported.
  32217. Standard options
  32218. Here are the Standard options specific to pikpak (PikPak).
  32219. --pikpak-user
  32220. Pikpak username.
  32221. Properties:
  32222. - Config: user
  32223. - Env Var: RCLONE_PIKPAK_USER
  32224. - Type: string
  32225. - Required: true
  32226. --pikpak-pass
  32227. Pikpak password.
  32228. NB Input to this must be obscured - see rclone obscure.
  32229. Properties:
  32230. - Config: pass
  32231. - Env Var: RCLONE_PIKPAK_PASS
  32232. - Type: string
  32233. - Required: true
  32234. Advanced options
  32235. Here are the Advanced options specific to pikpak (PikPak).
  32236. --pikpak-client-id
  32237. OAuth Client Id.
  32238. Leave blank normally.
  32239. Properties:
  32240. - Config: client_id
  32241. - Env Var: RCLONE_PIKPAK_CLIENT_ID
  32242. - Type: string
  32243. - Required: false
  32244. --pikpak-client-secret
  32245. OAuth Client Secret.
  32246. Leave blank normally.
  32247. Properties:
  32248. - Config: client_secret
  32249. - Env Var: RCLONE_PIKPAK_CLIENT_SECRET
  32250. - Type: string
  32251. - Required: false
  32252. --pikpak-token
  32253. OAuth Access Token as a JSON blob.
  32254. Properties:
  32255. - Config: token
  32256. - Env Var: RCLONE_PIKPAK_TOKEN
  32257. - Type: string
  32258. - Required: false
  32259. --pikpak-auth-url
  32260. Auth server URL.
  32261. Leave blank to use the provider defaults.
  32262. Properties:
  32263. - Config: auth_url
  32264. - Env Var: RCLONE_PIKPAK_AUTH_URL
  32265. - Type: string
  32266. - Required: false
  32267. --pikpak-token-url
  32268. Token server url.
  32269. Leave blank to use the provider defaults.
  32270. Properties:
  32271. - Config: token_url
  32272. - Env Var: RCLONE_PIKPAK_TOKEN_URL
  32273. - Type: string
  32274. - Required: false
  32275. --pikpak-root-folder-id
  32276. ID of the root folder. Leave blank normally.
  32277. Fill in for rclone to use a non root folder as its starting point.
  32278. Properties:
  32279. - Config: root_folder_id
  32280. - Env Var: RCLONE_PIKPAK_ROOT_FOLDER_ID
  32281. - Type: string
  32282. - Required: false
  32283. --pikpak-use-trash
  32284. Send files to the trash instead of deleting permanently.
  32285. Defaults to true, namely sending files to the trash. Use
  32286. --pikpak-use-trash=false to delete files permanently instead.
  32287. Properties:
  32288. - Config: use_trash
  32289. - Env Var: RCLONE_PIKPAK_USE_TRASH
  32290. - Type: bool
  32291. - Default: true
  32292. --pikpak-trashed-only
  32293. Only show files that are in the trash.
  32294. This will show trashed files in their original directory structure.
  32295. Properties:
  32296. - Config: trashed_only
  32297. - Env Var: RCLONE_PIKPAK_TRASHED_ONLY
  32298. - Type: bool
  32299. - Default: false
  32300. --pikpak-hash-memory-limit
  32301. Files bigger than this will be cached on disk to calculate hash if
  32302. required.
  32303. Properties:
  32304. - Config: hash_memory_limit
  32305. - Env Var: RCLONE_PIKPAK_HASH_MEMORY_LIMIT
  32306. - Type: SizeSuffix
  32307. - Default: 10Mi
  32308. --pikpak-encoding
  32309. The encoding for the backend.
  32310. See the encoding section in the overview for more info.
  32311. Properties:
  32312. - Config: encoding
  32313. - Env Var: RCLONE_PIKPAK_ENCODING
  32314. - Type: Encoding
  32315. - Default:
  32316. Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,LeftSpace,RightSpace,RightPeriod,InvalidUtf8,Dot
  32317. --pikpak-description
  32318. Description of the remote
  32319. Properties:
  32320. - Config: description
  32321. - Env Var: RCLONE_PIKPAK_DESCRIPTION
  32322. - Type: string
  32323. - Required: false
  32324. Backend commands
  32325. Here are the commands specific to the pikpak backend.
  32326. Run them with
  32327. rclone backend COMMAND remote:
  32328. The help below will explain what arguments each command takes.
  32329. See the backend command for more info on how to pass options and
  32330. arguments.
  32331. These can be run on a running backend using the rc command
  32332. backend/command.
  32333. addurl
  32334. Add offline download task for url
  32335. rclone backend addurl remote: [options] [<arguments>+]
  32336. This command adds offline download task for url.
  32337. Usage:
  32338. rclone backend addurl pikpak:dirpath url
  32339. Downloads will be stored in 'dirpath'. If 'dirpath' is invalid, download
  32340. will fallback to default 'My Pack' folder.
  32341. decompress
  32342. Request decompress of a file/files in a folder
  32343. rclone backend decompress remote: [options] [<arguments>+]
  32344. This command requests decompress of file/files in a folder.
  32345. Usage:
  32346. rclone backend decompress pikpak:dirpath {filename} -o password=password
  32347. rclone backend decompress pikpak:dirpath {filename} -o delete-src-file
  32348. An optional argument 'filename' can be specified for a file located in
  32349. 'pikpak:dirpath'. You may want to pass '-o password=password' for a
  32350. password-protected files. Also, pass '-o delete-src-file' to delete
  32351. source files after decompression finished.
  32352. Result:
  32353. {
  32354. "Decompressed": 17,
  32355. "SourceDeleted": 0,
  32356. "Errors": 0
  32357. }
  32358. Limitations
  32359. Hashes may be empty
  32360. PikPak supports MD5 hash, but sometimes given empty especially for
  32361. user-uploaded files.
  32362. Deleted files still visible with trashed-only
  32363. Deleted files will still be visible with --pikpak-trashed-only even
  32364. after the trash emptied. This goes away after few days.
  32365. premiumize.me
  32366. Paths are specified as remote:path
  32367. Paths may be as deep as required, e.g. remote:directory/subdirectory.
  32368. Configuration
  32369. The initial setup for premiumize.me involves getting a token from
  32370. premiumize.me which you need to do in your browser. rclone config walks
  32371. you through it.
  32372. Here is an example of how to make a remote called remote. First run:
  32373. rclone config
  32374. This will guide you through an interactive setup process:
  32375. No remotes found, make a new one?
  32376. n) New remote
  32377. s) Set configuration password
  32378. q) Quit config
  32379. n/s/q> n
  32380. name> remote
  32381. Type of storage to configure.
  32382. Enter a string value. Press Enter for the default ("").
  32383. Choose a number from below, or type in your own value
  32384. [snip]
  32385. XX / premiumize.me
  32386. \ "premiumizeme"
  32387. [snip]
  32388. Storage> premiumizeme
  32389. ** See help for premiumizeme backend at: https://rclone.org/premiumizeme/ **
  32390. Remote config
  32391. Use web browser to automatically authenticate rclone with remote?
  32392. * Say Y if the machine running rclone has a web browser you can use
  32393. * Say N if running rclone on a (remote) machine without web browser access
  32394. If not sure try Y. If Y failed, try N.
  32395. y) Yes
  32396. n) No
  32397. y/n> y
  32398. If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
  32399. Log in and authorize rclone for access
  32400. Waiting for code...
  32401. Got code
  32402. --------------------
  32403. [remote]
  32404. type = premiumizeme
  32405. token = {"access_token":"XXX","token_type":"Bearer","refresh_token":"XXX","expiry":"2029-08-07T18:44:15.548915378+01:00"}
  32406. --------------------
  32407. y) Yes this is OK
  32408. e) Edit this remote
  32409. d) Delete this remote
  32410. y/e/d>
  32411. See the remote setup docs for how to set it up on a machine with no
  32412. Internet browser available.
  32413. Note that rclone runs a webserver on your local machine to collect the
  32414. token as returned from premiumize.me. This only runs from the moment it
  32415. opens your browser to the moment you get back the verification code.
  32416. This is on http://127.0.0.1:53682/ and this it may require you to
  32417. unblock it temporarily if you are running a host firewall.
  32418. Once configured you can then use rclone like this,
  32419. List directories in top level of your premiumize.me
  32420. rclone lsd remote:
  32421. List all the files in your premiumize.me
  32422. rclone ls remote:
  32423. To copy a local directory to an premiumize.me directory called backup
  32424. rclone copy /home/source remote:backup
  32425. Modification times and hashes
  32426. premiumize.me does not support modification times or hashes, therefore
  32427. syncing will default to --size-only checking. Note that using --update
  32428. will work.
  32429. Restricted filename characters
  32430. In addition to the default restricted characters set the following
  32431. characters are also replaced:
  32432. Character Value Replacement
  32433. ----------- ------- -------------
  32434. \ 0x5C \
  32435. " 0x22 "
  32436. Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
  32437. strings.
  32438. Standard options
  32439. Here are the Standard options specific to premiumizeme (premiumize.me).
  32440. --premiumizeme-client-id
  32441. OAuth Client Id.
  32442. Leave blank normally.
  32443. Properties:
  32444. - Config: client_id
  32445. - Env Var: RCLONE_PREMIUMIZEME_CLIENT_ID
  32446. - Type: string
  32447. - Required: false
  32448. --premiumizeme-client-secret
  32449. OAuth Client Secret.
  32450. Leave blank normally.
  32451. Properties:
  32452. - Config: client_secret
  32453. - Env Var: RCLONE_PREMIUMIZEME_CLIENT_SECRET
  32454. - Type: string
  32455. - Required: false
  32456. --premiumizeme-api-key
  32457. API Key.
  32458. This is not normally used - use oauth instead.
  32459. Properties:
  32460. - Config: api_key
  32461. - Env Var: RCLONE_PREMIUMIZEME_API_KEY
  32462. - Type: string
  32463. - Required: false
  32464. Advanced options
  32465. Here are the Advanced options specific to premiumizeme (premiumize.me).
  32466. --premiumizeme-token
  32467. OAuth Access Token as a JSON blob.
  32468. Properties:
  32469. - Config: token
  32470. - Env Var: RCLONE_PREMIUMIZEME_TOKEN
  32471. - Type: string
  32472. - Required: false
  32473. --premiumizeme-auth-url
  32474. Auth server URL.
  32475. Leave blank to use the provider defaults.
  32476. Properties:
  32477. - Config: auth_url
  32478. - Env Var: RCLONE_PREMIUMIZEME_AUTH_URL
  32479. - Type: string
  32480. - Required: false
  32481. --premiumizeme-token-url
  32482. Token server url.
  32483. Leave blank to use the provider defaults.
  32484. Properties:
  32485. - Config: token_url
  32486. - Env Var: RCLONE_PREMIUMIZEME_TOKEN_URL
  32487. - Type: string
  32488. - Required: false
  32489. --premiumizeme-encoding
  32490. The encoding for the backend.
  32491. See the encoding section in the overview for more info.
  32492. Properties:
  32493. - Config: encoding
  32494. - Env Var: RCLONE_PREMIUMIZEME_ENCODING
  32495. - Type: Encoding
  32496. - Default: Slash,DoubleQuote,BackSlash,Del,Ctl,InvalidUtf8,Dot
  32497. --premiumizeme-description
  32498. Description of the remote
  32499. Properties:
  32500. - Config: description
  32501. - Env Var: RCLONE_PREMIUMIZEME_DESCRIPTION
  32502. - Type: string
  32503. - Required: false
  32504. Limitations
  32505. Note that premiumize.me is case insensitive so you can't have a file
  32506. called "Hello.doc" and one called "hello.doc".
  32507. premiumize.me file names can't have the \ or " characters in. rclone
  32508. maps these to and from an identical looking unicode equivalents \ and
  32509. premiumize.me only supports filenames up to 255 characters in length.
  32510. Proton Drive
  32511. Proton Drive is an end-to-end encrypted Swiss vault for your files that
  32512. protects your data.
  32513. This is an rclone backend for Proton Drive which supports the file
  32514. transfer features of Proton Drive using the same client-side encryption.
  32515. Due to the fact that Proton Drive doesn't publish its API documentation,
  32516. this backend is implemented with best efforts by reading the
  32517. open-sourced client source code and observing the Proton Drive traffic
  32518. in the browser.
  32519. NB This backend is currently in Beta. It is believed to be correct and
  32520. all the integration tests pass. However the Proton Drive protocol has
  32521. evolved over time there may be accounts it is not compatible with.
  32522. Please post on the rclone forum if you find an incompatibility.
  32523. Paths are specified as remote:path
  32524. Paths may be as deep as required, e.g. remote:directory/subdirectory.
  32525. Configurations
  32526. Here is an example of how to make a remote called remote. First run:
  32527. rclone config
  32528. This will guide you through an interactive setup process:
  32529. No remotes found, make a new one?
  32530. n) New remote
  32531. s) Set configuration password
  32532. q) Quit config
  32533. n/s/q> n
  32534. name> remote
  32535. Type of storage to configure.
  32536. Choose a number from below, or type in your own value
  32537. [snip]
  32538. XX / Proton Drive
  32539. \ "Proton Drive"
  32540. [snip]
  32541. Storage> protondrive
  32542. User name
  32543. user> you@protonmail.com
  32544. Password.
  32545. y) Yes type in my own password
  32546. g) Generate random password
  32547. n) No leave this optional password blank
  32548. y/g/n> y
  32549. Enter the password:
  32550. password:
  32551. Confirm the password:
  32552. password:
  32553. Option 2fa.
  32554. 2FA code (if the account requires one)
  32555. Enter a value. Press Enter to leave empty.
  32556. 2fa> 123456
  32557. Remote config
  32558. --------------------
  32559. [remote]
  32560. type = protondrive
  32561. user = you@protonmail.com
  32562. pass = *** ENCRYPTED ***
  32563. --------------------
  32564. y) Yes this is OK
  32565. e) Edit this remote
  32566. d) Delete this remote
  32567. y/e/d> y
  32568. NOTE: The Proton Drive encryption keys need to have been already
  32569. generated after a regular login via the browser, otherwise attempting to
  32570. use the credentials in rclone will fail.
  32571. Once configured you can then use rclone like this,
  32572. List directories in top level of your Proton Drive
  32573. rclone lsd remote:
  32574. List all the files in your Proton Drive
  32575. rclone ls remote:
  32576. To copy a local directory to an Proton Drive directory called backup
  32577. rclone copy /home/source remote:backup
  32578. Modification times and hashes
  32579. Proton Drive Bridge does not support updating modification times yet.
  32580. The SHA1 hash algorithm is supported.
  32581. Restricted filename characters
  32582. Invalid UTF-8 bytes will be replaced, also left and right spaces will be
  32583. removed (code reference)
  32584. Duplicated files
  32585. Proton Drive can not have two files with exactly the same name and path.
  32586. If the conflict occurs, depending on the advanced config, the file might
  32587. or might not be overwritten.
  32588. Mailbox password
  32589. Please set your mailbox password in the advanced config section.
  32590. Caching
  32591. The cache is currently built for the case when the rclone is the only
  32592. instance performing operations to the mount point. The event system,
  32593. which is the proton API system that provides visibility of what has
  32594. changed on the drive, is yet to be implemented, so updates from other
  32595. clients won’t be reflected in the cache. Thus, if there are concurrent
  32596. clients accessing the same mount point, then we might have a problem
  32597. with caching the stale data.
  32598. Standard options
  32599. Here are the Standard options specific to protondrive (Proton Drive).
  32600. --protondrive-username
  32601. The username of your proton account
  32602. Properties:
  32603. - Config: username
  32604. - Env Var: RCLONE_PROTONDRIVE_USERNAME
  32605. - Type: string
  32606. - Required: true
  32607. --protondrive-password
  32608. The password of your proton account.
  32609. NB Input to this must be obscured - see rclone obscure.
  32610. Properties:
  32611. - Config: password
  32612. - Env Var: RCLONE_PROTONDRIVE_PASSWORD
  32613. - Type: string
  32614. - Required: true
  32615. --protondrive-2fa
  32616. The 2FA code
  32617. The value can also be provided with --protondrive-2fa=000000
  32618. The 2FA code of your proton drive account if the account is set up with
  32619. two-factor authentication
  32620. Properties:
  32621. - Config: 2fa
  32622. - Env Var: RCLONE_PROTONDRIVE_2FA
  32623. - Type: string
  32624. - Required: false
  32625. Advanced options
  32626. Here are the Advanced options specific to protondrive (Proton Drive).
  32627. --protondrive-mailbox-password
  32628. The mailbox password of your two-password proton account.
  32629. For more information regarding the mailbox password, please check the
  32630. following official knowledge base article:
  32631. https://proton.me/support/the-difference-between-the-mailbox-password-and-login-password
  32632. NB Input to this must be obscured - see rclone obscure.
  32633. Properties:
  32634. - Config: mailbox_password
  32635. - Env Var: RCLONE_PROTONDRIVE_MAILBOX_PASSWORD
  32636. - Type: string
  32637. - Required: false
  32638. --protondrive-client-uid
  32639. Client uid key (internal use only)
  32640. Properties:
  32641. - Config: client_uid
  32642. - Env Var: RCLONE_PROTONDRIVE_CLIENT_UID
  32643. - Type: string
  32644. - Required: false
  32645. --protondrive-client-access-token
  32646. Client access token key (internal use only)
  32647. Properties:
  32648. - Config: client_access_token
  32649. - Env Var: RCLONE_PROTONDRIVE_CLIENT_ACCESS_TOKEN
  32650. - Type: string
  32651. - Required: false
  32652. --protondrive-client-refresh-token
  32653. Client refresh token key (internal use only)
  32654. Properties:
  32655. - Config: client_refresh_token
  32656. - Env Var: RCLONE_PROTONDRIVE_CLIENT_REFRESH_TOKEN
  32657. - Type: string
  32658. - Required: false
  32659. --protondrive-client-salted-key-pass
  32660. Client salted key pass key (internal use only)
  32661. Properties:
  32662. - Config: client_salted_key_pass
  32663. - Env Var: RCLONE_PROTONDRIVE_CLIENT_SALTED_KEY_PASS
  32664. - Type: string
  32665. - Required: false
  32666. --protondrive-encoding
  32667. The encoding for the backend.
  32668. See the encoding section in the overview for more info.
  32669. Properties:
  32670. - Config: encoding
  32671. - Env Var: RCLONE_PROTONDRIVE_ENCODING
  32672. - Type: Encoding
  32673. - Default: Slash,LeftSpace,RightSpace,InvalidUtf8,Dot
  32674. --protondrive-original-file-size
  32675. Return the file size before encryption
  32676. The size of the encrypted file will be different from (bigger than) the
  32677. original file size. Unless there is a reason to return the file size
  32678. after encryption is performed, otherwise, set this option to true, as
  32679. features like Open() which will need to be supplied with original
  32680. content size, will fail to operate properly
  32681. Properties:
  32682. - Config: original_file_size
  32683. - Env Var: RCLONE_PROTONDRIVE_ORIGINAL_FILE_SIZE
  32684. - Type: bool
  32685. - Default: true
  32686. --protondrive-app-version
  32687. The app version string
  32688. The app version string indicates the client that is currently performing
  32689. the API request. This information is required and will be sent with
  32690. every API request.
  32691. Properties:
  32692. - Config: app_version
  32693. - Env Var: RCLONE_PROTONDRIVE_APP_VERSION
  32694. - Type: string
  32695. - Default: "macos-drive@1.0.0-alpha.1+rclone"
  32696. --protondrive-replace-existing-draft
  32697. Create a new revision when filename conflict is detected
  32698. When a file upload is cancelled or failed before completion, a draft
  32699. will be created and the subsequent upload of the same file to the same
  32700. location will be reported as a conflict.
  32701. The value can also be set by --protondrive-replace-existing-draft=true
  32702. If the option is set to true, the draft will be replaced and then the
  32703. upload operation will restart. If there are other clients also uploading
  32704. at the same file location at the same time, the behavior is currently
  32705. unknown. Need to set to true for integration tests. If the option is set
  32706. to false, an error "a draft exist - usually this means a file is being
  32707. uploaded at another client, or, there was a failed upload attempt" will
  32708. be returned, and no upload will happen.
  32709. Properties:
  32710. - Config: replace_existing_draft
  32711. - Env Var: RCLONE_PROTONDRIVE_REPLACE_EXISTING_DRAFT
  32712. - Type: bool
  32713. - Default: false
  32714. --protondrive-enable-caching
  32715. Caches the files and folders metadata to reduce API calls
  32716. Notice: If you are mounting ProtonDrive as a VFS, please disable this
  32717. feature, as the current implementation doesn't update or clear the cache
  32718. when there are external changes.
  32719. The files and folders on ProtonDrive are represented as links with
  32720. keyrings, which can be cached to improve performance and be friendly to
  32721. the API server.
  32722. The cache is currently built for the case when the rclone is the only
  32723. instance performing operations to the mount point. The event system,
  32724. which is the proton API system that provides visibility of what has
  32725. changed on the drive, is yet to be implemented, so updates from other
  32726. clients won’t be reflected in the cache. Thus, if there are concurrent
  32727. clients accessing the same mount point, then we might have a problem
  32728. with caching the stale data.
  32729. Properties:
  32730. - Config: enable_caching
  32731. - Env Var: RCLONE_PROTONDRIVE_ENABLE_CACHING
  32732. - Type: bool
  32733. - Default: true
  32734. --protondrive-description
  32735. Description of the remote
  32736. Properties:
  32737. - Config: description
  32738. - Env Var: RCLONE_PROTONDRIVE_DESCRIPTION
  32739. - Type: string
  32740. - Required: false
  32741. Limitations
  32742. This backend uses the Proton-API-Bridge, which is based on
  32743. go-proton-api, a fork of the official repo.
  32744. There is no official API documentation available from Proton Drive. But,
  32745. thanks to Proton open sourcing proton-go-api and the web, iOS, and
  32746. Android client codebases, we don't need to completely reverse engineer
  32747. the APIs by observing the web client traffic!
  32748. proton-go-api provides the basic building blocks of API calls and error
  32749. handling, such as 429 exponential back-off, but it is pretty much just a
  32750. barebone interface to the Proton API. For example, the encryption and
  32751. decryption of the Proton Drive file are not provided in this library.
  32752. The Proton-API-Bridge, attempts to bridge the gap, so rclone can be
  32753. built on top of this quickly. This codebase handles the intricate tasks
  32754. before and after calling Proton APIs, particularly the complex
  32755. encryption scheme, allowing developers to implement features for other
  32756. software on top of this codebase. There are likely quite a few errors in
  32757. this library, as there isn't official documentation available.
  32758. put.io
  32759. Paths are specified as remote:path
  32760. put.io paths may be as deep as required, e.g.
  32761. remote:directory/subdirectory.
  32762. Configuration
  32763. The initial setup for put.io involves getting a token from put.io which
  32764. you need to do in your browser. rclone config walks you through it.
  32765. Here is an example of how to make a remote called remote. First run:
  32766. rclone config
  32767. This will guide you through an interactive setup process:
  32768. No remotes found, make a new one?
  32769. n) New remote
  32770. s) Set configuration password
  32771. q) Quit config
  32772. n/s/q> n
  32773. name> putio
  32774. Type of storage to configure.
  32775. Enter a string value. Press Enter for the default ("").
  32776. Choose a number from below, or type in your own value
  32777. [snip]
  32778. XX / Put.io
  32779. \ "putio"
  32780. [snip]
  32781. Storage> putio
  32782. ** See help for putio backend at: https://rclone.org/putio/ **
  32783. Remote config
  32784. Use web browser to automatically authenticate rclone with remote?
  32785. * Say Y if the machine running rclone has a web browser you can use
  32786. * Say N if running rclone on a (remote) machine without web browser access
  32787. If not sure try Y. If Y failed, try N.
  32788. y) Yes
  32789. n) No
  32790. y/n> y
  32791. If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
  32792. Log in and authorize rclone for access
  32793. Waiting for code...
  32794. Got code
  32795. --------------------
  32796. [putio]
  32797. type = putio
  32798. token = {"access_token":"XXXXXXXX","expiry":"0001-01-01T00:00:00Z"}
  32799. --------------------
  32800. y) Yes this is OK
  32801. e) Edit this remote
  32802. d) Delete this remote
  32803. y/e/d> y
  32804. Current remotes:
  32805. Name Type
  32806. ==== ====
  32807. putio putio
  32808. e) Edit existing remote
  32809. n) New remote
  32810. d) Delete remote
  32811. r) Rename remote
  32812. c) Copy remote
  32813. s) Set configuration password
  32814. q) Quit config
  32815. e/n/d/r/c/s/q> q
  32816. See the remote setup docs for how to set it up on a machine with no
  32817. Internet browser available.
  32818. Note that rclone runs a webserver on your local machine to collect the
  32819. token as returned from put.io if using web browser to automatically
  32820. authenticate. This only runs from the moment it opens your browser to
  32821. the moment you get back the verification code. This is on
  32822. http://127.0.0.1:53682/ and this it may require you to unblock it
  32823. temporarily if you are running a host firewall, or use manual mode.
  32824. You can then use it like this,
  32825. List directories in top level of your put.io
  32826. rclone lsd remote:
  32827. List all the files in your put.io
  32828. rclone ls remote:
  32829. To copy a local directory to a put.io directory called backup
  32830. rclone copy /home/source remote:backup
  32831. Restricted filename characters
  32832. In addition to the default restricted characters set the following
  32833. characters are also replaced:
  32834. Character Value Replacement
  32835. ----------- ------- -------------
  32836. \ 0x5C \
  32837. Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
  32838. strings.
  32839. Standard options
  32840. Here are the Standard options specific to putio (Put.io).
  32841. --putio-client-id
  32842. OAuth Client Id.
  32843. Leave blank normally.
  32844. Properties:
  32845. - Config: client_id
  32846. - Env Var: RCLONE_PUTIO_CLIENT_ID
  32847. - Type: string
  32848. - Required: false
  32849. --putio-client-secret
  32850. OAuth Client Secret.
  32851. Leave blank normally.
  32852. Properties:
  32853. - Config: client_secret
  32854. - Env Var: RCLONE_PUTIO_CLIENT_SECRET
  32855. - Type: string
  32856. - Required: false
  32857. Advanced options
  32858. Here are the Advanced options specific to putio (Put.io).
  32859. --putio-token
  32860. OAuth Access Token as a JSON blob.
  32861. Properties:
  32862. - Config: token
  32863. - Env Var: RCLONE_PUTIO_TOKEN
  32864. - Type: string
  32865. - Required: false
  32866. --putio-auth-url
  32867. Auth server URL.
  32868. Leave blank to use the provider defaults.
  32869. Properties:
  32870. - Config: auth_url
  32871. - Env Var: RCLONE_PUTIO_AUTH_URL
  32872. - Type: string
  32873. - Required: false
  32874. --putio-token-url
  32875. Token server url.
  32876. Leave blank to use the provider defaults.
  32877. Properties:
  32878. - Config: token_url
  32879. - Env Var: RCLONE_PUTIO_TOKEN_URL
  32880. - Type: string
  32881. - Required: false
  32882. --putio-encoding
  32883. The encoding for the backend.
  32884. See the encoding section in the overview for more info.
  32885. Properties:
  32886. - Config: encoding
  32887. - Env Var: RCLONE_PUTIO_ENCODING
  32888. - Type: Encoding
  32889. - Default: Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot
  32890. --putio-description
  32891. Description of the remote
  32892. Properties:
  32893. - Config: description
  32894. - Env Var: RCLONE_PUTIO_DESCRIPTION
  32895. - Type: string
  32896. - Required: false
  32897. Limitations
  32898. put.io has rate limiting. When you hit a limit, rclone automatically
  32899. retries after waiting the amount of time requested by the server.
  32900. If you want to avoid ever hitting these limits, you may use the
  32901. --tpslimit flag with a low number. Note that the imposed limits may be
  32902. different for different operations, and may change over time.
  32903. Proton Drive
  32904. Proton Drive is an end-to-end encrypted Swiss vault for your files that
  32905. protects your data.
  32906. This is an rclone backend for Proton Drive which supports the file
  32907. transfer features of Proton Drive using the same client-side encryption.
  32908. Due to the fact that Proton Drive doesn't publish its API documentation,
  32909. this backend is implemented with best efforts by reading the
  32910. open-sourced client source code and observing the Proton Drive traffic
  32911. in the browser.
  32912. NB This backend is currently in Beta. It is believed to be correct and
  32913. all the integration tests pass. However the Proton Drive protocol has
  32914. evolved over time there may be accounts it is not compatible with.
  32915. Please post on the rclone forum if you find an incompatibility.
  32916. Paths are specified as remote:path
  32917. Paths may be as deep as required, e.g. remote:directory/subdirectory.
  32918. Configurations
  32919. Here is an example of how to make a remote called remote. First run:
  32920. rclone config
  32921. This will guide you through an interactive setup process:
  32922. No remotes found, make a new one?
  32923. n) New remote
  32924. s) Set configuration password
  32925. q) Quit config
  32926. n/s/q> n
  32927. name> remote
  32928. Type of storage to configure.
  32929. Choose a number from below, or type in your own value
  32930. [snip]
  32931. XX / Proton Drive
  32932. \ "Proton Drive"
  32933. [snip]
  32934. Storage> protondrive
  32935. User name
  32936. user> you@protonmail.com
  32937. Password.
  32938. y) Yes type in my own password
  32939. g) Generate random password
  32940. n) No leave this optional password blank
  32941. y/g/n> y
  32942. Enter the password:
  32943. password:
  32944. Confirm the password:
  32945. password:
  32946. Option 2fa.
  32947. 2FA code (if the account requires one)
  32948. Enter a value. Press Enter to leave empty.
  32949. 2fa> 123456
  32950. Remote config
  32951. --------------------
  32952. [remote]
  32953. type = protondrive
  32954. user = you@protonmail.com
  32955. pass = *** ENCRYPTED ***
  32956. --------------------
  32957. y) Yes this is OK
  32958. e) Edit this remote
  32959. d) Delete this remote
  32960. y/e/d> y
  32961. NOTE: The Proton Drive encryption keys need to have been already
  32962. generated after a regular login via the browser, otherwise attempting to
  32963. use the credentials in rclone will fail.
  32964. Once configured you can then use rclone like this,
  32965. List directories in top level of your Proton Drive
  32966. rclone lsd remote:
  32967. List all the files in your Proton Drive
  32968. rclone ls remote:
  32969. To copy a local directory to an Proton Drive directory called backup
  32970. rclone copy /home/source remote:backup
  32971. Modification times and hashes
  32972. Proton Drive Bridge does not support updating modification times yet.
  32973. The SHA1 hash algorithm is supported.
  32974. Restricted filename characters
  32975. Invalid UTF-8 bytes will be replaced, also left and right spaces will be
  32976. removed (code reference)
  32977. Duplicated files
  32978. Proton Drive can not have two files with exactly the same name and path.
  32979. If the conflict occurs, depending on the advanced config, the file might
  32980. or might not be overwritten.
  32981. Mailbox password
  32982. Please set your mailbox password in the advanced config section.
  32983. Caching
  32984. The cache is currently built for the case when the rclone is the only
  32985. instance performing operations to the mount point. The event system,
  32986. which is the proton API system that provides visibility of what has
  32987. changed on the drive, is yet to be implemented, so updates from other
  32988. clients won’t be reflected in the cache. Thus, if there are concurrent
  32989. clients accessing the same mount point, then we might have a problem
  32990. with caching the stale data.
  32991. Standard options
  32992. Here are the Standard options specific to protondrive (Proton Drive).
  32993. --protondrive-username
  32994. The username of your proton account
  32995. Properties:
  32996. - Config: username
  32997. - Env Var: RCLONE_PROTONDRIVE_USERNAME
  32998. - Type: string
  32999. - Required: true
  33000. --protondrive-password
  33001. The password of your proton account.
  33002. NB Input to this must be obscured - see rclone obscure.
  33003. Properties:
  33004. - Config: password
  33005. - Env Var: RCLONE_PROTONDRIVE_PASSWORD
  33006. - Type: string
  33007. - Required: true
  33008. --protondrive-2fa
  33009. The 2FA code
  33010. The value can also be provided with --protondrive-2fa=000000
  33011. The 2FA code of your proton drive account if the account is set up with
  33012. two-factor authentication
  33013. Properties:
  33014. - Config: 2fa
  33015. - Env Var: RCLONE_PROTONDRIVE_2FA
  33016. - Type: string
  33017. - Required: false
  33018. Advanced options
  33019. Here are the Advanced options specific to protondrive (Proton Drive).
  33020. --protondrive-mailbox-password
  33021. The mailbox password of your two-password proton account.
  33022. For more information regarding the mailbox password, please check the
  33023. following official knowledge base article:
  33024. https://proton.me/support/the-difference-between-the-mailbox-password-and-login-password
  33025. NB Input to this must be obscured - see rclone obscure.
  33026. Properties:
  33027. - Config: mailbox_password
  33028. - Env Var: RCLONE_PROTONDRIVE_MAILBOX_PASSWORD
  33029. - Type: string
  33030. - Required: false
  33031. --protondrive-client-uid
  33032. Client uid key (internal use only)
  33033. Properties:
  33034. - Config: client_uid
  33035. - Env Var: RCLONE_PROTONDRIVE_CLIENT_UID
  33036. - Type: string
  33037. - Required: false
  33038. --protondrive-client-access-token
  33039. Client access token key (internal use only)
  33040. Properties:
  33041. - Config: client_access_token
  33042. - Env Var: RCLONE_PROTONDRIVE_CLIENT_ACCESS_TOKEN
  33043. - Type: string
  33044. - Required: false
  33045. --protondrive-client-refresh-token
  33046. Client refresh token key (internal use only)
  33047. Properties:
  33048. - Config: client_refresh_token
  33049. - Env Var: RCLONE_PROTONDRIVE_CLIENT_REFRESH_TOKEN
  33050. - Type: string
  33051. - Required: false
  33052. --protondrive-client-salted-key-pass
  33053. Client salted key pass key (internal use only)
  33054. Properties:
  33055. - Config: client_salted_key_pass
  33056. - Env Var: RCLONE_PROTONDRIVE_CLIENT_SALTED_KEY_PASS
  33057. - Type: string
  33058. - Required: false
  33059. --protondrive-encoding
  33060. The encoding for the backend.
  33061. See the encoding section in the overview for more info.
  33062. Properties:
  33063. - Config: encoding
  33064. - Env Var: RCLONE_PROTONDRIVE_ENCODING
  33065. - Type: Encoding
  33066. - Default: Slash,LeftSpace,RightSpace,InvalidUtf8,Dot
  33067. --protondrive-original-file-size
  33068. Return the file size before encryption
  33069. The size of the encrypted file will be different from (bigger than) the
  33070. original file size. Unless there is a reason to return the file size
  33071. after encryption is performed, otherwise, set this option to true, as
  33072. features like Open() which will need to be supplied with original
  33073. content size, will fail to operate properly
  33074. Properties:
  33075. - Config: original_file_size
  33076. - Env Var: RCLONE_PROTONDRIVE_ORIGINAL_FILE_SIZE
  33077. - Type: bool
  33078. - Default: true
  33079. --protondrive-app-version
  33080. The app version string
  33081. The app version string indicates the client that is currently performing
  33082. the API request. This information is required and will be sent with
  33083. every API request.
  33084. Properties:
  33085. - Config: app_version
  33086. - Env Var: RCLONE_PROTONDRIVE_APP_VERSION
  33087. - Type: string
  33088. - Default: "macos-drive@1.0.0-alpha.1+rclone"
  33089. --protondrive-replace-existing-draft
  33090. Create a new revision when filename conflict is detected
  33091. When a file upload is cancelled or failed before completion, a draft
  33092. will be created and the subsequent upload of the same file to the same
  33093. location will be reported as a conflict.
  33094. The value can also be set by --protondrive-replace-existing-draft=true
  33095. If the option is set to true, the draft will be replaced and then the
  33096. upload operation will restart. If there are other clients also uploading
  33097. at the same file location at the same time, the behavior is currently
  33098. unknown. Need to set to true for integration tests. If the option is set
  33099. to false, an error "a draft exist - usually this means a file is being
  33100. uploaded at another client, or, there was a failed upload attempt" will
  33101. be returned, and no upload will happen.
  33102. Properties:
  33103. - Config: replace_existing_draft
  33104. - Env Var: RCLONE_PROTONDRIVE_REPLACE_EXISTING_DRAFT
  33105. - Type: bool
  33106. - Default: false
  33107. --protondrive-enable-caching
  33108. Caches the files and folders metadata to reduce API calls
  33109. Notice: If you are mounting ProtonDrive as a VFS, please disable this
  33110. feature, as the current implementation doesn't update or clear the cache
  33111. when there are external changes.
  33112. The files and folders on ProtonDrive are represented as links with
  33113. keyrings, which can be cached to improve performance and be friendly to
  33114. the API server.
  33115. The cache is currently built for the case when the rclone is the only
  33116. instance performing operations to the mount point. The event system,
  33117. which is the proton API system that provides visibility of what has
  33118. changed on the drive, is yet to be implemented, so updates from other
  33119. clients won’t be reflected in the cache. Thus, if there are concurrent
  33120. clients accessing the same mount point, then we might have a problem
  33121. with caching the stale data.
  33122. Properties:
  33123. - Config: enable_caching
  33124. - Env Var: RCLONE_PROTONDRIVE_ENABLE_CACHING
  33125. - Type: bool
  33126. - Default: true
  33127. --protondrive-description
  33128. Description of the remote
  33129. Properties:
  33130. - Config: description
  33131. - Env Var: RCLONE_PROTONDRIVE_DESCRIPTION
  33132. - Type: string
  33133. - Required: false
  33134. Limitations
  33135. This backend uses the Proton-API-Bridge, which is based on
  33136. go-proton-api, a fork of the official repo.
  33137. There is no official API documentation available from Proton Drive. But,
  33138. thanks to Proton open sourcing proton-go-api and the web, iOS, and
  33139. Android client codebases, we don't need to completely reverse engineer
  33140. the APIs by observing the web client traffic!
  33141. proton-go-api provides the basic building blocks of API calls and error
  33142. handling, such as 429 exponential back-off, but it is pretty much just a
  33143. barebone interface to the Proton API. For example, the encryption and
  33144. decryption of the Proton Drive file are not provided in this library.
  33145. The Proton-API-Bridge, attempts to bridge the gap, so rclone can be
  33146. built on top of this quickly. This codebase handles the intricate tasks
  33147. before and after calling Proton APIs, particularly the complex
  33148. encryption scheme, allowing developers to implement features for other
  33149. software on top of this codebase. There are likely quite a few errors in
  33150. this library, as there isn't official documentation available.
  33151. Seafile
  33152. This is a backend for the Seafile storage service: - It works with both
  33153. the free community edition or the professional edition. - Seafile
  33154. versions 6.x, 7.x, 8.x and 9.x are all supported. - Encrypted libraries
  33155. are also supported. - It supports 2FA enabled users - Using a Library
  33156. API Token is not supported
  33157. Configuration
  33158. There are two distinct modes you can setup your remote: - you point your
  33159. remote to the root of the server, meaning you don't specify a library
  33160. during the configuration: Paths are specified as remote:library. You may
  33161. put subdirectories in too, e.g. remote:library/path/to/dir. - you point
  33162. your remote to a specific library during the configuration: Paths are
  33163. specified as remote:path/to/dir. This is the recommended mode when using
  33164. encrypted libraries. (This mode is possibly slightly faster than the
  33165. root mode)
  33166. Configuration in root mode
  33167. Here is an example of making a seafile configuration for a user with no
  33168. two-factor authentication. First run
  33169. rclone config
  33170. This will guide you through an interactive setup process. To
  33171. authenticate you will need the URL of your server, your email (or
  33172. username) and your password.
  33173. No remotes found, make a new one?
  33174. n) New remote
  33175. s) Set configuration password
  33176. q) Quit config
  33177. n/s/q> n
  33178. name> seafile
  33179. Type of storage to configure.
  33180. Enter a string value. Press Enter for the default ("").
  33181. Choose a number from below, or type in your own value
  33182. [snip]
  33183. XX / Seafile
  33184. \ "seafile"
  33185. [snip]
  33186. Storage> seafile
  33187. ** See help for seafile backend at: https://rclone.org/seafile/ **
  33188. URL of seafile host to connect to
  33189. Enter a string value. Press Enter for the default ("").
  33190. Choose a number from below, or type in your own value
  33191. 1 / Connect to cloud.seafile.com
  33192. \ "https://cloud.seafile.com/"
  33193. url> http://my.seafile.server/
  33194. User name (usually email address)
  33195. Enter a string value. Press Enter for the default ("").
  33196. user> me@example.com
  33197. Password
  33198. y) Yes type in my own password
  33199. g) Generate random password
  33200. n) No leave this optional password blank (default)
  33201. y/g> y
  33202. Enter the password:
  33203. password:
  33204. Confirm the password:
  33205. password:
  33206. Two-factor authentication ('true' if the account has 2FA enabled)
  33207. Enter a boolean value (true or false). Press Enter for the default ("false").
  33208. 2fa> false
  33209. Name of the library. Leave blank to access all non-encrypted libraries.
  33210. Enter a string value. Press Enter for the default ("").
  33211. library>
  33212. Library password (for encrypted libraries only). Leave blank if you pass it through the command line.
  33213. y) Yes type in my own password
  33214. g) Generate random password
  33215. n) No leave this optional password blank (default)
  33216. y/g/n> n
  33217. Edit advanced config? (y/n)
  33218. y) Yes
  33219. n) No (default)
  33220. y/n> n
  33221. Remote config
  33222. Two-factor authentication is not enabled on this account.
  33223. --------------------
  33224. [seafile]
  33225. type = seafile
  33226. url = http://my.seafile.server/
  33227. user = me@example.com
  33228. pass = *** ENCRYPTED ***
  33229. 2fa = false
  33230. --------------------
  33231. y) Yes this is OK (default)
  33232. e) Edit this remote
  33233. d) Delete this remote
  33234. y/e/d> y
  33235. This remote is called seafile. It's pointing to the root of your seafile
  33236. server and can now be used like this:
  33237. See all libraries
  33238. rclone lsd seafile:
  33239. Create a new library
  33240. rclone mkdir seafile:library
  33241. List the contents of a library
  33242. rclone ls seafile:library
  33243. Sync /home/local/directory to the remote library, deleting any excess
  33244. files in the library.
  33245. rclone sync --interactive /home/local/directory seafile:library
  33246. Configuration in library mode
  33247. Here's an example of a configuration in library mode with a user that
  33248. has the two-factor authentication enabled. Your 2FA code will be asked
  33249. at the end of the configuration, and will attempt to authenticate you:
  33250. No remotes found, make a new one?
  33251. n) New remote
  33252. s) Set configuration password
  33253. q) Quit config
  33254. n/s/q> n
  33255. name> seafile
  33256. Type of storage to configure.
  33257. Enter a string value. Press Enter for the default ("").
  33258. Choose a number from below, or type in your own value
  33259. [snip]
  33260. XX / Seafile
  33261. \ "seafile"
  33262. [snip]
  33263. Storage> seafile
  33264. ** See help for seafile backend at: https://rclone.org/seafile/ **
  33265. URL of seafile host to connect to
  33266. Enter a string value. Press Enter for the default ("").
  33267. Choose a number from below, or type in your own value
  33268. 1 / Connect to cloud.seafile.com
  33269. \ "https://cloud.seafile.com/"
  33270. url> http://my.seafile.server/
  33271. User name (usually email address)
  33272. Enter a string value. Press Enter for the default ("").
  33273. user> me@example.com
  33274. Password
  33275. y) Yes type in my own password
  33276. g) Generate random password
  33277. n) No leave this optional password blank (default)
  33278. y/g> y
  33279. Enter the password:
  33280. password:
  33281. Confirm the password:
  33282. password:
  33283. Two-factor authentication ('true' if the account has 2FA enabled)
  33284. Enter a boolean value (true or false). Press Enter for the default ("false").
  33285. 2fa> true
  33286. Name of the library. Leave blank to access all non-encrypted libraries.
  33287. Enter a string value. Press Enter for the default ("").
  33288. library> My Library
  33289. Library password (for encrypted libraries only). Leave blank if you pass it through the command line.
  33290. y) Yes type in my own password
  33291. g) Generate random password
  33292. n) No leave this optional password blank (default)
  33293. y/g/n> n
  33294. Edit advanced config? (y/n)
  33295. y) Yes
  33296. n) No (default)
  33297. y/n> n
  33298. Remote config
  33299. Two-factor authentication: please enter your 2FA code
  33300. 2fa code> 123456
  33301. Authenticating...
  33302. Success!
  33303. --------------------
  33304. [seafile]
  33305. type = seafile
  33306. url = http://my.seafile.server/
  33307. user = me@example.com
  33308. pass =
  33309. 2fa = true
  33310. library = My Library
  33311. --------------------
  33312. y) Yes this is OK (default)
  33313. e) Edit this remote
  33314. d) Delete this remote
  33315. y/e/d> y
  33316. You'll notice your password is blank in the configuration. It's because
  33317. we only need the password to authenticate you once.
  33318. You specified My Library during the configuration. The root of the
  33319. remote is pointing at the root of the library My Library:
  33320. See all files in the library:
  33321. rclone lsd seafile:
  33322. Create a new directory inside the library
  33323. rclone mkdir seafile:directory
  33324. List the contents of a directory
  33325. rclone ls seafile:directory
  33326. Sync /home/local/directory to the remote library, deleting any excess
  33327. files in the library.
  33328. rclone sync --interactive /home/local/directory seafile:
  33329. --fast-list
  33330. Seafile version 7+ supports --fast-list which allows you to use fewer
  33331. transactions in exchange for more memory. See the rclone docs for more
  33332. details. Please note this is not supported on seafile server version 6.x
  33333. Restricted filename characters
  33334. In addition to the default restricted characters set the following
  33335. characters are also replaced:
  33336. Character Value Replacement
  33337. ----------- ------- -------------
  33338. / 0x2F /
  33339. " 0x22 "
  33340. \ 0x5C \
  33341. Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
  33342. strings.
  33343. Seafile and rclone link
  33344. Rclone supports generating share links for non-encrypted libraries only.
  33345. They can either be for a file or a directory:
  33346. rclone link seafile:seafile-tutorial.doc
  33347. http://my.seafile.server/f/fdcd8a2f93f84b8b90f4/
  33348. or if run on a directory you will get:
  33349. rclone link seafile:dir
  33350. http://my.seafile.server/d/9ea2455f6f55478bbb0d/
  33351. Please note a share link is unique for each file or directory. If you
  33352. run a link command on a file/dir that has already been shared, you will
  33353. get the exact same link.
  33354. Compatibility
  33355. It has been actively developed using the seafile docker image of these
  33356. versions: - 6.3.4 community edition - 7.0.5 community edition - 7.1.3
  33357. community edition - 9.0.10 community edition
  33358. Versions below 6.0 are not supported. Versions between 6.0 and 6.3
  33359. haven't been tested and might not work properly.
  33360. Each new version of rclone is automatically tested against the latest
  33361. docker image of the seafile community server.
  33362. Standard options
  33363. Here are the Standard options specific to seafile (seafile).
  33364. --seafile-url
  33365. URL of seafile host to connect to.
  33366. Properties:
  33367. - Config: url
  33368. - Env Var: RCLONE_SEAFILE_URL
  33369. - Type: string
  33370. - Required: true
  33371. - Examples:
  33372. - "https://cloud.seafile.com/"
  33373. - Connect to cloud.seafile.com.
  33374. --seafile-user
  33375. User name (usually email address).
  33376. Properties:
  33377. - Config: user
  33378. - Env Var: RCLONE_SEAFILE_USER
  33379. - Type: string
  33380. - Required: true
  33381. --seafile-pass
  33382. Password.
  33383. NB Input to this must be obscured - see rclone obscure.
  33384. Properties:
  33385. - Config: pass
  33386. - Env Var: RCLONE_SEAFILE_PASS
  33387. - Type: string
  33388. - Required: false
  33389. --seafile-2fa
  33390. Two-factor authentication ('true' if the account has 2FA enabled).
  33391. Properties:
  33392. - Config: 2fa
  33393. - Env Var: RCLONE_SEAFILE_2FA
  33394. - Type: bool
  33395. - Default: false
  33396. --seafile-library
  33397. Name of the library.
  33398. Leave blank to access all non-encrypted libraries.
  33399. Properties:
  33400. - Config: library
  33401. - Env Var: RCLONE_SEAFILE_LIBRARY
  33402. - Type: string
  33403. - Required: false
  33404. --seafile-library-key
  33405. Library password (for encrypted libraries only).
  33406. Leave blank if you pass it through the command line.
  33407. NB Input to this must be obscured - see rclone obscure.
  33408. Properties:
  33409. - Config: library_key
  33410. - Env Var: RCLONE_SEAFILE_LIBRARY_KEY
  33411. - Type: string
  33412. - Required: false
  33413. --seafile-auth-token
  33414. Authentication token.
  33415. Properties:
  33416. - Config: auth_token
  33417. - Env Var: RCLONE_SEAFILE_AUTH_TOKEN
  33418. - Type: string
  33419. - Required: false
  33420. Advanced options
  33421. Here are the Advanced options specific to seafile (seafile).
  33422. --seafile-create-library
  33423. Should rclone create a library if it doesn't exist.
  33424. Properties:
  33425. - Config: create_library
  33426. - Env Var: RCLONE_SEAFILE_CREATE_LIBRARY
  33427. - Type: bool
  33428. - Default: false
  33429. --seafile-encoding
  33430. The encoding for the backend.
  33431. See the encoding section in the overview for more info.
  33432. Properties:
  33433. - Config: encoding
  33434. - Env Var: RCLONE_SEAFILE_ENCODING
  33435. - Type: Encoding
  33436. - Default: Slash,DoubleQuote,BackSlash,Ctl,InvalidUtf8
  33437. --seafile-description
  33438. Description of the remote
  33439. Properties:
  33440. - Config: description
  33441. - Env Var: RCLONE_SEAFILE_DESCRIPTION
  33442. - Type: string
  33443. - Required: false
  33444. SFTP
  33445. SFTP is the Secure (or SSH) File Transfer Protocol.
  33446. The SFTP backend can be used with a number of different providers:
  33447. - Hetzner Storage Box
  33448. - rsync.net
  33449. SFTP runs over SSH v2 and is installed as standard with most modern SSH
  33450. installations.
  33451. Paths are specified as remote:path. If the path does not begin with a /
  33452. it is relative to the home directory of the user. An empty path remote:
  33453. refers to the user's home directory. For example, rclone lsd remote:
  33454. would list the home directory of the user configured in the rclone
  33455. remote config (i.e /home/sftpuser). However, rclone lsd remote:/ would
  33456. list the root directory for remote machine (i.e. /)
  33457. Note that some SFTP servers will need the leading / - Synology is a good
  33458. example of this. rsync.net and Hetzner, on the other hand, requires
  33459. users to OMIT the leading /.
  33460. Note that by default rclone will try to execute shell commands on the
  33461. server, see shell access considerations.
  33462. Configuration
  33463. Here is an example of making an SFTP configuration. First run
  33464. rclone config
  33465. This will guide you through an interactive setup process.
  33466. No remotes found, make a new one?
  33467. n) New remote
  33468. s) Set configuration password
  33469. q) Quit config
  33470. n/s/q> n
  33471. name> remote
  33472. Type of storage to configure.
  33473. Choose a number from below, or type in your own value
  33474. [snip]
  33475. XX / SSH/SFTP
  33476. \ "sftp"
  33477. [snip]
  33478. Storage> sftp
  33479. SSH host to connect to
  33480. Choose a number from below, or type in your own value
  33481. 1 / Connect to example.com
  33482. \ "example.com"
  33483. host> example.com
  33484. SSH username
  33485. Enter a string value. Press Enter for the default ("$USER").
  33486. user> sftpuser
  33487. SSH port number
  33488. Enter a signed integer. Press Enter for the default (22).
  33489. port>
  33490. SSH password, leave blank to use ssh-agent.
  33491. y) Yes type in my own password
  33492. g) Generate random password
  33493. n) No leave this optional password blank
  33494. y/g/n> n
  33495. Path to unencrypted PEM-encoded private key file, leave blank to use ssh-agent.
  33496. key_file>
  33497. Remote config
  33498. --------------------
  33499. [remote]
  33500. host = example.com
  33501. user = sftpuser
  33502. port =
  33503. pass =
  33504. key_file =
  33505. --------------------
  33506. y) Yes this is OK
  33507. e) Edit this remote
  33508. d) Delete this remote
  33509. y/e/d> y
  33510. This remote is called remote and can now be used like this:
  33511. See all directories in the home directory
  33512. rclone lsd remote:
  33513. See all directories in the root directory
  33514. rclone lsd remote:/
  33515. Make a new directory
  33516. rclone mkdir remote:path/to/directory
  33517. List the contents of a directory
  33518. rclone ls remote:path/to/directory
  33519. Sync /home/local/directory to the remote directory, deleting any excess
  33520. files in the directory.
  33521. rclone sync --interactive /home/local/directory remote:directory
  33522. Mount the remote path /srv/www-data/ to the local path /mnt/www-data
  33523. rclone mount remote:/srv/www-data/ /mnt/www-data
  33524. SSH Authentication
  33525. The SFTP remote supports three authentication methods:
  33526. - Password
  33527. - Key file, including certificate signed keys
  33528. - ssh-agent
  33529. Key files should be PEM-encoded private key files. For instance
  33530. /home/$USER/.ssh/id_rsa. Only unencrypted OpenSSH or PEM encrypted files
  33531. are supported.
  33532. The key file can be specified in either an external file (key_file) or
  33533. contained within the rclone config file (key_pem). If using key_pem in
  33534. the config file, the entry should be on a single line with new line (''
  33535. or '') separating lines. i.e.
  33536. key_pem = -----BEGIN RSA PRIVATE KEY-----\nMaMbaIXtE\n0gAMbMbaSsd\nMbaass\n-----END RSA PRIVATE KEY-----
  33537. This will generate it correctly for key_pem for use in the config:
  33538. awk '{printf "%s\\n", $0}' < ~/.ssh/id_rsa
  33539. If you don't specify pass, key_file, or key_pem or ask_password then
  33540. rclone will attempt to contact an ssh-agent. You can also specify
  33541. key_use_agent to force the usage of an ssh-agent. In this case key_file
  33542. or key_pem can also be specified to force the usage of a specific key in
  33543. the ssh-agent.
  33544. Using an ssh-agent is the only way to load encrypted OpenSSH keys at the
  33545. moment.
  33546. If you set the ask_password option, rclone will prompt for a password
  33547. when needed and no password has been configured.
  33548. Certificate-signed keys
  33549. With traditional key-based authentication, you configure your private
  33550. key only, and the public key built into it will be used during the
  33551. authentication process.
  33552. If you have a certificate you may use it to sign your public key,
  33553. creating a separate SSH user certificate that should be used instead of
  33554. the plain public key extracted from the private key. Then you must
  33555. provide the path to the user certificate public key file in pubkey_file.
  33556. Note: This is not the traditional public key paired with your private
  33557. key, typically saved as /home/$USER/.ssh/id_rsa.pub. Setting this path
  33558. in pubkey_file will not work.
  33559. Example:
  33560. [remote]
  33561. type = sftp
  33562. host = example.com
  33563. user = sftpuser
  33564. key_file = ~/id_rsa
  33565. pubkey_file = ~/id_rsa-cert.pub
  33566. If you concatenate a cert with a private key then you can specify the
  33567. merged file in both places.
  33568. Note: the cert must come first in the file. e.g.
  33569. cat id_rsa-cert.pub id_rsa > merged_key
  33570. Host key validation
  33571. By default rclone will not check the server's host key for validation.
  33572. This can allow an attacker to replace a server with their own and if you
  33573. use password authentication then this can lead to that password being
  33574. exposed.
  33575. Host key matching, using standard known_hosts files can be turned on by
  33576. enabling the known_hosts_file option. This can point to the file
  33577. maintained by OpenSSH or can point to a unique file.
  33578. e.g. using the OpenSSH known_hosts file:
  33579. [remote]
  33580. type = sftp
  33581. host = example.com
  33582. user = sftpuser
  33583. pass =
  33584. known_hosts_file = ~/.ssh/known_hosts
  33585. Alternatively you can create your own known hosts file like this:
  33586. ssh-keyscan -t dsa,rsa,ecdsa,ed25519 example.com >> known_hosts
  33587. There are some limitations:
  33588. - rclone will not manage this file for you. If the key is missing or
  33589. wrong then the connection will be refused.
  33590. - If the server is set up for a certificate host key then the entry in
  33591. the known_hosts file must be the @cert-authority entry for the CA
  33592. If the host key provided by the server does not match the one in the
  33593. file (or is missing) then the connection will be aborted and an error
  33594. returned such as
  33595. NewFs: couldn't connect SSH: ssh: handshake failed: knownhosts: key mismatch
  33596. or
  33597. NewFs: couldn't connect SSH: ssh: handshake failed: knownhosts: key is unknown
  33598. If you see an error such as
  33599. NewFs: couldn't connect SSH: ssh: handshake failed: ssh: no authorities for hostname: example.com:22
  33600. then it is likely the server has presented a CA signed host certificate
  33601. and you will need to add the appropriate @cert-authority entry.
  33602. The known_hosts_file setting can be set during rclone config as an
  33603. advanced option.
  33604. ssh-agent on macOS
  33605. Note that there seem to be various problems with using an ssh-agent on
  33606. macOS due to recent changes in the OS. The most effective work-around
  33607. seems to be to start an ssh-agent in each session, e.g.
  33608. eval `ssh-agent -s` && ssh-add -A
  33609. And then at the end of the session
  33610. eval `ssh-agent -k`
  33611. These commands can be used in scripts of course.
  33612. Shell access
  33613. Some functionality of the SFTP backend relies on remote shell access,
  33614. and the possibility to execute commands. This includes checksum, and in
  33615. some cases also about. The shell commands that must be executed may be
  33616. different on different type of shells, and also quoting/escaping of file
  33617. path arguments containing special characters may be different. Rclone
  33618. therefore needs to know what type of shell it is, and if shell access is
  33619. available at all.
  33620. Most servers run on some version of Unix, and then a basic Unix shell
  33621. can be assumed, without further distinction. Windows 10, Server 2019,
  33622. and later can also run a SSH server, which is a port of OpenSSH (see
  33623. official installation guide). On a Windows server the shell handling is
  33624. different: Although it can also be set up to use a Unix type shell, e.g.
  33625. Cygwin bash, the default is to use Windows Command Prompt (cmd.exe), and
  33626. PowerShell is a recommended alternative. All of these have behave
  33627. differently, which rclone must handle.
  33628. Rclone tries to auto-detect what type of shell is used on the server,
  33629. first time you access the SFTP remote. If a remote shell session is
  33630. successfully created, it will look for indications that it is CMD or
  33631. PowerShell, with fall-back to Unix if not something else is detected. If
  33632. unable to even create a remote shell session, then shell command
  33633. execution will be disabled entirely. The result is stored in the SFTP
  33634. remote configuration, in option shell_type, so that the auto-detection
  33635. only have to be performed once. If you manually set a value for this
  33636. option before first run, the auto-detection will be skipped, and if you
  33637. set a different value later this will override any existing. Value none
  33638. can be set to avoid any attempts at executing shell commands, e.g. if
  33639. this is not allowed on the server.
  33640. When the server is rclone serve sftp, the rclone SFTP remote will detect
  33641. this as a Unix type shell - even if it is running on Windows. This
  33642. server does not actually have a shell, but it accepts input commands
  33643. matching the specific ones that the SFTP backend relies on for Unix
  33644. shells, e.g. md5sum and df. Also it handles the string escape rules used
  33645. for Unix shell. Treating it as a Unix type shell from a SFTP remote will
  33646. therefore always be correct, and support all features.
  33647. Shell access considerations
  33648. The shell type auto-detection logic, described above, means that by
  33649. default rclone will try to run a shell command the first time a new sftp
  33650. remote is accessed. If you configure a sftp remote without a config
  33651. file, e.g. an on the fly remote, rclone will have nowhere to store the
  33652. result, and it will re-run the command on every access. To avoid this
  33653. you should explicitly set the shell_type option to the correct value, or
  33654. to none if you want to prevent rclone from executing any remote shell
  33655. commands.
  33656. It is also important to note that, since the shell type decides how
  33657. quoting and escaping of file paths used as command-line arguments are
  33658. performed, configuring the wrong shell type may leave you exposed to
  33659. command injection exploits. Make sure to confirm the auto-detected shell
  33660. type, or explicitly set the shell type you know is correct, or disable
  33661. shell access until you know.
  33662. Checksum
  33663. SFTP does not natively support checksums (file hash), but rclone is able
  33664. to use checksumming if the same login has shell access, and can execute
  33665. remote commands. If there is a command that can calculate compatible
  33666. checksums on the remote system, Rclone can then be configured to execute
  33667. this whenever a checksum is needed, and read back the results. Currently
  33668. MD5 and SHA-1 are supported.
  33669. Normally this requires an external utility being available on the
  33670. server. By default rclone will try commands md5sum, md5 and
  33671. rclone md5sum for MD5 checksums, and the first one found usable will be
  33672. picked. Same with sha1sum, sha1 and rclone sha1sum commands for SHA-1
  33673. checksums. These utilities normally need to be in the remote's PATH to
  33674. be found.
  33675. In some cases the shell itself is capable of calculating checksums.
  33676. PowerShell is an example of such a shell. If rclone detects that the
  33677. remote shell is PowerShell, which means it most probably is a Windows
  33678. OpenSSH server, rclone will use a predefined script block to produce the
  33679. checksums when no external checksum commands are found (see shell
  33680. access). This assumes PowerShell version 4.0 or newer.
  33681. The options md5sum_command and sha1_command can be used to customize the
  33682. command to be executed for calculation of checksums. You can for example
  33683. set a specific path to where md5sum and sha1sum executables are located,
  33684. or use them to specify some other tools that print checksums in
  33685. compatible format. The value can include command-line arguments, or even
  33686. shell script blocks as with PowerShell. Rclone has subcommands md5sum
  33687. and sha1sum that use compatible format, which means if you have an
  33688. rclone executable on the server it can be used. As mentioned above, they
  33689. will be automatically picked up if found in PATH, but if not you can set
  33690. something like /path/to/rclone md5sum as the value of option
  33691. md5sum_command to make sure a specific executable is used.
  33692. Remote checksumming is recommended and enabled by default. First time
  33693. rclone is using a SFTP remote, if options md5sum_command or sha1_command
  33694. are not set, it will check if any of the default commands for each of
  33695. them, as described above, can be used. The result will be saved in the
  33696. remote configuration, so next time it will use the same. Value none will
  33697. be set if none of the default commands could be used for a specific
  33698. algorithm, and this algorithm will not be supported by the remote.
  33699. Disabling the checksumming may be required if you are connecting to SFTP
  33700. servers which are not under your control, and to which the execution of
  33701. remote shell commands is prohibited. Set the configuration option
  33702. disable_hashcheck to true to disable checksumming entirely, or set
  33703. shell_type to none to disable all functionality based on remote shell
  33704. command execution.
  33705. Modification times and hashes
  33706. Modified times are stored on the server to 1 second precision.
  33707. Modified times are used in syncing and are fully supported.
  33708. Some SFTP servers disable setting/modifying the file modification time
  33709. after upload (for example, certain configurations of ProFTPd with
  33710. mod_sftp). If you are using one of these servers, you can set the option
  33711. set_modtime = false in your RClone backend configuration to disable this
  33712. behaviour.
  33713. About command
  33714. The about command returns the total space, free space, and used space on
  33715. the remote for the disk of the specified path on the remote or, if not
  33716. set, the disk of the root on the remote.
  33717. SFTP usually supports the about command, but it depends on the server.
  33718. If the server implements the vendor-specific VFS statistics extension,
  33719. which is normally the case with OpenSSH instances, it will be used. If
  33720. not, but the same login has access to a Unix shell, where the df command
  33721. is available (e.g. in the remote's PATH), then this will be used
  33722. instead. If the server shell is PowerShell, probably with a Windows
  33723. OpenSSH server, rclone will use a built-in shell command (see shell
  33724. access). If none of the above is applicable, about will fail.
  33725. Standard options
  33726. Here are the Standard options specific to sftp (SSH/SFTP).
  33727. --sftp-host
  33728. SSH host to connect to.
  33729. E.g. "example.com".
  33730. Properties:
  33731. - Config: host
  33732. - Env Var: RCLONE_SFTP_HOST
  33733. - Type: string
  33734. - Required: true
  33735. --sftp-user
  33736. SSH username.
  33737. Properties:
  33738. - Config: user
  33739. - Env Var: RCLONE_SFTP_USER
  33740. - Type: string
  33741. - Default: "$USER"
  33742. --sftp-port
  33743. SSH port number.
  33744. Properties:
  33745. - Config: port
  33746. - Env Var: RCLONE_SFTP_PORT
  33747. - Type: int
  33748. - Default: 22
  33749. --sftp-pass
  33750. SSH password, leave blank to use ssh-agent.
  33751. NB Input to this must be obscured - see rclone obscure.
  33752. Properties:
  33753. - Config: pass
  33754. - Env Var: RCLONE_SFTP_PASS
  33755. - Type: string
  33756. - Required: false
  33757. --sftp-key-pem
  33758. Raw PEM-encoded private key.
  33759. If specified, will override key_file parameter.
  33760. Properties:
  33761. - Config: key_pem
  33762. - Env Var: RCLONE_SFTP_KEY_PEM
  33763. - Type: string
  33764. - Required: false
  33765. --sftp-key-file
  33766. Path to PEM-encoded private key file.
  33767. Leave blank or set key-use-agent to use ssh-agent.
  33768. Leading ~ will be expanded in the file name as will environment
  33769. variables such as ${RCLONE_CONFIG_DIR}.
  33770. Properties:
  33771. - Config: key_file
  33772. - Env Var: RCLONE_SFTP_KEY_FILE
  33773. - Type: string
  33774. - Required: false
  33775. --sftp-key-file-pass
  33776. The passphrase to decrypt the PEM-encoded private key file.
  33777. Only PEM encrypted key files (old OpenSSH format) are supported.
  33778. Encrypted keys in the new OpenSSH format can't be used.
  33779. NB Input to this must be obscured - see rclone obscure.
  33780. Properties:
  33781. - Config: key_file_pass
  33782. - Env Var: RCLONE_SFTP_KEY_FILE_PASS
  33783. - Type: string
  33784. - Required: false
  33785. --sftp-pubkey-file
  33786. Optional path to public key file.
  33787. Set this if you have a signed certificate you want to use for
  33788. authentication.
  33789. Leading ~ will be expanded in the file name as will environment
  33790. variables such as ${RCLONE_CONFIG_DIR}.
  33791. Properties:
  33792. - Config: pubkey_file
  33793. - Env Var: RCLONE_SFTP_PUBKEY_FILE
  33794. - Type: string
  33795. - Required: false
  33796. --sftp-key-use-agent
  33797. When set forces the usage of the ssh-agent.
  33798. When key-file is also set, the ".pub" file of the specified key-file is
  33799. read and only the associated key is requested from the ssh-agent. This
  33800. allows to avoid Too many authentication failures for *username* errors
  33801. when the ssh-agent contains many keys.
  33802. Properties:
  33803. - Config: key_use_agent
  33804. - Env Var: RCLONE_SFTP_KEY_USE_AGENT
  33805. - Type: bool
  33806. - Default: false
  33807. --sftp-use-insecure-cipher
  33808. Enable the use of insecure ciphers and key exchange methods.
  33809. This enables the use of the following insecure ciphers and key exchange
  33810. methods:
  33811. - aes128-cbc
  33812. - aes192-cbc
  33813. - aes256-cbc
  33814. - 3des-cbc
  33815. - diffie-hellman-group-exchange-sha256
  33816. - diffie-hellman-group-exchange-sha1
  33817. Those algorithms are insecure and may allow plaintext data to be
  33818. recovered by an attacker.
  33819. This must be false if you use either ciphers or key_exchange advanced
  33820. options.
  33821. Properties:
  33822. - Config: use_insecure_cipher
  33823. - Env Var: RCLONE_SFTP_USE_INSECURE_CIPHER
  33824. - Type: bool
  33825. - Default: false
  33826. - Examples:
  33827. - "false"
  33828. - Use default Cipher list.
  33829. - "true"
  33830. - Enables the use of the aes128-cbc cipher and
  33831. diffie-hellman-group-exchange-sha256,
  33832. diffie-hellman-group-exchange-sha1 key exchange.
  33833. --sftp-disable-hashcheck
  33834. Disable the execution of SSH commands to determine if remote file
  33835. hashing is available.
  33836. Leave blank or set to false to enable hashing (recommended), set to true
  33837. to disable hashing.
  33838. Properties:
  33839. - Config: disable_hashcheck
  33840. - Env Var: RCLONE_SFTP_DISABLE_HASHCHECK
  33841. - Type: bool
  33842. - Default: false
  33843. --sftp-ssh
  33844. Path and arguments to external ssh binary.
  33845. Normally rclone will use its internal ssh library to connect to the SFTP
  33846. server. However it does not implement all possible ssh options so it may
  33847. be desirable to use an external ssh binary.
  33848. Rclone ignores all the internal config if you use this option and
  33849. expects you to configure the ssh binary with the user/host/port and any
  33850. other options you need.
  33851. Important The ssh command must log in without asking for a password so
  33852. needs to be configured with keys or certificates.
  33853. Rclone will run the command supplied either with the additional
  33854. arguments "-s sftp" to access the SFTP subsystem or with commands such
  33855. as "md5sum /path/to/file" appended to read checksums.
  33856. Any arguments with spaces in should be surrounded by "double quotes".
  33857. An example setting might be:
  33858. ssh -o ServerAliveInterval=20 user@example.com
  33859. Note that when using an external ssh binary rclone makes a new ssh
  33860. connection for every hash it calculates.
  33861. Properties:
  33862. - Config: ssh
  33863. - Env Var: RCLONE_SFTP_SSH
  33864. - Type: SpaceSepList
  33865. - Default:
  33866. Advanced options
  33867. Here are the Advanced options specific to sftp (SSH/SFTP).
  33868. --sftp-known-hosts-file
  33869. Optional path to known_hosts file.
  33870. Set this value to enable server host key validation.
  33871. Leading ~ will be expanded in the file name as will environment
  33872. variables such as ${RCLONE_CONFIG_DIR}.
  33873. Properties:
  33874. - Config: known_hosts_file
  33875. - Env Var: RCLONE_SFTP_KNOWN_HOSTS_FILE
  33876. - Type: string
  33877. - Required: false
  33878. - Examples:
  33879. - "~/.ssh/known_hosts"
  33880. - Use OpenSSH's known_hosts file.
  33881. --sftp-ask-password
  33882. Allow asking for SFTP password when needed.
  33883. If this is set and no password is supplied then rclone will: - ask for a
  33884. password - not contact the ssh agent
  33885. Properties:
  33886. - Config: ask_password
  33887. - Env Var: RCLONE_SFTP_ASK_PASSWORD
  33888. - Type: bool
  33889. - Default: false
  33890. --sftp-path-override
  33891. Override path used by SSH shell commands.
  33892. This allows checksum calculation when SFTP and SSH paths are different.
  33893. This issue affects among others Synology NAS boxes.
  33894. E.g. if shared folders can be found in directories representing volumes:
  33895. rclone sync /home/local/directory remote:/directory --sftp-path-override /volume2/directory
  33896. E.g. if home directory can be found in a shared folder called "home":
  33897. rclone sync /home/local/directory remote:/home/directory --sftp-path-override /volume1/homes/USER/directory
  33898. To specify only the path to the SFTP remote's root, and allow rclone to
  33899. add any relative subpaths automatically (including unwrapping/decrypting
  33900. remotes as necessary), add the '@' character to the beginning of the
  33901. path.
  33902. E.g. the first example above could be rewritten as:
  33903. rclone sync /home/local/directory remote:/directory --sftp-path-override @/volume2
  33904. Note that when using this method with Synology "home" folders, the full
  33905. "/homes/USER" path should be specified instead of "/home".
  33906. E.g. the second example above should be rewritten as:
  33907. rclone sync /home/local/directory remote:/homes/USER/directory --sftp-path-override @/volume1
  33908. Properties:
  33909. - Config: path_override
  33910. - Env Var: RCLONE_SFTP_PATH_OVERRIDE
  33911. - Type: string
  33912. - Required: false
  33913. --sftp-set-modtime
  33914. Set the modified time on the remote if set.
  33915. Properties:
  33916. - Config: set_modtime
  33917. - Env Var: RCLONE_SFTP_SET_MODTIME
  33918. - Type: bool
  33919. - Default: true
  33920. --sftp-shell-type
  33921. The type of SSH shell on remote server, if any.
  33922. Leave blank for autodetect.
  33923. Properties:
  33924. - Config: shell_type
  33925. - Env Var: RCLONE_SFTP_SHELL_TYPE
  33926. - Type: string
  33927. - Required: false
  33928. - Examples:
  33929. - "none"
  33930. - No shell access
  33931. - "unix"
  33932. - Unix shell
  33933. - "powershell"
  33934. - PowerShell
  33935. - "cmd"
  33936. - Windows Command Prompt
  33937. --sftp-md5sum-command
  33938. The command used to read md5 hashes.
  33939. Leave blank for autodetect.
  33940. Properties:
  33941. - Config: md5sum_command
  33942. - Env Var: RCLONE_SFTP_MD5SUM_COMMAND
  33943. - Type: string
  33944. - Required: false
  33945. --sftp-sha1sum-command
  33946. The command used to read sha1 hashes.
  33947. Leave blank for autodetect.
  33948. Properties:
  33949. - Config: sha1sum_command
  33950. - Env Var: RCLONE_SFTP_SHA1SUM_COMMAND
  33951. - Type: string
  33952. - Required: false
  33953. --sftp-skip-links
  33954. Set to skip any symlinks and any other non regular files.
  33955. Properties:
  33956. - Config: skip_links
  33957. - Env Var: RCLONE_SFTP_SKIP_LINKS
  33958. - Type: bool
  33959. - Default: false
  33960. --sftp-subsystem
  33961. Specifies the SSH2 subsystem on the remote host.
  33962. Properties:
  33963. - Config: subsystem
  33964. - Env Var: RCLONE_SFTP_SUBSYSTEM
  33965. - Type: string
  33966. - Default: "sftp"
  33967. --sftp-server-command
  33968. Specifies the path or command to run a sftp server on the remote host.
  33969. The subsystem option is ignored when server_command is defined.
  33970. If adding server_command to the configuration file please note that it
  33971. should not be enclosed in quotes, since that will make rclone fail.
  33972. A working example is:
  33973. [remote_name]
  33974. type = sftp
  33975. server_command = sudo /usr/libexec/openssh/sftp-server
  33976. Properties:
  33977. - Config: server_command
  33978. - Env Var: RCLONE_SFTP_SERVER_COMMAND
  33979. - Type: string
  33980. - Required: false
  33981. --sftp-use-fstat
  33982. If set use fstat instead of stat.
  33983. Some servers limit the amount of open files and calling Stat after
  33984. opening the file will throw an error from the server. Setting this flag
  33985. will call Fstat instead of Stat which is called on an already open file
  33986. handle.
  33987. It has been found that this helps with IBM Sterling SFTP servers which
  33988. have "extractability" level set to 1 which means only 1 file can be
  33989. opened at any given time.
  33990. Properties:
  33991. - Config: use_fstat
  33992. - Env Var: RCLONE_SFTP_USE_FSTAT
  33993. - Type: bool
  33994. - Default: false
  33995. --sftp-disable-concurrent-reads
  33996. If set don't use concurrent reads.
  33997. Normally concurrent reads are safe to use and not using them will
  33998. degrade performance, so this option is disabled by default.
  33999. Some servers limit the amount number of times a file can be downloaded.
  34000. Using concurrent reads can trigger this limit, so if you have a server
  34001. which returns
  34002. Failed to copy: file does not exist
  34003. Then you may need to enable this flag.
  34004. If concurrent reads are disabled, the use_fstat option is ignored.
  34005. Properties:
  34006. - Config: disable_concurrent_reads
  34007. - Env Var: RCLONE_SFTP_DISABLE_CONCURRENT_READS
  34008. - Type: bool
  34009. - Default: false
  34010. --sftp-disable-concurrent-writes
  34011. If set don't use concurrent writes.
  34012. Normally rclone uses concurrent writes to upload files. This improves
  34013. the performance greatly, especially for distant servers.
  34014. This option disables concurrent writes should that be necessary.
  34015. Properties:
  34016. - Config: disable_concurrent_writes
  34017. - Env Var: RCLONE_SFTP_DISABLE_CONCURRENT_WRITES
  34018. - Type: bool
  34019. - Default: false
  34020. --sftp-idle-timeout
  34021. Max time before closing idle connections.
  34022. If no connections have been returned to the connection pool in the time
  34023. given, rclone will empty the connection pool.
  34024. Set to 0 to keep connections indefinitely.
  34025. Properties:
  34026. - Config: idle_timeout
  34027. - Env Var: RCLONE_SFTP_IDLE_TIMEOUT
  34028. - Type: Duration
  34029. - Default: 1m0s
  34030. --sftp-chunk-size
  34031. Upload and download chunk size.
  34032. This controls the maximum size of payload in SFTP protocol packets. The
  34033. RFC limits this to 32768 bytes (32k), which is the default. However, a
  34034. lot of servers support larger sizes, typically limited to a maximum
  34035. total package size of 256k, and setting it larger will increase transfer
  34036. speed dramatically on high latency links. This includes OpenSSH, and,
  34037. for example, using the value of 255k works well, leaving plenty of room
  34038. for overhead while still being within a total packet size of 256k.
  34039. Make sure to test thoroughly before using a value higher than 32k, and
  34040. only use it if you always connect to the same server or after
  34041. sufficiently broad testing. If you get errors such as "failed to send
  34042. packet payload: EOF", lots of "connection lost", or "corrupted on
  34043. transfer", when copying a larger file, try lowering the value. The
  34044. server run by rclone serve sftp sends packets with standard 32k maximum
  34045. payload so you must not set a different chunk_size when downloading
  34046. files, but it accepts packets up to the 256k total size, so for uploads
  34047. the chunk_size can be set as for the OpenSSH example above.
  34048. Properties:
  34049. - Config: chunk_size
  34050. - Env Var: RCLONE_SFTP_CHUNK_SIZE
  34051. - Type: SizeSuffix
  34052. - Default: 32Ki
  34053. --sftp-concurrency
  34054. The maximum number of outstanding requests for one file
  34055. This controls the maximum number of outstanding requests for one file.
  34056. Increasing it will increase throughput on high latency links at the cost
  34057. of using more memory.
  34058. Properties:
  34059. - Config: concurrency
  34060. - Env Var: RCLONE_SFTP_CONCURRENCY
  34061. - Type: int
  34062. - Default: 64
  34063. --sftp-set-env
  34064. Environment variables to pass to sftp and commands
  34065. Set environment variables in the form:
  34066. VAR=value
  34067. to be passed to the sftp client and to any commands run (eg md5sum).
  34068. Pass multiple variables space separated, eg
  34069. VAR1=value VAR2=value
  34070. and pass variables with spaces in quotes, eg
  34071. "VAR3=value with space" "VAR4=value with space" VAR5=nospacehere
  34072. Properties:
  34073. - Config: set_env
  34074. - Env Var: RCLONE_SFTP_SET_ENV
  34075. - Type: SpaceSepList
  34076. - Default:
  34077. --sftp-ciphers
  34078. Space separated list of ciphers to be used for session encryption,
  34079. ordered by preference.
  34080. At least one must match with server configuration. This can be checked
  34081. for example using ssh -Q cipher.
  34082. This must not be set if use_insecure_cipher is true.
  34083. Example:
  34084. aes128-ctr aes192-ctr aes256-ctr aes128-gcm@openssh.com aes256-gcm@openssh.com
  34085. Properties:
  34086. - Config: ciphers
  34087. - Env Var: RCLONE_SFTP_CIPHERS
  34088. - Type: SpaceSepList
  34089. - Default:
  34090. --sftp-key-exchange
  34091. Space separated list of key exchange algorithms, ordered by preference.
  34092. At least one must match with server configuration. This can be checked
  34093. for example using ssh -Q kex.
  34094. This must not be set if use_insecure_cipher is true.
  34095. Example:
  34096. sntrup761x25519-sha512@openssh.com curve25519-sha256 curve25519-sha256@libssh.org ecdh-sha2-nistp256
  34097. Properties:
  34098. - Config: key_exchange
  34099. - Env Var: RCLONE_SFTP_KEY_EXCHANGE
  34100. - Type: SpaceSepList
  34101. - Default:
  34102. --sftp-macs
  34103. Space separated list of MACs (message authentication code) algorithms,
  34104. ordered by preference.
  34105. At least one must match with server configuration. This can be checked
  34106. for example using ssh -Q mac.
  34107. Example:
  34108. umac-64-etm@openssh.com umac-128-etm@openssh.com hmac-sha2-256-etm@openssh.com
  34109. Properties:
  34110. - Config: macs
  34111. - Env Var: RCLONE_SFTP_MACS
  34112. - Type: SpaceSepList
  34113. - Default:
  34114. --sftp-host-key-algorithms
  34115. Space separated list of host key algorithms, ordered by preference.
  34116. At least one must match with server configuration. This can be checked
  34117. for example using ssh -Q HostKeyAlgorithms.
  34118. Note: This can affect the outcome of key negotiation with the server
  34119. even if server host key validation is not enabled.
  34120. Example:
  34121. ssh-ed25519 ssh-rsa ssh-dss
  34122. Properties:
  34123. - Config: host_key_algorithms
  34124. - Env Var: RCLONE_SFTP_HOST_KEY_ALGORITHMS
  34125. - Type: SpaceSepList
  34126. - Default:
  34127. --sftp-socks-proxy
  34128. Socks 5 proxy host.
  34129. Supports the format user:pass@host:port, user@host:port, host:port.
  34130. Example:
  34131. myUser:myPass@localhost:9005
  34132. Properties:
  34133. - Config: socks_proxy
  34134. - Env Var: RCLONE_SFTP_SOCKS_PROXY
  34135. - Type: string
  34136. - Required: false
  34137. --sftp-copy-is-hardlink
  34138. Set to enable server side copies using hardlinks.
  34139. The SFTP protocol does not define a copy command so normally server side
  34140. copies are not allowed with the sftp backend.
  34141. However the SFTP protocol does support hardlinking, and if you enable
  34142. this flag then the sftp backend will support server side copies. These
  34143. will be implemented by doing a hardlink from the source to the
  34144. destination.
  34145. Not all sftp servers support this.
  34146. Note that hardlinking two files together will use no additional space as
  34147. the source and the destination will be the same file.
  34148. This feature may be useful backups made with --copy-dest.
  34149. Properties:
  34150. - Config: copy_is_hardlink
  34151. - Env Var: RCLONE_SFTP_COPY_IS_HARDLINK
  34152. - Type: bool
  34153. - Default: false
  34154. --sftp-description
  34155. Description of the remote
  34156. Properties:
  34157. - Config: description
  34158. - Env Var: RCLONE_SFTP_DESCRIPTION
  34159. - Type: string
  34160. - Required: false
  34161. Limitations
  34162. On some SFTP servers (e.g. Synology) the paths are different for SSH and
  34163. SFTP so the hashes can't be calculated properly. For them using
  34164. disable_hashcheck is a good idea.
  34165. The only ssh agent supported under Windows is Putty's pageant.
  34166. The Go SSH library disables the use of the aes128-cbc cipher by default,
  34167. due to security concerns. This can be re-enabled on a per-connection
  34168. basis by setting the use_insecure_cipher setting in the configuration
  34169. file to true. Further details on the insecurity of this cipher can be
  34170. found in this paper.
  34171. SFTP isn't supported under plan9 until this issue is fixed.
  34172. Note that since SFTP isn't HTTP based the following flags don't work
  34173. with it: --dump-headers, --dump-bodies, --dump-auth.
  34174. Note that --timeout and --contimeout are both supported.
  34175. rsync.net
  34176. rsync.net is supported through the SFTP backend.
  34177. See rsync.net's documentation of rclone examples.
  34178. Hetzner Storage Box
  34179. Hetzner Storage Boxes are supported through the SFTP backend on port 23.
  34180. See Hetzner's documentation for details
  34181. SMB
  34182. SMB is a communication protocol to share files over network.
  34183. This relies on go-smb2 library for communication with SMB protocol.
  34184. Paths are specified as remote:sharename (or remote: for the lsd
  34185. command.) You may put subdirectories in too, e.g.
  34186. remote:item/path/to/dir.
  34187. Notes
  34188. The first path segment must be the name of the share, which you entered
  34189. when you started to share on Windows. On smbd, it's the section title in
  34190. smb.conf (usually in /etc/samba/) file. You can find shares by querying
  34191. the root if you're unsure (e.g. rclone lsd remote:).
  34192. You can't access to the shared printers from rclone, obviously.
  34193. You can't use Anonymous access for logging in. You have to use the guest
  34194. user with an empty password instead. The rclone client tries to avoid
  34195. 8.3 names when uploading files by encoding trailing spaces and periods.
  34196. Alternatively, the local backend on Windows can access SMB servers using
  34197. UNC paths, by \\server\share. This doesn't apply to non-Windows OSes,
  34198. such as Linux and macOS.
  34199. Configuration
  34200. Here is an example of making a SMB configuration.
  34201. First run
  34202. rclone config
  34203. This will guide you through an interactive setup process.
  34204. No remotes found, make a new one?
  34205. n) New remote
  34206. s) Set configuration password
  34207. q) Quit config
  34208. n/s/q> n
  34209. name> remote
  34210. Option Storage.
  34211. Type of storage to configure.
  34212. Choose a number from below, or type in your own value.
  34213. XX / SMB / CIFS
  34214. \ (smb)
  34215. Storage> smb
  34216. Option host.
  34217. Samba hostname to connect to.
  34218. E.g. "example.com".
  34219. Enter a value.
  34220. host> localhost
  34221. Option user.
  34222. Samba username.
  34223. Enter a string value. Press Enter for the default (lesmi).
  34224. user> guest
  34225. Option port.
  34226. Samba port number.
  34227. Enter a signed integer. Press Enter for the default (445).
  34228. port>
  34229. Option pass.
  34230. Samba password.
  34231. Choose an alternative below. Press Enter for the default (n).
  34232. y) Yes, type in my own password
  34233. g) Generate random password
  34234. n) No, leave this optional password blank (default)
  34235. y/g/n> g
  34236. Password strength in bits.
  34237. 64 is just about memorable
  34238. 128 is secure
  34239. 1024 is the maximum
  34240. Bits> 64
  34241. Your password is: XXXX
  34242. Use this password? Please note that an obscured version of this
  34243. password (and not the password itself) will be stored under your
  34244. configuration file, so keep this generated password in a safe place.
  34245. y) Yes (default)
  34246. n) No
  34247. y/n> y
  34248. Option domain.
  34249. Domain name for NTLM authentication.
  34250. Enter a string value. Press Enter for the default (WORKGROUP).
  34251. domain>
  34252. Edit advanced config?
  34253. y) Yes
  34254. n) No (default)
  34255. y/n> n
  34256. Configuration complete.
  34257. Options:
  34258. - type: samba
  34259. - host: localhost
  34260. - user: guest
  34261. - pass: *** ENCRYPTED ***
  34262. Keep this "remote" remote?
  34263. y) Yes this is OK (default)
  34264. e) Edit this remote
  34265. d) Delete this remote
  34266. y/e/d> d
  34267. Standard options
  34268. Here are the Standard options specific to smb (SMB / CIFS).
  34269. --smb-host
  34270. SMB server hostname to connect to.
  34271. E.g. "example.com".
  34272. Properties:
  34273. - Config: host
  34274. - Env Var: RCLONE_SMB_HOST
  34275. - Type: string
  34276. - Required: true
  34277. --smb-user
  34278. SMB username.
  34279. Properties:
  34280. - Config: user
  34281. - Env Var: RCLONE_SMB_USER
  34282. - Type: string
  34283. - Default: "$USER"
  34284. --smb-port
  34285. SMB port number.
  34286. Properties:
  34287. - Config: port
  34288. - Env Var: RCLONE_SMB_PORT
  34289. - Type: int
  34290. - Default: 445
  34291. --smb-pass
  34292. SMB password.
  34293. NB Input to this must be obscured - see rclone obscure.
  34294. Properties:
  34295. - Config: pass
  34296. - Env Var: RCLONE_SMB_PASS
  34297. - Type: string
  34298. - Required: false
  34299. --smb-domain
  34300. Domain name for NTLM authentication.
  34301. Properties:
  34302. - Config: domain
  34303. - Env Var: RCLONE_SMB_DOMAIN
  34304. - Type: string
  34305. - Default: "WORKGROUP"
  34306. --smb-spn
  34307. Service principal name.
  34308. Rclone presents this name to the server. Some servers use this as
  34309. further authentication, and it often needs to be set for clusters. For
  34310. example:
  34311. cifs/remotehost:1020
  34312. Leave blank if not sure.
  34313. Properties:
  34314. - Config: spn
  34315. - Env Var: RCLONE_SMB_SPN
  34316. - Type: string
  34317. - Required: false
  34318. Advanced options
  34319. Here are the Advanced options specific to smb (SMB / CIFS).
  34320. --smb-idle-timeout
  34321. Max time before closing idle connections.
  34322. If no connections have been returned to the connection pool in the time
  34323. given, rclone will empty the connection pool.
  34324. Set to 0 to keep connections indefinitely.
  34325. Properties:
  34326. - Config: idle_timeout
  34327. - Env Var: RCLONE_SMB_IDLE_TIMEOUT
  34328. - Type: Duration
  34329. - Default: 1m0s
  34330. --smb-hide-special-share
  34331. Hide special shares (e.g. print$) which users aren't supposed to access.
  34332. Properties:
  34333. - Config: hide_special_share
  34334. - Env Var: RCLONE_SMB_HIDE_SPECIAL_SHARE
  34335. - Type: bool
  34336. - Default: true
  34337. --smb-case-insensitive
  34338. Whether the server is configured to be case-insensitive.
  34339. Always true on Windows shares.
  34340. Properties:
  34341. - Config: case_insensitive
  34342. - Env Var: RCLONE_SMB_CASE_INSENSITIVE
  34343. - Type: bool
  34344. - Default: true
  34345. --smb-encoding
  34346. The encoding for the backend.
  34347. See the encoding section in the overview for more info.
  34348. Properties:
  34349. - Config: encoding
  34350. - Env Var: RCLONE_SMB_ENCODING
  34351. - Type: Encoding
  34352. - Default:
  34353. Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot
  34354. --smb-description
  34355. Description of the remote
  34356. Properties:
  34357. - Config: description
  34358. - Env Var: RCLONE_SMB_DESCRIPTION
  34359. - Type: string
  34360. - Required: false
  34361. Storj
  34362. Storj is an encrypted, secure, and cost-effective object storage service
  34363. that enables you to store, back up, and archive large amounts of data in
  34364. a decentralized manner.
  34365. Backend options
  34366. Storj can be used both with this native backend and with the s3 backend
  34367. using the Storj S3 compatible gateway (shared or private).
  34368. Use this backend to take advantage of client-side encryption as well as
  34369. to achieve the best possible download performance. Uploads will be
  34370. erasure-coded locally, thus a 1gb upload will result in 2.68gb of data
  34371. being uploaded to storage nodes across the network.
  34372. Use the s3 backend and one of the S3 compatible Hosted Gateways to
  34373. increase upload performance and reduce the load on your systems and
  34374. network. Uploads will be encrypted and erasure-coded server-side, thus a
  34375. 1GB upload will result in only in 1GB of data being uploaded to storage
  34376. nodes across the network.
  34377. Side by side comparison with more details:
  34378. - Characteristics:
  34379. - Storj backend: Uses native RPC protocol, connects directly to
  34380. the storage nodes which hosts the data. Requires more CPU
  34381. resource of encoding/decoding and has network amplification
  34382. (especially during the upload), uses lots of TCP connections
  34383. - S3 backend: Uses S3 compatible HTTP Rest API via the shared
  34384. gateways. There is no network amplification, but performance
  34385. depends on the shared gateways and the secret encryption key is
  34386. shared with the gateway.
  34387. - Typical usage:
  34388. - Storj backend: Server environments and desktops with enough
  34389. resources, internet speed and connectivity - and applications
  34390. where storjs client-side encryption is required.
  34391. - S3 backend: Desktops and similar with limited resources,
  34392. internet speed or connectivity.
  34393. - Security:
  34394. - Storj backend: strong. Private encryption key doesn't need to
  34395. leave the local computer.
  34396. - S3 backend: weaker. Private encryption key is shared with the
  34397. authentication service of the hosted gateway, where it's stored
  34398. encrypted. It can be stronger when combining with the rclone
  34399. crypt backend.
  34400. - Bandwidth usage (upload):
  34401. - Storj backend: higher. As data is erasure coded on the client
  34402. side both the original data and the parities should be uploaded.
  34403. About ~2.7 times more data is required to be uploaded. Client
  34404. may start to upload with even higher number of nodes (~3.7 times
  34405. more) and abandon/stop the slow uploads.
  34406. - S3 backend: normal. Only the raw data is uploaded, erasure
  34407. coding happens on the gateway.
  34408. - Bandwidth usage (download)
  34409. - Storj backend: almost normal. Only the minimal number of data is
  34410. required, but to avoid very slow data providers a few more
  34411. sources are used and the slowest are ignored (max 1.2x
  34412. overhead).
  34413. - S3 backend: normal. Only the raw data is downloaded, erasure
  34414. coding happens on the shared gateway.
  34415. - CPU usage:
  34416. - Storj backend: higher, but more predictable. Erasure code and
  34417. encryption/decryption happens locally which requires significant
  34418. CPU usage.
  34419. - S3 backend: less. Erasure code and encryption/decryption happens
  34420. on shared s3 gateways (and as is, it depends on the current load
  34421. on the gateways)
  34422. - TCP connection usage:
  34423. - Storj backend: high. A direct connection is required to each of
  34424. the Storj nodes resulting in 110 connections on upload and 35 on
  34425. download per 64 MB segment. Not all the connections are actively
  34426. used (slow ones are pruned), but they are all opened. Adjusting
  34427. the max open file limit may be required.
  34428. - S3 backend: normal. Only one connection per download/upload
  34429. thread is required to the shared gateway.
  34430. - Overall performance:
  34431. - Storj backend: with enough resources (CPU and bandwidth) storj
  34432. backend can provide even 2x better performance. Data is directly
  34433. downloaded to / uploaded from to the client instead of the
  34434. gateway.
  34435. - S3 backend: Can be faster on edge devices where CPU and network
  34436. bandwidth is limited as the shared S3 compatible gateways take
  34437. care about the encrypting/decryption and erasure coding and no
  34438. download/upload amplification.
  34439. - Decentralization:
  34440. - Storj backend: high. Data is downloaded directly from the
  34441. distributed cloud of storage providers.
  34442. - S3 backend: low. Requires a running S3 gateway (either
  34443. self-hosted or Storj-hosted).
  34444. - Limitations:
  34445. - Storj backend: rclone checksum is not possible without download,
  34446. as checksum metadata is not calculated during upload
  34447. - S3 backend: secret encryption key is shared with the gateway
  34448. Configuration
  34449. To make a new Storj configuration you need one of the following: *
  34450. Access Grant that someone else shared with you. * API Key of a Storj
  34451. project you are a member of.
  34452. Here is an example of how to make a remote called remote. First run:
  34453. rclone config
  34454. This will guide you through an interactive setup process:
  34455. Setup with access grant
  34456. No remotes found, make a new one?
  34457. n) New remote
  34458. s) Set configuration password
  34459. q) Quit config
  34460. n/s/q> n
  34461. name> remote
  34462. Type of storage to configure.
  34463. Enter a string value. Press Enter for the default ("").
  34464. Choose a number from below, or type in your own value
  34465. [snip]
  34466. XX / Storj Decentralized Cloud Storage
  34467. \ "storj"
  34468. [snip]
  34469. Storage> storj
  34470. ** See help for storj backend at: https://rclone.org/storj/ **
  34471. Choose an authentication method.
  34472. Enter a string value. Press Enter for the default ("existing").
  34473. Choose a number from below, or type in your own value
  34474. 1 / Use an existing access grant.
  34475. \ "existing"
  34476. 2 / Create a new access grant from satellite address, API key, and passphrase.
  34477. \ "new"
  34478. provider> existing
  34479. Access Grant.
  34480. Enter a string value. Press Enter for the default ("").
  34481. access_grant> your-access-grant-received-by-someone-else
  34482. Remote config
  34483. --------------------
  34484. [remote]
  34485. type = storj
  34486. access_grant = your-access-grant-received-by-someone-else
  34487. --------------------
  34488. y) Yes this is OK (default)
  34489. e) Edit this remote
  34490. d) Delete this remote
  34491. y/e/d> y
  34492. Setup with API key and passphrase
  34493. No remotes found, make a new one?
  34494. n) New remote
  34495. s) Set configuration password
  34496. q) Quit config
  34497. n/s/q> n
  34498. name> remote
  34499. Type of storage to configure.
  34500. Enter a string value. Press Enter for the default ("").
  34501. Choose a number from below, or type in your own value
  34502. [snip]
  34503. XX / Storj Decentralized Cloud Storage
  34504. \ "storj"
  34505. [snip]
  34506. Storage> storj
  34507. ** See help for storj backend at: https://rclone.org/storj/ **
  34508. Choose an authentication method.
  34509. Enter a string value. Press Enter for the default ("existing").
  34510. Choose a number from below, or type in your own value
  34511. 1 / Use an existing access grant.
  34512. \ "existing"
  34513. 2 / Create a new access grant from satellite address, API key, and passphrase.
  34514. \ "new"
  34515. provider> new
  34516. Satellite Address. Custom satellite address should match the format: `<nodeid>@<address>:<port>`.
  34517. Enter a string value. Press Enter for the default ("us1.storj.io").
  34518. Choose a number from below, or type in your own value
  34519. 1 / US1
  34520. \ "us1.storj.io"
  34521. 2 / EU1
  34522. \ "eu1.storj.io"
  34523. 3 / AP1
  34524. \ "ap1.storj.io"
  34525. satellite_address> 1
  34526. API Key.
  34527. Enter a string value. Press Enter for the default ("").
  34528. api_key> your-api-key-for-your-storj-project
  34529. Encryption Passphrase. To access existing objects enter passphrase used for uploading.
  34530. Enter a string value. Press Enter for the default ("").
  34531. passphrase> your-human-readable-encryption-passphrase
  34532. Remote config
  34533. --------------------
  34534. [remote]
  34535. type = storj
  34536. satellite_address = 12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S@us1.storj.io:7777
  34537. api_key = your-api-key-for-your-storj-project
  34538. passphrase = your-human-readable-encryption-passphrase
  34539. access_grant = the-access-grant-generated-from-the-api-key-and-passphrase
  34540. --------------------
  34541. y) Yes this is OK (default)
  34542. e) Edit this remote
  34543. d) Delete this remote
  34544. y/e/d> y
  34545. Standard options
  34546. Here are the Standard options specific to storj (Storj Decentralized
  34547. Cloud Storage).
  34548. --storj-provider
  34549. Choose an authentication method.
  34550. Properties:
  34551. - Config: provider
  34552. - Env Var: RCLONE_STORJ_PROVIDER
  34553. - Type: string
  34554. - Default: "existing"
  34555. - Examples:
  34556. - "existing"
  34557. - Use an existing access grant.
  34558. - "new"
  34559. - Create a new access grant from satellite address, API key,
  34560. and passphrase.
  34561. --storj-access-grant
  34562. Access grant.
  34563. Properties:
  34564. - Config: access_grant
  34565. - Env Var: RCLONE_STORJ_ACCESS_GRANT
  34566. - Provider: existing
  34567. - Type: string
  34568. - Required: false
  34569. --storj-satellite-address
  34570. Satellite address.
  34571. Custom satellite address should match the format:
  34572. <nodeid>@<address>:<port>.
  34573. Properties:
  34574. - Config: satellite_address
  34575. - Env Var: RCLONE_STORJ_SATELLITE_ADDRESS
  34576. - Provider: new
  34577. - Type: string
  34578. - Default: "us1.storj.io"
  34579. - Examples:
  34580. - "us1.storj.io"
  34581. - US1
  34582. - "eu1.storj.io"
  34583. - EU1
  34584. - "ap1.storj.io"
  34585. - AP1
  34586. --storj-api-key
  34587. API key.
  34588. Properties:
  34589. - Config: api_key
  34590. - Env Var: RCLONE_STORJ_API_KEY
  34591. - Provider: new
  34592. - Type: string
  34593. - Required: false
  34594. --storj-passphrase
  34595. Encryption passphrase.
  34596. To access existing objects enter passphrase used for uploading.
  34597. Properties:
  34598. - Config: passphrase
  34599. - Env Var: RCLONE_STORJ_PASSPHRASE
  34600. - Provider: new
  34601. - Type: string
  34602. - Required: false
  34603. Advanced options
  34604. Here are the Advanced options specific to storj (Storj Decentralized
  34605. Cloud Storage).
  34606. --storj-description
  34607. Description of the remote
  34608. Properties:
  34609. - Config: description
  34610. - Env Var: RCLONE_STORJ_DESCRIPTION
  34611. - Type: string
  34612. - Required: false
  34613. Usage
  34614. Paths are specified as remote:bucket (or remote: for the lsf command.)
  34615. You may put subdirectories in too, e.g. remote:bucket/path/to/dir.
  34616. Once configured you can then use rclone like this.
  34617. Create a new bucket
  34618. Use the mkdir command to create new bucket, e.g. bucket.
  34619. rclone mkdir remote:bucket
  34620. List all buckets
  34621. Use the lsf command to list all buckets.
  34622. rclone lsf remote:
  34623. Note the colon (:) character at the end of the command line.
  34624. Delete a bucket
  34625. Use the rmdir command to delete an empty bucket.
  34626. rclone rmdir remote:bucket
  34627. Use the purge command to delete a non-empty bucket with all its content.
  34628. rclone purge remote:bucket
  34629. Upload objects
  34630. Use the copy command to upload an object.
  34631. rclone copy --progress /home/local/directory/file.ext remote:bucket/path/to/dir/
  34632. The --progress flag is for displaying progress information. Remove it if
  34633. you don't need this information.
  34634. Use a folder in the local path to upload all its objects.
  34635. rclone copy --progress /home/local/directory/ remote:bucket/path/to/dir/
  34636. Only modified files will be copied.
  34637. List objects
  34638. Use the ls command to list recursively all objects in a bucket.
  34639. rclone ls remote:bucket
  34640. Add the folder to the remote path to list recursively all objects in
  34641. this folder.
  34642. rclone ls remote:bucket/path/to/dir/
  34643. Use the lsf command to list non-recursively all objects in a bucket or a
  34644. folder.
  34645. rclone lsf remote:bucket/path/to/dir/
  34646. Download objects
  34647. Use the copy command to download an object.
  34648. rclone copy --progress remote:bucket/path/to/dir/file.ext /home/local/directory/
  34649. The --progress flag is for displaying progress information. Remove it if
  34650. you don't need this information.
  34651. Use a folder in the remote path to download all its objects.
  34652. rclone copy --progress remote:bucket/path/to/dir/ /home/local/directory/
  34653. Delete objects
  34654. Use the deletefile command to delete a single object.
  34655. rclone deletefile remote:bucket/path/to/dir/file.ext
  34656. Use the delete command to delete all object in a folder.
  34657. rclone delete remote:bucket/path/to/dir/
  34658. Print the total size of objects
  34659. Use the size command to print the total size of objects in a bucket or a
  34660. folder.
  34661. rclone size remote:bucket/path/to/dir/
  34662. Sync two Locations
  34663. Use the sync command to sync the source to the destination, changing the
  34664. destination only, deleting any excess files.
  34665. rclone sync --interactive --progress /home/local/directory/ remote:bucket/path/to/dir/
  34666. The --progress flag is for displaying progress information. Remove it if
  34667. you don't need this information.
  34668. Since this can cause data loss, test first with the --dry-run flag to
  34669. see exactly what would be copied and deleted.
  34670. The sync can be done also from Storj to the local file system.
  34671. rclone sync --interactive --progress remote:bucket/path/to/dir/ /home/local/directory/
  34672. Or between two Storj buckets.
  34673. rclone sync --interactive --progress remote-us:bucket/path/to/dir/ remote-europe:bucket/path/to/dir/
  34674. Or even between another cloud storage and Storj.
  34675. rclone sync --interactive --progress s3:bucket/path/to/dir/ storj:bucket/path/to/dir/
  34676. Limitations
  34677. rclone about is not supported by the rclone Storj backend. Backends
  34678. without this capability cannot determine free space for an rclone mount
  34679. or use policy mfs (most free space) as a member of an rclone union
  34680. remote.
  34681. See List of backends that do not support rclone about and rclone about
  34682. Known issues
  34683. If you get errors like too many open files this usually happens when the
  34684. default ulimit for system max open files is exceeded. Native Storj
  34685. protocol opens a large number of TCP connections (each of which is
  34686. counted as an open file). For a single upload stream you can expect 110
  34687. TCP connections to be opened. For a single download stream you can
  34688. expect 35. This batch of connections will be opened for every 64 MiB
  34689. segment and you should also expect TCP connections to be reused. If you
  34690. do many transfers you eventually open a connection to most storage nodes
  34691. (thousands of nodes).
  34692. To fix these, please raise your system limits. You can do this issuing a
  34693. ulimit -n 65536 just before you run rclone. To change the limits more
  34694. permanently you can add this to your shell startup script, e.g.
  34695. $HOME/.bashrc, or change the system-wide configuration, usually
  34696. /etc/sysctl.conf and/or /etc/security/limits.conf, but please refer to
  34697. your operating system manual.
  34698. SugarSync
  34699. SugarSync is a cloud service that enables active synchronization of
  34700. files across computers and other devices for file backup, access,
  34701. syncing, and sharing.
  34702. Configuration
  34703. The initial setup for SugarSync involves getting a token from SugarSync
  34704. which you can do with rclone. rclone config walks you through it.
  34705. Here is an example of how to make a remote called remote. First run:
  34706. rclone config
  34707. This will guide you through an interactive setup process:
  34708. No remotes found, make a new one?
  34709. n) New remote
  34710. s) Set configuration password
  34711. q) Quit config
  34712. n/s/q> n
  34713. name> remote
  34714. Type of storage to configure.
  34715. Enter a string value. Press Enter for the default ("").
  34716. Choose a number from below, or type in your own value
  34717. [snip]
  34718. XX / Sugarsync
  34719. \ "sugarsync"
  34720. [snip]
  34721. Storage> sugarsync
  34722. ** See help for sugarsync backend at: https://rclone.org/sugarsync/ **
  34723. Sugarsync App ID.
  34724. Leave blank to use rclone's.
  34725. Enter a string value. Press Enter for the default ("").
  34726. app_id>
  34727. Sugarsync Access Key ID.
  34728. Leave blank to use rclone's.
  34729. Enter a string value. Press Enter for the default ("").
  34730. access_key_id>
  34731. Sugarsync Private Access Key
  34732. Leave blank to use rclone's.
  34733. Enter a string value. Press Enter for the default ("").
  34734. private_access_key>
  34735. Permanently delete files if true
  34736. otherwise put them in the deleted files.
  34737. Enter a boolean value (true or false). Press Enter for the default ("false").
  34738. hard_delete>
  34739. Edit advanced config? (y/n)
  34740. y) Yes
  34741. n) No (default)
  34742. y/n> n
  34743. Remote config
  34744. Username (email address)> nick@craig-wood.com
  34745. Your Sugarsync password is only required during setup and will not be stored.
  34746. password:
  34747. --------------------
  34748. [remote]
  34749. type = sugarsync
  34750. refresh_token = https://api.sugarsync.com/app-authorization/XXXXXXXXXXXXXXXXXX
  34751. --------------------
  34752. y) Yes this is OK (default)
  34753. e) Edit this remote
  34754. d) Delete this remote
  34755. y/e/d> y
  34756. Note that the config asks for your email and password but doesn't store
  34757. them, it only uses them to get the initial token.
  34758. Once configured you can then use rclone like this,
  34759. List directories (sync folders) in top level of your SugarSync
  34760. rclone lsd remote:
  34761. List all the files in your SugarSync folder "Test"
  34762. rclone ls remote:Test
  34763. To copy a local directory to an SugarSync folder called backup
  34764. rclone copy /home/source remote:backup
  34765. Paths are specified as remote:path
  34766. Paths may be as deep as required, e.g. remote:directory/subdirectory.
  34767. NB you can't create files in the top level folder you have to create a
  34768. folder, which rclone will create as a "Sync Folder" with SugarSync.
  34769. Modification times and hashes
  34770. SugarSync does not support modification times or hashes, therefore
  34771. syncing will default to --size-only checking. Note that using --update
  34772. will work as rclone can read the time files were uploaded.
  34773. Restricted filename characters
  34774. SugarSync replaces the default restricted characters set except for DEL.
  34775. Invalid UTF-8 bytes will also be replaced, as they can't be used in XML
  34776. strings.
  34777. Deleting files
  34778. Deleted files will be moved to the "Deleted items" folder by default.
  34779. However you can supply the flag --sugarsync-hard-delete or set the
  34780. config parameter hard_delete = true if you would like files to be
  34781. deleted straight away.
  34782. Standard options
  34783. Here are the Standard options specific to sugarsync (Sugarsync).
  34784. --sugarsync-app-id
  34785. Sugarsync App ID.
  34786. Leave blank to use rclone's.
  34787. Properties:
  34788. - Config: app_id
  34789. - Env Var: RCLONE_SUGARSYNC_APP_ID
  34790. - Type: string
  34791. - Required: false
  34792. --sugarsync-access-key-id
  34793. Sugarsync Access Key ID.
  34794. Leave blank to use rclone's.
  34795. Properties:
  34796. - Config: access_key_id
  34797. - Env Var: RCLONE_SUGARSYNC_ACCESS_KEY_ID
  34798. - Type: string
  34799. - Required: false
  34800. --sugarsync-private-access-key
  34801. Sugarsync Private Access Key.
  34802. Leave blank to use rclone's.
  34803. Properties:
  34804. - Config: private_access_key
  34805. - Env Var: RCLONE_SUGARSYNC_PRIVATE_ACCESS_KEY
  34806. - Type: string
  34807. - Required: false
  34808. --sugarsync-hard-delete
  34809. Permanently delete files if true otherwise put them in the deleted
  34810. files.
  34811. Properties:
  34812. - Config: hard_delete
  34813. - Env Var: RCLONE_SUGARSYNC_HARD_DELETE
  34814. - Type: bool
  34815. - Default: false
  34816. Advanced options
  34817. Here are the Advanced options specific to sugarsync (Sugarsync).
  34818. --sugarsync-refresh-token
  34819. Sugarsync refresh token.
  34820. Leave blank normally, will be auto configured by rclone.
  34821. Properties:
  34822. - Config: refresh_token
  34823. - Env Var: RCLONE_SUGARSYNC_REFRESH_TOKEN
  34824. - Type: string
  34825. - Required: false
  34826. --sugarsync-authorization
  34827. Sugarsync authorization.
  34828. Leave blank normally, will be auto configured by rclone.
  34829. Properties:
  34830. - Config: authorization
  34831. - Env Var: RCLONE_SUGARSYNC_AUTHORIZATION
  34832. - Type: string
  34833. - Required: false
  34834. --sugarsync-authorization-expiry
  34835. Sugarsync authorization expiry.
  34836. Leave blank normally, will be auto configured by rclone.
  34837. Properties:
  34838. - Config: authorization_expiry
  34839. - Env Var: RCLONE_SUGARSYNC_AUTHORIZATION_EXPIRY
  34840. - Type: string
  34841. - Required: false
  34842. --sugarsync-user
  34843. Sugarsync user.
  34844. Leave blank normally, will be auto configured by rclone.
  34845. Properties:
  34846. - Config: user
  34847. - Env Var: RCLONE_SUGARSYNC_USER
  34848. - Type: string
  34849. - Required: false
  34850. --sugarsync-root-id
  34851. Sugarsync root id.
  34852. Leave blank normally, will be auto configured by rclone.
  34853. Properties:
  34854. - Config: root_id
  34855. - Env Var: RCLONE_SUGARSYNC_ROOT_ID
  34856. - Type: string
  34857. - Required: false
  34858. --sugarsync-deleted-id
  34859. Sugarsync deleted folder id.
  34860. Leave blank normally, will be auto configured by rclone.
  34861. Properties:
  34862. - Config: deleted_id
  34863. - Env Var: RCLONE_SUGARSYNC_DELETED_ID
  34864. - Type: string
  34865. - Required: false
  34866. --sugarsync-encoding
  34867. The encoding for the backend.
  34868. See the encoding section in the overview for more info.
  34869. Properties:
  34870. - Config: encoding
  34871. - Env Var: RCLONE_SUGARSYNC_ENCODING
  34872. - Type: Encoding
  34873. - Default: Slash,Ctl,InvalidUtf8,Dot
  34874. --sugarsync-description
  34875. Description of the remote
  34876. Properties:
  34877. - Config: description
  34878. - Env Var: RCLONE_SUGARSYNC_DESCRIPTION
  34879. - Type: string
  34880. - Required: false
  34881. Limitations
  34882. rclone about is not supported by the SugarSync backend. Backends without
  34883. this capability cannot determine free space for an rclone mount or use
  34884. policy mfs (most free space) as a member of an rclone union remote.
  34885. See List of backends that do not support rclone about and rclone about
  34886. Tardigrade
  34887. The Tardigrade backend has been renamed to be the Storj backend. Old
  34888. configuration files will continue to work.
  34889. Uptobox
  34890. This is a Backend for Uptobox file storage service. Uptobox is closer to
  34891. a one-click hoster than a traditional cloud storage provider and
  34892. therefore not suitable for long term storage.
  34893. Paths are specified as remote:path
  34894. Paths may be as deep as required, e.g. remote:directory/subdirectory.
  34895. Configuration
  34896. To configure an Uptobox backend you'll need your personal api token.
  34897. You'll find it in your account settings
  34898. Here is an example of how to make a remote called remote with the
  34899. default setup. First run:
  34900. rclone config
  34901. This will guide you through an interactive setup process:
  34902. Current remotes:
  34903. Name Type
  34904. ==== ====
  34905. TestUptobox uptobox
  34906. e) Edit existing remote
  34907. n) New remote
  34908. d) Delete remote
  34909. r) Rename remote
  34910. c) Copy remote
  34911. s) Set configuration password
  34912. q) Quit config
  34913. e/n/d/r/c/s/q> n
  34914. name> uptobox
  34915. Type of storage to configure.
  34916. Enter a string value. Press Enter for the default ("").
  34917. Choose a number from below, or type in your own value
  34918. [...]
  34919. 37 / Uptobox
  34920. \ "uptobox"
  34921. [...]
  34922. Storage> uptobox
  34923. ** See help for uptobox backend at: https://rclone.org/uptobox/ **
  34924. Your API Key, get it from https://uptobox.com/my_account
  34925. Enter a string value. Press Enter for the default ("").
  34926. api_key> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  34927. Edit advanced config? (y/n)
  34928. y) Yes
  34929. n) No (default)
  34930. y/n> n
  34931. Remote config
  34932. --------------------
  34933. [uptobox]
  34934. type = uptobox
  34935. api_key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  34936. --------------------
  34937. y) Yes this is OK (default)
  34938. e) Edit this remote
  34939. d) Delete this remote
  34940. y/e/d>
  34941. Once configured you can then use rclone like this,
  34942. List directories in top level of your Uptobox
  34943. rclone lsd remote:
  34944. List all the files in your Uptobox
  34945. rclone ls remote:
  34946. To copy a local directory to an Uptobox directory called backup
  34947. rclone copy /home/source remote:backup
  34948. Modification times and hashes
  34949. Uptobox supports neither modified times nor checksums. All timestamps
  34950. will read as that set by --default-time.
  34951. Restricted filename characters
  34952. In addition to the default restricted characters set the following
  34953. characters are also replaced:
  34954. Character Value Replacement
  34955. ----------- ------- -------------
  34956. " 0x22 "
  34957. ` 0x41 `
  34958. Invalid UTF-8 bytes will also be replaced, as they can't be used in XML
  34959. strings.
  34960. Standard options
  34961. Here are the Standard options specific to uptobox (Uptobox).
  34962. --uptobox-access-token
  34963. Your access token.
  34964. Get it from https://uptobox.com/my_account.
  34965. Properties:
  34966. - Config: access_token
  34967. - Env Var: RCLONE_UPTOBOX_ACCESS_TOKEN
  34968. - Type: string
  34969. - Required: false
  34970. Advanced options
  34971. Here are the Advanced options specific to uptobox (Uptobox).
  34972. --uptobox-private
  34973. Set to make uploaded files private
  34974. Properties:
  34975. - Config: private
  34976. - Env Var: RCLONE_UPTOBOX_PRIVATE
  34977. - Type: bool
  34978. - Default: false
  34979. --uptobox-encoding
  34980. The encoding for the backend.
  34981. See the encoding section in the overview for more info.
  34982. Properties:
  34983. - Config: encoding
  34984. - Env Var: RCLONE_UPTOBOX_ENCODING
  34985. - Type: Encoding
  34986. - Default:
  34987. Slash,LtGt,DoubleQuote,BackQuote,Del,Ctl,LeftSpace,InvalidUtf8,Dot
  34988. --uptobox-description
  34989. Description of the remote
  34990. Properties:
  34991. - Config: description
  34992. - Env Var: RCLONE_UPTOBOX_DESCRIPTION
  34993. - Type: string
  34994. - Required: false
  34995. Limitations
  34996. Uptobox will delete inactive files that have not been accessed in 60
  34997. days.
  34998. rclone about is not supported by this backend an overview of used space
  34999. can however been seen in the uptobox web interface.
  35000. Union
  35001. The union backend joins several remotes together to make a single
  35002. unified view of them.
  35003. During the initial setup with rclone config you will specify the
  35004. upstream remotes as a space separated list. The upstream remotes can
  35005. either be a local paths or other remotes.
  35006. The attributes :ro, :nc and :writeback can be attached to the end of the
  35007. remote to tag the remote as read only, no create or writeback, e.g.
  35008. remote:directory/subdirectory:ro or remote:directory/subdirectory:nc.
  35009. - :ro means files will only be read from here and never written
  35010. - :nc means new files or directories won't be created here
  35011. - :writeback means files found in different remotes will be written
  35012. back here. See the writeback section for more info.
  35013. Subfolders can be used in upstream remotes. Assume a union remote named
  35014. backup with the remotes mydrive:private/backup. Invoking
  35015. rclone mkdir backup:desktop is exactly the same as invoking
  35016. rclone mkdir mydrive:private/backup/desktop.
  35017. There is no special handling of paths containing .. segments. Invoking
  35018. rclone mkdir backup:../desktop is exactly the same as invoking
  35019. rclone mkdir mydrive:private/backup/../desktop.
  35020. Configuration
  35021. Here is an example of how to make a union called remote for local
  35022. folders. First run:
  35023. rclone config
  35024. This will guide you through an interactive setup process:
  35025. No remotes found, make a new one?
  35026. n) New remote
  35027. s) Set configuration password
  35028. q) Quit config
  35029. n/s/q> n
  35030. name> remote
  35031. Type of storage to configure.
  35032. Choose a number from below, or type in your own value
  35033. [snip]
  35034. XX / Union merges the contents of several remotes
  35035. \ "union"
  35036. [snip]
  35037. Storage> union
  35038. List of space separated upstreams.
  35039. Can be 'upstreama:test/dir upstreamb:', '\"upstreama:test/space:ro dir\" upstreamb:', etc.
  35040. Enter a string value. Press Enter for the default ("").
  35041. upstreams> remote1:dir1 remote2:dir2 remote3:dir3
  35042. Policy to choose upstream on ACTION class.
  35043. Enter a string value. Press Enter for the default ("epall").
  35044. action_policy>
  35045. Policy to choose upstream on CREATE class.
  35046. Enter a string value. Press Enter for the default ("epmfs").
  35047. create_policy>
  35048. Policy to choose upstream on SEARCH class.
  35049. Enter a string value. Press Enter for the default ("ff").
  35050. search_policy>
  35051. Cache time of usage and free space (in seconds). This option is only useful when a path preserving policy is used.
  35052. Enter a signed integer. Press Enter for the default ("120").
  35053. cache_time>
  35054. Remote config
  35055. --------------------
  35056. [remote]
  35057. type = union
  35058. upstreams = remote1:dir1 remote2:dir2 remote3:dir3
  35059. --------------------
  35060. y) Yes this is OK
  35061. e) Edit this remote
  35062. d) Delete this remote
  35063. y/e/d> y
  35064. Current remotes:
  35065. Name Type
  35066. ==== ====
  35067. remote union
  35068. e) Edit existing remote
  35069. n) New remote
  35070. d) Delete remote
  35071. r) Rename remote
  35072. c) Copy remote
  35073. s) Set configuration password
  35074. q) Quit config
  35075. e/n/d/r/c/s/q> q
  35076. Once configured you can then use rclone like this,
  35077. List directories in top level in remote1:dir1, remote2:dir2 and
  35078. remote3:dir3
  35079. rclone lsd remote:
  35080. List all the files in remote1:dir1, remote2:dir2 and remote3:dir3
  35081. rclone ls remote:
  35082. Copy another local directory to the union directory called source, which
  35083. will be placed into remote3:dir3
  35084. rclone copy C:\source remote:source
  35085. Behavior / Policies
  35086. The behavior of union backend is inspired by trapexit/mergerfs. All
  35087. functions are grouped into 3 categories: action, create and search.
  35088. These functions and categories can be assigned a policy which dictates
  35089. what file or directory is chosen when performing that behavior. Any
  35090. policy can be assigned to a function or category though some may not be
  35091. very useful in practice. For instance: rand (random) may be useful for
  35092. file creation (create) but could lead to very odd behavior if used for
  35093. delete if there were more than one copy of the file.
  35094. Function / Category classifications
  35095. ----------------------------------------------------------------------------
  35096. Category Description Functions
  35097. ---------- --------------- -------------------------------------------------
  35098. action Writing move, rmdir, rmdirs, delete, purge and copy, sync
  35099. Existing file (as destination when file exist)
  35100. create Create copy, sync (as destination when file not exist)
  35101. non-existing
  35102. file
  35103. search Reading and ls, lsd, lsl, cat, md5sum, sha1sum and copy, sync
  35104. listing file (as source)
  35105. N/A size, about
  35106. ----------------------------------------------------------------------------
  35107. Path Preservation
  35108. Policies, as described below, are of two basic types. path preserving
  35109. and non-path preserving.
  35110. All policies which start with ep (epff, eplfs, eplus, epmfs, eprand) are
  35111. path preserving. ep stands for existing path.
  35112. A path preserving policy will only consider upstreams where the relative
  35113. path being accessed already exists.
  35114. When using non-path preserving policies paths will be created in target
  35115. upstreams as necessary.
  35116. Quota Relevant Policies
  35117. Some policies rely on quota information. These policies should be used
  35118. only if your upstreams support the respective quota fields.
  35119. Policy Required Field
  35120. ------------ ----------------
  35121. lfs, eplfs Free
  35122. mfs, epmfs Free
  35123. lus, eplus Used
  35124. lno, eplno Objects
  35125. To check if your upstream supports the field, run
  35126. rclone about remote: [flags] and see if the required field exists.
  35127. Filters
  35128. Policies basically search upstream remotes and create a list of files /
  35129. paths for functions to work on. The policy is responsible for filtering
  35130. and sorting. The policy type defines the sorting but filtering is mostly
  35131. uniform as described below.
  35132. - No search policies filter.
  35133. - All action policies will filter out remotes which are tagged as
  35134. read-only.
  35135. - All create policies will filter out remotes which are tagged
  35136. read-only or no-create.
  35137. If all remotes are filtered an error will be returned.
  35138. Policy descriptions
  35139. The policies definition are inspired by trapexit/mergerfs but not
  35140. exactly the same. Some policy definition could be different due to the
  35141. much larger latency of remote file systems.
  35142. -----------------------------------------------------------------------
  35143. Policy Description
  35144. ---------------- ------------------------------------------------------
  35145. all Search category: same as epall. Action category: same
  35146. as epall. Create category: act on all upstreams.
  35147. epall (existing Search category: Given this order configured, act on
  35148. path, all) the first one found where the relative path exists.
  35149. Action category: apply to all found. Create category:
  35150. act on all upstreams where the relative path exists.
  35151. epff (existing Act on the first one found, by the time upstreams
  35152. path, first reply, where the relative path exists.
  35153. found)
  35154. eplfs (existing Of all the upstreams on which the relative path exists
  35155. path, least free choose the one with the least free space.
  35156. space)
  35157. eplus (existing Of all the upstreams on which the relative path exists
  35158. path, least used choose the one with the least used space.
  35159. space)
  35160. eplno (existing Of all the upstreams on which the relative path exists
  35161. path, least choose the one with the least number of objects.
  35162. number of
  35163. objects)
  35164. epmfs (existing Of all the upstreams on which the relative path exists
  35165. path, most free choose the one with the most free space.
  35166. space)
  35167. eprand (existing Calls epall and then randomizes. Returns only one
  35168. path, random) upstream.
  35169. ff (first found) Search category: same as epff. Action category: same
  35170. as epff. Create category: Act on the first one found
  35171. by the time upstreams reply.
  35172. lfs (least free Search category: same as eplfs. Action category: same
  35173. space) as eplfs. Create category: Pick the upstream with the
  35174. least available free space.
  35175. lus (least used Search category: same as eplus. Action category: same
  35176. space) as eplus. Create category: Pick the upstream with the
  35177. least used space.
  35178. lno (least Search category: same as eplno. Action category: same
  35179. number of as eplno. Create category: Pick the upstream with the
  35180. objects) least number of objects.
  35181. mfs (most free Search category: same as epmfs. Action category: same
  35182. space) as epmfs. Create category: Pick the upstream with the
  35183. most available free space.
  35184. newest Pick the file / directory with the largest mtime.
  35185. rand (random) Calls all and then randomizes. Returns only one
  35186. upstream.
  35187. -----------------------------------------------------------------------
  35188. Writeback
  35189. The tag :writeback on an upstream remote can be used to make a simple
  35190. cache system like this:
  35191. [union]
  35192. type = union
  35193. action_policy = all
  35194. create_policy = all
  35195. search_policy = ff
  35196. upstreams = /local:writeback remote:dir
  35197. When files are opened for read, if the file is in remote:dir but not
  35198. /local then rclone will copy the file entirely into /local before
  35199. returning a reference to the file in /local. The copy will be done with
  35200. the equivalent of rclone copy so will use --multi-thread-streams if
  35201. configured. Any copies will be logged with an INFO log.
  35202. When files are written, they will be written to both remote:dir and
  35203. /local.
  35204. As many remotes as desired can be added to upstreams but there should
  35205. only be one :writeback tag.
  35206. Rclone does not manage the :writeback remote in any way other than
  35207. writing files back to it. So if you need to expire old files or manage
  35208. the size then you will have to do this yourself.
  35209. Standard options
  35210. Here are the Standard options specific to union (Union merges the
  35211. contents of several upstream fs).
  35212. --union-upstreams
  35213. List of space separated upstreams.
  35214. Can be 'upstreama:test/dir upstreamb:', '"upstreama:test/space:ro dir"
  35215. upstreamb:', etc.
  35216. Properties:
  35217. - Config: upstreams
  35218. - Env Var: RCLONE_UNION_UPSTREAMS
  35219. - Type: string
  35220. - Required: true
  35221. --union-action-policy
  35222. Policy to choose upstream on ACTION category.
  35223. Properties:
  35224. - Config: action_policy
  35225. - Env Var: RCLONE_UNION_ACTION_POLICY
  35226. - Type: string
  35227. - Default: "epall"
  35228. --union-create-policy
  35229. Policy to choose upstream on CREATE category.
  35230. Properties:
  35231. - Config: create_policy
  35232. - Env Var: RCLONE_UNION_CREATE_POLICY
  35233. - Type: string
  35234. - Default: "epmfs"
  35235. --union-search-policy
  35236. Policy to choose upstream on SEARCH category.
  35237. Properties:
  35238. - Config: search_policy
  35239. - Env Var: RCLONE_UNION_SEARCH_POLICY
  35240. - Type: string
  35241. - Default: "ff"
  35242. --union-cache-time
  35243. Cache time of usage and free space (in seconds).
  35244. This option is only useful when a path preserving policy is used.
  35245. Properties:
  35246. - Config: cache_time
  35247. - Env Var: RCLONE_UNION_CACHE_TIME
  35248. - Type: int
  35249. - Default: 120
  35250. Advanced options
  35251. Here are the Advanced options specific to union (Union merges the
  35252. contents of several upstream fs).
  35253. --union-min-free-space
  35254. Minimum viable free space for lfs/eplfs policies.
  35255. If a remote has less than this much free space then it won't be
  35256. considered for use in lfs or eplfs policies.
  35257. Properties:
  35258. - Config: min_free_space
  35259. - Env Var: RCLONE_UNION_MIN_FREE_SPACE
  35260. - Type: SizeSuffix
  35261. - Default: 1Gi
  35262. --union-description
  35263. Description of the remote
  35264. Properties:
  35265. - Config: description
  35266. - Env Var: RCLONE_UNION_DESCRIPTION
  35267. - Type: string
  35268. - Required: false
  35269. Metadata
  35270. Any metadata supported by the underlying remote is read and written.
  35271. See the metadata docs for more info.
  35272. WebDAV
  35273. Paths are specified as remote:path
  35274. Paths may be as deep as required, e.g. remote:directory/subdirectory.
  35275. Configuration
  35276. To configure the WebDAV remote you will need to have a URL for it, and a
  35277. username and password. If you know what kind of system you are
  35278. connecting to then rclone can enable extra features.
  35279. Here is an example of how to make a remote called remote. First run:
  35280. rclone config
  35281. This will guide you through an interactive setup process:
  35282. No remotes found, make a new one?
  35283. n) New remote
  35284. s) Set configuration password
  35285. q) Quit config
  35286. n/s/q> n
  35287. name> remote
  35288. Type of storage to configure.
  35289. Choose a number from below, or type in your own value
  35290. [snip]
  35291. XX / WebDAV
  35292. \ "webdav"
  35293. [snip]
  35294. Storage> webdav
  35295. URL of http host to connect to
  35296. Choose a number from below, or type in your own value
  35297. 1 / Connect to example.com
  35298. \ "https://example.com"
  35299. url> https://example.com/remote.php/webdav/
  35300. Name of the WebDAV site/service/software you are using
  35301. Choose a number from below, or type in your own value
  35302. 1 / Fastmail Files
  35303. \ (fastmail)
  35304. 2 / Nextcloud
  35305. \ (nextcloud)
  35306. 3 / Owncloud
  35307. \ (owncloud)
  35308. 4 / Sharepoint Online, authenticated by Microsoft account
  35309. \ (sharepoint)
  35310. 5 / Sharepoint with NTLM authentication, usually self-hosted or on-premises
  35311. \ (sharepoint-ntlm)
  35312. 6 / rclone WebDAV server to serve a remote over HTTP via the WebDAV protocol
  35313. \ (rclone)
  35314. 7 / Other site/service or software
  35315. \ (other)
  35316. vendor> 2
  35317. User name
  35318. user> user
  35319. Password.
  35320. y) Yes type in my own password
  35321. g) Generate random password
  35322. n) No leave this optional password blank
  35323. y/g/n> y
  35324. Enter the password:
  35325. password:
  35326. Confirm the password:
  35327. password:
  35328. Bearer token instead of user/pass (e.g. a Macaroon)
  35329. bearer_token>
  35330. Remote config
  35331. --------------------
  35332. [remote]
  35333. type = webdav
  35334. url = https://example.com/remote.php/webdav/
  35335. vendor = nextcloud
  35336. user = user
  35337. pass = *** ENCRYPTED ***
  35338. bearer_token =
  35339. --------------------
  35340. y) Yes this is OK
  35341. e) Edit this remote
  35342. d) Delete this remote
  35343. y/e/d> y
  35344. Once configured you can then use rclone like this,
  35345. List directories in top level of your WebDAV
  35346. rclone lsd remote:
  35347. List all the files in your WebDAV
  35348. rclone ls remote:
  35349. To copy a local directory to an WebDAV directory called backup
  35350. rclone copy /home/source remote:backup
  35351. Modification times and hashes
  35352. Plain WebDAV does not support modified times. However when used with
  35353. Fastmail Files, Owncloud or Nextcloud rclone will support modified
  35354. times.
  35355. Likewise plain WebDAV does not support hashes, however when used with
  35356. Fastmail Files, Owncloud or Nextcloud rclone will support SHA1 and MD5
  35357. hashes. Depending on the exact version of Owncloud or Nextcloud hashes
  35358. may appear on all objects, or only on objects which had a hash uploaded
  35359. with them.
  35360. Standard options
  35361. Here are the Standard options specific to webdav (WebDAV).
  35362. --webdav-url
  35363. URL of http host to connect to.
  35364. E.g. https://example.com.
  35365. Properties:
  35366. - Config: url
  35367. - Env Var: RCLONE_WEBDAV_URL
  35368. - Type: string
  35369. - Required: true
  35370. --webdav-vendor
  35371. Name of the WebDAV site/service/software you are using.
  35372. Properties:
  35373. - Config: vendor
  35374. - Env Var: RCLONE_WEBDAV_VENDOR
  35375. - Type: string
  35376. - Required: false
  35377. - Examples:
  35378. - "fastmail"
  35379. - Fastmail Files
  35380. - "nextcloud"
  35381. - Nextcloud
  35382. - "owncloud"
  35383. - Owncloud
  35384. - "sharepoint"
  35385. - Sharepoint Online, authenticated by Microsoft account
  35386. - "sharepoint-ntlm"
  35387. - Sharepoint with NTLM authentication, usually self-hosted or
  35388. on-premises
  35389. - "rclone"
  35390. - rclone WebDAV server to serve a remote over HTTP via the
  35391. WebDAV protocol
  35392. - "other"
  35393. - Other site/service or software
  35394. --webdav-user
  35395. User name.
  35396. In case NTLM authentication is used, the username should be in the
  35397. format 'Domain'.
  35398. Properties:
  35399. - Config: user
  35400. - Env Var: RCLONE_WEBDAV_USER
  35401. - Type: string
  35402. - Required: false
  35403. --webdav-pass
  35404. Password.
  35405. NB Input to this must be obscured - see rclone obscure.
  35406. Properties:
  35407. - Config: pass
  35408. - Env Var: RCLONE_WEBDAV_PASS
  35409. - Type: string
  35410. - Required: false
  35411. --webdav-bearer-token
  35412. Bearer token instead of user/pass (e.g. a Macaroon).
  35413. Properties:
  35414. - Config: bearer_token
  35415. - Env Var: RCLONE_WEBDAV_BEARER_TOKEN
  35416. - Type: string
  35417. - Required: false
  35418. Advanced options
  35419. Here are the Advanced options specific to webdav (WebDAV).
  35420. --webdav-bearer-token-command
  35421. Command to run to get a bearer token.
  35422. Properties:
  35423. - Config: bearer_token_command
  35424. - Env Var: RCLONE_WEBDAV_BEARER_TOKEN_COMMAND
  35425. - Type: string
  35426. - Required: false
  35427. --webdav-encoding
  35428. The encoding for the backend.
  35429. See the encoding section in the overview for more info.
  35430. Default encoding is
  35431. Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,Hash,Percent,BackSlash,Del,Ctl,LeftSpace,LeftTilde,RightSpace,RightPeriod,InvalidUtf8
  35432. for sharepoint-ntlm or identity otherwise.
  35433. Properties:
  35434. - Config: encoding
  35435. - Env Var: RCLONE_WEBDAV_ENCODING
  35436. - Type: string
  35437. - Required: false
  35438. --webdav-headers
  35439. Set HTTP headers for all transactions.
  35440. Use this to set additional HTTP headers for all transactions
  35441. The input format is comma separated list of key,value pairs. Standard
  35442. CSV encoding may be used.
  35443. For example, to set a Cookie use 'Cookie,name=value', or
  35444. '"Cookie","name=value"'.
  35445. You can set multiple headers, e.g.
  35446. '"Cookie","name=value","Authorization","xxx"'.
  35447. Properties:
  35448. - Config: headers
  35449. - Env Var: RCLONE_WEBDAV_HEADERS
  35450. - Type: CommaSepList
  35451. - Default:
  35452. --webdav-pacer-min-sleep
  35453. Minimum time to sleep between API calls.
  35454. Properties:
  35455. - Config: pacer_min_sleep
  35456. - Env Var: RCLONE_WEBDAV_PACER_MIN_SLEEP
  35457. - Type: Duration
  35458. - Default: 10ms
  35459. --webdav-nextcloud-chunk-size
  35460. Nextcloud upload chunk size.
  35461. We recommend configuring your NextCloud instance to increase the max
  35462. chunk size to 1 GB for better upload performances. See
  35463. https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/big_file_upload_configuration.html#adjust-chunk-size-on-nextcloud-side
  35464. Set to 0 to disable chunked uploading.
  35465. Properties:
  35466. - Config: nextcloud_chunk_size
  35467. - Env Var: RCLONE_WEBDAV_NEXTCLOUD_CHUNK_SIZE
  35468. - Type: SizeSuffix
  35469. - Default: 10Mi
  35470. --webdav-owncloud-exclude-shares
  35471. Exclude ownCloud shares
  35472. Properties:
  35473. - Config: owncloud_exclude_shares
  35474. - Env Var: RCLONE_WEBDAV_OWNCLOUD_EXCLUDE_SHARES
  35475. - Type: bool
  35476. - Default: false
  35477. --webdav-description
  35478. Description of the remote
  35479. Properties:
  35480. - Config: description
  35481. - Env Var: RCLONE_WEBDAV_DESCRIPTION
  35482. - Type: string
  35483. - Required: false
  35484. Provider notes
  35485. See below for notes on specific providers.
  35486. Fastmail Files
  35487. Use https://webdav.fastmail.com/ or a subdirectory as the URL, and your
  35488. Fastmail email username@domain.tld as the username. Follow this
  35489. documentation to create an app password with access to Files (WebDAV)
  35490. and use this as the password.
  35491. Fastmail supports modified times using the X-OC-Mtime header.
  35492. Owncloud
  35493. Click on the settings cog in the bottom right of the page and this will
  35494. show the WebDAV URL that rclone needs in the config step. It will look
  35495. something like https://example.com/remote.php/webdav/.
  35496. Owncloud supports modified times using the X-OC-Mtime header.
  35497. Nextcloud
  35498. This is configured in an identical way to Owncloud. Note that Nextcloud
  35499. initially did not support streaming of files (rcat) whereas Owncloud
  35500. did, but this seems to be fixed as of 2020-11-27 (tested with rclone
  35501. v1.53.1 and Nextcloud Server v19).
  35502. Sharepoint Online
  35503. Rclone can be used with Sharepoint provided by OneDrive for Business or
  35504. Office365 Education Accounts. This feature is only needed for a few of
  35505. these Accounts, mostly Office365 Education ones. These accounts are
  35506. sometimes not verified by the domain owner github#1975
  35507. This means that these accounts can't be added using the official API
  35508. (other Accounts should work with the "onedrive" option). However, it is
  35509. possible to access them using webdav.
  35510. To use a sharepoint remote with rclone, add it like this: First, you
  35511. need to get your remote's URL:
  35512. - Go here to open your OneDrive or to sign in
  35513. - Now take a look at your address bar, the URL should look like this:
  35514. https://[YOUR-DOMAIN]-my.sharepoint.com/personal/[YOUR-EMAIL]/_layouts/15/onedrive.aspx
  35515. You'll only need this URL up to the email address. After that, you'll
  35516. most likely want to add "/Documents". That subdirectory contains the
  35517. actual data stored on your OneDrive.
  35518. Add the remote to rclone like this: Configure the url as
  35519. https://[YOUR-DOMAIN]-my.sharepoint.com/personal/[YOUR-EMAIL]/Documents
  35520. and use your normal account email and password for user and pass. If you
  35521. have 2FA enabled, you have to generate an app password. Set the vendor
  35522. to sharepoint.
  35523. Your config file should look like this:
  35524. [sharepoint]
  35525. type = webdav
  35526. url = https://[YOUR-DOMAIN]-my.sharepoint.com/personal/[YOUR-EMAIL]/Documents
  35527. vendor = sharepoint
  35528. user = YourEmailAddress
  35529. pass = encryptedpassword
  35530. Sharepoint with NTLM Authentication
  35531. Use this option in case your (hosted) Sharepoint is not tied to OneDrive
  35532. accounts and uses NTLM authentication.
  35533. To get the url configuration, similarly to the above, first navigate to
  35534. the desired directory in your browser to get the URL, then strip
  35535. everything after the name of the opened directory.
  35536. Example: If the URL is:
  35537. https://example.sharepoint.com/sites/12345/Documents/Forms/AllItems.aspx
  35538. The configuration to use would be:
  35539. https://example.sharepoint.com/sites/12345/Documents
  35540. Set the vendor to sharepoint-ntlm.
  35541. NTLM uses domain and user name combination for authentication, set user
  35542. to DOMAIN\username.
  35543. Your config file should look like this:
  35544. [sharepoint]
  35545. type = webdav
  35546. url = https://[YOUR-DOMAIN]/some-path-to/Documents
  35547. vendor = sharepoint-ntlm
  35548. user = DOMAIN\user
  35549. pass = encryptedpassword
  35550. Required Flags for SharePoint
  35551. As SharePoint does some special things with uploaded documents, you
  35552. won't be able to use the documents size or the documents hash to compare
  35553. if a file has been changed since the upload / which file is newer.
  35554. For Rclone calls copying files (especially Office files such as .docx,
  35555. .xlsx, etc.) from/to SharePoint (like copy, sync, etc.), you should
  35556. append these flags to ensure Rclone uses the "Last Modified" datetime
  35557. property to compare your documents:
  35558. --ignore-size --ignore-checksum --update
  35559. Rclone
  35560. Use this option if you are hosting remotes over WebDAV provided by
  35561. rclone. Read rclone serve webdav for more details.
  35562. rclone serve supports modified times using the X-OC-Mtime header.
  35563. dCache
  35564. dCache is a storage system that supports many protocols and
  35565. authentication/authorisation schemes. For WebDAV clients, it allows
  35566. users to authenticate with username and password (BASIC), X.509,
  35567. Kerberos, and various bearer tokens, including Macaroons and
  35568. OpenID-Connect access tokens.
  35569. Configure as normal using the other type. Don't enter a username or
  35570. password, instead enter your Macaroon as the bearer_token.
  35571. The config will end up looking something like this.
  35572. [dcache]
  35573. type = webdav
  35574. url = https://dcache...
  35575. vendor = other
  35576. user =
  35577. pass =
  35578. bearer_token = your-macaroon
  35579. There is a script that obtains a Macaroon from a dCache WebDAV endpoint,
  35580. and creates an rclone config file.
  35581. Macaroons may also be obtained from the dCacheView
  35582. web-browser/JavaScript client that comes with dCache.
  35583. OpenID-Connect
  35584. dCache also supports authenticating with OpenID-Connect access tokens.
  35585. OpenID-Connect is a protocol (based on OAuth 2.0) that allows services
  35586. to identify users who have authenticated with some central service.
  35587. Support for OpenID-Connect in rclone is currently achieved using another
  35588. software package called oidc-agent. This is a command-line tool that
  35589. facilitates obtaining an access token. Once installed and configured, an
  35590. access token is obtained by running the oidc-token command. The
  35591. following example shows a (shortened) access token obtained from the XDC
  35592. OIDC Provider.
  35593. paul@celebrimbor:~$ oidc-token XDC
  35594. eyJraWQ[...]QFXDt0
  35595. paul@celebrimbor:~$
  35596. Note Before the oidc-token command will work, the refresh token must be
  35597. loaded into the oidc agent. This is done with the oidc-add command
  35598. (e.g., oidc-add XDC). This is typically done once per login session.
  35599. Full details on this and how to register oidc-agent with your OIDC
  35600. Provider are provided in the oidc-agent documentation.
  35601. The rclone bearer_token_command configuration option is used to fetch
  35602. the access token from oidc-agent.
  35603. Configure as a normal WebDAV endpoint, using the 'other' vendor, leaving
  35604. the username and password empty. When prompted, choose to edit the
  35605. advanced config and enter the command to get a bearer token (e.g.,
  35606. oidc-agent XDC).
  35607. The following example config shows a WebDAV endpoint that uses
  35608. oidc-agent to supply an access token from the XDC OIDC Provider.
  35609. [dcache]
  35610. type = webdav
  35611. url = https://dcache.example.org/
  35612. vendor = other
  35613. bearer_token_command = oidc-token XDC
  35614. Yandex Disk
  35615. Yandex Disk is a cloud storage solution created by Yandex.
  35616. Configuration
  35617. Here is an example of making a yandex configuration. First run
  35618. rclone config
  35619. This will guide you through an interactive setup process:
  35620. No remotes found, make a new one?
  35621. n) New remote
  35622. s) Set configuration password
  35623. n/s> n
  35624. name> remote
  35625. Type of storage to configure.
  35626. Choose a number from below, or type in your own value
  35627. [snip]
  35628. XX / Yandex Disk
  35629. \ "yandex"
  35630. [snip]
  35631. Storage> yandex
  35632. Yandex Client Id - leave blank normally.
  35633. client_id>
  35634. Yandex Client Secret - leave blank normally.
  35635. client_secret>
  35636. Remote config
  35637. Use web browser to automatically authenticate rclone with remote?
  35638. * Say Y if the machine running rclone has a web browser you can use
  35639. * Say N if running rclone on a (remote) machine without web browser access
  35640. If not sure try Y. If Y failed, try N.
  35641. y) Yes
  35642. n) No
  35643. y/n> y
  35644. If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
  35645. Log in and authorize rclone for access
  35646. Waiting for code...
  35647. Got code
  35648. --------------------
  35649. [remote]
  35650. client_id =
  35651. client_secret =
  35652. token = {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"OAuth","expiry":"2016-12-29T12:27:11.362788025Z"}
  35653. --------------------
  35654. y) Yes this is OK
  35655. e) Edit this remote
  35656. d) Delete this remote
  35657. y/e/d> y
  35658. See the remote setup docs for how to set it up on a machine with no
  35659. Internet browser available.
  35660. Note that rclone runs a webserver on your local machine to collect the
  35661. token as returned from Yandex Disk. This only runs from the moment it
  35662. opens your browser to the moment you get back the verification code.
  35663. This is on http://127.0.0.1:53682/ and this it may require you to
  35664. unblock it temporarily if you are running a host firewall.
  35665. Once configured you can then use rclone like this,
  35666. See top level directories
  35667. rclone lsd remote:
  35668. Make a new directory
  35669. rclone mkdir remote:directory
  35670. List the contents of a directory
  35671. rclone ls remote:directory
  35672. Sync /home/local/directory to the remote path, deleting any excess files
  35673. in the path.
  35674. rclone sync --interactive /home/local/directory remote:directory
  35675. Yandex paths may be as deep as required, e.g.
  35676. remote:directory/subdirectory.
  35677. Modification times and hashes
  35678. Modified times are supported and are stored accurate to 1 ns in custom
  35679. metadata called rclone_modified in RFC3339 with nanoseconds format.
  35680. The MD5 hash algorithm is natively supported by Yandex Disk.
  35681. Emptying Trash
  35682. If you wish to empty your trash you can use the rclone cleanup remote:
  35683. command which will permanently delete all your trashed files. This
  35684. command does not take any path arguments.
  35685. Quota information
  35686. To view your current quota you can use the rclone about remote: command
  35687. which will display your usage limit (quota) and the current usage.
  35688. Restricted filename characters
  35689. The default restricted characters set are replaced.
  35690. Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON
  35691. strings.
  35692. Standard options
  35693. Here are the Standard options specific to yandex (Yandex Disk).
  35694. --yandex-client-id
  35695. OAuth Client Id.
  35696. Leave blank normally.
  35697. Properties:
  35698. - Config: client_id
  35699. - Env Var: RCLONE_YANDEX_CLIENT_ID
  35700. - Type: string
  35701. - Required: false
  35702. --yandex-client-secret
  35703. OAuth Client Secret.
  35704. Leave blank normally.
  35705. Properties:
  35706. - Config: client_secret
  35707. - Env Var: RCLONE_YANDEX_CLIENT_SECRET
  35708. - Type: string
  35709. - Required: false
  35710. Advanced options
  35711. Here are the Advanced options specific to yandex (Yandex Disk).
  35712. --yandex-token
  35713. OAuth Access Token as a JSON blob.
  35714. Properties:
  35715. - Config: token
  35716. - Env Var: RCLONE_YANDEX_TOKEN
  35717. - Type: string
  35718. - Required: false
  35719. --yandex-auth-url
  35720. Auth server URL.
  35721. Leave blank to use the provider defaults.
  35722. Properties:
  35723. - Config: auth_url
  35724. - Env Var: RCLONE_YANDEX_AUTH_URL
  35725. - Type: string
  35726. - Required: false
  35727. --yandex-token-url
  35728. Token server url.
  35729. Leave blank to use the provider defaults.
  35730. Properties:
  35731. - Config: token_url
  35732. - Env Var: RCLONE_YANDEX_TOKEN_URL
  35733. - Type: string
  35734. - Required: false
  35735. --yandex-hard-delete
  35736. Delete files permanently rather than putting them into the trash.
  35737. Properties:
  35738. - Config: hard_delete
  35739. - Env Var: RCLONE_YANDEX_HARD_DELETE
  35740. - Type: bool
  35741. - Default: false
  35742. --yandex-encoding
  35743. The encoding for the backend.
  35744. See the encoding section in the overview for more info.
  35745. Properties:
  35746. - Config: encoding
  35747. - Env Var: RCLONE_YANDEX_ENCODING
  35748. - Type: Encoding
  35749. - Default: Slash,Del,Ctl,InvalidUtf8,Dot
  35750. --yandex-description
  35751. Description of the remote
  35752. Properties:
  35753. - Config: description
  35754. - Env Var: RCLONE_YANDEX_DESCRIPTION
  35755. - Type: string
  35756. - Required: false
  35757. Limitations
  35758. When uploading very large files (bigger than about 5 GiB) you will need
  35759. to increase the --timeout parameter. This is because Yandex pauses
  35760. (perhaps to calculate the MD5SUM for the entire file) before returning
  35761. confirmation that the file has been uploaded. The default handling of
  35762. timeouts in rclone is to assume a 5 minute pause is an error and close
  35763. the connection - you'll see net/http: timeout awaiting response headers
  35764. errors in the logs if this is happening. Setting the timeout to twice
  35765. the max size of file in GiB should be enough, so if you want to upload a
  35766. 30 GiB file set a timeout of 2 * 30 = 60m, that is --timeout 60m.
  35767. Having a Yandex Mail account is mandatory to use the Yandex.Disk
  35768. subscription. Token generation will work without a mail account, but
  35769. Rclone won't be able to complete any actions.
  35770. [403 - DiskUnsupportedUserAccountTypeError] User account type is not supported.
  35771. Zoho Workdrive
  35772. Zoho WorkDrive is a cloud storage solution created by Zoho.
  35773. Configuration
  35774. Here is an example of making a zoho configuration. First run
  35775. rclone config
  35776. This will guide you through an interactive setup process:
  35777. No remotes found, make a new one?
  35778. n) New remote
  35779. s) Set configuration password
  35780. n/s> n
  35781. name> remote
  35782. Type of storage to configure.
  35783. Enter a string value. Press Enter for the default ("").
  35784. Choose a number from below, or type in your own value
  35785. [snip]
  35786. XX / Zoho
  35787. \ "zoho"
  35788. [snip]
  35789. Storage> zoho
  35790. ** See help for zoho backend at: https://rclone.org/zoho/ **
  35791. OAuth Client Id
  35792. Leave blank normally.
  35793. Enter a string value. Press Enter for the default ("").
  35794. client_id>
  35795. OAuth Client Secret
  35796. Leave blank normally.
  35797. Enter a string value. Press Enter for the default ("").
  35798. client_secret>
  35799. Edit advanced config? (y/n)
  35800. y) Yes
  35801. n) No (default)
  35802. y/n> n
  35803. Remote config
  35804. Use web browser to automatically authenticate rclone with remote?
  35805. * Say Y if the machine running rclone has a web browser you can use
  35806. * Say N if running rclone on a (remote) machine without web browser access
  35807. If not sure try Y. If Y failed, try N.
  35808. y) Yes (default)
  35809. n) No
  35810. y/n>
  35811. If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=LVn0IHzxej1ZkmQw31d0wQ
  35812. Log in and authorize rclone for access
  35813. Waiting for code...
  35814. Got code
  35815. Choose a number from below, or type in your own value
  35816. 1 / MyTeam
  35817. \ "4u28602177065ff22426787a6745dba8954eb"
  35818. Enter a Team ID> 1
  35819. Choose a number from below, or type in your own value
  35820. 1 / General
  35821. \ "4u2869d2aa6fca04f4f2f896b6539243b85b1"
  35822. Enter a Workspace ID> 1
  35823. --------------------
  35824. [remote]
  35825. type = zoho
  35826. token = {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"Zoho-oauthtoken","refresh_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","expiry":"2020-10-12T00:54:52.370275223+02:00"}
  35827. root_folder_id = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  35828. --------------------
  35829. y) Yes this is OK (default)
  35830. e) Edit this remote
  35831. d) Delete this remote
  35832. y/e/d>
  35833. See the remote setup docs for how to set it up on a machine with no
  35834. Internet browser available.
  35835. Rclone runs a webserver on your local computer to collect the
  35836. authorization token from Zoho Workdrive. This is only from the moment
  35837. your browser is opened until the token is returned. The webserver runs
  35838. on http://127.0.0.1:53682/. If local port 53682 is protected by a
  35839. firewall you may need to temporarily unblock the firewall to complete
  35840. authorization.
  35841. Once configured you can then use rclone like this,
  35842. See top level directories
  35843. rclone lsd remote:
  35844. Make a new directory
  35845. rclone mkdir remote:directory
  35846. List the contents of a directory
  35847. rclone ls remote:directory
  35848. Sync /home/local/directory to the remote path, deleting any excess files
  35849. in the path.
  35850. rclone sync --interactive /home/local/directory remote:directory
  35851. Zoho paths may be as deep as required, eg remote:directory/subdirectory.
  35852. Modification times and hashes
  35853. Modified times are currently not supported for Zoho Workdrive
  35854. No hash algorithms are supported.
  35855. Usage information
  35856. To view your current quota you can use the rclone about remote: command
  35857. which will display your current usage.
  35858. Restricted filename characters
  35859. Only control characters and invalid UTF-8 are replaced. In addition most
  35860. Unicode full-width characters are not supported at all and will be
  35861. removed from filenames during upload.
  35862. Standard options
  35863. Here are the Standard options specific to zoho (Zoho).
  35864. --zoho-client-id
  35865. OAuth Client Id.
  35866. Leave blank normally.
  35867. Properties:
  35868. - Config: client_id
  35869. - Env Var: RCLONE_ZOHO_CLIENT_ID
  35870. - Type: string
  35871. - Required: false
  35872. --zoho-client-secret
  35873. OAuth Client Secret.
  35874. Leave blank normally.
  35875. Properties:
  35876. - Config: client_secret
  35877. - Env Var: RCLONE_ZOHO_CLIENT_SECRET
  35878. - Type: string
  35879. - Required: false
  35880. --zoho-region
  35881. Zoho region to connect to.
  35882. You'll have to use the region your organization is registered in. If not
  35883. sure use the same top level domain as you connect to in your browser.
  35884. Properties:
  35885. - Config: region
  35886. - Env Var: RCLONE_ZOHO_REGION
  35887. - Type: string
  35888. - Required: false
  35889. - Examples:
  35890. - "com"
  35891. - United states / Global
  35892. - "eu"
  35893. - Europe
  35894. - "in"
  35895. - India
  35896. - "jp"
  35897. - Japan
  35898. - "com.cn"
  35899. - China
  35900. - "com.au"
  35901. - Australia
  35902. Advanced options
  35903. Here are the Advanced options specific to zoho (Zoho).
  35904. --zoho-token
  35905. OAuth Access Token as a JSON blob.
  35906. Properties:
  35907. - Config: token
  35908. - Env Var: RCLONE_ZOHO_TOKEN
  35909. - Type: string
  35910. - Required: false
  35911. --zoho-auth-url
  35912. Auth server URL.
  35913. Leave blank to use the provider defaults.
  35914. Properties:
  35915. - Config: auth_url
  35916. - Env Var: RCLONE_ZOHO_AUTH_URL
  35917. - Type: string
  35918. - Required: false
  35919. --zoho-token-url
  35920. Token server url.
  35921. Leave blank to use the provider defaults.
  35922. Properties:
  35923. - Config: token_url
  35924. - Env Var: RCLONE_ZOHO_TOKEN_URL
  35925. - Type: string
  35926. - Required: false
  35927. --zoho-encoding
  35928. The encoding for the backend.
  35929. See the encoding section in the overview for more info.
  35930. Properties:
  35931. - Config: encoding
  35932. - Env Var: RCLONE_ZOHO_ENCODING
  35933. - Type: Encoding
  35934. - Default: Del,Ctl,InvalidUtf8
  35935. --zoho-description
  35936. Description of the remote
  35937. Properties:
  35938. - Config: description
  35939. - Env Var: RCLONE_ZOHO_DESCRIPTION
  35940. - Type: string
  35941. - Required: false
  35942. Setting up your own client_id
  35943. For Zoho we advise you to set up your own client_id. To do so you have
  35944. to complete the following steps.
  35945. 1. Log in to the Zoho API Console
  35946. 2. Create a new client of type "Server-based Application". The name and
  35947. website don't matter, but you must add the redirect URL
  35948. http://localhost:53682/.
  35949. 3. Once the client is created, you can go to the settings tab and
  35950. enable it in other regions.
  35951. The client id and client secret can now be used with rclone.
  35952. Local Filesystem
  35953. Local paths are specified as normal filesystem paths, e.g.
  35954. /path/to/wherever, so
  35955. rclone sync --interactive /home/source /tmp/destination
  35956. Will sync /home/source to /tmp/destination.
  35957. Configuration
  35958. For consistencies sake one can also configure a remote of type local in
  35959. the config file, and access the local filesystem using rclone remote
  35960. paths, e.g. remote:path/to/wherever, but it is probably easier not to.
  35961. Modification times
  35962. Rclone reads and writes the modification times using an accuracy
  35963. determined by the OS. Typically this is 1ns on Linux, 10 ns on Windows
  35964. and 1 Second on OS X.
  35965. Filenames
  35966. Filenames should be encoded in UTF-8 on disk. This is the normal case
  35967. for Windows and OS X.
  35968. There is a bit more uncertainty in the Linux world, but new
  35969. distributions will have UTF-8 encoded files names. If you are using an
  35970. old Linux filesystem with non UTF-8 file names (e.g. latin1) then you
  35971. can use the convmv tool to convert the filesystem to UTF-8. This tool is
  35972. available in most distributions' package managers.
  35973. If an invalid (non-UTF8) filename is read, the invalid characters will
  35974. be replaced with a quoted representation of the invalid bytes. The name
  35975. gro\xdf will be transferred as gro‛DF. rclone will emit a debug message
  35976. in this case (use -v to see), e.g.
  35977. Local file system at .: Replacing invalid UTF-8 characters in "gro\xdf"
  35978. Restricted characters
  35979. With the local backend, restrictions on the characters that are usable
  35980. in file or directory names depend on the operating system. To check what
  35981. rclone will replace by default on your system, run
  35982. rclone help flags local-encoding.
  35983. On non Windows platforms the following characters are replaced when
  35984. handling file names.
  35985. Character Value Replacement
  35986. ----------- ------- -------------
  35987. NUL 0x00 ␀
  35988. / 0x2F /
  35989. When running on Windows the following characters are replaced. This list
  35990. is based on the Windows file naming conventions.
  35991. Character Value Replacement
  35992. ----------- ------- -------------
  35993. NUL 0x00 ␀
  35994. SOH 0x01 ␁
  35995. STX 0x02 ␂
  35996. ETX 0x03 ␃
  35997. EOT 0x04 ␄
  35998. ENQ 0x05 ␅
  35999. ACK 0x06 ␆
  36000. BEL 0x07 ␇
  36001. BS 0x08 ␈
  36002. HT 0x09 ␉
  36003. LF 0x0A ␊
  36004. VT 0x0B ␋
  36005. FF 0x0C ␌
  36006. CR 0x0D ␍
  36007. SO 0x0E ␎
  36008. SI 0x0F ␏
  36009. DLE 0x10 ␐
  36010. DC1 0x11 ␑
  36011. DC2 0x12 ␒
  36012. DC3 0x13 ␓
  36013. DC4 0x14 ␔
  36014. NAK 0x15 ␕
  36015. SYN 0x16 ␖
  36016. ETB 0x17 ␗
  36017. CAN 0x18 ␘
  36018. EM 0x19 ␙
  36019. SUB 0x1A ␚
  36020. ESC 0x1B ␛
  36021. FS 0x1C ␜
  36022. GS 0x1D ␝
  36023. RS 0x1E ␞
  36024. US 0x1F ␟
  36025. / 0x2F /
  36026. " 0x22 "
  36027. * 0x2A *
  36028. : 0x3A :
  36029. < 0x3C <
  36030. > 0x3E >
  36031. ? 0x3F ?
  36032. \ 0x5C \
  36033. | 0x7C |
  36034. File names on Windows can also not end with the following characters.
  36035. These only get replaced if they are the last character in the name:
  36036. Character Value Replacement
  36037. ----------- ------- -------------
  36038. SP 0x20 ␠
  36039. . 0x2E .
  36040. Invalid UTF-8 bytes will also be replaced, as they can't be converted to
  36041. UTF-16.
  36042. Paths on Windows
  36043. On Windows there are many ways of specifying a path to a file system
  36044. resource. Local paths can be absolute, like C:\path\to\wherever, or
  36045. relative, like ..\wherever. Network paths in UNC format, \\server\share,
  36046. are also supported. Path separator can be either \ (as in
  36047. C:\path\to\wherever) or / (as in C:/path/to/wherever). Length of these
  36048. paths are limited to 259 characters for files and 247 characters for
  36049. directories, but there is an alternative extended-length path format
  36050. increasing the limit to (approximately) 32,767 characters. This format
  36051. requires absolute paths and the use of prefix \\?\, e.g.
  36052. \\?\D:\some\very\long\path. For convenience rclone will automatically
  36053. convert regular paths into the corresponding extended-length paths, so
  36054. in most cases you do not have to worry about this (read more below).
  36055. Note that Windows supports using the same prefix \\?\ to specify path to
  36056. volumes identified by their GUID, e.g.
  36057. \\?\Volume{b75e2c83-0000-0000-0000-602f00000000}\some\path. This is not
  36058. supported in rclone, due to an issue in go.
  36059. Long paths
  36060. Rclone handles long paths automatically, by converting all paths to
  36061. extended-length path format, which allows paths up to 32,767 characters.
  36062. This conversion will ensure paths are absolute and prefix them with the
  36063. \\?\. This is why you will see that your paths, for instance .\files is
  36064. shown as path \\?\C:\files in the output, and \\server\share as
  36065. \\?\UNC\server\share.
  36066. However, in rare cases this may cause problems with buggy file system
  36067. drivers like EncFS. To disable UNC conversion globally, add this to your
  36068. .rclone.conf file:
  36069. [local]
  36070. nounc = true
  36071. If you want to selectively disable UNC, you can add it to a separate
  36072. entry like this:
  36073. [nounc]
  36074. type = local
  36075. nounc = true
  36076. And use rclone like this:
  36077. rclone copy c:\src nounc:z:\dst
  36078. This will use UNC paths on c:\src but not on z:\dst. Of course this will
  36079. cause problems if the absolute path length of a file exceeds 259
  36080. characters on z, so only use this option if you have to.
  36081. Symlinks / Junction points
  36082. Normally rclone will ignore symlinks or junction points (which behave
  36083. like symlinks under Windows).
  36084. If you supply --copy-links or -L then rclone will follow the symlink and
  36085. copy the pointed to file or directory. Note that this flag is
  36086. incompatible with --links / -l.
  36087. This flag applies to all commands.
  36088. For example, supposing you have a directory structure like this
  36089. $ tree /tmp/a
  36090. /tmp/a
  36091. ├── b -> ../b
  36092. ├── expected -> ../expected
  36093. ├── one
  36094. └── two
  36095. └── three
  36096. Then you can see the difference with and without the flag like this
  36097. $ rclone ls /tmp/a
  36098. 6 one
  36099. 6 two/three
  36100. and
  36101. $ rclone -L ls /tmp/a
  36102. 4174 expected
  36103. 6 one
  36104. 6 two/three
  36105. 6 b/two
  36106. 6 b/one
  36107. --links, -l
  36108. Normally rclone will ignore symlinks or junction points (which behave
  36109. like symlinks under Windows).
  36110. If you supply this flag then rclone will copy symbolic links from the
  36111. local storage, and store them as text files, with a '.rclonelink' suffix
  36112. in the remote storage.
  36113. The text file will contain the target of the symbolic link (see
  36114. example).
  36115. This flag applies to all commands.
  36116. For example, supposing you have a directory structure like this
  36117. $ tree /tmp/a
  36118. /tmp/a
  36119. ├── file1 -> ./file4
  36120. └── file2 -> /home/user/file3
  36121. Copying the entire directory with '-l'
  36122. $ rclone copyto -l /tmp/a/file1 remote:/tmp/a/
  36123. The remote files are created with a '.rclonelink' suffix
  36124. $ rclone ls remote:/tmp/a
  36125. 5 file1.rclonelink
  36126. 14 file2.rclonelink
  36127. The remote files will contain the target of the symbolic links
  36128. $ rclone cat remote:/tmp/a/file1.rclonelink
  36129. ./file4
  36130. $ rclone cat remote:/tmp/a/file2.rclonelink
  36131. /home/user/file3
  36132. Copying them back with '-l'
  36133. $ rclone copyto -l remote:/tmp/a/ /tmp/b/
  36134. $ tree /tmp/b
  36135. /tmp/b
  36136. ├── file1 -> ./file4
  36137. └── file2 -> /home/user/file3
  36138. However, if copied back without '-l'
  36139. $ rclone copyto remote:/tmp/a/ /tmp/b/
  36140. $ tree /tmp/b
  36141. /tmp/b
  36142. ├── file1.rclonelink
  36143. └── file2.rclonelink
  36144. Note that this flag is incompatible with -copy-links / -L.
  36145. Restricting filesystems with --one-file-system
  36146. Normally rclone will recurse through filesystems as mounted.
  36147. However if you set --one-file-system or -x this tells rclone to stay in
  36148. the filesystem specified by the root and not to recurse into different
  36149. file systems.
  36150. For example if you have a directory hierarchy like this
  36151. root
  36152. ├── disk1 - disk1 mounted on the root
  36153. │   └── file3 - stored on disk1
  36154. ├── disk2 - disk2 mounted on the root
  36155. │   └── file4 - stored on disk12
  36156. ├── file1 - stored on the root disk
  36157. └── file2 - stored on the root disk
  36158. Using rclone --one-file-system copy root remote: will only copy file1
  36159. and file2. Eg
  36160. $ rclone -q --one-file-system ls root
  36161. 0 file1
  36162. 0 file2
  36163. $ rclone -q ls root
  36164. 0 disk1/file3
  36165. 0 disk2/file4
  36166. 0 file1
  36167. 0 file2
  36168. NB Rclone (like most unix tools such as du, rsync and tar) treats a bind
  36169. mount to the same device as being on the same filesystem.
  36170. NB This flag is only available on Unix based systems. On systems where
  36171. it isn't supported (e.g. Windows) it will be ignored.
  36172. Advanced options
  36173. Here are the Advanced options specific to local (Local Disk).
  36174. --local-nounc
  36175. Disable UNC (long path names) conversion on Windows.
  36176. Properties:
  36177. - Config: nounc
  36178. - Env Var: RCLONE_LOCAL_NOUNC
  36179. - Type: bool
  36180. - Default: false
  36181. - Examples:
  36182. - "true"
  36183. - Disables long file names.
  36184. --copy-links / -L
  36185. Follow symlinks and copy the pointed to item.
  36186. Properties:
  36187. - Config: copy_links
  36188. - Env Var: RCLONE_LOCAL_COPY_LINKS
  36189. - Type: bool
  36190. - Default: false
  36191. --links / -l
  36192. Translate symlinks to/from regular files with a '.rclonelink' extension.
  36193. Properties:
  36194. - Config: links
  36195. - Env Var: RCLONE_LOCAL_LINKS
  36196. - Type: bool
  36197. - Default: false
  36198. --skip-links
  36199. Don't warn about skipped symlinks.
  36200. This flag disables warning messages on skipped symlinks or junction
  36201. points, as you explicitly acknowledge that they should be skipped.
  36202. Properties:
  36203. - Config: skip_links
  36204. - Env Var: RCLONE_LOCAL_SKIP_LINKS
  36205. - Type: bool
  36206. - Default: false
  36207. --local-zero-size-links
  36208. Assume the Stat size of links is zero (and read them instead)
  36209. (deprecated).
  36210. Rclone used to use the Stat size of links as the link size, but this
  36211. fails in quite a few places:
  36212. - Windows
  36213. - On some virtual filesystems (such ash LucidLink)
  36214. - Android
  36215. So rclone now always reads the link.
  36216. Properties:
  36217. - Config: zero_size_links
  36218. - Env Var: RCLONE_LOCAL_ZERO_SIZE_LINKS
  36219. - Type: bool
  36220. - Default: false
  36221. --local-unicode-normalization
  36222. Apply unicode NFC normalization to paths and filenames.
  36223. This flag can be used to normalize file names into unicode NFC form that
  36224. are read from the local filesystem.
  36225. Rclone does not normally touch the encoding of file names it reads from
  36226. the file system.
  36227. This can be useful when using macOS as it normally provides decomposed
  36228. (NFD) unicode which in some language (eg Korean) doesn't display
  36229. properly on some OSes.
  36230. Note that rclone compares filenames with unicode normalization in the
  36231. sync routine so this flag shouldn't normally be used.
  36232. Properties:
  36233. - Config: unicode_normalization
  36234. - Env Var: RCLONE_LOCAL_UNICODE_NORMALIZATION
  36235. - Type: bool
  36236. - Default: false
  36237. --local-no-check-updated
  36238. Don't check to see if the files change during upload.
  36239. Normally rclone checks the size and modification time of files as they
  36240. are being uploaded and aborts with a message which starts "can't copy -
  36241. source file is being updated" if the file changes during upload.
  36242. However on some file systems this modification time check may fail (e.g.
  36243. Glusterfs #2206) so this check can be disabled with this flag.
  36244. If this flag is set, rclone will use its best efforts to transfer a file
  36245. which is being updated. If the file is only having things appended to it
  36246. (e.g. a log) then rclone will transfer the log file with the size it had
  36247. the first time rclone saw it.
  36248. If the file is being modified throughout (not just appended to) then the
  36249. transfer may fail with a hash check failure.
  36250. In detail, once the file has had stat() called on it for the first time
  36251. we:
  36252. - Only transfer the size that stat gave
  36253. - Only checksum the size that stat gave
  36254. - Don't update the stat info for the file
  36255. NB do not use this flag on a Windows Volume Shadow (VSS). For some
  36256. unknown reason, files in a VSS sometimes show different sizes from the
  36257. directory listing (where the initial stat value comes from on Windows)
  36258. and when stat is called on them directly. Other copy tools always use
  36259. the direct stat value and setting this flag will disable that.
  36260. Properties:
  36261. - Config: no_check_updated
  36262. - Env Var: RCLONE_LOCAL_NO_CHECK_UPDATED
  36263. - Type: bool
  36264. - Default: false
  36265. --one-file-system / -x
  36266. Don't cross filesystem boundaries (unix/macOS only).
  36267. Properties:
  36268. - Config: one_file_system
  36269. - Env Var: RCLONE_LOCAL_ONE_FILE_SYSTEM
  36270. - Type: bool
  36271. - Default: false
  36272. --local-case-sensitive
  36273. Force the filesystem to report itself as case sensitive.
  36274. Normally the local backend declares itself as case insensitive on
  36275. Windows/macOS and case sensitive for everything else. Use this flag to
  36276. override the default choice.
  36277. Properties:
  36278. - Config: case_sensitive
  36279. - Env Var: RCLONE_LOCAL_CASE_SENSITIVE
  36280. - Type: bool
  36281. - Default: false
  36282. --local-case-insensitive
  36283. Force the filesystem to report itself as case insensitive.
  36284. Normally the local backend declares itself as case insensitive on
  36285. Windows/macOS and case sensitive for everything else. Use this flag to
  36286. override the default choice.
  36287. Properties:
  36288. - Config: case_insensitive
  36289. - Env Var: RCLONE_LOCAL_CASE_INSENSITIVE
  36290. - Type: bool
  36291. - Default: false
  36292. --local-no-preallocate
  36293. Disable preallocation of disk space for transferred files.
  36294. Preallocation of disk space helps prevent filesystem fragmentation.
  36295. However, some virtual filesystem layers (such as Google Drive File
  36296. Stream) may incorrectly set the actual file size equal to the
  36297. preallocated space, causing checksum and file size checks to fail. Use
  36298. this flag to disable preallocation.
  36299. Properties:
  36300. - Config: no_preallocate
  36301. - Env Var: RCLONE_LOCAL_NO_PREALLOCATE
  36302. - Type: bool
  36303. - Default: false
  36304. --local-no-sparse
  36305. Disable sparse files for multi-thread downloads.
  36306. On Windows platforms rclone will make sparse files when doing
  36307. multi-thread downloads. This avoids long pauses on large files where the
  36308. OS zeros the file. However sparse files may be undesirable as they cause
  36309. disk fragmentation and can be slow to work with.
  36310. Properties:
  36311. - Config: no_sparse
  36312. - Env Var: RCLONE_LOCAL_NO_SPARSE
  36313. - Type: bool
  36314. - Default: false
  36315. --local-no-set-modtime
  36316. Disable setting modtime.
  36317. Normally rclone updates modification time of files after they are done
  36318. uploading. This can cause permissions issues on Linux platforms when the
  36319. user rclone is running as does not own the file uploaded, such as when
  36320. copying to a CIFS mount owned by another user. If this option is
  36321. enabled, rclone will no longer update the modtime after copying a file.
  36322. Properties:
  36323. - Config: no_set_modtime
  36324. - Env Var: RCLONE_LOCAL_NO_SET_MODTIME
  36325. - Type: bool
  36326. - Default: false
  36327. --local-encoding
  36328. The encoding for the backend.
  36329. See the encoding section in the overview for more info.
  36330. Properties:
  36331. - Config: encoding
  36332. - Env Var: RCLONE_LOCAL_ENCODING
  36333. - Type: Encoding
  36334. - Default: Slash,Dot
  36335. --local-description
  36336. Description of the remote
  36337. Properties:
  36338. - Config: description
  36339. - Env Var: RCLONE_LOCAL_DESCRIPTION
  36340. - Type: string
  36341. - Required: false
  36342. Metadata
  36343. Depending on which OS is in use the local backend may return only some
  36344. of the system metadata. Setting system metadata is supported on all OSes
  36345. but setting user metadata is only supported on linux, freebsd, netbsd,
  36346. macOS and Solaris. It is not supported on Windows yet (see
  36347. pkg/attrs#47).
  36348. User metadata is stored as extended attributes (which may not be
  36349. supported by all file systems) under the "user.*" prefix.
  36350. Metadata is supported on files and directories.
  36351. Here are the possible system metadata items for the local backend.
  36352. ---------------------------------------------------------------------------------------------------
  36353. Name Help Type Example Read Only
  36354. ----------- -------------- ------------- ------------------------------------- --------------------
  36355. atime Time of last RFC 3339 2006-01-02T15:04:05.999999999Z07:00 N
  36356. access
  36357. btime Time of file RFC 3339 2006-01-02T15:04:05.999999999Z07:00 N
  36358. birth
  36359. (creation)
  36360. gid Group ID of decimal 500 N
  36361. owner number
  36362. mode File type and octal, unix 0100664 N
  36363. mode style
  36364. mtime Time of last RFC 3339 2006-01-02T15:04:05.999999999Z07:00 N
  36365. modification
  36366. rdev Device ID (if hexadecimal 1abc N
  36367. special file)
  36368. uid User ID of decimal 500 N
  36369. owner number
  36370. ---------------------------------------------------------------------------------------------------
  36371. See the metadata docs for more info.
  36372. Backend commands
  36373. Here are the commands specific to the local backend.
  36374. Run them with
  36375. rclone backend COMMAND remote:
  36376. The help below will explain what arguments each command takes.
  36377. See the backend command for more info on how to pass options and
  36378. arguments.
  36379. These can be run on a running backend using the rc command
  36380. backend/command.
  36381. noop
  36382. A null operation for testing backend commands
  36383. rclone backend noop remote: [options] [<arguments>+]
  36384. This is a test command which has some options you can try to change the
  36385. output.
  36386. Options:
  36387. - "echo": echo the input arguments
  36388. - "error": return an error based on option value
  36389. Changelog
  36390. v1.66.0 - 2024-03-10
  36391. See commits
  36392. - Major features
  36393. - Rclone will now sync directory modification times if the backend
  36394. supports it.
  36395. - This can be disabled with --no-update-dir-modtime
  36396. - See the overview and look for the D flags in the ModTime
  36397. column to see which backends support it.
  36398. - Rclone will now sync directory metadata if the backend supports
  36399. it when -M/--metadata is in use.
  36400. - See the overview and look for the D flags in the Metadata
  36401. column to see which backends support it.
  36402. - Bisync has received many updates see below for more details or
  36403. bisync's changelog
  36404. - Removed backends
  36405. - amazonclouddrive: Remove Amazon Drive backend code and docs
  36406. (Nick Craig-Wood)
  36407. - New Features
  36408. - backend
  36409. - Add description field for all backends (Paul Stern)
  36410. - build
  36411. - Update to go1.22 and make go1.20 the minimum required
  36412. version (Nick Craig-Wood)
  36413. - Fix CVE-2024-24786 by upgrading google.golang.org/protobuf
  36414. (Nick Craig-Wood)
  36415. - check: Respect --no-unicode-normalization and --ignore-case-sync
  36416. for --checkfile (nielash)
  36417. - cmd: Much improved shell auto completion which reduces the size
  36418. of the completion file and works faster (Nick Craig-Wood)
  36419. - doc updates (albertony, ben-ba, Eli, emyarod, huajin tong, Jack
  36420. Provance, kapitainsky, keongalvin, Nick Craig-Wood, nielash,
  36421. rarspace01, rzitzer, Tera, Vincent Murphy)
  36422. - fs: Add more detailed logging for file includes/excludes (Kyle
  36423. Reynolds)
  36424. - lsf
  36425. - Add --time-format flag (nielash)
  36426. - Make metadata appear for directories (Nick Craig-Wood)
  36427. - lsjson: Make metadata appear for directories (Nick Craig-Wood)
  36428. - rc
  36429. - Add srcFs and dstFs to core/stats and core/transferred stats
  36430. (Nick Craig-Wood)
  36431. - Add operations/hashsum to the rc as rclone hashsum
  36432. equivalent (Nick Craig-Wood)
  36433. - Add config/paths to the rc as rclone config paths equivalent
  36434. (Nick Craig-Wood)
  36435. - sync
  36436. - Optionally report list of synced paths to file (nielash)
  36437. - Implement directory sync for mod times and metadata (Nick
  36438. Craig-Wood)
  36439. - Don't set directory modtimes if already set (nielash)
  36440. - Don't sync directory modtimes from backends which don't have
  36441. directories (Nick Craig-Wood)
  36442. - Bug Fixes
  36443. - backend
  36444. - Make backends which use oauth implement the Shutdown and
  36445. shutdown the oauth properly (rkonfj)
  36446. - bisync
  36447. - Handle unicode and case normalization consistently (nielash)
  36448. - Partial uploads known issue on local/ftp/sftp has been
  36449. resolved (unless using --inplace) (nielash)
  36450. - Fixed handling of unicode normalization and case
  36451. insensitivity, support for --fix-case, --ignore-case-sync,
  36452. --no-unicode-normalization (nielash)
  36453. - Bisync no longer fails to find the correct listing file when
  36454. configs are overridden with backend-specific flags.
  36455. (nielash)
  36456. - nfsmount
  36457. - Fix exit after external unmount (nielash)
  36458. - Fix --volname being ignored (nielash)
  36459. - operations
  36460. - Fix renaming a file on macOS (nielash)
  36461. - Fix case-insensitive moves in operations.Move (nielash)
  36462. - Fix TestCaseInsensitiveMoveFileDryRun on chunker integration
  36463. tests (nielash)
  36464. - Fix TestMkdirModTime test (Nick Craig-Wood)
  36465. - Fix TestSetDirModTime for backends with SetDirModTime but
  36466. not Metadata (Nick Craig-Wood)
  36467. - Fix typo in log messages (nielash)
  36468. - serve nfs: Fix writing files via Finder on macOS (nielash)
  36469. - serve restic: Fix error handling (Michael Eischer)
  36470. - serve webdav: Fix --baseurl without leading / (Nick Craig-Wood)
  36471. - stats: Fix race between ResetCounters and stopAverageLoop called
  36472. from time.AfterFunc (Nick Craig-Wood)
  36473. - sync
  36474. - --fix-case flag to rename case insensitive dest (nielash)
  36475. - Use operations.DirMove instead of sync.MoveDir for
  36476. --fix-case (nielash)
  36477. - systemd: Fix detection and switch to the coreos package
  36478. everywhere rather than having 2 separate libraries (Anagh Kumar
  36479. Baranwal)
  36480. - Mount
  36481. - Fix macOS not noticing errors with --daemon (Nick Craig-Wood)
  36482. - Notice daemon dying much quicker (Nick Craig-Wood)
  36483. - VFS
  36484. - Fix unicode normalization on macOS (nielash)
  36485. - Bisync
  36486. - Copies and deletes are now handled in one operation instead of
  36487. two (nielash)
  36488. - --track-renames and --backup-dir are now supported (nielash)
  36489. - Final listings are now generated from sync results, to avoid
  36490. needing to re-list (nielash)
  36491. - Bisync is now much more resilient to changes that happen during
  36492. a bisync run, and far less prone to critical errors / undetected
  36493. changes (nielash)
  36494. - Bisync is now capable of rolling a file listing back in cases of
  36495. uncertainty, essentially marking the file as needing to be
  36496. rechecked next time. (nielash)
  36497. - A few basic terminal colors are now supported, controllable with
  36498. --color (AUTO|NEVER|ALWAYS) (nielash)
  36499. - Initial listing snapshots of Path1 and Path2 are now generated
  36500. concurrently, using the same "march" infrastructure as check and
  36501. sync, for performance improvements and less risk of error.
  36502. (nielash)
  36503. - --resync is now much more efficient (especially for users of
  36504. --create-empty-src-dirs) (nielash)
  36505. - Google Docs (and other files of unknown size) are now supported
  36506. (with the same options as in sync) (nielash)
  36507. - Equality checks before a sync conflict rename now fall back to
  36508. cryptcheck (when possible) or --download, (nielash) instead of
  36509. of --size-only, when check is not available.
  36510. - Bisync now fully supports comparing based on any combination of
  36511. size, modtime, and checksum, lifting the prior restriction on
  36512. backends without modtime support. (nielash)
  36513. - Bisync now supports a "Graceful Shutdown" mode to cleanly cancel
  36514. a run early without requiring --resync. (nielash)
  36515. - New --recover flag allows robust recovery in the event of
  36516. interruptions, without requiring --resync. (nielash)
  36517. - A new --max-lock setting allows lock files to automatically
  36518. renew and expire, for better automatic recovery when a run is
  36519. interrupted. (nielash)
  36520. - Bisync now supports auto-resolving sync conflicts and
  36521. customizing rename behavior with new --conflict-resolve,
  36522. --conflict-loser, and --conflict-suffix flags. (nielash)
  36523. - A new --resync-mode flag allows more control over which version
  36524. of a file gets kept during a --resync. (nielash)
  36525. - Bisync now supports --retries and --retries-sleep (when
  36526. --resilient is set.) (nielash)
  36527. - Clarify file operation directions in dry-run logs (Kyle
  36528. Reynolds)
  36529. - Local
  36530. - Fix cleanRootPath on Windows after go1.21.4 stdlib update
  36531. (nielash)
  36532. - Implement setting modification time on directories (nielash)
  36533. - Implement modtime and metadata for directories (Nick Craig-Wood)
  36534. - Fix setting of btime on directories on Windows (Nick Craig-Wood)
  36535. - Delete backend implementation of Purge to speed up and make
  36536. stats (Nick Craig-Wood)
  36537. - Support metadata setting and mapping on server side Move (Nick
  36538. Craig-Wood)
  36539. - Cache
  36540. - Implement setting modification time on directories (if supported
  36541. by wrapped remote) (nielash)
  36542. - Implement setting metadata on directories (Nick Craig-Wood)
  36543. - Crypt
  36544. - Implement setting modification time on directories (if supported
  36545. by wrapped remote) (nielash)
  36546. - Implement setting metadata on directories (Nick Craig-Wood)
  36547. - Improve handling of undecryptable file names (nielash)
  36548. - Add missing error check spotted by linter (Nick Craig-Wood)
  36549. - Azure Blob
  36550. - Implement --azureblob-delete-snapshots (Nick Craig-Wood)
  36551. - B2
  36552. - Clarify exactly what --b2-download-auth-duration does in the
  36553. docs (Nick Craig-Wood)
  36554. - Chunker
  36555. - Implement setting modification time on directories (if supported
  36556. by wrapped remote) (nielash)
  36557. - Implement setting metadata on directories (Nick Craig-Wood)
  36558. - Combine
  36559. - Implement setting modification time on directories (if supported
  36560. by wrapped remote) (nielash)
  36561. - Implement setting metadata on directories (Nick Craig-Wood)
  36562. - Fix directory metadata error on upstream root (nielash)
  36563. - Fix directory move across upstreams (nielash)
  36564. - Compress
  36565. - Implement setting modification time on directories (if supported
  36566. by wrapped remote) (nielash)
  36567. - Implement setting metadata on directories (Nick Craig-Wood)
  36568. - Drive
  36569. - Implement setting modification time on directories (nielash)
  36570. - Implement modtime and metadata setting for directories (Nick
  36571. Craig-Wood)
  36572. - Support metadata setting and mapping on server side Move,Copy
  36573. (Nick Craig-Wood)
  36574. - FTP
  36575. - Fix mkdir with rsftp which is returning the wrong code (Nick
  36576. Craig-Wood)
  36577. - Hasher
  36578. - Implement setting modification time on directories (if supported
  36579. by wrapped remote) (nielash)
  36580. - Implement setting metadata on directories (Nick Craig-Wood)
  36581. - Fix error from trying to stop an already-stopped db (nielash)
  36582. - Look for cached hash if passed hash unexpectedly blank (nielash)
  36583. - Imagekit
  36584. - Updated docs and web content (Harshit Budhraja)
  36585. - Updated overview - supported operations (Harshit Budhraja)
  36586. - Mega
  36587. - Fix panic with go1.22 (Nick Craig-Wood)
  36588. - Netstorage
  36589. - Fix Root to return correct directory when pointing to a file
  36590. (Nick Craig-Wood)
  36591. - Onedrive
  36592. - Add metadata support (nielash)
  36593. - Opendrive
  36594. - Fix moving file/folder within the same parent dir (nielash)
  36595. - Oracle Object Storage
  36596. - Support backend restore command (Nikhil Ahuja)
  36597. - Support workload identity authentication for OKE (Anders
  36598. Swanson)
  36599. - Protondrive
  36600. - Fix encoding of Root method (Nick Craig-Wood)
  36601. - Quatrix
  36602. - Fix Content-Range header (Volodymyr)
  36603. - Add option to skip project folders (Oksana Zhykina)
  36604. - Fix Root to return correct directory when pointing to a file
  36605. (Nick Craig-Wood)
  36606. - S3
  36607. - Add --s3-version-deleted to show delete markers in listings when
  36608. using versions. (Nick Craig-Wood)
  36609. - Add IPv6 support with option --s3-use-dual-stack (Anthony
  36610. Metzidis)
  36611. - Copy parts in parallel when doing chunked server side copy (Nick
  36612. Craig-Wood)
  36613. - GCS provider: fix server side copy of files bigger than 5G (Nick
  36614. Craig-Wood)
  36615. - Support metadata setting and mapping on server side Copy (Nick
  36616. Craig-Wood)
  36617. - Seafile
  36618. - Fix download/upload error when FILE_SERVER_ROOT is relative
  36619. (DanielEgbers)
  36620. - Fix Root to return correct directory when pointing to a file
  36621. (Nick Craig-Wood)
  36622. - SFTP
  36623. - Implement setting modification time on directories (nielash)
  36624. - Set directory modtimes update on write flag (Nick Craig-Wood)
  36625. - Shorten wait delay for external ssh binaries now that we are
  36626. using go1.20 (Nick Craig-Wood)
  36627. - Swift
  36628. - Avoid unnecessary container versioning check (Joe Cai)
  36629. - Union
  36630. - Implement setting modification time on directories (if supported
  36631. by wrapped remote) (nielash)
  36632. - Implement setting metadata on directories (Nick Craig-Wood)
  36633. - WebDAV
  36634. - Reduce priority of chunks upload log (Gabriel Ramos)
  36635. - owncloud: Add config owncloud_exclude_shares which allows to
  36636. exclude shared files and folders when listing remote resources
  36637. (Thomas Müller)
  36638. v1.65.2 - 2024-01-24
  36639. See commits
  36640. - Bug Fixes
  36641. - build: bump github.com/cloudflare/circl from 1.3.6 to 1.3.7
  36642. (dependabot)
  36643. - docs updates (Nick Craig-Wood, kapitainsky, nielash, Tera,
  36644. Harshit Budhraja)
  36645. - VFS
  36646. - Fix stale data when using --vfs-cache-mode full (Nick
  36647. Craig-Wood)
  36648. - Azure Blob
  36649. - IMPORTANT Fix data corruption bug - see #7590 (Nick Craig-Wood)
  36650. v1.65.1 - 2024-01-08
  36651. See commits
  36652. - Bug Fixes
  36653. - build
  36654. - Bump golang.org/x/crypto to fix ssh terrapin CVE-2023-48795
  36655. (dependabot)
  36656. - Update to go1.21.5 to fix Windows path problems (Nick
  36657. Craig-Wood)
  36658. - Fix docker build on arm/v6 (Nick Craig-Wood)
  36659. - install.sh: fix harmless error message on install (Nick
  36660. Craig-Wood)
  36661. - accounting: fix stats to show server side transfers (Nick
  36662. Craig-Wood)
  36663. - doc fixes (albertony, ben-ba, Eli Orzitzer, emyarod, keongalvin,
  36664. rarspace01)
  36665. - nfsmount: Compile for all unix oses, add --sudo and fix
  36666. error/option handling (Nick Craig-Wood)
  36667. - operations: Fix files moved by rclone move not being counted as
  36668. transfers (Nick Craig-Wood)
  36669. - oauthutil: Avoid panic when *token and *ts.token are the same
  36670. (rkonfj)
  36671. - serve s3: Fix listing oddities (Nick Craig-Wood)
  36672. - VFS
  36673. - Note that --vfs-refresh runs in the background (Nick Craig-Wood)
  36674. - Azurefiles
  36675. - Fix storage base url (Oksana)
  36676. - Crypt
  36677. - Fix rclone move a file over itself deleting the file (Nick
  36678. Craig-Wood)
  36679. - Chunker
  36680. - Fix rclone move a file over itself deleting the file (Nick
  36681. Craig-Wood)
  36682. - Compress
  36683. - Fix rclone move a file over itself deleting the file (Nick
  36684. Craig-Wood)
  36685. - Dropbox
  36686. - Fix used space on dropbox team accounts (Nick Craig-Wood)
  36687. - FTP
  36688. - Fix multi-thread copy (WeidiDeng)
  36689. - Googlephotos
  36690. - Fix nil pointer exception when batch failed (Nick Craig-Wood)
  36691. - Hasher
  36692. - Fix rclone move a file over itself deleting the file (Nick
  36693. Craig-Wood)
  36694. - Fix invalid memory address error when MaxAge == 0 (nielash)
  36695. - Onedrive
  36696. - Fix error listing: unknown object type <nil> (Nick Craig-Wood)
  36697. - Fix "unauthenticated: Unauthenticated" errors when uploading
  36698. (Nick Craig-Wood)
  36699. - Oracleobjectstorage
  36700. - Fix object storage endpoint for custom endpoints (Manoj Ghosh)
  36701. - Multipart copy create bucket if it doesn't exist. (Manoj Ghosh)
  36702. - Protondrive
  36703. - Fix CVE-2023-45286 / GHSA-xwh9-gc39-5298 (Nick Craig-Wood)
  36704. - S3
  36705. - Fix crash if no UploadId in multipart upload (Nick Craig-Wood)
  36706. - Smb
  36707. - Fix shares not listed by updating go-smb2 (halms)
  36708. - Union
  36709. - Fix rclone move a file over itself deleting the file (Nick
  36710. Craig-Wood)
  36711. v1.65.0 - 2023-11-26
  36712. See commits
  36713. - New backends
  36714. - Azure Files (karan, moongdal, Nick Craig-Wood)
  36715. - ImageKit (Abhinav Dhiman)
  36716. - Linkbox (viktor, Nick Craig-Wood)
  36717. - New commands
  36718. - serve s3: Let rclone act as an S3 compatible server (Mikubill,
  36719. Artur Neumann, Saw-jan, Nick Craig-Wood)
  36720. - nfsmount: mount command to provide mount mechanism on macOS
  36721. without FUSE (Saleh Dindar)
  36722. - serve nfs: to serve a remote for use by nfsmount (Saleh Dindar)
  36723. - New Features
  36724. - install.sh: Clean up temp files in install script (Jacob Hands)
  36725. - build
  36726. - Update all dependencies (Nick Craig-Wood)
  36727. - Refactor version info and icon resource handling on windows
  36728. (albertony)
  36729. - doc updates (albertony, alfish2000, asdffdsazqqq, Dimitri
  36730. Papadopoulos, Herby Gillot, Joda Stößer, Manoj Ghosh, Nick
  36731. Craig-Wood)
  36732. - Implement --metadata-mapper to transform metatadata with a user
  36733. supplied program (Nick Craig-Wood)
  36734. - Add ChunkWriterDoesntSeek feature flag and set it for b2 (Nick
  36735. Craig-Wood)
  36736. - lib/http: Export basic go string functions for use in --template
  36737. (Gabriel Espinoza)
  36738. - makefile: Use POSIX compatible install arguments (Mina Galić)
  36739. - operations
  36740. - Use less memory when doing multithread uploads (Nick
  36741. Craig-Wood)
  36742. - Implement --partial-suffix to control extension of temporary
  36743. file names (Volodymyr)
  36744. - rc
  36745. - Add operations/check to the rc API (Nick Craig-Wood)
  36746. - Always report an error as JSON (Nick Craig-Wood)
  36747. - Set Last-Modified header for files served by --rc-serve
  36748. (Nikita Shoshin)
  36749. - size: Dont show duplicate object count when less than 1k
  36750. (albertony)
  36751. - Bug Fixes
  36752. - fshttp: Fix --contimeout being ignored (你知道未来吗)
  36753. - march: Fix excessive parallelism when using --no-traverse (Nick
  36754. Craig-Wood)
  36755. - ncdu: Fix crash when re-entering changed directory after rescan
  36756. (Nick Craig-Wood)
  36757. - operations
  36758. - Fix overwrite of destination when multi-thread transfer
  36759. fails (Nick Craig-Wood)
  36760. - Fix invalid UTF-8 when truncating file names when not using
  36761. --inplace (Nick Craig-Wood)
  36762. - serve dnla: Fix crash on graceful exit (wuxingzhong)
  36763. - Mount
  36764. - Disable mount for freebsd and alias cmount as mount on that
  36765. platform (Nick Craig-Wood)
  36766. - VFS
  36767. - Add --vfs-refresh flag to read all the directories on start
  36768. (Beyond Meat)
  36769. - Implement Name() method in WriteFileHandle and ReadFileHandle
  36770. (Saleh Dindar)
  36771. - Add go-billy dependency and make sure vfs.Handle implements
  36772. billy.File (Saleh Dindar)
  36773. - Error out early if can't upload 0 length file (Nick Craig-Wood)
  36774. - Local
  36775. - Fix copying from Windows Volume Shadows (Nick Craig-Wood)
  36776. - Azure Blob
  36777. - Add support for cold tier (Ivan Yanitra)
  36778. - B2
  36779. - Implement "rclone backend lifecycle" to read and set bucket
  36780. lifecycles (Nick Craig-Wood)
  36781. - Implement --b2-lifecycle to control lifecycle when creating
  36782. buckets (Nick Craig-Wood)
  36783. - Fix listing all buckets when not needed (Nick Craig-Wood)
  36784. - Fix multi-thread upload with copyto going to wrong name (Nick
  36785. Craig-Wood)
  36786. - Fix server side chunked copy when file size was exactly
  36787. --b2-copy-cutoff (Nick Craig-Wood)
  36788. - Fix streaming chunked files an exact multiple of chunk size
  36789. (Nick Craig-Wood)
  36790. - Box
  36791. - Filter more EventIDs when polling (David Sze)
  36792. - Add more logging for polling (David Sze)
  36793. - Fix performance problem reading metadata for single files (Nick
  36794. Craig-Wood)
  36795. - Drive
  36796. - Add read/write metadata support (Nick Craig-Wood)
  36797. - Add support for SHA-1 and SHA-256 checksums (rinsuki)
  36798. - Add --drive-show-all-gdocs to allow unexportable gdocs to be
  36799. server side copied (Nick Craig-Wood)
  36800. - Add a note that --drive-scope accepts comma-separated list of
  36801. scopes (Keigo Imai)
  36802. - Fix error updating created time metadata on existing object
  36803. (Nick Craig-Wood)
  36804. - Fix integration tests by enabling metadata support from the
  36805. context (Nick Craig-Wood)
  36806. - Dropbox
  36807. - Factor batcher into lib/batcher (Nick Craig-Wood)
  36808. - Fix missing encoding for rclone purge (Nick Craig-Wood)
  36809. - Google Cloud Storage
  36810. - Fix 400 Bad request errors when using multi-thread copy (Nick
  36811. Craig-Wood)
  36812. - Googlephotos
  36813. - Implement batcher for uploads (Nick Craig-Wood)
  36814. - Hdfs
  36815. - Added support for list of namenodes in hdfs remote config
  36816. (Tayo-pasedaRJ)
  36817. - HTTP
  36818. - Implement set backend command to update running backend (Nick
  36819. Craig-Wood)
  36820. - Enable methods used with WebDAV (Alen Šiljak)
  36821. - Jottacloud
  36822. - Add support for reading and writing metadata (albertony)
  36823. - Onedrive
  36824. - Implement ListR method which gives --fast-list support (Nick
  36825. Craig-Wood)
  36826. - This must be enabled with the --onedrive-delta flag
  36827. - Quatrix
  36828. - Add partial upload support (Oksana Zhykina)
  36829. - Overwrite files on conflict during server-side move (Oksana
  36830. Zhykina)
  36831. - S3
  36832. - Add Linode provider (Nick Craig-Wood)
  36833. - Add docs on how to add a new provider (Nick Craig-Wood)
  36834. - Fix no error being returned when creating a bucket we don't own
  36835. (Nick Craig-Wood)
  36836. - Emit a debug message if anonymous credentials are in use (Nick
  36837. Craig-Wood)
  36838. - Add --s3-disable-multipart-uploads flag (Nick Craig-Wood)
  36839. - Detect looping when using gcs and versions (Nick Craig-Wood)
  36840. - SFTP
  36841. - Implement --sftp-copy-is-hardlink to server side copy as
  36842. hardlink (Nick Craig-Wood)
  36843. - Smb
  36844. - Fix incorrect about size by switching to
  36845. github.com/cloudsoda/go-smb2 fork (Nick Craig-Wood)
  36846. - Fix modtime of multithread uploads by setting PartialUploads
  36847. (Nick Craig-Wood)
  36848. - WebDAV
  36849. - Added an rclone vendor to work with rclone serve webdav (Adithya
  36850. Kumar)
  36851. v1.64.2 - 2023-10-19
  36852. See commits
  36853. - Bug Fixes
  36854. - selfupdate: Fix "invalid hashsum signature" error (Nick
  36855. Craig-Wood)
  36856. - build: Fix docker build running out of space (Nick Craig-Wood)
  36857. v1.64.1 - 2023-10-17
  36858. See commits
  36859. - Bug Fixes
  36860. - cmd: Make --progress output logs in the same format as without
  36861. (Nick Craig-Wood)
  36862. - docs fixes (Dimitri Papadopoulos Orfanos, Herby Gillot, Manoj
  36863. Ghosh, Nick Craig-Wood)
  36864. - lsjson: Make sure we set the global metadata flag too (Nick
  36865. Craig-Wood)
  36866. - operations
  36867. - Ensure concurrency is no greater than the number of chunks
  36868. (Pat Patterson)
  36869. - Fix OpenOptions ignored in copy if operation was a
  36870. multiThreadCopy (Vitor Gomes)
  36871. - Fix error message on delete to have file name (Nick
  36872. Craig-Wood)
  36873. - serve sftp: Return not supported error for not supported
  36874. commands (Nick Craig-Wood)
  36875. - build: Upgrade golang.org/x/net to v0.17.0 to fix HTTP/2 rapid
  36876. reset (Nick Craig-Wood)
  36877. - pacer: Fix b2 deadlock by defaulting max connections to
  36878. unlimited (Nick Craig-Wood)
  36879. - Mount
  36880. - Fix automount not detecting drive is ready (Nick Craig-Wood)
  36881. - VFS
  36882. - Fix update dir modification time (Saleh Dindar)
  36883. - Azure Blob
  36884. - Fix "fatal error: concurrent map writes" (Nick Craig-Wood)
  36885. - B2
  36886. - Fix multipart upload: corrupted on transfer: sizes differ XXX vs
  36887. 0 (Nick Craig-Wood)
  36888. - Fix locking window when getting mutipart upload URL (Nick
  36889. Craig-Wood)
  36890. - Fix server side copies greater than 4GB (Nick Craig-Wood)
  36891. - Fix chunked streaming uploads (Nick Craig-Wood)
  36892. - Reduce default --b2-upload-concurrency to 4 to reduce memory
  36893. usage (Nick Craig-Wood)
  36894. - Onedrive
  36895. - Fix the configurator to allow /teams/ID in the config (Nick
  36896. Craig-Wood)
  36897. - Oracleobjectstorage
  36898. - Fix OpenOptions being ignored in uploadMultipart with
  36899. chunkWriter (Nick Craig-Wood)
  36900. - S3
  36901. - Fix slice bounds out of range error when listing (Nick
  36902. Craig-Wood)
  36903. - Fix OpenOptions being ignored in uploadMultipart with
  36904. chunkWriter (Vitor Gomes)
  36905. - Storj
  36906. - Update storj.io/uplink to v1.12.0 (Kaloyan Raev)
  36907. v1.64.0 - 2023-09-11
  36908. See commits
  36909. - New backends
  36910. - Proton Drive (Chun-Hung Tseng)
  36911. - Quatrix (Oksana, Volodymyr Kit)
  36912. - New S3 providers
  36913. - Synology C2 (BakaWang)
  36914. - Leviia (Benjamin)
  36915. - New Jottacloud providers
  36916. - Onlime (Fjodor42)
  36917. - Telia Sky (NoLooseEnds)
  36918. - Major changes
  36919. - Multi-thread transfers (Vitor Gomes, Nick Craig-Wood, Manoj
  36920. Ghosh, Edwin Mackenzie-Owen)
  36921. - Multi-thread transfers are now available when transferring
  36922. to:
  36923. - local, s3, azureblob, b2, oracleobjectstorage and smb
  36924. - This greatly improves transfer speed between two network
  36925. sources.
  36926. - In memory buffering has been unified between all backends
  36927. and should share memory better.
  36928. - See --multi-thread docs for more info
  36929. - New commands
  36930. - rclone config redacted support mechanism for showing redacted
  36931. config (Nick Craig-Wood)
  36932. - New Features
  36933. - accounting
  36934. - Show server side stats in own lines and not as bytes
  36935. transferred (Nick Craig-Wood)
  36936. - bisync
  36937. - Add new --ignore-listing-checksum flag to distinguish from
  36938. --ignore-checksum (nielash)
  36939. - Add experimental --resilient mode to allow recovery from
  36940. self-correctable errors (nielash)
  36941. - Add support for --create-empty-src-dirs (nielash)
  36942. - Dry runs no longer commit filter changes (nielash)
  36943. - Enforce --check-access during --resync (nielash)
  36944. - Apply filters correctly during deletes (nielash)
  36945. - Equality check before renaming (leave identical files alone)
  36946. (nielash)
  36947. - Fix dryRun rc parameter being ignored (nielash)
  36948. - build
  36949. - Update to go1.21 and make go1.19 the minimum required
  36950. version (Anagh Kumar Baranwal, Nick Craig-Wood)
  36951. - Update dependencies (Nick Craig-Wood)
  36952. - Add snap installation (hideo aoyama)
  36953. - Change Winget Releaser job to ubuntu-latest (sitiom)
  36954. - cmd: Refactor and use sysdnotify in more commands (eNV25)
  36955. - config: Add --multi-thread-chunk-size flag (Vitor Gomes)
  36956. - doc updates (antoinetran, Benjamin, Bjørn Smith, Dean Attali,
  36957. gabriel-suela, James Braza, Justin Hellings, kapitainsky, Mahad,
  36958. Masamune3210, Nick Craig-Wood, Nihaal Sangha, Niklas Hambüchen,
  36959. Raymond Berger, r-ricci, Sawada Tsunayoshi, Tiago Boeing,
  36960. Vladislav Vorobev)
  36961. - fs
  36962. - Use atomic types everywhere (Roberto Ricci)
  36963. - When --max-transfer limit is reached exit with code (10)
  36964. (kapitainsky)
  36965. - Add rclone completion powershell - basic implementation only
  36966. (Nick Craig-Wood)
  36967. - http servers: Allow CORS to be set with --allow-origin flag
  36968. (yuudi)
  36969. - lib/rest: Remove unnecessary nil check (Eng Zer Jun)
  36970. - ncdu: Add keybinding to rescan filesystem (eNV25)
  36971. - rc
  36972. - Add executeId to job listings (yuudi)
  36973. - Add core/du to measure local disk usage (Nick Craig-Wood)
  36974. - Add operations/settier to API (Drew Stinnett)
  36975. - rclone test info: Add --check-base32768 flag to check can store
  36976. all base32768 characters (Nick Craig-Wood)
  36977. - rmdirs: Remove directories concurrently controlled by --checkers
  36978. (Nick Craig-Wood)
  36979. - Bug Fixes
  36980. - accounting: Don't stop calculating average transfer speed until
  36981. the operation is complete (Jacob Hands)
  36982. - fs: Fix transferTime not being set in JSON logs (Jacob Hands)
  36983. - fshttp: Fix --bind 0.0.0.0 allowing IPv6 and --bind ::0 allowing
  36984. IPv4 (Nick Craig-Wood)
  36985. - operations: Fix overlapping check on case insensitive file
  36986. systems (Nick Craig-Wood)
  36987. - serve dlna: Fix MIME type if backend can't identify it (Nick
  36988. Craig-Wood)
  36989. - serve ftp: Fix race condition when using the auth proxy (Nick
  36990. Craig-Wood)
  36991. - serve sftp: Fix hash calculations with --vfs-cache-mode full
  36992. (Nick Craig-Wood)
  36993. - serve webdav: Fix error: Expecting fs.Object or fs.Directory,
  36994. got nil (Nick Craig-Wood)
  36995. - sync: Fix lockup with --cutoff-mode=soft and --max-duration
  36996. (Nick Craig-Wood)
  36997. - Mount
  36998. - fix: Mount parsing for linux (Anagh Kumar Baranwal)
  36999. - VFS
  37000. - Add --vfs-cache-min-free-space to control minimum free space on
  37001. the disk containing the cache (Nick Craig-Wood)
  37002. - Added cache cleaner for directories to reduce memory usage
  37003. (Anagh Kumar Baranwal)
  37004. - Update parent directory modtimes on vfs actions (David Pedersen)
  37005. - Keep virtual directory status accurate and reduce deadlock
  37006. potential (Anagh Kumar Baranwal)
  37007. - Make sure struct field is aligned for atomic access (Roberto
  37008. Ricci)
  37009. - Local
  37010. - Rmdir return an error if the path is not a dir (zjx20)
  37011. - Azure Blob
  37012. - Implement OpenChunkWriter and multi-thread uploads (Nick
  37013. Craig-Wood)
  37014. - Fix creation of directory markers (Nick Craig-Wood)
  37015. - Fix purging with directory markers (Nick Craig-Wood)
  37016. - B2
  37017. - Implement OpenChunkWriter and multi-thread uploads (Nick
  37018. Craig-Wood)
  37019. - Fix rclone link when object path contains special characters
  37020. (Alishan Ladhani)
  37021. - Box
  37022. - Add polling support (David Sze)
  37023. - Add --box-impersonate to impersonate a user ID (Nick Craig-Wood)
  37024. - Fix unhelpful decoding of error messages into decimal numbers
  37025. (Nick Craig-Wood)
  37026. - Chunker
  37027. - Update documentation to mention issue with small files (Ricardo
  37028. D'O. Albanus)
  37029. - Compress
  37030. - Fix ChangeNotify (Nick Craig-Wood)
  37031. - Drive
  37032. - Add --drive-fast-list-bug-fix to control ListR bug workaround
  37033. (Nick Craig-Wood)
  37034. - Fichier
  37035. - Implement DirMove (Nick Craig-Wood)
  37036. - Fix error code parsing (alexia)
  37037. - FTP
  37038. - Add socks_proxy support for SOCKS5 proxies (Zach)
  37039. - Fix 425 "TLS session of data connection not resumed" errors
  37040. (Nick Craig-Wood)
  37041. - Hdfs
  37042. - Retry "replication in progress" errors when uploading (Nick
  37043. Craig-Wood)
  37044. - Fix uploading to the wrong object on Update with overridden
  37045. remote name (Nick Craig-Wood)
  37046. - HTTP
  37047. - CORS should not be sent if not set (yuudi)
  37048. - Fix webdav OPTIONS response (yuudi)
  37049. - Opendrive
  37050. - Fix List on a just deleted and remade directory (Nick
  37051. Craig-Wood)
  37052. - Oracleobjectstorage
  37053. - Use rclone's rate limiter in multipart transfers (Manoj Ghosh)
  37054. - Implement OpenChunkWriter and multi-thread uploads (Manoj Ghosh)
  37055. - S3
  37056. - Refactor multipart upload to use OpenChunkWriter and ChunkWriter
  37057. (Vitor Gomes)
  37058. - Factor generic multipart upload into lib/multipart (Nick
  37059. Craig-Wood)
  37060. - Fix purging of root directory with --s3-directory-markers (Nick
  37061. Craig-Wood)
  37062. - Add rclone backend set command to update the running config
  37063. (Nick Craig-Wood)
  37064. - Add rclone backend restore-status command (Nick Craig-Wood)
  37065. - SFTP
  37066. - Stop uploads re-using the same ssh connection to improve
  37067. performance (Nick Craig-Wood)
  37068. - Add --sftp-ssh to specify an external ssh binary to use (Nick
  37069. Craig-Wood)
  37070. - Add socks_proxy support for SOCKS5 proxies (Zach)
  37071. - Support dynamic --sftp-path-override (nielash)
  37072. - Fix spurious warning when using --sftp-ssh (Nick Craig-Wood)
  37073. - Smb
  37074. - Implement multi-threaded writes for copies to smb (Edwin
  37075. Mackenzie-Owen)
  37076. - Storj
  37077. - Performance improvement for large file uploads (Kaloyan Raev)
  37078. - Swift
  37079. - Fix HEADing 0-length objects when --swift-no-large-objects set
  37080. (Julian Lepinski)
  37081. - Union
  37082. - Add :writback to act as a simple cache (Nick Craig-Wood)
  37083. - WebDAV
  37084. - Nextcloud: fix segment violation in low-level retry (Paul)
  37085. - Zoho
  37086. - Remove Range requests workarounds to fix integration tests (Nick
  37087. Craig-Wood)
  37088. v1.63.1 - 2023-07-17
  37089. See commits
  37090. - Bug Fixes
  37091. - build: Fix macos builds for versions < 12 (Anagh Kumar Baranwal)
  37092. - dirtree: Fix performance with large directories of directories
  37093. and --fast-list (Nick Craig-Wood)
  37094. - operations
  37095. - Fix deadlock when using lsd/ls with --progress (Nick
  37096. Craig-Wood)
  37097. - Fix .rclonelink files not being converted back to symlinks
  37098. (Nick Craig-Wood)
  37099. - doc fixes (Dean Attali, Mahad, Nick Craig-Wood, Sawada
  37100. Tsunayoshi, Vladislav Vorobev)
  37101. - Local
  37102. - Fix partial directory read for corrupted filesystem (Nick
  37103. Craig-Wood)
  37104. - Box
  37105. - Fix reconnect failing with HTTP 400 Bad Request (albertony)
  37106. - Smb
  37107. - Fix "Statfs failed: bucket or container name is needed" when
  37108. mounting (Nick Craig-Wood)
  37109. - WebDAV
  37110. - Nextcloud: fix must use /dav/files/USER endpoint not /webdav
  37111. error (Paul)
  37112. - Nextcloud chunking: add more guidance for the user to check the
  37113. config (darix)
  37114. v1.63.0 - 2023-06-30
  37115. See commits
  37116. - New backends
  37117. - Pikpak (wiserain)
  37118. - New S3 providers
  37119. - petabox.io (Andrei Smirnov)
  37120. - Google Cloud Storage (Anthony Pessy)
  37121. - New WebDAV providers
  37122. - Fastmail (Arnavion)
  37123. - Major changes
  37124. - Files will be copied to a temporary name ending in .partial when
  37125. copying to local,ftp,sftp then renamed at the end of the
  37126. transfer. (Janne Hellsten, Nick Craig-Wood)
  37127. - This helps with data integrity as we don't delete the
  37128. existing file until the new one is complete.
  37129. - It can be disabled with the --inplace flag.
  37130. - This behaviour will also happen if the backend is wrapped,
  37131. for example sftp wrapped with crypt.
  37132. - The s3, azureblob and gcs backends now support directory markers
  37133. so empty directories are supported (Jānis Bebrītis, Nick
  37134. Craig-Wood)
  37135. - The --default-time flag now controls the unknown modification
  37136. time of files/dirs (Nick Craig-Wood)
  37137. - If a file or directory does not have a modification time
  37138. rclone can read then rclone will display this fixed time
  37139. instead.
  37140. - For the old behaviour use --default-time 0s which will set
  37141. this time to the time rclone started up.
  37142. - New Features
  37143. - build
  37144. - Modernise linters in use and fixup all affected code
  37145. (albertony)
  37146. - Push docker beta to GHCR (GitHub container registry)
  37147. (Richard Tweed)
  37148. - cat: Add --separator option to cat command (Loren Gordon)
  37149. - config
  37150. - Do not remove/overwrite other files during config file save
  37151. (albertony)
  37152. - Do not overwrite config file symbolic link (albertony)
  37153. - Stop config create making invalid config files (Nick
  37154. Craig-Wood)
  37155. - doc updates (Adam K, Aditya Basu, albertony, asdffdsazqqq, Damo,
  37156. danielkrajnik, Dimitri Papadopoulos, dlitster, Drew Parsons,
  37157. jumbi77, kapitainsky, mac-15, Mariusz Suchodolski, Nick
  37158. Craig-Wood, NickIAm, Rintze Zelle, Stanislav Gromov, Tareq
  37159. Sharafy, URenko, yuudi, Zach Kipp)
  37160. - fs
  37161. - Add size to JSON logs when moving or copying an object (Nick
  37162. Craig-Wood)
  37163. - Allow boolean features to be enabled with --disable !Feature
  37164. (Nick Craig-Wood)
  37165. - genautocomplete: Rename to completion with alias to the old name
  37166. (Nick Craig-Wood)
  37167. - librclone: Added example on using librclone with Go (alankrit)
  37168. - lsjson: Make --stat more efficient (Nick Craig-Wood)
  37169. - operations
  37170. - Implement --multi-thread-write-buffer-size for speed
  37171. improvements on downloads (Paulo Schreiner)
  37172. - Reopen downloads on error when using check --download and
  37173. cat (Nick Craig-Wood)
  37174. - rc: config/listremotes includes remotes defined with environment
  37175. variables (kapitainsky)
  37176. - selfupdate: Obey --no-check-certificate flag (Nick Craig-Wood)
  37177. - serve restic: Trigger systemd notify (Shyim)
  37178. - serve webdav: Implement owncloud checksum and modtime extensions
  37179. (WeidiDeng)
  37180. - sync: --suffix-keep-extension preserve 2 part extensions like
  37181. .tar.gz (Nick Craig-Wood)
  37182. - Bug Fixes
  37183. - accounting
  37184. - Fix Prometheus metrics to be the same as core/stats (Nick
  37185. Craig-Wood)
  37186. - Bwlimit signal handler should always start (Sam Lai)
  37187. - bisync: Fix maxDelete parameter being ignored via the rc (Nick
  37188. Craig-Wood)
  37189. - cmd/ncdu: Fix screen corruption when logging (eNV25)
  37190. - filter: Fix deadlock with errors on --files-from (douchen)
  37191. - fs
  37192. - Fix interaction between --progress and --interactive (Nick
  37193. Craig-Wood)
  37194. - Fix infinite recursive call in pacer ModifyCalculator (fixes
  37195. issue reported by the staticcheck linter) (albertony)
  37196. - lib/atexit: Ensure OnError only calls cancel function once (Nick
  37197. Craig-Wood)
  37198. - lib/rest: Fix problems re-using HTTP connections (Nick
  37199. Craig-Wood)
  37200. - rc
  37201. - Fix operations/stat with trailing / (Nick Craig-Wood)
  37202. - Fix missing --rc flags (Nick Craig-Wood)
  37203. - Fix output of Time values in options/get (Nick Craig-Wood)
  37204. - serve dlna: Fix potential data race (Nick Craig-Wood)
  37205. - version: Fix reported os/kernel version for windows (albertony)
  37206. - Mount
  37207. - Add --mount-case-insensitive to force the mount to be case
  37208. insensitive (Nick Craig-Wood)
  37209. - Removed unnecessary byte slice allocation for reads (Anagh Kumar
  37210. Baranwal)
  37211. - Clarify rclone mount error when installed via homebrew (Nick
  37212. Craig-Wood)
  37213. - Added _netdev to the example mount so it gets treated as a
  37214. remote-fs rather than local-fs (Anagh Kumar Baranwal)
  37215. - Mount2
  37216. - Updated go-fuse version (Anagh Kumar Baranwal)
  37217. - Fixed statfs (Anagh Kumar Baranwal)
  37218. - Disable xattrs (Anagh Kumar Baranwal)
  37219. - VFS
  37220. - Add MkdirAll function to make a directory and all beneath (Nick
  37221. Craig-Wood)
  37222. - Fix reload: failed to add virtual dir entry: file does not exist
  37223. (Nick Craig-Wood)
  37224. - Fix writing to a read only directory creating spurious directory
  37225. entries (WeidiDeng)
  37226. - Fix potential data race (Nick Craig-Wood)
  37227. - Fix backends being Shutdown too early when startup takes a long
  37228. time (Nick Craig-Wood)
  37229. - Local
  37230. - Fix filtering of symlinks with -l/--links flag (Nick Craig-Wood)
  37231. - Fix /path/to/file.rclonelink when -l/--links is in use (Nick
  37232. Craig-Wood)
  37233. - Fix crash with --metadata on Android (Nick Craig-Wood)
  37234. - Cache
  37235. - Fix backends shutting down when in use when used via the rc
  37236. (Nick Craig-Wood)
  37237. - Crypt
  37238. - Add --crypt-suffix option to set a custom suffix for encrypted
  37239. files (jladbrook)
  37240. - Add --crypt-pass-bad-blocks to allow corrupted file output (Nick
  37241. Craig-Wood)
  37242. - Fix reading 0 length files (Nick Craig-Wood)
  37243. - Try not to return "unexpected EOF" error (Nick Craig-Wood)
  37244. - Reduce allocations (albertony)
  37245. - Recommend Dropbox for base32768 encoding (Nick Craig-Wood)
  37246. - Azure Blob
  37247. - Empty directory markers (Nick Craig-Wood)
  37248. - Support azure workload identities (Tareq Sharafy)
  37249. - Fix azure blob uploads with multiple bits of metadata (Nick
  37250. Craig-Wood)
  37251. - Fix azurite compatibility by sending nil tier if set to empty
  37252. string (Roel Arents)
  37253. - Combine
  37254. - Implement missing methods (Nick Craig-Wood)
  37255. - Fix goroutine stack overflow on bad object (Nick Craig-Wood)
  37256. - Drive
  37257. - Add --drive-env-auth to get IAM credentials from runtime (Peter
  37258. Brunner)
  37259. - Update drive service account guide (Juang, Yi-Lin)
  37260. - Fix change notify picking up files outside the root (Nick
  37261. Craig-Wood)
  37262. - Fix trailing slash mis-identificaton of folder as file (Nick
  37263. Craig-Wood)
  37264. - Fix incorrect remote after Update on object (Nick Craig-Wood)
  37265. - Dropbox
  37266. - Implement --dropbox-pacer-min-sleep flag (Nick Craig-Wood)
  37267. - Fix the dropbox batcher stalling (Misty)
  37268. - Fichier
  37269. - Add --ficicher-cdn option to use the CDN for download (Nick
  37270. Craig-Wood)
  37271. - FTP
  37272. - Lower log message priority when SetModTime is not supported to
  37273. debug (Tobias Gion)
  37274. - Fix "unsupported LIST line" errors on startup (Nick Craig-Wood)
  37275. - Fix "501 Not a valid pathname." errors when creating directories
  37276. (Nick Craig-Wood)
  37277. - Google Cloud Storage
  37278. - Empty directory markers (Jānis Bebrītis, Nick Craig-Wood)
  37279. - Added --gcs-user-project needed for requester pays (Christopher
  37280. Merry)
  37281. - HTTP
  37282. - Add client certificate user auth middleware. This can auth
  37283. serve restic from the username in the client cert. (Peter Fern)
  37284. - Jottacloud
  37285. - Fix vfs writeback stuck in a failed upload loop with file
  37286. versioning disabled (albertony)
  37287. - Onedrive
  37288. - Add --onedrive-av-override flag to download files flagged as
  37289. virus (Nick Craig-Wood)
  37290. - Fix quickxorhash on 32 bit architectures (Nick Craig-Wood)
  37291. - Report any list errors during rclone cleanup (albertony)
  37292. - Putio
  37293. - Fix uploading to the wrong object on Update with overridden
  37294. remote name (Nick Craig-Wood)
  37295. - Fix modification times not being preserved for server side copy
  37296. and move (Nick Craig-Wood)
  37297. - Fix server side copy failures (400 errors) (Nick Craig-Wood)
  37298. - S3
  37299. - Empty directory markers (Jānis Bebrītis, Nick Craig-Wood)
  37300. - Update Scaleway storage classes (Brian Starkey)
  37301. - Fix --s3-versions on individual objects (Nick Craig-Wood)
  37302. - Fix hang on aborting multipart upload with iDrive e2 (Nick
  37303. Craig-Wood)
  37304. - Fix missing "tier" metadata (Nick Craig-Wood)
  37305. - Fix V3sign: add missing subresource delete (cc)
  37306. - Fix Arvancloud Domain and region changes and alphabetise the
  37307. provider (Ehsan Tadayon)
  37308. - Fix Qiniu KODO quirks virtualHostStyle is false (zzq)
  37309. - SFTP
  37310. - Add --sftp-host-key-algorithms to allow specifying SSH host key
  37311. algorithms (Joel)
  37312. - Fix using --sftp-key-use-agent and --sftp-key-file together
  37313. needing private key file (Arnav Singh)
  37314. - Fix move to allow overwriting existing files (Nick Craig-Wood)
  37315. - Don't stat directories before listing them (Nick Craig-Wood)
  37316. - Don't check remote points to a file if it ends with / (Nick
  37317. Craig-Wood)
  37318. - Sharefile
  37319. - Disable streamed transfers as they no longer work (Nick
  37320. Craig-Wood)
  37321. - Smb
  37322. - Code cleanup to avoid overwriting ctx before first use (fixes
  37323. issue reported by the staticcheck linter) (albertony)
  37324. - Storj
  37325. - Fix "uplink: too many requests" errors when uploading to the
  37326. same file (Nick Craig-Wood)
  37327. - Fix uploading to the wrong object on Update with overridden
  37328. remote name (Nick Craig-Wood)
  37329. - Swift
  37330. - Ignore 404 error when deleting an object (Nick Craig-Wood)
  37331. - Union
  37332. - Implement missing methods (Nick Craig-Wood)
  37333. - Allow errors to be unwrapped for inspection (Nick Craig-Wood)
  37334. - Uptobox
  37335. - Add --uptobox-private flag to make all uploaded files private
  37336. (Nick Craig-Wood)
  37337. - Fix improper regex (Aaron Gokaslan)
  37338. - Fix Update returning the wrong object (Nick Craig-Wood)
  37339. - Fix rmdir declaring that directories weren't empty (Nick
  37340. Craig-Wood)
  37341. - WebDAV
  37342. - nextcloud: Add support for chunked uploads (Paul)
  37343. - Set modtime using propset for owncloud and nextcloud (WeidiDeng)
  37344. - Make pacer minSleep configurable with --webdav-pacer-min-sleep
  37345. (ed)
  37346. - Fix server side copy/move not overwriting (WeidiDeng)
  37347. - Fix modtime on server side copy for owncloud and nextcloud (Nick
  37348. Craig-Wood)
  37349. - Yandex
  37350. - Fix 400 Bad Request on transfer failure (Nick Craig-Wood)
  37351. - Zoho
  37352. - Fix downloads with Range: header returning the wrong data (Nick
  37353. Craig-Wood)
  37354. v1.62.2 - 2023-03-16
  37355. See commits
  37356. - Bug Fixes
  37357. - docker volume plugin: Add missing fuse3 dependency (Nick
  37358. Craig-Wood)
  37359. - docs: Fix size documentation (asdffdsazqqq)
  37360. - FTP
  37361. - Fix 426 errors on downloads with vsftpd (Lesmiscore)
  37362. v1.62.1 - 2023-03-15
  37363. See commits
  37364. - Bug Fixes
  37365. - docker: Add missing fuse3 dependency (cycneuramus)
  37366. - build: Update release docs to be more careful with the tag (Nick
  37367. Craig-Wood)
  37368. - build: Set Github release to draft while uploading binaries
  37369. (Nick Craig-Wood)
  37370. v1.62.0 - 2023-03-14
  37371. See commits
  37372. - New Features
  37373. - accounting: Make checkers show what they are doing (Nick
  37374. Craig-Wood)
  37375. - authorize: Add support for custom templates (Hunter Wittenborn)
  37376. - build
  37377. - Update to go1.20 (Nick Craig-Wood, Anagh Kumar Baranwal)
  37378. - Add winget releaser workflow (Ryan Caezar Itang)
  37379. - Add dependabot (Ryan Caezar Itang)
  37380. - doc updates (albertony, Bryan Kaplan, Gerard Bosch,
  37381. IMTheNachoMan, Justin Winokur, Manoj Ghosh, Nick Craig-Wood, Ole
  37382. Frost, Peter Brunner, piyushgarg, Ryan Caezar Itang, Simmon Li,
  37383. ToBeFree)
  37384. - filter: Emit INFO message when can't work out directory filters
  37385. (Nick Craig-Wood)
  37386. - fs
  37387. - Added multiple ca certificate support. (alankrit)
  37388. - Add --max-delete-size a delete size threshold (Leandro
  37389. Sacchet)
  37390. - fspath: Allow the symbols @ and + in remote names (albertony)
  37391. - lib/terminal: Enable windows console virtual terminal sequences
  37392. processing (ANSI/VT100 colors) (albertony)
  37393. - move: If --check-first and --order-by are set then delete with
  37394. perfect ordering (Nick Craig-Wood)
  37395. - serve http: Support --auth-proxy (Matthias Baur)
  37396. - Bug Fixes
  37397. - accounting
  37398. - Avoid negative ETA values for very slow speeds (albertony)
  37399. - Limit length of ETA string (albertony)
  37400. - Show human readable elapsed time when longer than a day
  37401. (albertony)
  37402. - all: Apply codeql fixes (Aaron Gokaslan)
  37403. - build
  37404. - Fix condition for manual workflow run (albertony)
  37405. - Fix building for ARMv5 and ARMv6 (albertony)
  37406. - selfupdate: Consider ARM version
  37407. - install.sh: fix ARMv6 download
  37408. - version: Report ARM version
  37409. - deletefile: Return error code 4 if file does not exist (Nick
  37410. Craig-Wood)
  37411. - docker: Fix volume plugin does not remount volume on docker
  37412. restart (logopk)
  37413. - fs: Fix race conditions in --max-delete and --max-delete-size
  37414. (Nick Craig-Wood)
  37415. - lib/oauthutil: Handle fatal errors better (Alex Chen)
  37416. - mount2: Fix --allow-non-empty (Nick Craig-Wood)
  37417. - operations: Fix concurrency: use --checkers unless transferring
  37418. files (Nick Craig-Wood)
  37419. - serve ftp: Fix timestamps older than 1 year in listings (Nick
  37420. Craig-Wood)
  37421. - sync: Fix concurrency: use --checkers unless transferring files
  37422. (Nick Craig-Wood)
  37423. - tree
  37424. - Fix nil pointer exception on stat failure (Nick Craig-Wood)
  37425. - Fix colored output on windows (albertony)
  37426. - Fix display of files with illegal Windows file system names
  37427. (Nick Craig-Wood)
  37428. - Mount
  37429. - Fix creating and renaming files on case insensitive backends
  37430. (Nick Craig-Wood)
  37431. - Do not treat \\?\ prefixed paths as network share paths on
  37432. windows (albertony)
  37433. - Fix check for empty mount point on Linux (Nick Craig-Wood)
  37434. - Fix --allow-non-empty (Nick Craig-Wood)
  37435. - Avoid incorrect or premature overlap check on windows
  37436. (albertony)
  37437. - Update to fuse3 after bazil.org/fuse update (Nick Craig-Wood)
  37438. - VFS
  37439. - Make uploaded files retain modtime with non-modtime backends
  37440. (Nick Craig-Wood)
  37441. - Fix incorrect modtime on fs which don't support setting modtime
  37442. (Nick Craig-Wood)
  37443. - Fix rename of directory containing files to be uploaded (Nick
  37444. Craig-Wood)
  37445. - Local
  37446. - Fix %!w(<nil>) in "failed to read directory" error (Marks
  37447. Polakovs)
  37448. - Fix exclusion of dangling symlinks with -L/--copy-links (Nick
  37449. Craig-Wood)
  37450. - Crypt
  37451. - Obey --ignore-checksum (Nick Craig-Wood)
  37452. - Fix for unencrypted directory names on case insensitive remotes
  37453. (Ole Frost)
  37454. - Azure Blob
  37455. - Remove workarounds for SDK bugs after v0.6.1 update (Nick
  37456. Craig-Wood)
  37457. - B2
  37458. - Fix uploading files bigger than 1TiB (Nick Craig-Wood)
  37459. - Drive
  37460. - Note that --drive-acknowledge-abuse needs SA Manager permission
  37461. (Nick Craig-Wood)
  37462. - Make --drive-stop-on-upload-limit to respond to
  37463. storageQuotaExceeded (Ninh Pham)
  37464. - FTP
  37465. - Retry 426 errors (Nick Craig-Wood)
  37466. - Retry errors when initiating downloads (Nick Craig-Wood)
  37467. - Revert to upstream github.com/jlaffaye/ftp now fix is merged
  37468. (Nick Craig-Wood)
  37469. - Google Cloud Storage
  37470. - Add --gcs-env-auth to pick up IAM credentials from env/instance
  37471. (Peter Brunner)
  37472. - Mega
  37473. - Add --mega-use-https flag (NodudeWasTaken)
  37474. - Onedrive
  37475. - Default onedrive personal to QuickXorHash as Microsoft is
  37476. removing SHA1 (Nick Craig-Wood)
  37477. - Add --onedrive-hash-type to change the hash in use (Nick
  37478. Craig-Wood)
  37479. - Improve speed of QuickXorHash (LXY)
  37480. - Oracle Object Storage
  37481. - Speed up operations by using S3 pacer and setting minsleep to
  37482. 10ms (Manoj Ghosh)
  37483. - Expose the storage_tier option in config (Manoj Ghosh)
  37484. - Bring your own encryption keys (Manoj Ghosh)
  37485. - S3
  37486. - Check multipart upload ETag when --s3-no-head is in use (Nick
  37487. Craig-Wood)
  37488. - Add --s3-sts-endpoint to specify STS endpoint (Nick Craig-Wood)
  37489. - Fix incorrect tier support for StorJ and IDrive when pointing at
  37490. a file (Ole Frost)
  37491. - Fix AWS STS failing if --s3-endpoint is set (Nick Craig-Wood)
  37492. - Make purge remove directory markers too (Nick Craig-Wood)
  37493. - Seafile
  37494. - Renew library password (Fred)
  37495. - SFTP
  37496. - Fix uploads being 65% slower than they should be with crypt
  37497. (Nick Craig-Wood)
  37498. - Smb
  37499. - Allow SPN (service principal name) to be configured (Nick
  37500. Craig-Wood)
  37501. - Check smb connection is closed (happyxhw)
  37502. - Storj
  37503. - Implement rclone link (Kaloyan Raev)
  37504. - Implement rclone purge (Kaloyan Raev)
  37505. - Update satellite urls and labels (Kaloyan Raev)
  37506. - WebDAV
  37507. - Fix interop with davrods server (Nick Craig-Wood)
  37508. v1.61.1 - 2022-12-23
  37509. See commits
  37510. - Bug Fixes
  37511. - docs:
  37512. - Show only significant parts of version number in version
  37513. introduced label (albertony)
  37514. - Fix unescaped HTML (Nick Craig-Wood)
  37515. - lib/http: Shutdown all servers on exit to remove unix socket
  37516. (Nick Craig-Wood)
  37517. - rc: Fix --rc-addr flag (which is an alternate for --url) (Anagh
  37518. Kumar Baranwal)
  37519. - serve restic
  37520. - Don't serve via http if serving via --stdio (Nick
  37521. Craig-Wood)
  37522. - Fix immediate exit when not using stdio (Nick Craig-Wood)
  37523. - serve webdav
  37524. - Fix --baseurl handling after lib/http refactor (Nick
  37525. Craig-Wood)
  37526. - Fix running duplicate Serve call (Nick Craig-Wood)
  37527. - Azure Blob
  37528. - Fix "409 Public access is not permitted on this storage account"
  37529. (Nick Craig-Wood)
  37530. - S3
  37531. - storj: Update endpoints (Kaloyan Raev)
  37532. v1.61.0 - 2022-12-20
  37533. See commits
  37534. - New backends
  37535. - New S3 providers
  37536. - Liara LOS (MohammadReza)
  37537. - New Features
  37538. - build: Add vulnerability testing using govulncheck (albertony)
  37539. - cmd: Enable SIGINFO (Ctrl-T) handler on FreeBSD, NetBSD, OpenBSD
  37540. and Dragonfly BSD (x3-apptech)
  37541. - config: Add config/setpath for setting config path via
  37542. rc/librclone (Nick Craig-Wood)
  37543. - dedupe
  37544. - Count Checks in the stats while scanning for duplicates
  37545. (Nick Craig-Wood)
  37546. - Make dedupe obey the filters (Nick Craig-Wood)
  37547. - dlna: Properly attribute code used from
  37548. https://github.com/anacrolix/dms (Nick Craig-Wood)
  37549. - docs
  37550. - Add minimum versions and status badges to backend and
  37551. command docs (Nick Craig-Wood, albertony)
  37552. - Remote names may not start or end with space (albertony)
  37553. - filter: Add metadata filters --metadata-include/exclude/filter
  37554. and friends (Nick Craig-Wood)
  37555. - fs
  37556. - Make all duration flags take y, M, w, d etc suffixes (Nick
  37557. Craig-Wood)
  37558. - Add global flag --color to control terminal colors (Kevin
  37559. Verstaen)
  37560. - fspath: Allow unicode numbers and letters in remote names
  37561. (albertony)
  37562. - lib/file: Improve error message for creating dir on non-existent
  37563. network host on windows (albertony)
  37564. - lib/http: Finish port of rclone servers to lib/http (Tom
  37565. Mombourquette, Nick Craig-Wood)
  37566. - lib/oauthutil: Improved usability of config flows needing web
  37567. browser (Ole Frost)
  37568. - ncdu
  37569. - Add support for modification time (albertony)
  37570. - Fallback to sort by name also for sort by average size
  37571. (albertony)
  37572. - Rework to use tcell directly instead of the termbox wrapper
  37573. (eNV25)
  37574. - rc: Add commands to set GC Percent & Memory Limit (go 1.19+)
  37575. (Anagh Kumar Baranwal)
  37576. - rcat: Preserve metadata when Copy falls back to Rcat (Nick
  37577. Craig-Wood)
  37578. - rcd: Refactor rclone rc server to use lib/http (Nick Craig-Wood)
  37579. - rcserver: Avoid generating default credentials with htpasswd
  37580. (Kamui)
  37581. - restic: Refactor to use lib/http (Nolan Woods)
  37582. - serve http: Support unix sockets and multiple listeners (Tom
  37583. Mombourquette)
  37584. - serve webdav: Refactor to use lib/http (Nick Craig-Wood)
  37585. - test: Replace defer cleanup with t.Cleanup (Eng Zer Jun)
  37586. - test memory: Read metadata if -M flag is specified (Nick
  37587. Craig-Wood)
  37588. - wasm: Comply with wasm_exec.js licence terms (Matthew Vernon)
  37589. - Bug Fixes
  37590. - build: Update golang.org/x/net/http2 to fix GO-2022-1144 (Nick
  37591. Craig-Wood)
  37592. - restic: Fix typo in docs 'remove' should be 'remote'
  37593. (asdffdsazqqq)
  37594. - serve dlna: Fix panic: Logger uninitialized. (Nick Craig-Wood)
  37595. - Mount
  37596. - Update cgofuse for FUSE-T support for mounting volumes on Mac
  37597. (Nick Craig-Wood)
  37598. - VFS
  37599. - Windows: fix slow opening of exe files by not truncating files
  37600. when not necessary (Nick Craig-Wood)
  37601. - Fix IO Error opening a file with O_CREATE|O_RDONLY in
  37602. --vfs-cache-mode not full (Nick Craig-Wood)
  37603. - Crypt
  37604. - Fix compress wrapping crypt giving upload errors (Nick
  37605. Craig-Wood)
  37606. - Azure Blob
  37607. - Port to new SDK (Nick Craig-Wood)
  37608. - Revamp authentication to include all methods and docs (Nick
  37609. Craig-Wood)
  37610. - Port old authentication methods to new SDK (Nick Craig-Wood,
  37611. Brad Ackerman)
  37612. - Thanks to Stonebranch for sponsoring this work.
  37613. - Add --azureblob-no-check-container to assume container exists
  37614. (Nick Craig-Wood)
  37615. - Add --use-server-modtime support (Abdullah Saglam)
  37616. - Add support for custom upload headers (rkettelerij)
  37617. - Allow emulator account/key override (Roel Arents)
  37618. - Support simple "environment credentials" (Nathaniel Wesley
  37619. Filardo)
  37620. - Ignore AuthorizationFailure when trying to create a create a
  37621. container (Nick Craig-Wood)
  37622. - Box
  37623. - Added note on Box API rate limits (Ole Frost)
  37624. - Drive
  37625. - Handle shared drives with leading/trailing space in name
  37626. (related to) (albertony)
  37627. - FTP
  37628. - Update help text of implicit/explicit TLS options to refer to
  37629. FTPS instead of FTP (ycdtosa)
  37630. - Improve performance to speed up --files-from and NewObject
  37631. (Anthony Pessy)
  37632. - HTTP
  37633. - Parse GET responses when no_head is set (Arnie97)
  37634. - Do not update object size based on Range requests (Arnie97)
  37635. - Support Content-Range response header (Arnie97)
  37636. - Onedrive
  37637. - Document workaround for shared with me files (vanplus)
  37638. - S3
  37639. - Add Liara LOS to provider list (MohammadReza)
  37640. - Add DigitalOcean Spaces regions sfo3, fra1, syd1 (Jack)
  37641. - Avoid privileged GetBucketLocation to resolve s3 region (Anthony
  37642. Pessy)
  37643. - Stop setting object and bucket ACL to private if it is an empty
  37644. string (Philip Harvey)
  37645. - If bucket or object ACL is empty string then don't add
  37646. X-Amz-Acl: header (Nick Craig-Wood)
  37647. - Reduce memory consumption for s3 objects (Erik Agterdenbos)
  37648. - Fix listing loop when using v2 listing on v1 server (Nick
  37649. Craig-Wood)
  37650. - Fix nil pointer exception when using Versions (Nick Craig-Wood)
  37651. - Fix excess memory usage when using versions (Nick Craig-Wood)
  37652. - Ignore versionIDs from uploads unless using --s3-versions or
  37653. --s3-versions-at (Nick Craig-Wood)
  37654. - SFTP
  37655. - Add configuration options to set ssh Ciphers / MACs /
  37656. KeyExchange (dgouju)
  37657. - Auto-detect shell type for fish (albertony)
  37658. - Fix NewObject with leading / (Nick Craig-Wood)
  37659. - Smb
  37660. - Fix issue where spurious dot directory is created (albertony)
  37661. - Storj
  37662. - Implement server side Copy (Kaloyan Raev)
  37663. v1.60.1 - 2022-11-17
  37664. See commits
  37665. - Bug Fixes
  37666. - lib/cache: Fix alias backend shutting down too soon (Nick
  37667. Craig-Wood)
  37668. - wasm: Fix walltime link error by adding up-to-date wasm_exec.js
  37669. (João Henrique Franco)
  37670. - docs
  37671. - Update faq.md with bisync (Samuel Johnson)
  37672. - Corrected download links in windows install docs
  37673. (coultonluke)
  37674. - Add direct download link for windows arm64 (albertony)
  37675. - Remove link to rclone slack as it is no longer supported
  37676. (Nick Craig-Wood)
  37677. - Faq: how to use a proxy server that requires a username and
  37678. password (asdffdsazqqq)
  37679. - Oracle-object-storage: doc fix (Manoj Ghosh)
  37680. - Fix typo remove in rclone_serve_restic command (Joda Stößer)
  37681. - Fix character that was incorrectly interpreted as markdown
  37682. (Clément Notin)
  37683. - VFS
  37684. - Fix deadlock caused by cache cleaner and upload finishing (Nick
  37685. Craig-Wood)
  37686. - Local
  37687. - Clean absolute paths (albertony)
  37688. - Fix -L/--copy-links with filters missing directories (Nick
  37689. Craig-Wood)
  37690. - Mailru
  37691. - Note that an app password is now needed (Nick Craig-Wood)
  37692. - Allow timestamps to be before the epoch 1970-01-01 (Nick
  37693. Craig-Wood)
  37694. - S3
  37695. - Add provider quirk --s3-might-gzip to fix corrupted on transfer:
  37696. sizes differ (Nick Craig-Wood)
  37697. - Allow Storj to server side copy since it seems to work now (Nick
  37698. Craig-Wood)
  37699. - Fix for unchecked err value in s3 listv2 (Aaron Gokaslan)
  37700. - Add additional Wasabi locations (techknowlogick)
  37701. - Smb
  37702. - Fix Failed to sync: context canceled at the end of syncs (Nick
  37703. Craig-Wood)
  37704. - WebDAV
  37705. - Fix Move/Copy/DirMove when using -server-side-across-configs
  37706. (Nick Craig-Wood)
  37707. v1.60.0 - 2022-10-21
  37708. See commits
  37709. - New backends
  37710. - Oracle object storage (Manoj Ghosh)
  37711. - SMB / CIFS (Windows file sharing) (Lesmiscore)
  37712. - New S3 providers
  37713. - IONOS Cloud Storage (Dmitry Deniskin)
  37714. - Qiniu KODO (Bachue Zhou)
  37715. - New Features
  37716. - build
  37717. - Update to go1.19 and make go1.17 the minimum required
  37718. version (Nick Craig-Wood)
  37719. - Install.sh: fix arm-v7 download (Ole Frost)
  37720. - fs: Warn the user when using an existing remote name without a
  37721. colon (Nick Craig-Wood)
  37722. - httplib: Add --xxx-min-tls-version option to select minimum TLS
  37723. version for HTTP servers (Robert Newson)
  37724. - librclone: Add PHP bindings and test program (Jordi Gonzalez
  37725. Muñoz)
  37726. - operations
  37727. - Add --server-side-across-configs global flag for any backend
  37728. (Nick Craig-Wood)
  37729. - Optimise --copy-dest and --compare-dest (Nick Craig-Wood)
  37730. - rc: add job/stopgroup to stop group (Evan Spensley)
  37731. - serve dlna
  37732. - Add --announce-interval to control SSDP Announce Interval
  37733. (YanceyChiew)
  37734. - Add --interface to Specify SSDP interface names line (Simon
  37735. Bos)
  37736. - Add support for more external subtitles (YanceyChiew)
  37737. - Add verification of addresses (YanceyChiew)
  37738. - sync: Optimise --copy-dest and --compare-dest (Nick Craig-Wood)
  37739. - doc updates (albertony, Alexander Knorr, anonion, João Henrique
  37740. Franco, Josh Soref, Lorenzo Milesi, Marco Molteni, Mark Trolley,
  37741. Ole Frost, partev, Ryan Morey, Tom Mombourquette, YFdyh000)
  37742. - Bug Fixes
  37743. - filter
  37744. - Fix incorrect filtering with UseFilter context flag and
  37745. wrapping backends (Nick Craig-Wood)
  37746. - Make sure we check --files-from when looking for a single
  37747. file (Nick Craig-Wood)
  37748. - rc
  37749. - Fix mount/listmounts not returning the full Fs entered in
  37750. mount/mount (Tom Mombourquette)
  37751. - Handle external unmount when mounting (Isaac Aymerich)
  37752. - Validate Daemon option is not set when mounting a volume via
  37753. RC (Isaac Aymerich)
  37754. - sync: Update docs and error messages to reflect fixes to overlap
  37755. checks (Nick Naumann)
  37756. - VFS
  37757. - Reduce memory use by embedding sync.Cond (Nick Craig-Wood)
  37758. - Reduce memory usage by re-ordering commonly used structures
  37759. (Nick Craig-Wood)
  37760. - Fix excess CPU used by VFS cache cleaner looping (Nick
  37761. Craig-Wood)
  37762. - Local
  37763. - Obey file filters in listing to fix errors on excluded files
  37764. (Nick Craig-Wood)
  37765. - Fix "Failed to read metadata: function not implemented" on old
  37766. Linux kernels (Nick Craig-Wood)
  37767. - Compress
  37768. - Fix crash due to nil metadata (Nick Craig-Wood)
  37769. - Fix error handling to not use or return nil objects (Nick
  37770. Craig-Wood)
  37771. - Drive
  37772. - Make --drive-stop-on-upload-limit obey quota exceeded error
  37773. (Steve Kowalik)
  37774. - FTP
  37775. - Add --ftp-force-list-hidden option to show hidden items (Øyvind
  37776. Heddeland Instefjord)
  37777. - Fix hang when using ExplicitTLS to certain servers. (Nick
  37778. Craig-Wood)
  37779. - Google Cloud Storage
  37780. - Add --gcs-endpoint flag and config parameter (Nick Craig-Wood)
  37781. - Hubic
  37782. - Remove backend as service has now shut down (Nick Craig-Wood)
  37783. - Onedrive
  37784. - Rename Onedrive(cn) 21Vianet to Vnet Group (Yen Hu)
  37785. - Disable change notify in China region since it is not supported
  37786. (Nick Craig-Wood)
  37787. - S3
  37788. - Implement --s3-versions flag to show old versions of objects if
  37789. enabled (Nick Craig-Wood)
  37790. - Implement --s3-version-at flag to show versions of objects at a
  37791. particular time (Nick Craig-Wood)
  37792. - Implement backend versioning command to get/set bucket
  37793. versioning (Nick Craig-Wood)
  37794. - Implement Purge to purge versions and backend cleanup-hidden
  37795. (Nick Craig-Wood)
  37796. - Add --s3-decompress flag to decompress gzip-encoded files (Nick
  37797. Craig-Wood)
  37798. - Add --s3-sse-customer-key-base64 to supply keys with binary data
  37799. (Richard Bateman)
  37800. - Try to keep the maximum precision in ModTime with
  37801. --user-server-modtime (Nick Craig-Wood)
  37802. - Drop binary metadata with an ERROR message as it can't be stored
  37803. (Nick Craig-Wood)
  37804. - Add --s3-no-system-metadata to suppress read and write of system
  37805. metadata (Nick Craig-Wood)
  37806. - SFTP
  37807. - Fix directory creation races (Lesmiscore)
  37808. - Swift
  37809. - Add --swift-no-large-objects to reduce HEAD requests (Nick
  37810. Craig-Wood)
  37811. - Union
  37812. - Propagate SlowHash feature to fix hasher interaction
  37813. (Lesmiscore)
  37814. v1.59.2 - 2022-09-15
  37815. See commits
  37816. - Bug Fixes
  37817. - config: Move locking to fix fatal error: concurrent map read and
  37818. map write (Nick Craig-Wood)
  37819. - Local
  37820. - Disable xattr support if the filesystems indicates it is not
  37821. supported (Nick Craig-Wood)
  37822. - Azure Blob
  37823. - Fix chunksize calculations producing too many parts (Nick
  37824. Craig-Wood)
  37825. - B2
  37826. - Fix chunksize calculations producing too many parts (Nick
  37827. Craig-Wood)
  37828. - S3
  37829. - Fix chunksize calculations producing too many parts (Nick
  37830. Craig-Wood)
  37831. v1.59.1 - 2022-08-08
  37832. See commits
  37833. - Bug Fixes
  37834. - accounting: Fix panic in core/stats-reset with unknown group
  37835. (Nick Craig-Wood)
  37836. - build: Fix android build after GitHub actions change (Nick
  37837. Craig-Wood)
  37838. - dlna: Fix SOAP action header parsing (Joram Schrijver)
  37839. - docs: Fix links to mount command from install docs (albertony)
  37840. - dropbox: Fix ChangeNotify was unable to decrypt errors (Nick
  37841. Craig-Wood)
  37842. - fs: Fix parsing of times and durations of the form "YYYY-MM-DD
  37843. HH:MM:SS" (Nick Craig-Wood)
  37844. - serve sftp: Fix checksum detection (Nick Craig-Wood)
  37845. - sync: Add accidentally missed filter-sensitivity to --backup-dir
  37846. option (Nick Naumann)
  37847. - Combine
  37848. - Fix docs showing remote= instead of upstreams= (Nick Craig-Wood)
  37849. - Throw error if duplicate directory name is specified (Nick
  37850. Craig-Wood)
  37851. - Fix errors with backends shutting down while in use (Nick
  37852. Craig-Wood)
  37853. - Dropbox
  37854. - Fix hang on quit with --dropbox-batch-mode off (Nick Craig-Wood)
  37855. - Fix infinite loop on uploading a corrupted file (Nick
  37856. Craig-Wood)
  37857. - Internetarchive
  37858. - Ignore checksums for files using the different method
  37859. (Lesmiscore)
  37860. - Handle hash symbol in the middle of filename (Lesmiscore)
  37861. - Jottacloud
  37862. - Fix working with whitelabel Elgiganten Cloud
  37863. - Do not store username in config when using standard auth
  37864. (albertony)
  37865. - Mega
  37866. - Fix nil pointer exception when bad node received (Nick
  37867. Craig-Wood)
  37868. - S3
  37869. - Fix --s3-no-head panic: reflect: Elem of invalid type
  37870. s3.PutObjectInput (Nick Craig-Wood)
  37871. - SFTP
  37872. - Fix issue with WS_FTP by working around failing RealPath
  37873. (albertony)
  37874. - Union
  37875. - Fix duplicated files when using directories with leading / (Nick
  37876. Craig-Wood)
  37877. - Fix multiple files being uploaded when roots don't exist (Nick
  37878. Craig-Wood)
  37879. - Fix panic due to misalignment of struct field in 32 bit
  37880. architectures (r-ricci)
  37881. v1.59.0 - 2022-07-09
  37882. See commits
  37883. - New backends
  37884. - Combine multiple remotes in one directory tree (Nick Craig-Wood)
  37885. - Hidrive (Ovidiu Victor Tatar)
  37886. - Internet Archive (Lesmiscore (Naoya Ozaki))
  37887. - New S3 providers
  37888. - ArvanCloud AOS (ehsantdy)
  37889. - Cloudflare R2 (Nick Craig-Wood)
  37890. - Huawei OBS (m00594701)
  37891. - IDrive e2 (vyloy)
  37892. - New commands
  37893. - test makefile: Create a single file for testing (Nick
  37894. Craig-Wood)
  37895. - New Features
  37896. - Metadata framework to read and write system and user metadata on
  37897. backends (Nick Craig-Wood)
  37898. - Implemented initially for local, s3 and internetarchive
  37899. backends
  37900. - --metadata/-M flag to control whether metadata is copied
  37901. - --metadata-set flag to specify metadata for uploads
  37902. - Thanks to Manz Solutions for sponsoring this work.
  37903. - build
  37904. - Update to go1.18 and make go1.16 the minimum required
  37905. version (Nick Craig-Wood)
  37906. - Update android go build to 1.18.x and NDK to 23.1.7779620
  37907. (Nick Craig-Wood)
  37908. - All windows binaries now no longer CGO (Nick Craig-Wood)
  37909. - Add linux/arm/v6 to docker images (Nick Craig-Wood)
  37910. - A huge number of fixes found with staticcheck (albertony)
  37911. - Configurable version suffix independent of version number
  37912. (albertony)
  37913. - check: Implement --no-traverse and --no-unicode-normalization
  37914. (Nick Craig-Wood)
  37915. - config: Readability improvements (albertony)
  37916. - copyurl: Add --header-filename to honor the HTTP header filename
  37917. directive (J-P Treen)
  37918. - filter: Allow multiple --exclude-if-present flags (albertony)
  37919. - fshttp: Add --disable-http-keep-alives to disable HTTP Keep
  37920. Alives (Nick Craig-Wood)
  37921. - install.sh
  37922. - Set the modes on the files and/or directories on macOS
  37923. (Michael C Tiernan - MIT-Research Computing Project)
  37924. - Pre verify sudo authorization -v before calling curl.
  37925. (Michael C Tiernan - MIT-Research Computing Project)
  37926. - lib/encoder: Add Semicolon encoding (Nick Craig-Wood)
  37927. - lsf: Add metadata support with M flag (Nick Craig-Wood)
  37928. - lsjson: Add --metadata/-M flag (Nick Craig-Wood)
  37929. - ncdu
  37930. - Implement multi selection (CrossR)
  37931. - Replace termbox with tcell's termbox wrapper (eNV25)
  37932. - Display correct path in delete confirmation dialog (Roberto
  37933. Ricci)
  37934. - operations
  37935. - Speed up hash checking by aborting the other hash if first
  37936. returns nothing (Nick Craig-Wood)
  37937. - Use correct src/dst in some log messages (zzr93)
  37938. - rcat: Check checksums by default like copy does (Nick
  37939. Craig-Wood)
  37940. - selfupdate: Replace deprecated x/crypto/openpgp package with
  37941. ProtonMail/go-crypto (albertony)
  37942. - serve ftp: Check --passive-port arguments are correct (Nick
  37943. Craig-Wood)
  37944. - size: Warn about inaccurate results when objects with unknown
  37945. size (albertony)
  37946. - sync: Overlap check is now filter-sensitive so --backup-dir can
  37947. be in the root provided it is filtered (Nick)
  37948. - test info: Check file name lengths using 1,2,3,4 byte unicode
  37949. characters (Nick Craig-Wood)
  37950. - test makefile(s): --sparse, --zero, --pattern, --ascii,
  37951. --chargen flags to control file contents (Nick Craig-Wood)
  37952. - Make sure we call the Shutdown method on backends (Martin
  37953. Czygan)
  37954. - Bug Fixes
  37955. - accounting: Fix unknown length file transfers counting 3
  37956. transfers each (buda)
  37957. - ncdu: Fix issue where dir size is summed when file sizes are -1
  37958. (albertony)
  37959. - sync/copy/move
  37960. - Fix --fast-list --create-empty-src-dirs and --exclude (Nick
  37961. Craig-Wood)
  37962. - Fix --max-duration and --cutoff-mode soft (Nick Craig-Wood)
  37963. - Fix fs cache unpin (Martin Czygan)
  37964. - Set proper exit code for errors that are not low-level retried
  37965. (e.g. size/timestamp changing) (albertony)
  37966. - Mount
  37967. - Support windows/arm64 (may still be problems - see #5828) (Nick
  37968. Craig-Wood)
  37969. - Log IO errors at ERROR level (Nick Craig-Wood)
  37970. - Ignore _netdev mount argument (Hugal31)
  37971. - VFS
  37972. - Add --vfs-fast-fingerprint for less accurate but faster
  37973. fingerprints (Nick Craig-Wood)
  37974. - Add --vfs-disk-space-total-size option to manually set the total
  37975. disk space (Claudio Maradonna)
  37976. - vfscache: Fix fatal error: sync: unlock of unlocked mutex error
  37977. (Nick Craig-Wood)
  37978. - Local
  37979. - Fix parsing of --local-nounc flag (Nick Craig-Wood)
  37980. - Add Metadata support (Nick Craig-Wood)
  37981. - Crypt
  37982. - Support metadata (Nick Craig-Wood)
  37983. - Azure Blob
  37984. - Calculate Chunksize/blocksize to stay below maxUploadParts
  37985. (Leroy van Logchem)
  37986. - Use chunksize lib to determine chunksize dynamically (Derek
  37987. Battams)
  37988. - Case insensitive access tier (Rob Pickerill)
  37989. - Allow remote emulator (azurite) (Lorenzo Maiorfi)
  37990. - B2
  37991. - Add --b2-version-at flag to show file versions at time specified
  37992. (SwazRGB)
  37993. - Use chunksize lib to determine chunksize dynamically (Derek
  37994. Battams)
  37995. - Chunker
  37996. - Mark as not supporting metadata (Nick Craig-Wood)
  37997. - Compress
  37998. - Support metadata (Nick Craig-Wood)
  37999. - Drive
  38000. - Make backend config -o config add a combined AllDrives: remote
  38001. (Nick Craig-Wood)
  38002. - Make --drive-shared-with-me work with shared drives (Nick
  38003. Craig-Wood)
  38004. - Add --drive-resource-key for accessing link-shared files (Nick
  38005. Craig-Wood)
  38006. - Add backend commands exportformats and importformats for
  38007. debugging (Nick Craig-Wood)
  38008. - Fix 404 errors on copy/server side copy objects from public
  38009. folder (Nick Craig-Wood)
  38010. - Update Internal OAuth consent screen docs (Phil Shackleton)
  38011. - Moved root_folder_id to advanced section (Abhiraj)
  38012. - Dropbox
  38013. - Migrate from deprecated api (m8rge)
  38014. - Add logs to show when poll interval limits are exceeded (Nick
  38015. Craig-Wood)
  38016. - Fix nil pointer exception on dropbox impersonate user not found
  38017. (Nick Craig-Wood)
  38018. - Fichier
  38019. - Parse api error codes and them accordingly (buengese)
  38020. - FTP
  38021. - Add support for disable_utf8 option (Jason Zheng)
  38022. - Revert to upstream github.com/jlaffaye/ftp from our fork (Nick
  38023. Craig-Wood)
  38024. - Google Cloud Storage
  38025. - Add --gcs-no-check-bucket to minimise transactions and perms
  38026. (Nick Gooding)
  38027. - Add --gcs-decompress flag to decompress gzip-encoded files (Nick
  38028. Craig-Wood)
  38029. - by default these will be downloaded compressed (which
  38030. previously failed)
  38031. - Hasher
  38032. - Support metadata (Nick Craig-Wood)
  38033. - HTTP
  38034. - Fix missing response when using custom auth handler (albertony)
  38035. - Jottacloud
  38036. - Add support for upload to custom device and mountpoint
  38037. (albertony)
  38038. - Always store username in config and use it to avoid initial API
  38039. request (albertony)
  38040. - Fix issue with server-side copy when destination is in trash
  38041. (albertony)
  38042. - Fix listing output of remote with special characters (albertony)
  38043. - Mailru
  38044. - Fix timeout by using int instead of time.Duration for keeping
  38045. number of seconds (albertony)
  38046. - Mega
  38047. - Document using MEGAcmd to help with login failures (Art M.
  38048. Gallagher)
  38049. - Onedrive
  38050. - Implement --poll-interval for onedrive (Hugo Laloge)
  38051. - Add access scopes option (Sven Gerber)
  38052. - Opendrive
  38053. - Resolve lag and truncate bugs (Scott Grimes)
  38054. - Pcloud
  38055. - Fix about with no free space left (buengese)
  38056. - Fix cleanup (buengese)
  38057. - S3
  38058. - Use PUT Object instead of presigned URLs to upload single part
  38059. objects (Nick Craig-Wood)
  38060. - Backend restore command to skip non-GLACIER objects (Vincent
  38061. Murphy)
  38062. - Use chunksize lib to determine chunksize dynamically (Derek
  38063. Battams)
  38064. - Retry RequestTimeout errors (Nick Craig-Wood)
  38065. - Implement reading and writing of metadata (Nick Craig-Wood)
  38066. - SFTP
  38067. - Add support for about and hashsum on windows server (albertony)
  38068. - Use vendor-specific VFS statistics extension for about if
  38069. available (albertony)
  38070. - Add --sftp-chunk-size to control packets sizes for high latency
  38071. links (Nick Craig-Wood)
  38072. - Add --sftp-concurrency to improve high latency transfers (Nick
  38073. Craig-Wood)
  38074. - Add --sftp-set-env option to set environment variables (Nick
  38075. Craig-Wood)
  38076. - Add Hetzner Storage Boxes to supported sftp backends (Anthrazz)
  38077. - Storj
  38078. - Fix put which lead to the file being unreadable when using mount
  38079. (Erik van Velzen)
  38080. - Union
  38081. - Add min_free_space option for lfs/eplfs policies (Nick
  38082. Craig-Wood)
  38083. - Fix uploading files to union of all bucket based remotes (Nick
  38084. Craig-Wood)
  38085. - Fix get free space for remotes which don't support it (Nick
  38086. Craig-Wood)
  38087. - Fix eplus policy to select correct entry for existing files
  38088. (Nick Craig-Wood)
  38089. - Support metadata (Nick Craig-Wood)
  38090. - Uptobox
  38091. - Fix root path handling (buengese)
  38092. - WebDAV
  38093. - Add SharePoint in other specific regions support (Noah Hsu)
  38094. - Yandex
  38095. - Handle api error on server-side move (albertony)
  38096. - Zoho
  38097. - Add Japan and China regions (buengese)
  38098. v1.58.1 - 2022-04-29
  38099. See commits
  38100. - Bug Fixes
  38101. - build: Update github.com/billziss-gh to github.com/winfsp (Nick
  38102. Craig-Wood)
  38103. - filter: Fix timezone of --min-age/-max-age from UTC to local as
  38104. documented (Nick Craig-Wood)
  38105. - rc/js: Correct RC method names (Sơn Trần-Nguyễn)
  38106. - docs
  38107. - Fix some links to command pages (albertony)
  38108. - Add --multi-thread-streams note to --transfers. (Zsolt Ero)
  38109. - Mount
  38110. - Fix --devname and fusermount: unknown option 'fsname' when
  38111. mounting via rc (Nick Craig-Wood)
  38112. - VFS
  38113. - Remove wording which suggests VFS is only for mounting (Nick
  38114. Craig-Wood)
  38115. - Dropbox
  38116. - Fix retries of multipart uploads with incorrect_offset error
  38117. (Nick Craig-Wood)
  38118. - Google Cloud Storage
  38119. - Use the s3 pacer to speed up transactions (Nick Craig-Wood)
  38120. - pacer: Default the Google pacer to a burst of 100 to fix gcs
  38121. pacing (Nick Craig-Wood)
  38122. - Jottacloud
  38123. - Fix scope in token request (albertony)
  38124. - Netstorage
  38125. - Fix unescaped HTML in documentation (Nick Craig-Wood)
  38126. - Make levels of headings consistent (Nick Craig-Wood)
  38127. - Add support contacts to netstorage doc (Nil Alexandrov)
  38128. - Onedrive
  38129. - Note that sharepoint also changes web files (.html, .aspx) (GH)
  38130. - Putio
  38131. - Handle rate limit errors (Berkan Teber)
  38132. - Fix multithread download and other ranged requests (rafma0)
  38133. - S3
  38134. - Add ChinaMobile EOS to provider list (GuoXingbin)
  38135. - Sync providers in config description with providers (Nick
  38136. Craig-Wood)
  38137. - SFTP
  38138. - Fix OpenSSH 8.8+ RSA keys incompatibility (KARBOWSKI Piotr)
  38139. - Note that Scaleway C14 is deprecating SFTP in favor of S3
  38140. (Adrien Rey-Jarthon)
  38141. - Storj
  38142. - Fix bucket creation on Move (Nick Craig-Wood)
  38143. - WebDAV
  38144. - Don't override Referer if user sets it (Nick Craig-Wood)
  38145. v1.58.0 - 2022-03-18
  38146. See commits
  38147. - New backends
  38148. - Akamai Netstorage (Nil Alexandrov)
  38149. - Seagate Lyve, SeaweedFS, Storj, RackCorp via s3 backend
  38150. - Storj (renamed from Tardigrade - your old config files will
  38151. continue working)
  38152. - New commands
  38153. - bisync - experimental bidirectional cloud sync (Ivan Andreev,
  38154. Chris Nelson)
  38155. - New Features
  38156. - build
  38157. - Add windows/arm64 build (rclone mount not supported yet)
  38158. (Nick Craig-Wood)
  38159. - Raise minimum go version to go1.15 (Nick Craig-Wood)
  38160. - config: Allow dot in remote names and improve config editing
  38161. (albertony)
  38162. - dedupe: Add quit as a choice in interactive mode (albertony)
  38163. - dlna: Change icons to the newest ones. (Alain Nussbaumer)
  38164. - filter: Add {{ regexp }} syntax to pattern matches (Nick
  38165. Craig-Wood)
  38166. - fshttp: Add prometheus metrics for HTTP status code (Michał
  38167. Matczuk)
  38168. - hashsum: Support creating hash from data received on stdin
  38169. (albertony)
  38170. - librclone
  38171. - Allow empty string or null input instead of empty json
  38172. object (albertony)
  38173. - Add support for mount commands (albertony)
  38174. - operations: Add server-side moves to stats (Ole Frost)
  38175. - rc: Allow user to disable authentication for web gui (negative0)
  38176. - tree: Remove obsolete --human replaced by global
  38177. --human-readable (albertony)
  38178. - version: Report correct friendly-name for newer Windows 10/11
  38179. versions (albertony)
  38180. - Bug Fixes
  38181. - build
  38182. - Fix ARM architecture version in .deb packages after nfpm
  38183. change (Nick Craig-Wood)
  38184. - Hard fork github.com/jlaffaye/ftp to fix
  38185. go get github.com/rclone/rclone (Nick Craig-Wood)
  38186. - oauthutil: Fix crash when webbrowser requests /robots.txt (Nick
  38187. Craig-Wood)
  38188. - operations: Fix goroutine leak in case of copy retry (Ankur
  38189. Gupta)
  38190. - rc:
  38191. - Fix operations/publiclink default for expires parameter
  38192. (Nick Craig-Wood)
  38193. - Fix missing computation of transferQueueSize when summing up
  38194. statistics group (Carlo Mion)
  38195. - Fix missing StatsInfo fields in the computation of the group
  38196. sum (Carlo Mion)
  38197. - sync: Fix --max-duration so it doesn't retry when the duration
  38198. is exceeded (Nick Craig-Wood)
  38199. - touch: Fix issue where a directory is created instead of a file
  38200. (albertony)
  38201. - Mount
  38202. - Add --devname to set the device name sent to FUSE for mount
  38203. display (Nick Craig-Wood)
  38204. - VFS
  38205. - Add vfs/stats remote control to show statistics (Nick
  38206. Craig-Wood)
  38207. - Fix
  38208. failed to _ensure cache internal error: downloaders is nil error
  38209. (Nick Craig-Wood)
  38210. - Fix handling of special characters in file names (Bumsu Hyeon)
  38211. - Local
  38212. - Fix hash invalidation which caused errors with local crypt mount
  38213. (Nick Craig-Wood)
  38214. - Crypt
  38215. - Add base64 and base32768 filename encoding options (Max Sum,
  38216. Sinan Tan)
  38217. - Azure Blob
  38218. - Implement --azureblob-upload-concurrency parameter to speed
  38219. uploads (Nick Craig-Wood)
  38220. - Remove 100MB upper limit on chunk_size as it is no longer needed
  38221. (Nick Craig-Wood)
  38222. - Raise --azureblob-upload-concurrency to 16 by default (Nick
  38223. Craig-Wood)
  38224. - Fix crash with SAS URL and no container (Nick Craig-Wood)
  38225. - Compress
  38226. - Fix crash if metadata upload failed (Nick Craig-Wood)
  38227. - Fix memory leak (Nick Craig-Wood)
  38228. - Drive
  38229. - Added --drive-copy-shortcut-content (Abhiraj)
  38230. - Disable OAuth OOB flow (copy a token) due to Google deprecation
  38231. (Nick Craig-Wood)
  38232. - See the deprecation note.
  38233. - Add --drive-skip-dangling-shortcuts flag (Nick Craig-Wood)
  38234. - When using a link type --drive-export-formats shows all doc
  38235. types (Nick Craig-Wood)
  38236. - Dropbox
  38237. - Speed up directory listings by specifying 1000 items in a chunk
  38238. (Nick Craig-Wood)
  38239. - Save an API request when at the root (Nick Craig-Wood)
  38240. - Fichier
  38241. - Implemented About functionality (Gourav T)
  38242. - FTP
  38243. - Add --ftp-ask-password to prompt for password when needed (Borna
  38244. Butkovic)
  38245. - Google Cloud Storage
  38246. - Add missing regions (Nick Craig-Wood)
  38247. - Disable OAuth OOB flow (copy a token) due to Google deprecation
  38248. (Nick Craig-Wood)
  38249. - See the deprecation note.
  38250. - Googlephotos
  38251. - Disable OAuth OOB flow (copy a token) due to Google deprecation
  38252. (Nick Craig-Wood)
  38253. - See the deprecation note.
  38254. - Hasher
  38255. - Fix crash on object not found (Nick Craig-Wood)
  38256. - Hdfs
  38257. - Add file (Move) and directory move (DirMove) support (Andy
  38258. Jackson)
  38259. - HTTP
  38260. - Improved recognition of URL pointing to a single file
  38261. (albertony)
  38262. - Jottacloud
  38263. - Change API used by recursive list (ListR) (Kim)
  38264. - Add support for Tele2 Cloud (Fredric Arklid)
  38265. - Koofr
  38266. - Add Digistorage service as a Koofr provider. (jaKa)
  38267. - Mailru
  38268. - Fix int32 overflow on arm32 (Ivan Andreev)
  38269. - Onedrive
  38270. - Add config option for oauth scope Sites.Read.All (Charlie Jiang)
  38271. - Minor optimization of quickxorhash (Isaac Levy)
  38272. - Add --onedrive-root-folder-id flag (Nick Craig-Wood)
  38273. - Do not retry on 400 pathIsTooLong error (ctrl-q)
  38274. - Pcloud
  38275. - Add support for recursive list (ListR) (Niels van de Weem)
  38276. - Fix pre-1970 time stamps (Nick Craig-Wood)
  38277. - S3
  38278. - Use ListObjectsV2 for faster listings (Felix Bünemann)
  38279. - Fallback to ListObject v1 on unsupported providers (Nick
  38280. Craig-Wood)
  38281. - Use the ETag on multipart transfers to verify the transfer was
  38282. OK (Nick Craig-Wood)
  38283. - Add --s3-use-multipart-etag provider quirk to disable this
  38284. on unsupported providers (Nick Craig-Wood)
  38285. - New Providers
  38286. - RackCorp object storage (bbabich)
  38287. - Seagate Lyve Cloud storage (Nick Craig-Wood)
  38288. - SeaweedFS (Chris Lu)
  38289. - Storj Shared gateways (Márton Elek, Nick Craig-Wood)
  38290. - Add Wasabi AP Northeast 2 endpoint info (lindwurm)
  38291. - Add GLACIER_IR storage class (Yunhai Luo)
  38292. - Document Content-MD5 workaround for object-lock enabled buckets
  38293. (Paulo Martins)
  38294. - Fix multipart upload with --no-head flag (Nick Craig-Wood)
  38295. - Simplify content length processing in s3 with download url
  38296. (Logeshwaran Murugesan)
  38297. - SFTP
  38298. - Add rclone to list of supported md5sum/sha1sum commands to look
  38299. for (albertony)
  38300. - Refactor so we only have one way of running remote commands
  38301. (Nick Craig-Wood)
  38302. - Fix timeout on hashing large files by sending keepalives (Nick
  38303. Craig-Wood)
  38304. - Fix unnecessary seeking when uploading and downloading files
  38305. (Nick Craig-Wood)
  38306. - Update docs on how to create known_hosts file (Nick Craig-Wood)
  38307. - Storj
  38308. - Rename tardigrade backend to storj backend (Nick Craig-Wood)
  38309. - Implement server side Move for files (Nick Craig-Wood)
  38310. - Update docs to explain differences between s3 and this backend
  38311. (Elek, Márton)
  38312. - Swift
  38313. - Fix About so it shows info about the current container only
  38314. (Nick Craig-Wood)
  38315. - Union
  38316. - Fix treatment of remotes with // in (Nick Craig-Wood)
  38317. - Fix deadlock when one part of a multi-upload fails (Nick
  38318. Craig-Wood)
  38319. - Fix eplus policy returned nil (Vitor Arruda)
  38320. - Yandex
  38321. - Add permanent deletion support (deinferno)
  38322. v1.57.0 - 2021-11-01
  38323. See commits
  38324. - New backends
  38325. - Sia: for Sia decentralized cloud (Ian Levesque, Matthew Sevey,
  38326. Ivan Andreev)
  38327. - Hasher: caches hashes and enable hashes for backends that don't
  38328. support them (Ivan Andreev)
  38329. - New commands
  38330. - lsjson --stat: to get info about a single file/dir and
  38331. operations/stat api (Nick Craig-Wood)
  38332. - config paths: show configured paths (albertony)
  38333. - New Features
  38334. - about: Make human-readable output more consistent with other
  38335. commands (albertony)
  38336. - build
  38337. - Use go1.17 for building and make go1.14 the minimum
  38338. supported (Nick Craig-Wood)
  38339. - Update Go to 1.16 and NDK to 22b for Android builds (x0b)
  38340. - config
  38341. - Support hyphen in remote name from environment variable
  38342. (albertony)
  38343. - Make temporary directory user-configurable (albertony)
  38344. - Convert --cache-dir value to an absolute path (albertony)
  38345. - Do not override MIME types from OS defaults (albertony)
  38346. - docs
  38347. - Toc styling and header levels cleanup (albertony)
  38348. - Extend documentation on valid remote names (albertony)
  38349. - Mention make for building and cmount tag for macos (Alex
  38350. Chen)
  38351. - ...and many more contributions to numerous to mention!
  38352. - fs: Move with --ignore-existing will not delete skipped files
  38353. (Nathan Collins)
  38354. - hashsum
  38355. - Treat hash values in sum file as case insensitive (Ivan
  38356. Andreev)
  38357. - Don't put ERROR or UNSUPPORTED in output (Ivan Andreev)
  38358. - lib/encoder: Add encoding of square brackets (Ivan Andreev)
  38359. - lib/file: Improve error message when attempting to create dir on
  38360. nonexistent drive on windows (albertony)
  38361. - lib/http: Factor password hash salt into options with default
  38362. (Nolan Woods)
  38363. - lib/kv: Add key-value database api (Ivan Andreev)
  38364. - librclone
  38365. - Add RcloneFreeString function (albertony)
  38366. - Free strings in python example (albertony)
  38367. - log: Optionally print pid in logs (Ivan Andreev)
  38368. - ls: Introduce --human-readable global option to print
  38369. human-readable sizes (albertony)
  38370. - ncdu: Introduce key u to toggle human-readable (albertony)
  38371. - operations: Add rmdirs -v output (Justin Winokur)
  38372. - serve sftp
  38373. - Generate an ECDSA server key as well as RSA (Nick
  38374. Craig-Wood)
  38375. - Generate an Ed25519 server key as well as ECDSA and RSA
  38376. (albertony)
  38377. - serve docker
  38378. - Allow to customize proxy settings of docker plugin (Ivan
  38379. Andreev)
  38380. - Build docker plugin for multiple platforms (Thomas Stachl)
  38381. - size: Include human-readable count (albertony)
  38382. - touch: Add support for touching files in directory, with
  38383. recursive option, filtering and --dry-run/-i (albertony)
  38384. - tree: Option to print human-readable sizes removed in favor of
  38385. global option (albertony)
  38386. - Bug Fixes
  38387. - lib/http
  38388. - Fix bad username check in single auth secret provider (Nolan
  38389. Woods)
  38390. - Fix handling of SSL credentials (Nolan Woods)
  38391. - serve ftp: Ensure modtime is passed as UTC always to fix
  38392. timezone oddities (Nick Craig-Wood)
  38393. - serve sftp: Fix generation of server keys on windows (albertony)
  38394. - serve docker: Fix octal umask (Ivan Andreev)
  38395. - Mount
  38396. - Enable rclone to be run as mount helper direct from the fstab
  38397. (Ivan Andreev)
  38398. - Use procfs to validate mount on linux (Ivan Andreev)
  38399. - Correctly daemonize for compatibility with automount (Ivan
  38400. Andreev)
  38401. - VFS
  38402. - Ensure names used in cache path are legal on current OS
  38403. (albertony)
  38404. - Ignore ECLOSED when truncating file handles to fix intermittent
  38405. bad file descriptor error (Nick Craig-Wood)
  38406. - Local
  38407. - Refactor default OS encoding out from local backend into shared
  38408. encoder lib (albertony)
  38409. - Crypt
  38410. - Return wrapped object even with --crypt-no-data-encryption (Ivan
  38411. Andreev)
  38412. - Fix uploads with --crypt-no-data-encryption (Nick Craig-Wood)
  38413. - Azure Blob
  38414. - Add --azureblob-no-head-object (Tatsuya Noyori)
  38415. - Box
  38416. - Make listings of heavily used directories more reliable (Nick
  38417. Craig-Wood)
  38418. - When doing cleanup delete as much as possible (Nick Craig-Wood)
  38419. - Add --box-list-chunk to control listing chunk size (Nick
  38420. Craig-Wood)
  38421. - Delete items in parallel in cleanup using --checkers threads
  38422. (Nick Craig-Wood)
  38423. - Add --box-owned-by to only show items owned by the login passed
  38424. (Nick Craig-Wood)
  38425. - Retry operation_blocked_temporary errors (Nick Craig-Wood)
  38426. - Chunker
  38427. - Md5all must create metadata if base hash is slow (Ivan Andreev)
  38428. - Drive
  38429. - Speed up directory listings by constraining the API listing
  38430. using the current filters (fotile96, Ivan Andreev)
  38431. - Fix buffering for single request upload for files smaller than
  38432. --drive-upload-cutoff (YenForYang)
  38433. - Add -o config option to backend drives to make config for all
  38434. shared drives (Nick Craig-Wood)
  38435. - Dropbox
  38436. - Add --dropbox-batch-commit-timeout to control batch timeout
  38437. (Nick Craig-Wood)
  38438. - Filefabric
  38439. - Make backoff exponential for error_background to fix errors
  38440. (Nick Craig-Wood)
  38441. - Fix directory move after API change (Nick Craig-Wood)
  38442. - FTP
  38443. - Enable tls session cache by default (Ivan Andreev)
  38444. - Add option to disable tls13 (Ivan Andreev)
  38445. - Fix timeout after long uploads (Ivan Andreev)
  38446. - Add support for precise time (Ivan Andreev)
  38447. - Enable CI for ProFtpd, PureFtpd, VsFtpd (Ivan Andreev)
  38448. - Googlephotos
  38449. - Use encoder for album names to fix albums with control
  38450. characters (Parth Shukla)
  38451. - Jottacloud
  38452. - Implement SetModTime to support modtime-only changes (albertony)
  38453. - Improved error handling with SetModTime and corrupt files in
  38454. general (albertony)
  38455. - Add support for UserInfo (rclone config userinfo) feature
  38456. (albertony)
  38457. - Return direct download link from rclone link command (albertony)
  38458. - Koofr
  38459. - Create direct share link (Dmitry Bogatov)
  38460. - Pcloud
  38461. - Add sha256 support (Ken Enrique Morel)
  38462. - Premiumizeme
  38463. - Fix directory listing after API changes (Nick Craig-Wood)
  38464. - Fix server side move after API change (Nick Craig-Wood)
  38465. - Fix server side directory move after API changes (Nick
  38466. Craig-Wood)
  38467. - S3
  38468. - Add support to use CDN URL to download the file (Logeshwaran)
  38469. - Add AWS Snowball Edge to providers examples (r0kk3rz)
  38470. - Use a combination of SDK retries and rclone retries (Nick
  38471. Craig-Wood)
  38472. - Fix IAM Role for Service Account not working and other auth
  38473. problems (Nick Craig-Wood)
  38474. - Fix shared_credentials_file auth after reverting incorrect fix
  38475. (Nick Craig-Wood)
  38476. - Fix corrupted on transfer: sizes differ 0 vs xxxx with Ceph
  38477. (Nick Craig-Wood)
  38478. - Seafile
  38479. - Fix error when not configured for 2fa (Fred)
  38480. - SFTP
  38481. - Fix timeout when doing MD5SUM of large file (Nick Craig-Wood)
  38482. - Swift
  38483. - Update OCI URL (David Liu)
  38484. - Document OVH Cloud Archive (HNGamingUK)
  38485. - Union
  38486. - Fix rename not working with union of local disk and bucket based
  38487. remote (Nick Craig-Wood)
  38488. v1.56.2 - 2021-10-01
  38489. See commits
  38490. - Bug Fixes
  38491. - serve http: Re-add missing auth to http service (Nolan Woods)
  38492. - build: Update golang.org/x/sys to fix crash on macOS when
  38493. compiled with go1.17 (Herby Gillot)
  38494. - FTP
  38495. - Fix deadlock after failed update when concurrency=1 (Ivan
  38496. Andreev)
  38497. v1.56.1 - 2021-09-19
  38498. See commits
  38499. - Bug Fixes
  38500. - accounting: Fix maximum bwlimit by scaling scale max token
  38501. bucket size (Nick Craig-Wood)
  38502. - rc: Fix speed does not update in core/stats (negative0)
  38503. - selfupdate: Fix --quiet option, not quite quiet (yedamo)
  38504. - serve http: Fix serve http exiting directly after starting
  38505. (Cnly)
  38506. - build
  38507. - Apply gofmt from golang 1.17 (Ivan Andreev)
  38508. - Update Go to 1.16 and NDK to 22b for android/any (x0b)
  38509. - Mount
  38510. - Fix --daemon mode (Ivan Andreev)
  38511. - VFS
  38512. - Fix duplicates on rename (Nick Craig-Wood)
  38513. - Fix crash when truncating a just uploaded object (Nick
  38514. Craig-Wood)
  38515. - Fix issue where empty dirs would build up in cache meta dir
  38516. (albertony)
  38517. - Drive
  38518. - Fix instructions for auto config (Greg Sadetsky)
  38519. - Fix lsf example without drive-impersonate (Greg Sadetsky)
  38520. - Onedrive
  38521. - Handle HTTP 400 better in PublicLink (Alex Chen)
  38522. - Clarification of the process for creating custom client_id
  38523. (Mariano Absatz)
  38524. - Pcloud
  38525. - Return an early error when Put is called with an unknown size
  38526. (Nick Craig-Wood)
  38527. - Try harder to delete a failed upload (Nick Craig-Wood)
  38528. - S3
  38529. - Add Wasabi's AP-Northeast endpoint info (hota)
  38530. - Fix typo in s3 documentation (Greg Sadetsky)
  38531. - Seafile
  38532. - Fix 2fa config state machine (Fred)
  38533. - SFTP
  38534. - Remove spurious error message on --sftp-disable-concurrent-reads
  38535. (Nick Craig-Wood)
  38536. - Sugarsync
  38537. - Fix initial connection after config re-arrangement (Nick
  38538. Craig-Wood)
  38539. v1.56.0 - 2021-07-20
  38540. See commits
  38541. - New backends
  38542. - Uptobox (buengese)
  38543. - New commands
  38544. - serve docker (Antoine GIRARD) (Ivan Andreev)
  38545. - and accompanying docker volume plugin
  38546. - checksum to check files against a file of checksums (Ivan
  38547. Andreev)
  38548. - this is also available as rclone md5sum -C etc
  38549. - config touch: ensure config exists at configured location
  38550. (albertony)
  38551. - test changenotify: command to help debugging changenotify (Nick
  38552. Craig-Wood)
  38553. - Deprecations
  38554. - dbhashsum: Remove command deprecated a year ago (Ivan Andreev)
  38555. - cache: Deprecate cache backend (Ivan Andreev)
  38556. - New Features
  38557. - rework config system so it can be used non-interactively via cli
  38558. and rc API.
  38559. - See docs in config create
  38560. - This is a very big change to all the backends so may cause
  38561. breakages - please file bugs!
  38562. - librclone - export the rclone RC as a C library (lewisxy) (Nick
  38563. Craig-Wood)
  38564. - Link a C-API rclone shared object into your project
  38565. - Use the RC as an in memory interface
  38566. - Python example supplied
  38567. - Also supports Android and gomobile
  38568. - fs
  38569. - Add --disable-http2 for global http2 disable (Nick
  38570. Craig-Wood)
  38571. - Make --dump imply -vv (Alex Chen)
  38572. - Use binary prefixes for size and rate units (albertony)
  38573. - Use decimal prefixes for counts (albertony)
  38574. - Add google search widget to rclone.org (Ivan Andreev)
  38575. - accounting: Calculate rolling average speed (Haochen Tong)
  38576. - atexit: Terminate with non-zero status after receiving signal
  38577. (Michael Hanselmann)
  38578. - build
  38579. - Only run event-based workflow scripts under rclone repo with
  38580. manual override (Mathieu Carbou)
  38581. - Add Android build with gomobile (x0b)
  38582. - check: Log the hash in use like cryptcheck does (Nick
  38583. Craig-Wood)
  38584. - version: Print os/version, kernel and bitness (Ivan Andreev)
  38585. - config
  38586. - Prevent use of Windows reserved names in config file name
  38587. (albertony)
  38588. - Create config file in windows appdata directory by default
  38589. (albertony)
  38590. - Treat any config file paths with filename notfound as
  38591. memory-only config (albertony)
  38592. - Delay load config file (albertony)
  38593. - Replace defaultConfig with a thread-safe in-memory
  38594. implementation (Chris Macklin)
  38595. - Allow config create and friends to take key=value parameters
  38596. (Nick Craig-Wood)
  38597. - Fixed issues with flags/options set by environment vars.
  38598. (Ole Frost)
  38599. - fshttp: Implement graceful DSCP error handling (Tyson Moore)
  38600. - lib/http - provides an abstraction for a central http server
  38601. that services can bind routes to (Nolan Woods)
  38602. - Add --template config and flags to serve/data (Nolan Woods)
  38603. - Add default 404 handler (Nolan Woods)
  38604. - link: Use "off" value for unset expiry (Nick Craig-Wood)
  38605. - oauthutil: Raise fatal error if token expired without refresh
  38606. token (Alex Chen)
  38607. - rcat: Add --size flag for more efficient uploads of known size
  38608. (Nazar Mishturak)
  38609. - serve sftp: Add --stdio flag to serve via stdio (Tom)
  38610. - sync: Don't warn about --no-traverse when --files-from is set
  38611. (Nick Gaya)
  38612. - test makefiles
  38613. - Add --seed flag and make data generated repeatable (Nick
  38614. Craig-Wood)
  38615. - Add log levels and speed summary (Nick Craig-Wood)
  38616. - Bug Fixes
  38617. - accounting: Fix startTime of statsGroups.sum (Haochen Tong)
  38618. - cmd/ncdu: Fix out of range panic in delete (buengese)
  38619. - config
  38620. - Fix issues with memory-only config file paths (albertony)
  38621. - Fix in memory config not saving on the fly backend config
  38622. (Nick Craig-Wood)
  38623. - fshttp: Fix address parsing for DSCP (Tyson Moore)
  38624. - ncdu: Update termbox-go library to fix crash (Nick Craig-Wood)
  38625. - oauthutil: Fix old authorize result not recognised (Cnly)
  38626. - operations: Don't update timestamps of files in --compare-dest
  38627. (Nick Gaya)
  38628. - selfupdate: fix archive name on macos (Ivan Andreev)
  38629. - Mount
  38630. - Refactor before adding serve docker (Antoine GIRARD)
  38631. - VFS
  38632. - Add cache reset for --vfs-cache-max-size handling at cache poll
  38633. interval (Leo Luan)
  38634. - Fix modtime changing when reading file into cache (Nick
  38635. Craig-Wood)
  38636. - Avoid unnecessary subdir in cache path (albertony)
  38637. - Fix that umask option cannot be set as environment variable
  38638. (albertony)
  38639. - Do not print notice about missing poll-interval support when set
  38640. to 0 (albertony)
  38641. - Local
  38642. - Always use readlink to read symlink size for better
  38643. compatibility (Nick Craig-Wood)
  38644. - Add --local-unicode-normalization (and remove
  38645. --local-no-unicode-normalization) (Nick Craig-Wood)
  38646. - Skip entries removed concurrently with List() (Ivan Andreev)
  38647. - Crypt
  38648. - Support timestamped filenames from --b2-versions (Dominik
  38649. Mydlil)
  38650. - B2
  38651. - Don't include the bucket name in public link file prefixes
  38652. (Jeffrey Tolar)
  38653. - Fix versions and .files with no extension (Nick Craig-Wood)
  38654. - Factor version handling into lib/version (Dominik Mydlil)
  38655. - Box
  38656. - Use upload preflight check to avoid listings in file uploads
  38657. (Nick Craig-Wood)
  38658. - Return errors instead of calling log.Fatal with them (Nick
  38659. Craig-Wood)
  38660. - Drive
  38661. - Switch to the Drives API for looking up shared drives (Nick
  38662. Craig-Wood)
  38663. - Fix some google docs being treated as files (Nick Craig-Wood)
  38664. - Dropbox
  38665. - Add --dropbox-batch-mode flag to speed up uploading (Nick
  38666. Craig-Wood)
  38667. - Read the batch mode docs for more info
  38668. - Set visibility in link sharing when --expire is set (Nick
  38669. Craig-Wood)
  38670. - Simplify chunked uploads (Alexey Ivanov)
  38671. - Improve "own App IP" instructions (Ivan Andreev)
  38672. - Fichier
  38673. - Check if more than one upload link is returned (Nick Craig-Wood)
  38674. - Support downloading password protected files and folders
  38675. (Florian Penzkofer)
  38676. - Make error messages report text from the API (Nick Craig-Wood)
  38677. - Fix move of files in the same directory (Nick Craig-Wood)
  38678. - Check that we actually got a download token and retry if we
  38679. didn't (buengese)
  38680. - Filefabric
  38681. - Fix listing after change of from field from "int" to int. (Nick
  38682. Craig-Wood)
  38683. - FTP
  38684. - Make upload error 250 indicate success (Nick Craig-Wood)
  38685. - GCS
  38686. - Make compatible with gsutil's mtime metadata (database64128)
  38687. - Clean up time format constants (database64128)
  38688. - Google Photos
  38689. - Fix read only scope not being used properly (Nick Craig-Wood)
  38690. - HTTP
  38691. - Replace httplib with lib/http (Nolan Woods)
  38692. - Clean up Bind to better use middleware (Nolan Woods)
  38693. - Jottacloud
  38694. - Fix legacy auth with state based config system (buengese)
  38695. - Fix invalid url in output from link command (albertony)
  38696. - Add no versions option (buengese)
  38697. - Onedrive
  38698. - Add list_chunk option (Nick Gaya)
  38699. - Also report root error if unable to cancel multipart upload
  38700. (Cnly)
  38701. - Fix failed to configure: empty token found error (Nick
  38702. Craig-Wood)
  38703. - Make link return direct download link (Xuanchen Wu)
  38704. - S3
  38705. - Add --s3-no-head-object (Tatsuya Noyori)
  38706. - Remove WebIdentityRoleProvider to fix crash on auth (Nick
  38707. Craig-Wood)
  38708. - Don't check to see if remote is object if it ends with / (Nick
  38709. Craig-Wood)
  38710. - Add SeaweedFS (Chris Lu)
  38711. - Update Alibaba OSS endpoints (Chuan Zh)
  38712. - SFTP
  38713. - Fix performance regression by re-enabling concurrent writes
  38714. (Nick Craig-Wood)
  38715. - Expand tilde and environment variables in configured
  38716. known_hosts_file (albertony)
  38717. - Tardigrade
  38718. - Upgrade to uplink v1.4.6 (Caleb Case)
  38719. - Use negative offset (Caleb Case)
  38720. - Add warning about too many open files (acsfer)
  38721. - WebDAV
  38722. - Fix sharepoint auth over http (Nick Craig-Wood)
  38723. - Add headers option (Antoon Prins)
  38724. v1.55.1 - 2021-04-26
  38725. See commits
  38726. - Bug Fixes
  38727. - selfupdate
  38728. - Dont detect FUSE if build is static (Ivan Andreev)
  38729. - Add build tag noselfupdate (Ivan Andreev)
  38730. - sync: Fix incorrect error reported by graceful cutoff (Nick
  38731. Craig-Wood)
  38732. - install.sh: fix macOS arm64 download (Nick Craig-Wood)
  38733. - build: Fix version numbers in android branch builds (Nick
  38734. Craig-Wood)
  38735. - docs
  38736. - Contributing.md: update setup instructions for go1.16 (Nick
  38737. Gaya)
  38738. - WinFsp 2021 is out of beta (albertony)
  38739. - Minor cleanup of space around code section (albertony)
  38740. - Fixed some typos (albertony)
  38741. - VFS
  38742. - Fix a code path which allows dirty data to be removed causing
  38743. data loss (Nick Craig-Wood)
  38744. - Compress
  38745. - Fix compressed name regexp (buengese)
  38746. - Drive
  38747. - Fix backend copyid of google doc to directory (Nick Craig-Wood)
  38748. - Don't open browser when service account... (Ansh Mittal)
  38749. - Dropbox
  38750. - Add missing team_data.member scope for use with --impersonate
  38751. (Nick Craig-Wood)
  38752. - Fix About after scopes changes - rclone config reconnect needed
  38753. (Nick Craig-Wood)
  38754. - Fix Unable to decrypt returned paths from changeNotify (Nick
  38755. Craig-Wood)
  38756. - FTP
  38757. - Fix implicit TLS (Ivan Andreev)
  38758. - Onedrive
  38759. - Work around for random "Unable to initialize RPS" errors
  38760. (OleFrost)
  38761. - SFTP
  38762. - Revert sftp library to v1.12.0 from v1.13.0 to fix performance
  38763. regression (Nick Craig-Wood)
  38764. - Fix Update ReadFrom failed: failed to send packet: EOF errors
  38765. (Nick Craig-Wood)
  38766. - Zoho
  38767. - Fix error when region isn't set (buengese)
  38768. - Do not ask for mountpoint twice when using headless setup
  38769. (buengese)
  38770. v1.55.0 - 2021-03-31
  38771. See commits
  38772. - New commands
  38773. - selfupdate (Ivan Andreev)
  38774. - Allows rclone to update itself in-place or via a package
  38775. (using --package flag)
  38776. - Reads cryptographically signed signatures for non beta
  38777. releases
  38778. - Works on all OSes.
  38779. - test - these are test commands - use with care!
  38780. - histogram - Makes a histogram of file name characters.
  38781. - info - Discovers file name or other limitations for paths.
  38782. - makefiles - Make a random file hierarchy for testing.
  38783. - memory - Load all the objects at remote:path into memory and
  38784. report memory stats.
  38785. - New Features
  38786. - Connection strings
  38787. - Config parameters can now be passed as part of the remote
  38788. name as a connection string.
  38789. - For example, to do the equivalent of --drive-shared-with-me
  38790. use drive,shared_with_me:
  38791. - Make sure we don't save on the fly remote config to the
  38792. config file (Nick Craig-Wood)
  38793. - Make sure backends with additional config have a different
  38794. name for caching (Nick Craig-Wood)
  38795. - This work was sponsored by CERN, through the CS3MESH4EOSC
  38796. Project.
  38797. - CS3MESH4EOSC has received funding from the European
  38798. Union’s Horizon 2020
  38799. - research and innovation programme under Grant Agreement
  38800. no. 863353.
  38801. - build
  38802. - Update go build version to go1.16 and raise minimum go
  38803. version to go1.13 (Nick Craig-Wood)
  38804. - Make a macOS ARM64 build to support Apple Silicon (Nick
  38805. Craig-Wood)
  38806. - Install macfuse 4.x instead of osxfuse 3.x (Nick Craig-Wood)
  38807. - Use GO386=softfloat instead of deprecated GO386=387 for 386
  38808. builds (Nick Craig-Wood)
  38809. - Disable IOS builds for the time being (Nick Craig-Wood)
  38810. - Androids builds made with up to date NDK (x0b)
  38811. - Add an rclone user to the Docker image but don't use it by
  38812. default (cynthia kwok)
  38813. - dedupe: Make largest directory primary to minimize data moved
  38814. (Saksham Khanna)
  38815. - config
  38816. - Wrap config library in an interface (Fionera)
  38817. - Make config file system pluggable (Nick Craig-Wood)
  38818. - --config "" or "/notfound" for in memory config only (Nick
  38819. Craig-Wood)
  38820. - Clear fs cache of stale entries when altering config (Nick
  38821. Craig-Wood)
  38822. - copyurl: Add option to print resulting auto-filename (albertony)
  38823. - delete: Make --rmdirs obey the filters (Nick Craig-Wood)
  38824. - docs - many fixes and reworks from edwardxml, albertony, pvalls,
  38825. Ivan Andreev, Evan Harris, buengese, Alexey Tabakman
  38826. - encoder/filename - add SCSU as tables (Klaus Post)
  38827. - Add multiple paths support to --compare-dest and --copy-dest
  38828. flag (K265)
  38829. - filter: Make --exclude "dir/" equivalent to --exclude "dir/**"
  38830. (Nick Craig-Wood)
  38831. - fshttp: Add DSCP support with --dscp for QoS with differentiated
  38832. services (Max Sum)
  38833. - lib/cache: Add Delete and DeletePrefix methods (Nick Craig-Wood)
  38834. - lib/file
  38835. - Make pre-allocate detect disk full errors and return them
  38836. (Nick Craig-Wood)
  38837. - Don't run preallocate concurrently (Nick Craig-Wood)
  38838. - Retry preallocate on EINTR (Nick Craig-Wood)
  38839. - operations: Made copy and sync operations obey a RetryAfterError
  38840. (Ankur Gupta)
  38841. - rc
  38842. - Add string alternatives for setting options over the rc
  38843. (Nick Craig-Wood)
  38844. - Add options/local to see the options configured in the
  38845. context (Nick Craig-Wood)
  38846. - Add _config parameter to set global config for just this rc
  38847. call (Nick Craig-Wood)
  38848. - Implement passing filter config with _filter parameter (Nick
  38849. Craig-Wood)
  38850. - Add fscache/clear and fscache/entries to control the fs
  38851. cache (Nick Craig-Wood)
  38852. - Avoid +Inf value for speed in core/stats (albertony)
  38853. - Add a full set of stats to core/stats (Nick Craig-Wood)
  38854. - Allow fs= params to be a JSON blob (Nick Craig-Wood)
  38855. - rcd: Added systemd notification during the rclone rcd command.
  38856. (Naveen Honest Raj)
  38857. - rmdirs: Make --rmdirs obey the filters (Nick Craig-Wood)
  38858. - version: Show build tags and type of executable (Ivan Andreev)
  38859. - Bug Fixes
  38860. - install.sh: make it fail on download errors (Ivan Andreev)
  38861. - Fix excessive retries missing --max-duration timeout (Nick
  38862. Craig-Wood)
  38863. - Fix crash when --low-level-retries=0 (Nick Craig-Wood)
  38864. - Fix failed token refresh on mounts created via the rc (Nick
  38865. Craig-Wood)
  38866. - fshttp: Fix bandwidth limiting after bad merge (Nick Craig-Wood)
  38867. - lib/atexit
  38868. - Unregister interrupt handler once it has fired so users can
  38869. interrupt again (Nick Craig-Wood)
  38870. - Fix occasional failure to unmount with CTRL-C (Nick
  38871. Craig-Wood)
  38872. - Fix deadlock calling Finalise while Run is running (Nick
  38873. Craig-Wood)
  38874. - lib/rest: Fix multipart uploads not stopping on context cancel
  38875. (Nick Craig-Wood)
  38876. - Mount
  38877. - Allow mounting to root directory on windows (albertony)
  38878. - Improved handling of relative paths on windows (albertony)
  38879. - Fix unicode issues with accented characters on macOS (Nick
  38880. Craig-Wood)
  38881. - Docs: document the new FileSecurity option in WinFsp 2021
  38882. (albertony)
  38883. - Docs: add note about volume path syntax on windows (albertony)
  38884. - Fix caching of old directories after renaming them (Nick
  38885. Craig-Wood)
  38886. - Update cgofuse to the latest version to bring in macfuse 4 fix
  38887. (Nick Craig-Wood)
  38888. - VFS
  38889. - --vfs-used-is-size to report used space using recursive scan
  38890. (tYYGH)
  38891. - Don't set modification time if it was already correct (Nick
  38892. Craig-Wood)
  38893. - Fix Create causing windows explorer to truncate files on CTRL-C
  38894. CTRL-V (Nick Craig-Wood)
  38895. - Fix modtimes not updating when writing via cache (Nick
  38896. Craig-Wood)
  38897. - Fix modtimes changing by fractional seconds after upload (Nick
  38898. Craig-Wood)
  38899. - Fix modtime set if --vfs-cache-mode writes/full and no write
  38900. (Nick Craig-Wood)
  38901. - Rename files in cache and cancel uploads on directory rename
  38902. (Nick Craig-Wood)
  38903. - Fix directory renaming by renaming dirs cached in memory (Nick
  38904. Craig-Wood)
  38905. - Local
  38906. - Add flag --local-no-preallocate (David Sze)
  38907. - Make nounc an advanced option except on Windows (albertony)
  38908. - Don't ignore preallocate disk full errors (Nick Craig-Wood)
  38909. - Cache
  38910. - Add --fs-cache-expire-duration to control the fs cache (Nick
  38911. Craig-Wood)
  38912. - Crypt
  38913. - Add option to not encrypt data (Vesnyx)
  38914. - Log hash ok on upload (albertony)
  38915. - Azure Blob
  38916. - Add container public access level support. (Manish Kumar)
  38917. - B2
  38918. - Fix HTML files downloaded via cloudflare (Nick Craig-Wood)
  38919. - Box
  38920. - Fix transfers getting stuck on token expiry after API change
  38921. (Nick Craig-Wood)
  38922. - Chunker
  38923. - Partially implement no-rename transactions (Maxwell Calman)
  38924. - Drive
  38925. - Don't stop server side copy if couldn't read description (Nick
  38926. Craig-Wood)
  38927. - Pass context on to drive SDK - to help with cancellation (Nick
  38928. Craig-Wood)
  38929. - Dropbox
  38930. - Add polling for changes support (Robert Thomas)
  38931. - Make --timeout 0 work properly (Nick Craig-Wood)
  38932. - Raise priority of rate limited message to INFO to make it more
  38933. noticeable (Nick Craig-Wood)
  38934. - Fichier
  38935. - Implement copy & move (buengese)
  38936. - Implement public link (buengese)
  38937. - FTP
  38938. - Implement Shutdown method (Nick Craig-Wood)
  38939. - Close idle connections after --ftp-idle-timeout (1m by default)
  38940. (Nick Craig-Wood)
  38941. - Make --timeout 0 work properly (Nick Craig-Wood)
  38942. - Add --ftp-close-timeout flag for use with awkward ftp servers
  38943. (Nick Craig-Wood)
  38944. - Retry connections and logins on 421 errors (Nick Craig-Wood)
  38945. - Hdfs
  38946. - Fix permissions for when directory is created (Lucas Messenger)
  38947. - Onedrive
  38948. - Make --timeout 0 work properly (Nick Craig-Wood)
  38949. - S3
  38950. - Fix --s3-profile which wasn't working (Nick Craig-Wood)
  38951. - SFTP
  38952. - Close idle connections after --sftp-idle-timeout (1m by default)
  38953. (Nick Craig-Wood)
  38954. - Fix "file not found" errors for read once servers (Nick
  38955. Craig-Wood)
  38956. - Fix SetModTime stat failed: object not found with
  38957. --sftp-set-modtime=false (Nick Craig-Wood)
  38958. - Swift
  38959. - Update github.com/ncw/swift to v2.0.0 (Nick Craig-Wood)
  38960. - Implement copying large objects (nguyenhuuluan434)
  38961. - Union
  38962. - Fix crash when using epff policy (Nick Craig-Wood)
  38963. - Fix union attempting to update files on a read only file system
  38964. (Nick Craig-Wood)
  38965. - Refactor to use fspath.SplitFs instead of fs.ParseRemote (Nick
  38966. Craig-Wood)
  38967. - Fix initialisation broken in refactor (Nick Craig-Wood)
  38968. - WebDAV
  38969. - Add support for sharepoint with NTLM authentication (Rauno Ots)
  38970. - Make sharepoint-ntlm docs more consistent (Alex Chen)
  38971. - Improve terminology in sharepoint-ntlm docs (Ivan Andreev)
  38972. - Disable HTTP/2 for NTLM authentication (georne)
  38973. - Fix sharepoint-ntlm error 401 for parallel actions (Ivan
  38974. Andreev)
  38975. - Check that purged directory really exists (Ivan Andreev)
  38976. - Yandex
  38977. - Make --timeout 0 work properly (Nick Craig-Wood)
  38978. - Zoho
  38979. - Replace client id - you will need to rclone config reconnect
  38980. after this (buengese)
  38981. - Add forgotten setupRegion() to NewFs - this finally fixes
  38982. regions other than EU (buengese)
  38983. v1.54.1 - 2021-03-08
  38984. See commits
  38985. - Bug Fixes
  38986. - accounting: Fix --bwlimit when up or down is off (Nick
  38987. Craig-Wood)
  38988. - docs
  38989. - Fix nesting of brackets and backticks in ftp docs
  38990. (edwardxml)
  38991. - Fix broken link in sftp page (edwardxml)
  38992. - Fix typo in crypt.md (Romeo Kienzler)
  38993. - Changelog: Correct link to digitalis.io (Alex JOST)
  38994. - Replace #file-caching with #vfs-file-caching (Miron
  38995. Veryanskiy)
  38996. - Convert bogus example link to code (edwardxml)
  38997. - Remove dead link from rc.md (edwardxml)
  38998. - rc: Sync,copy,move: document createEmptySrcDirs parameter (Nick
  38999. Craig-Wood)
  39000. - lsjson: Fix unterminated JSON in the presence of errors (Nick
  39001. Craig-Wood)
  39002. - Mount
  39003. - Fix mount dropping on macOS by setting --daemon-timeout 10m
  39004. (Nick Craig-Wood)
  39005. - VFS
  39006. - Document simultaneous usage with the same cache shouldn't be
  39007. used (Nick Craig-Wood)
  39008. - B2
  39009. - Automatically raise upload cutoff to avoid spurious error (Nick
  39010. Craig-Wood)
  39011. - Fix failed to create file system with application key limited to
  39012. a prefix (Nick Craig-Wood)
  39013. - Drive
  39014. - Refer to Shared Drives instead of Team Drives (Nick Craig-Wood)
  39015. - Dropbox
  39016. - Add scopes to oauth request and optionally "members.read" (Nick
  39017. Craig-Wood)
  39018. - S3
  39019. - Fix failed to create file system with folder level permissions
  39020. policy (Nick Craig-Wood)
  39021. - Fix Wasabi HEAD requests returning stale data by using only 1
  39022. transport (Nick Craig-Wood)
  39023. - Fix shared_credentials_file auth (Dmitry Chepurovskiy)
  39024. - Add --s3-no-head to reducing costs docs (Nick Craig-Wood)
  39025. - Union
  39026. - Fix mkdir at root with remote:/ (Nick Craig-Wood)
  39027. - Zoho
  39028. - Fix custom client id's (buengese)
  39029. v1.54.0 - 2021-02-02
  39030. See commits
  39031. - New backends
  39032. - Compression remote (experimental) (buengese)
  39033. - Enterprise File Fabric (Nick Craig-Wood)
  39034. - This work was sponsored by Storage Made Easy
  39035. - HDFS (Hadoop Distributed File System) (Yury Stankevich)
  39036. - Zoho workdrive (buengese)
  39037. - New Features
  39038. - Deglobalise the config (Nick Craig-Wood)
  39039. - Global config now read from the context
  39040. - This will enable passing of global config via the rc
  39041. - This work was sponsored by Digitalis
  39042. - Add --bwlimit for upload and download (Nick Craig-Wood)
  39043. - Obey bwlimit in http Transport for better limiting
  39044. - Enhance systemd integration (Hekmon)
  39045. - log level identification, manual activation with flag,
  39046. automatic systemd launch detection
  39047. - Don't compile systemd log integration for non unix systems
  39048. (Benjamin Gustin)
  39049. - Add a --download flag to md5sum/sha1sum/hashsum to force rclone
  39050. to download and hash files locally (lostheli)
  39051. - Add --progress-terminal-title to print ETA to terminal title
  39052. (LaSombra)
  39053. - Make backend env vars show in help as the defaults for backend
  39054. flags (Nick Craig-Wood)
  39055. - build
  39056. - Raise minimum go version to go1.12 (Nick Craig-Wood)
  39057. - dedupe
  39058. - Add --by-hash to dedupe on content hash not file name (Nick
  39059. Craig-Wood)
  39060. - Add --dedupe-mode list to just list dupes, changing nothing
  39061. (Nick Craig-Wood)
  39062. - Add warning if used on a remote which can't have duplicate
  39063. names (Nick Craig-Wood)
  39064. - fs
  39065. - Add Shutdown optional method for backends (Nick Craig-Wood)
  39066. - When using --files-from check files concurrently (zhucan)
  39067. - Accumulate stats when using --dry-run (Ingo Weiss)
  39068. - Always show stats when using --dry-run or --interactive
  39069. (Nick Craig-Wood)
  39070. - Add support for flag --no-console on windows to hide the
  39071. console window (albertony)
  39072. - genautocomplete: Add support to output to stdout (Ingo)
  39073. - ncdu
  39074. - Highlight read errors instead of aborting (Claudio
  39075. Bantaloukas)
  39076. - Add sort by average size in directory (Adam Plánský)
  39077. - Add toggle option for average s3ize in directory - key 'a'
  39078. (Adam Plánský)
  39079. - Add empty folder flag into ncdu browser (Adam Plánský)
  39080. - Add ! (error) and . (unreadable) file flags to go with e
  39081. (empty) (Nick Craig-Wood)
  39082. - obscure: Make rclone obscure - ignore newline at end of line
  39083. (Nick Craig-Wood)
  39084. - operations
  39085. - Add logs when need to upload files to set mod times (Nick
  39086. Craig-Wood)
  39087. - Move and copy log name of the destination object in verbose
  39088. (Adam Plánský)
  39089. - Add size if known to skipped items and JSON log (Nick
  39090. Craig-Wood)
  39091. - rc
  39092. - Prefer actual listener address if using ":port" or "addr:0"
  39093. only (Nick Craig-Wood)
  39094. - Add listener for finished jobs (Aleksandar Jankovic)
  39095. - serve ftp: Add options to enable TLS (Deepak Sah)
  39096. - serve http/webdav: Redirect requests to the base url without the
  39097. / (Nick Craig-Wood)
  39098. - serve restic: Implement object cache (Nick Craig-Wood)
  39099. - stats: Add counter for deleted directories (Nick Craig-Wood)
  39100. - sync: Only print "There was nothing to transfer" if no errors
  39101. (Nick Craig-Wood)
  39102. - webui
  39103. - Prompt user for updating webui if an update is available
  39104. (Chaitanya Bankanhal)
  39105. - Fix plugins initialization (negative0)
  39106. - Bug Fixes
  39107. - fs
  39108. - Fix nil pointer on copy & move operations directly to remote
  39109. (Anagh Kumar Baranwal)
  39110. - Fix parsing of .. when joining remotes (Nick Craig-Wood)
  39111. - log: Fix enabling systemd logging when using --log-file (Nick
  39112. Craig-Wood)
  39113. - check
  39114. - Make the error count match up in the log message (Nick
  39115. Craig-Wood)
  39116. - move: Fix data loss when source and destination are the same
  39117. object (Nick Craig-Wood)
  39118. - operations
  39119. - Fix --cutoff-mode hard not cutting off immediately (Nick
  39120. Craig-Wood)
  39121. - Fix --immutable error message (Nick Craig-Wood)
  39122. - sync
  39123. - Fix --cutoff-mode soft & cautious so it doesn't end the
  39124. transfer early (Nick Craig-Wood)
  39125. - Fix --immutable errors retrying many times (Nick Craig-Wood)
  39126. - Docs
  39127. - Many fixes and a rewrite of the filtering docs (edwardxml)
  39128. - Many spelling and grammar fixes (Josh Soref)
  39129. - Doc fixes for commands delete, purge, rmdir, rmdirs and mount
  39130. (albertony)
  39131. - And thanks to these people for many doc fixes too numerous to
  39132. list
  39133. - Ameer Dawood, Antoine GIRARD, Bob Bagwill, Christopher
  39134. Stewart
  39135. - CokeMine, David, Dov Murik, Durval Menezes, Evan Harris,
  39136. gtorelly
  39137. - Ilyess Bachiri, Janne Johansson, Kerry Su, Marcin Zelent,
  39138. - Martin Michlmayr, Milly, Sơn Trần-Nguyễn
  39139. - Mount
  39140. - Update systemd status with cache stats (Hekmon)
  39141. - Disable bazil/fuse based mount on macOS (Nick Craig-Wood)
  39142. - Make rclone mount actually run rclone cmount under macOS
  39143. (Nick Craig-Wood)
  39144. - Implement mknod to make NFS file creation work (Nick Craig-Wood)
  39145. - Make sure we don't call umount more than once (Nick Craig-Wood)
  39146. - More user friendly mounting as network drive on windows
  39147. (albertony)
  39148. - Detect if uid or gid are set in same option string: -o
  39149. uid=123,gid=456 (albertony)
  39150. - Don't attempt to unmount if fs has been destroyed already (Nick
  39151. Craig-Wood)
  39152. - VFS
  39153. - Fix virtual entries causing deleted files to still appear (Nick
  39154. Craig-Wood)
  39155. - Fix "file already exists" error for stale cache files (Nick
  39156. Craig-Wood)
  39157. - Fix file leaks with --vfs-cache-mode full and --buffer-size 0
  39158. (Nick Craig-Wood)
  39159. - Fix invalid cache path on windows when using :backend: as remote
  39160. (albertony)
  39161. - Local
  39162. - Continue listing files/folders when a circular symlink is
  39163. detected (Manish Gupta)
  39164. - New flag --local-zero-size-links to fix sync on some virtual
  39165. filesystems (Riccardo Iaconelli)
  39166. - Azure Blob
  39167. - Add support for service principals (James Lim)
  39168. - Add support for managed identities (Brad Ackerman)
  39169. - Add examples for access tier (Bob Pusateri)
  39170. - Utilize the streaming capabilities from the SDK for multipart
  39171. uploads (Denis Neuling)
  39172. - Fix setting of mime types (Nick Craig-Wood)
  39173. - Fix crash when listing outside a SAS URL's root (Nick
  39174. Craig-Wood)
  39175. - Delete archive tier blobs before update if
  39176. --azureblob-archive-tier-delete (Nick Craig-Wood)
  39177. - Fix crash on startup (Nick Craig-Wood)
  39178. - Fix memory usage by upgrading the SDK to v0.13.0 and
  39179. implementing a TransferManager (Nick Craig-Wood)
  39180. - Require go1.14+ to compile due to SDK changes (Nick Craig-Wood)
  39181. - B2
  39182. - Make NewObject use less expensive API calls (Nick Craig-Wood)
  39183. - This will improve --files-from and restic serve in
  39184. particular
  39185. - Fixed crash on an empty file name (lluuaapp)
  39186. - Box
  39187. - Fix NewObject for files that differ in case (Nick Craig-Wood)
  39188. - Fix finding directories in a case insensitive way (Nick
  39189. Craig-Wood)
  39190. - Chunker
  39191. - Skip long local hashing, hash in-transit (fixes) (Ivan Andreev)
  39192. - Set Features ReadMimeType to false as Object.MimeType not
  39193. supported (Nick Craig-Wood)
  39194. - Fix case-insensitive NewObject, test metadata detection (Ivan
  39195. Andreev)
  39196. - Drive
  39197. - Implement rclone backend copyid command for copying files by ID
  39198. (Nick Craig-Wood)
  39199. - Added flag --drive-stop-on-download-limit to stop transfers when
  39200. the download limit is exceeded (Anagh Kumar Baranwal)
  39201. - Implement CleanUp workaround for team drives (buengese)
  39202. - Allow shortcut resolution and creation to be retried (Nick
  39203. Craig-Wood)
  39204. - Log that emptying the trash can take some time (Nick Craig-Wood)
  39205. - Add xdg office icons to xdg desktop files (Pau
  39206. Rodriguez-Estivill)
  39207. - Dropbox
  39208. - Add support for viewing shared files and folders (buengese)
  39209. - Enable short lived access tokens (Nick Craig-Wood)
  39210. - Implement IDer on Objects so rclone lsf etc can read the IDs
  39211. (buengese)
  39212. - Set Features ReadMimeType to false as Object.MimeType not
  39213. supported (Nick Craig-Wood)
  39214. - Make malformed_path errors from too long files not retriable
  39215. (Nick Craig-Wood)
  39216. - Test file name length before upload to fix upload loop (Nick
  39217. Craig-Wood)
  39218. - Fichier
  39219. - Set Features ReadMimeType to true as Object.MimeType is
  39220. supported (Nick Craig-Wood)
  39221. - FTP
  39222. - Add --ftp-disable-msld option to ignore MLSD for really old
  39223. servers (Nick Craig-Wood)
  39224. - Make --tpslimit apply (Nick Craig-Wood)
  39225. - Google Cloud Storage
  39226. - Storage class object header support (Laurens Janssen)
  39227. - Fix anonymous client to use rclone's HTTP client (Nick
  39228. Craig-Wood)
  39229. - Fix
  39230. Entry doesn't belong in directory "" (same as directory) - ignoring
  39231. (Nick Craig-Wood)
  39232. - Googlephotos
  39233. - New flag --gphotos-include-archived to show archived photos as
  39234. well (Nicolas Rueff)
  39235. - Jottacloud
  39236. - Don't erroneously report support for writing mime types
  39237. (buengese)
  39238. - Add support for Telia Cloud (Patrik Nordlén)
  39239. - Mailru
  39240. - Accept special folders eg camera-upload (Ivan Andreev)
  39241. - Avoid prehashing of large local files (Ivan Andreev)
  39242. - Fix uploads after recent changes on server (Ivan Andreev)
  39243. - Fix range requests after June 2020 changes on server (Ivan
  39244. Andreev)
  39245. - Fix invalid timestamp on corrupted files (fixes) (Ivan Andreev)
  39246. - Remove deprecated protocol quirks (Ivan Andreev)
  39247. - Memory
  39248. - Fix setting of mime types (Nick Craig-Wood)
  39249. - Onedrive
  39250. - Add support for China region operated by 21vianet and other
  39251. regional suppliers (NyaMisty)
  39252. - Warn on gateway timeout errors (Nick Craig-Wood)
  39253. - Fall back to normal copy if server-side copy unavailable (Alex
  39254. Chen)
  39255. - Fix server-side copy completely disabled on OneDrive for
  39256. Business (Cnly)
  39257. - (business only) workaround to replace existing file on
  39258. server-side copy (Alex Chen)
  39259. - Enhance link creation with expiry, scope, type and password
  39260. (Nick Craig-Wood)
  39261. - Remove % and # from the set of encoded characters (Alex Chen)
  39262. - Support addressing site by server-relative URL (kice)
  39263. - Opendrive
  39264. - Fix finding directories in a case insensitive way (Nick
  39265. Craig-Wood)
  39266. - Pcloud
  39267. - Fix setting of mime types (Nick Craig-Wood)
  39268. - Premiumizeme
  39269. - Fix finding directories in a case insensitive way (Nick
  39270. Craig-Wood)
  39271. - Qingstor
  39272. - Fix error propagation in CleanUp (Nick Craig-Wood)
  39273. - Fix rclone cleanup (Nick Craig-Wood)
  39274. - S3
  39275. - Added --s3-disable-http2 to disable http/2 (Anagh Kumar
  39276. Baranwal)
  39277. - Complete SSE-C implementation (Nick Craig-Wood)
  39278. - Fix hashes on small files with AWS:KMS and SSE-C (Nick
  39279. Craig-Wood)
  39280. - Add MD5 metadata to objects uploaded with SSE-AWS/SSE-C
  39281. (Nick Craig-Wood)
  39282. - Add --s3-no-head parameter to minimise transactions on upload
  39283. (Nick Craig-Wood)
  39284. - Update docs with a Reducing Costs section (Nick Craig-Wood)
  39285. - Added error handling for error code 429 indicating too many
  39286. requests (Anagh Kumar Baranwal)
  39287. - Add requester pays option (kelv)
  39288. - Fix copy multipart with v2 auth failing with
  39289. 'SignatureDoesNotMatch' (Louis Koo)
  39290. - SFTP
  39291. - Allow cert based auth via optional pubkey (Stephen Harris)
  39292. - Allow user to optionally check server hosts key to add security
  39293. (Stephen Harris)
  39294. - Defer asking for user passwords until the SSH connection
  39295. succeeds (Stephen Harris)
  39296. - Remember entered password in AskPass mode (Stephen Harris)
  39297. - Implement Shutdown method (Nick Craig-Wood)
  39298. - Implement keyboard interactive authentication (Nick Craig-Wood)
  39299. - Make --tpslimit apply (Nick Craig-Wood)
  39300. - Implement --sftp-use-fstat for unusual SFTP servers (Nick
  39301. Craig-Wood)
  39302. - Sugarsync
  39303. - Fix NewObject for files that differ in case (Nick Craig-Wood)
  39304. - Fix finding directories in a case insensitive way (Nick
  39305. Craig-Wood)
  39306. - Swift
  39307. - Fix deletion of parts of Static Large Object (SLO) (Nguyễn Hữu
  39308. Luân)
  39309. - Ensure partially uploaded large files are uploaded unless
  39310. --swift-leave-parts-on-error (Nguyễn Hữu Luân)
  39311. - Tardigrade
  39312. - Upgrade to uplink v1.4.1 (Caleb Case)
  39313. - WebDAV
  39314. - Updated docs to show streaming to nextcloud is working (Durval
  39315. Menezes)
  39316. - Yandex
  39317. - Set Features WriteMimeType to false as Yandex ignores mime types
  39318. (Nick Craig-Wood)
  39319. v1.53.4 - 2021-01-20
  39320. See commits
  39321. - Bug Fixes
  39322. - accounting: Fix data race in Transferred() (Maciej Zimnoch)
  39323. - build
  39324. - Stop tagged releases making a current beta (Nick Craig-Wood)
  39325. - Upgrade docker buildx action (Matteo Pietro Dazzi)
  39326. - Add -buildmode to cross-compile.go (Nick Craig-Wood)
  39327. - Fix docker build by upgrading ilteoood/docker_buildx (Nick
  39328. Craig-Wood)
  39329. - Revert GitHub actions brew fix since this is now fixed (Nick
  39330. Craig-Wood)
  39331. - Fix brew install --cask syntax for macOS build (Nick
  39332. Craig-Wood)
  39333. - Update nfpm syntax to fix build of .deb/.rpm packages (Nick
  39334. Craig-Wood)
  39335. - Fix for Windows build errors (Ivan Andreev)
  39336. - fs: Parseduration: fixed tests to use UTC time (Ankur Gupta)
  39337. - fshttp: Prevent overlap of HTTP headers in logs (Nathan Collins)
  39338. - rc
  39339. - Fix core/command giving 500 internal error (Nick Craig-Wood)
  39340. - Add Copy method to rc.Params (Nick Craig-Wood)
  39341. - Fix 500 error when marshalling errors from core/command
  39342. (Nick Craig-Wood)
  39343. - plugins: Create plugins files only if webui is enabled.
  39344. (negative0)
  39345. - serve http: Fix serving files of unknown length (Nick
  39346. Craig-Wood)
  39347. - serve sftp: Fix authentication on one connection blocking others
  39348. (Nick Craig-Wood)
  39349. - Mount
  39350. - Add optional brew tag to throw an error when using mount in the
  39351. binaries installed via Homebrew (Anagh Kumar Baranwal)
  39352. - Add "." and ".." to directories to match cmount and expectations
  39353. (Nick Craig-Wood)
  39354. - VFS
  39355. - Make cache dir absolute before using it to fix path too long
  39356. errors (Nick Craig-Wood)
  39357. - Chunker
  39358. - Improve detection of incompatible metadata (Ivan Andreev)
  39359. - Google Cloud Storage
  39360. - Fix server side copy of large objects (Nick Craig-Wood)
  39361. - Jottacloud
  39362. - Fix token renewer to fix long uploads (Nick Craig-Wood)
  39363. - Fix token refresh failed: is not a regular file error (Nick
  39364. Craig-Wood)
  39365. - Pcloud
  39366. - Only use SHA1 hashes in EU region (Nick Craig-Wood)
  39367. - Sharefile
  39368. - Undo Fix backend due to API swapping integers for strings (Nick
  39369. Craig-Wood)
  39370. - WebDAV
  39371. - Fix Open Range requests to fix 4shared mount (Nick Craig-Wood)
  39372. - Add "Depth: 0" to GET requests to fix bitrix (Nick Craig-Wood)
  39373. v1.53.3 - 2020-11-19
  39374. See commits
  39375. - Bug Fixes
  39376. - random: Fix incorrect use of math/rand instead of crypto/rand
  39377. CVE-2020-28924 (Nick Craig-Wood)
  39378. - Passwords you have generated with rclone config may be
  39379. insecure
  39380. - See issue #4783 for more details and a checking tool
  39381. - random: Seed math/rand in one place with crypto strong seed
  39382. (Nick Craig-Wood)
  39383. - VFS
  39384. - Fix vfs/refresh calls with fs= parameter (Nick Craig-Wood)
  39385. - Sharefile
  39386. - Fix backend due to API swapping integers for strings (Nick
  39387. Craig-Wood)
  39388. v1.53.2 - 2020-10-26
  39389. See commits
  39390. - Bug Fixes
  39391. - accounting
  39392. - Fix incorrect speed and transferTime in core/stats (Nick
  39393. Craig-Wood)
  39394. - Stabilize display order of transfers on Windows (Nick
  39395. Craig-Wood)
  39396. - operations
  39397. - Fix use of --suffix without --backup-dir (Nick Craig-Wood)
  39398. - Fix spurious "--checksum is in use but the source and
  39399. destination have no hashes in common" (Nick Craig-Wood)
  39400. - build
  39401. - Work around GitHub actions brew problem (Nick Craig-Wood)
  39402. - Stop using set-env and set-path in the GitHub actions (Nick
  39403. Craig-Wood)
  39404. - Mount
  39405. - mount2: Fix the swapped UID / GID values (Russell Cattelan)
  39406. - VFS
  39407. - Detect and recover from a file being removed externally from the
  39408. cache (Nick Craig-Wood)
  39409. - Fix a deadlock vulnerability in downloaders.Close (Leo Luan)
  39410. - Fix a race condition in retryFailedResets (Leo Luan)
  39411. - Fix missed concurrency control between some item operations and
  39412. reset (Leo Luan)
  39413. - Add exponential backoff during ENOSPC retries (Leo Luan)
  39414. - Add a missed update of used cache space (Leo Luan)
  39415. - Fix --no-modtime to not attempt to set modtimes (as documented)
  39416. (Nick Craig-Wood)
  39417. - Local
  39418. - Fix sizes and syncing with --links option on Windows (Nick
  39419. Craig-Wood)
  39420. - Chunker
  39421. - Disable ListR to fix missing files on GDrive (workaround) (Ivan
  39422. Andreev)
  39423. - Fix upload over crypt (Ivan Andreev)
  39424. - Fichier
  39425. - Increase maximum file size from 100GB to 300GB (gyutw)
  39426. - Jottacloud
  39427. - Remove clientSecret from config when upgrading to token based
  39428. authentication (buengese)
  39429. - Avoid double url escaping of device/mountpoint (albertony)
  39430. - Remove DirMove workaround as it's not required anymore - also
  39431. (buengese)
  39432. - Mailru
  39433. - Fix uploads after recent changes on server (Ivan Andreev)
  39434. - Fix range requests after june changes on server (Ivan Andreev)
  39435. - Fix invalid timestamp on corrupted files (fixes) (Ivan Andreev)
  39436. - Onedrive
  39437. - Fix disk usage for sharepoint (Nick Craig-Wood)
  39438. - S3
  39439. - Add missing regions for AWS (Anagh Kumar Baranwal)
  39440. - Seafile
  39441. - Fix accessing libraries > 2GB on 32 bit systems (Muffin King)
  39442. - SFTP
  39443. - Always convert the checksum to lower case (buengese)
  39444. - Union
  39445. - Create root directories if none exist (Nick Craig-Wood)
  39446. v1.53.1 - 2020-09-13
  39447. See commits
  39448. - Bug Fixes
  39449. - accounting: Remove new line from end of --stats-one-line display
  39450. (Nick Craig-Wood)
  39451. - check
  39452. - Add back missing --download flag (Nick Craig-Wood)
  39453. - Fix docs (Nick Craig-Wood)
  39454. - docs
  39455. - Note --log-file does append (Nick Craig-Wood)
  39456. - Add full stops for consistency in rclone --help (edwardxml)
  39457. - Add Tencent COS to s3 provider list (wjielai)
  39458. - Updated mount command to reflect that it requires Go 1.13 or
  39459. newer (Evan Harris)
  39460. - jottacloud: Mention that uploads from local disk will not
  39461. need to cache files to disk for md5 calculation (albertony)
  39462. - Fix formatting of rc docs page (Nick Craig-Wood)
  39463. - build
  39464. - Include vendor tar ball in release and fix startdev (Nick
  39465. Craig-Wood)
  39466. - Fix "Illegal instruction" error for ARMv6 builds (Nick
  39467. Craig-Wood)
  39468. - Fix architecture name in ARMv7 build (Nick Craig-Wood)
  39469. - VFS
  39470. - Fix spurious error "vfs cache: failed to _ensure cache EOF"
  39471. (Nick Craig-Wood)
  39472. - Log an ERROR if we fail to set the file to be sparse (Nick
  39473. Craig-Wood)
  39474. - Local
  39475. - Log an ERROR if we fail to set the file to be sparse (Nick
  39476. Craig-Wood)
  39477. - Drive
  39478. - Re-adds special oauth help text (Tim Gallant)
  39479. - Opendrive
  39480. - Do not retry 400 errors (Evan Harris)
  39481. v1.53.0 - 2020-09-02
  39482. See commits
  39483. - New Features
  39484. - The VFS layer was heavily reworked for this release - see below
  39485. for more details
  39486. - Interactive mode -i/--interactive for destructive operations
  39487. (fishbullet)
  39488. - Add --bwlimit-file flag to limit speeds of individual file
  39489. transfers (Nick Craig-Wood)
  39490. - Transfers are sorted by start time in the stats and progress
  39491. output (Max Sum)
  39492. - Make sure backends expand ~ and environment vars in file names
  39493. they use (Nick Craig-Wood)
  39494. - Add --refresh-times flag to set modtimes on hashless backends
  39495. (Nick Craig-Wood)
  39496. - build
  39497. - Remove vendor directory in favour of Go modules (Nick
  39498. Craig-Wood)
  39499. - Build with go1.15.x by default (Nick Craig-Wood)
  39500. - Drop macOS 386 build as it is no longer supported by go1.15
  39501. (Nick Craig-Wood)
  39502. - Add ARMv7 to the supported builds (Nick Craig-Wood)
  39503. - Enable rclone cmount on macOS (Nick Craig-Wood)
  39504. - Make rclone build with gccgo (Nick Craig-Wood)
  39505. - Make rclone build with wasm (Nick Craig-Wood)
  39506. - Change beta numbering to be semver compatible (Nick
  39507. Craig-Wood)
  39508. - Add file properties and icon to Windows executable
  39509. (albertony)
  39510. - Add experimental interface for integrating rclone into
  39511. browsers (Nick Craig-Wood)
  39512. - lib: Add file name compression (Klaus Post)
  39513. - rc
  39514. - Allow installation and use of plugins and test plugins with
  39515. rclone-webui (Chaitanya Bankanhal)
  39516. - Add reverse proxy pluginsHandler for serving plugins
  39517. (Chaitanya Bankanhal)
  39518. - Add mount/listmounts option for listing current mounts
  39519. (Chaitanya Bankanhal)
  39520. - Add operations/uploadfile to upload a file through rc using
  39521. encoding multipart/form-data (Chaitanya Bankanhal)
  39522. - Add core/command to execute rclone terminal commands.
  39523. (Chaitanya Bankanhal)
  39524. - rclone check
  39525. - Add reporting of filenames for same/missing/changed (Nick
  39526. Craig-Wood)
  39527. - Make check command obey --dry-run/-i/--interactive (Nick
  39528. Craig-Wood)
  39529. - Make check do --checkers files concurrently (Nick
  39530. Craig-Wood)
  39531. - Retry downloads if they fail when using the --download flag
  39532. (Nick Craig-Wood)
  39533. - Make it show stats by default (Nick Craig-Wood)
  39534. - rclone obscure: Allow obscure command to accept password on
  39535. STDIN (David Ibarra)
  39536. - rclone config
  39537. - Set RCLONE_CONFIG_DIR for use in config files and
  39538. subprocesses (Nick Craig-Wood)
  39539. - Reject remote names starting with a dash. (jtagcat)
  39540. - rclone cryptcheck: Add reporting of filenames for
  39541. same/missing/changed (Nick Craig-Wood)
  39542. - rclone dedupe: Make it obey the --size-only flag for duplicate
  39543. detection (Nick Craig-Wood)
  39544. - rclone link: Add --expire and --unlink flags (Roman Kredentser)
  39545. - rclone mkdir: Warn when using mkdir on remotes which can't have
  39546. empty directories (Nick Craig-Wood)
  39547. - rclone rc: Allow JSON parameters to simplify command line usage
  39548. (Nick Craig-Wood)
  39549. - rclone serve ftp
  39550. - Don't compile on < go1.13 after dependency update (Nick
  39551. Craig-Wood)
  39552. - Add error message if auth proxy fails (Nick Craig-Wood)
  39553. - Use refactored goftp.io/server library for binary shrink
  39554. (Nick Craig-Wood)
  39555. - rclone serve restic: Expose interfaces so that rclone can be
  39556. used as a library from within restic (Jack)
  39557. - rclone sync: Add --track-renames-strategy leaf (Nick Craig-Wood)
  39558. - rclone touch: Add ability to set nanosecond resolution times
  39559. (Nick Craig-Wood)
  39560. - rclone tree: Remove -i shorthand for --noindent as it conflicts
  39561. with -i/--interactive (Nick Craig-Wood)
  39562. - Bug Fixes
  39563. - accounting
  39564. - Fix documentation for speed/speedAvg (Nick Craig-Wood)
  39565. - Fix elapsed time not show actual time since beginning
  39566. (Chaitanya Bankanhal)
  39567. - Fix deadlock in stats printing (Nick Craig-Wood)
  39568. - build
  39569. - Fix file handle leak in GitHub release tool (Garrett Squire)
  39570. - rclone check: Fix successful retries with --download counting
  39571. errors (Nick Craig-Wood)
  39572. - rclone dedupe: Fix logging to be easier to understand (Nick
  39573. Craig-Wood)
  39574. - Mount
  39575. - Warn macOS users that mount implementation is changing (Nick
  39576. Craig-Wood)
  39577. - to test the new implementation use rclone cmount instead of
  39578. rclone mount
  39579. - this is because the library rclone uses has dropped macOS
  39580. support
  39581. - rc interface
  39582. - Add call for unmount all (Chaitanya Bankanhal)
  39583. - Make mount/mount remote control take vfsOpt option (Nick
  39584. Craig-Wood)
  39585. - Add mountOpt to mount/mount (Nick Craig-Wood)
  39586. - Add VFS and Mount options to mount/listmounts (Nick
  39587. Craig-Wood)
  39588. - Catch panics in cgofuse initialization and turn into error
  39589. messages (Nick Craig-Wood)
  39590. - Always supply stat information in Readdir (Nick Craig-Wood)
  39591. - Add support for reading unknown length files using direct IO
  39592. (Windows) (Nick Craig-Wood)
  39593. - Fix On Windows don't add -o uid/gid=-1 if user supplies
  39594. -o uid/gid. (Nick Craig-Wood)
  39595. - Fix macOS losing directory contents in cmount (Nick Craig-Wood)
  39596. - Fix volume name broken in recent refactor (Nick Craig-Wood)
  39597. - VFS
  39598. - Implement partial reads for --vfs-cache-mode full (Nick
  39599. Craig-Wood)
  39600. - Add --vfs-writeback option to delay writes back to cloud storage
  39601. (Nick Craig-Wood)
  39602. - Add --vfs-read-ahead parameter for use with
  39603. --vfs-cache-mode full (Nick Craig-Wood)
  39604. - Restart pending uploads on restart of the cache (Nick
  39605. Craig-Wood)
  39606. - Support synchronous cache space recovery upon ENOSPC (Leo Luan)
  39607. - Allow ReadAt and WriteAt to run concurrently with themselves
  39608. (Nick Craig-Wood)
  39609. - Change modtime of file before upload to current (Rob Calistri)
  39610. - Recommend --vfs-cache-modes writes on backends which can't
  39611. stream (Nick Craig-Wood)
  39612. - Add an optional fs parameter to vfs rc methods (Nick Craig-Wood)
  39613. - Fix errors when using > 260 char files in the cache in Windows
  39614. (Nick Craig-Wood)
  39615. - Fix renaming of items while they are being uploaded (Nick
  39616. Craig-Wood)
  39617. - Fix very high load caused by slow directory listings (Nick
  39618. Craig-Wood)
  39619. - Fix renamed files not being uploaded with
  39620. --vfs-cache-mode minimal (Nick Craig-Wood)
  39621. - Fix directory locking caused by slow directory listings (Nick
  39622. Craig-Wood)
  39623. - Fix saving from chrome without --vfs-cache-mode writes (Nick
  39624. Craig-Wood)
  39625. - Local
  39626. - Add --local-no-updated to provide a consistent view of changing
  39627. objects (Nick Craig-Wood)
  39628. - Add --local-no-set-modtime option to prevent modtime changes
  39629. (tyhuber1)
  39630. - Fix race conditions updating and reading Object metadata (Nick
  39631. Craig-Wood)
  39632. - Cache
  39633. - Make any created backends be cached to fix rc problems (Nick
  39634. Craig-Wood)
  39635. - Fix dedupe on caches wrapping drives (Nick Craig-Wood)
  39636. - Crypt
  39637. - Add --crypt-server-side-across-configs flag (Nick Craig-Wood)
  39638. - Make any created backends be cached to fix rc problems (Nick
  39639. Craig-Wood)
  39640. - Alias
  39641. - Make any created backends be cached to fix rc problems (Nick
  39642. Craig-Wood)
  39643. - Azure Blob
  39644. - Don't compile on < go1.13 after dependency update (Nick
  39645. Craig-Wood)
  39646. - B2
  39647. - Implement server-side copy for files > 5GB (Nick Craig-Wood)
  39648. - Cancel in progress multipart uploads and copies on rclone exit
  39649. (Nick Craig-Wood)
  39650. - Note that b2's encoding now allows  but rclone's hasn't changed
  39651. (Nick Craig-Wood)
  39652. - Fix transfers when using download_url (Nick Craig-Wood)
  39653. - Box
  39654. - Implement rclone cleanup (buengese)
  39655. - Cancel in progress multipart uploads and copies on rclone exit
  39656. (Nick Craig-Wood)
  39657. - Allow authentication with access token (David)
  39658. - Chunker
  39659. - Make any created backends be cached to fix rc problems (Nick
  39660. Craig-Wood)
  39661. - Drive
  39662. - Add rclone backend drives to list shared drives (teamdrives)
  39663. (Nick Craig-Wood)
  39664. - Implement rclone backend untrash (Nick Craig-Wood)
  39665. - Work around drive bug which didn't set modtime of copied docs
  39666. (Nick Craig-Wood)
  39667. - Added --drive-starred-only to only show starred files (Jay
  39668. McEntire)
  39669. - Deprecate --drive-alternate-export as it is no longer needed
  39670. (themylogin)
  39671. - Fix duplication of Google docs on server-side copy (Nick
  39672. Craig-Wood)
  39673. - Fix "panic: send on closed channel" when recycling dir entries
  39674. (Nick Craig-Wood)
  39675. - Dropbox
  39676. - Add copyright detector info in limitations section in the docs
  39677. (Alex Guerrero)
  39678. - Fix rclone link by removing expires parameter (Nick Craig-Wood)
  39679. - Fichier
  39680. - Detect Flood detected: IP Locked error and sleep for 30s (Nick
  39681. Craig-Wood)
  39682. - FTP
  39683. - Add explicit TLS support (Heiko Bornholdt)
  39684. - Add support for --dump bodies and --dump auth for debugging
  39685. (Nick Craig-Wood)
  39686. - Fix interoperation with pure-ftpd (Nick Craig-Wood)
  39687. - Google Cloud Storage
  39688. - Add support for anonymous access (Kai Lüke)
  39689. - Jottacloud
  39690. - Bring back legacy authentication for use with whitelabel
  39691. versions (buengese)
  39692. - Switch to new api root - also implement a very ugly workaround
  39693. for the DirMove failures (buengese)
  39694. - Onedrive
  39695. - Rework cancel of multipart uploads on rclone exit (Nick
  39696. Craig-Wood)
  39697. - Implement rclone cleanup (Nick Craig-Wood)
  39698. - Add --onedrive-no-versions flag to remove old versions (Nick
  39699. Craig-Wood)
  39700. - Pcloud
  39701. - Implement rclone link for public link creation (buengese)
  39702. - Qingstor
  39703. - Cancel in progress multipart uploads on rclone exit (Nick
  39704. Craig-Wood)
  39705. - S3
  39706. - Preserve metadata when doing multipart copy (Nick Craig-Wood)
  39707. - Cancel in progress multipart uploads and copies on rclone exit
  39708. (Nick Craig-Wood)
  39709. - Add rclone link for public link sharing (Roman Kredentser)
  39710. - Add rclone backend restore command to restore objects from
  39711. GLACIER (Nick Craig-Wood)
  39712. - Add rclone cleanup and rclone backend cleanup to clean
  39713. unfinished multipart uploads (Nick Craig-Wood)
  39714. - Add rclone backend list-multipart-uploads to list unfinished
  39715. multipart uploads (Nick Craig-Wood)
  39716. - Add --s3-max-upload-parts support (Kamil Trzciński)
  39717. - Add --s3-no-check-bucket for minimising rclone transactions and
  39718. perms (Nick Craig-Wood)
  39719. - Add --s3-profile and --s3-shared-credentials-file options (Nick
  39720. Craig-Wood)
  39721. - Use regional s3 us-east-1 endpoint (David)
  39722. - Add Scaleway provider (Vincent Feltz)
  39723. - Update IBM COS endpoints (Egor Margineanu)
  39724. - Reduce the default --s3-copy-cutoff to < 5GB for Backblaze S3
  39725. compatibility (Nick Craig-Wood)
  39726. - Fix detection of bucket existing (Nick Craig-Wood)
  39727. - SFTP
  39728. - Use the absolute path instead of the relative path for listing
  39729. for improved compatibility (Nick Craig-Wood)
  39730. - Add --sftp-subsystem and --sftp-server-command options (aus)
  39731. - Swift
  39732. - Fix dangling large objects breaking the listing (Nick
  39733. Craig-Wood)
  39734. - Fix purge not deleting directory markers (Nick Craig-Wood)
  39735. - Fix update multipart object removing all of its own parts (Nick
  39736. Craig-Wood)
  39737. - Fix missing hash from object returned from upload (Nick
  39738. Craig-Wood)
  39739. - Tardigrade
  39740. - Upgrade to uplink v1.2.0 (Kaloyan Raev)
  39741. - Union
  39742. - Fix writing with the all policy (Nick Craig-Wood)
  39743. - WebDAV
  39744. - Fix directory creation with 4shared (Nick Craig-Wood)
  39745. v1.52.3 - 2020-08-07
  39746. See commits
  39747. - Bug Fixes
  39748. - docs
  39749. - Disable smart typography (e.g. en-dash) in MANUAL.* and man
  39750. page (Nick Craig-Wood)
  39751. - Update install.md to reflect minimum Go version (Evan
  39752. Harris)
  39753. - Update install from source instructions (Nick Craig-Wood)
  39754. - make_manual: Support SOURCE_DATE_EPOCH (Morten Linderud)
  39755. - log: Fix --use-json-log going to stderr not --log-file on
  39756. Windows (Nick Craig-Wood)
  39757. - serve dlna: Fix file list on Samsung Series 6+ TVs (Matteo
  39758. Pietro Dazzi)
  39759. - sync: Fix deadlock with --track-renames-strategy modtime (Nick
  39760. Craig-Wood)
  39761. - Cache
  39762. - Fix moveto/copyto remote:file remote:file2 (Nick Craig-Wood)
  39763. - Drive
  39764. - Stop using root_folder_id as a cache (Nick Craig-Wood)
  39765. - Make dangling shortcuts appear in listings (Nick Craig-Wood)
  39766. - Drop "Disabling ListR" messages down to debug (Nick Craig-Wood)
  39767. - Workaround and policy for Google Drive API (Dmitry Ustalov)
  39768. - FTP
  39769. - Add note to docs about home vs root directory selection (Nick
  39770. Craig-Wood)
  39771. - Onedrive
  39772. - Fix reverting to Copy when Move would have worked (Nick
  39773. Craig-Wood)
  39774. - Avoid comma rendered in URL in onedrive.md (Kevin)
  39775. - Pcloud
  39776. - Fix oauth on European region "eapi.pcloud.com" (Nick Craig-Wood)
  39777. - S3
  39778. - Fix bucket Region auto detection when Region unset in config
  39779. (Nick Craig-Wood)
  39780. v1.52.2 - 2020-06-24
  39781. See commits
  39782. - Bug Fixes
  39783. - build
  39784. - Fix docker release build action (Nick Craig-Wood)
  39785. - Fix custom timezone in Docker image (NoLooseEnds)
  39786. - check: Fix misleading message which printed errors instead of
  39787. differences (Nick Craig-Wood)
  39788. - errors: Add WSAECONNREFUSED and more to the list of retriable
  39789. Windows errors (Nick Craig-Wood)
  39790. - rcd: Fix incorrect prometheus metrics (Gary Kim)
  39791. - serve restic: Fix flags so they use environment variables (Nick
  39792. Craig-Wood)
  39793. - serve webdav: Fix flags so they use environment variables (Nick
  39794. Craig-Wood)
  39795. - sync: Fix --track-renames-strategy modtime (Nick Craig-Wood)
  39796. - Drive
  39797. - Fix not being able to delete a directory with a trashed shortcut
  39798. (Nick Craig-Wood)
  39799. - Fix creating a directory inside a shortcut (Nick Craig-Wood)
  39800. - Fix --drive-impersonate with cached root_folder_id (Nick
  39801. Craig-Wood)
  39802. - SFTP
  39803. - Fix SSH key PEM loading (Zac Rubin)
  39804. - Swift
  39805. - Speed up deletes by not retrying segment container deletes (Nick
  39806. Craig-Wood)
  39807. - Tardigrade
  39808. - Upgrade to uplink v1.1.1 (Caleb Case)
  39809. - WebDAV
  39810. - Fix free/used display for rclone about/df for certain backends
  39811. (Nick Craig-Wood)
  39812. v1.52.1 - 2020-06-10
  39813. See commits
  39814. - Bug Fixes
  39815. - lib/file: Fix SetSparse on Windows 7 which fixes downloads of
  39816. files > 250MB (Nick Craig-Wood)
  39817. - build
  39818. - Update go.mod to go1.14 to enable -mod=vendor build (Nick
  39819. Craig-Wood)
  39820. - Remove quicktest from Dockerfile (Nick Craig-Wood)
  39821. - Build Docker images with GitHub actions (Matteo Pietro
  39822. Dazzi)
  39823. - Update Docker build workflows (Nick Craig-Wood)
  39824. - Set user_allow_other in /etc/fuse.conf in the Docker image
  39825. (Nick Craig-Wood)
  39826. - Fix xgo build after go1.14 go.mod update (Nick Craig-Wood)
  39827. - docs
  39828. - Add link to source and modified time to footer of every page
  39829. (Nick Craig-Wood)
  39830. - Remove manually set dates and use git dates instead (Nick
  39831. Craig-Wood)
  39832. - Minor tense, punctuation, brevity and positivity changes for
  39833. the home page (edwardxml)
  39834. - Remove leading slash in page reference in footer when
  39835. present (Nick Craig-Wood)
  39836. - Note commands which need obscured input in the docs (Nick
  39837. Craig-Wood)
  39838. - obscure: Write more help as we are referencing it elsewhere
  39839. (Nick Craig-Wood)
  39840. - VFS
  39841. - Fix OS vs Unix path confusion - fixes ChangeNotify on Windows
  39842. (Nick Craig-Wood)
  39843. - Drive
  39844. - Fix missing items when listing using --fast-list / ListR (Nick
  39845. Craig-Wood)
  39846. - Putio
  39847. - Fix panic on Object.Open (Cenk Alti)
  39848. - S3
  39849. - Fix upload of single files into buckets without create
  39850. permission (Nick Craig-Wood)
  39851. - Fix --header-upload (Nick Craig-Wood)
  39852. - Tardigrade
  39853. - Fix listing bug by upgrading to v1.0.7
  39854. - Set UserAgent to rclone (Caleb Case)
  39855. v1.52.0 - 2020-05-27
  39856. Special thanks to Martin Michlmayr for proof reading and correcting all
  39857. the docs and Edward Barker for helping re-write the front page.
  39858. See commits
  39859. - New backends
  39860. - Tardigrade backend for use with storj.io (Caleb Case)
  39861. - Union re-write to have multiple writable remotes (Max Sum)
  39862. - Seafile for Seafile server (Fred @creativeprojects)
  39863. - New commands
  39864. - backend: command for backend-specific commands (see backends)
  39865. (Nick Craig-Wood)
  39866. - cachestats: Deprecate in favour of rclone backend stats cache:
  39867. (Nick Craig-Wood)
  39868. - dbhashsum: Deprecate in favour of rclone hashsum DropboxHash
  39869. (Nick Craig-Wood)
  39870. - New Features
  39871. - Add --header-download and --header-upload flags for setting HTTP
  39872. headers when uploading/downloading (Tim Gallant)
  39873. - Add --header flag to add HTTP headers to every HTTP transaction
  39874. (Nick Craig-Wood)
  39875. - Add --check-first to do all checking before starting transfers
  39876. (Nick Craig-Wood)
  39877. - Add --track-renames-strategy for configurable matching criteria
  39878. for --track-renames (Bernd Schoolmann)
  39879. - Add --cutoff-mode hard,soft,cautious (Shing Kit Chan & Franklyn
  39880. Tackitt)
  39881. - Filter flags (e.g. --files-from -) can read from stdin
  39882. (fishbullet)
  39883. - Add --error-on-no-transfer option (Jon Fautley)
  39884. - Implement --order-by xxx,mixed for copying some small and some
  39885. big files (Nick Craig-Wood)
  39886. - Allow --max-backlog to be negative meaning as large as possible
  39887. (Nick Craig-Wood)
  39888. - Added --no-unicode-normalization flag to allow Unicode filenames
  39889. to remain unique (Ben Zenker)
  39890. - Allow --min-age/--max-age to take a date as well as a duration
  39891. (Nick Craig-Wood)
  39892. - Add rename statistics for file and directory renames (Nick
  39893. Craig-Wood)
  39894. - Add statistics output to JSON log (reddi)
  39895. - Make stats be printed on non-zero exit code (Nick Craig-Wood)
  39896. - When running --password-command allow use of stdin (Sébastien
  39897. Gross)
  39898. - Stop empty strings being a valid remote path (Nick Craig-Wood)
  39899. - accounting: support WriterTo for less memory copying (Nick
  39900. Craig-Wood)
  39901. - build
  39902. - Update to use go1.14 for the build (Nick Craig-Wood)
  39903. - Add -trimpath to release build for reproduceable builds
  39904. (Nick Craig-Wood)
  39905. - Remove GOOS and GOARCH from Dockerfile (Brandon Philips)
  39906. - config
  39907. - Fsync the config file after writing to save more reliably
  39908. (Nick Craig-Wood)
  39909. - Add --obscure and --no-obscure flags to config create/update
  39910. (Nick Craig-Wood)
  39911. - Make config show take remote: as well as remote (Nick
  39912. Craig-Wood)
  39913. - copyurl: Add --no-clobber flag (Denis)
  39914. - delete: Added --rmdirs flag to delete directories as well (Kush)
  39915. - filter: Added --files-from-raw flag (Ankur Gupta)
  39916. - genautocomplete: Add support for fish shell (Matan Rosenberg)
  39917. - log: Add support for syslog LOCAL facilities (Patryk Jakuszew)
  39918. - lsjson: Add --hash-type parameter and use it in lsf to speed up
  39919. hashing (Nick Craig-Wood)
  39920. - rc
  39921. - Add -o/--opt and -a/--arg for more structured input (Nick
  39922. Craig-Wood)
  39923. - Implement backend/command for running backend-specific
  39924. commands remotely (Nick Craig-Wood)
  39925. - Add mount/mount command for starting rclone mount via the
  39926. API (Chaitanya)
  39927. - rcd: Add Prometheus metrics support (Gary Kim)
  39928. - serve http
  39929. - Added a --template flag for user defined markup (calistri)
  39930. - Add Last-Modified headers to files and directories (Nick
  39931. Craig-Wood)
  39932. - serve sftp: Add support for multiple host keys by repeating
  39933. --key flag (Maxime Suret)
  39934. - touch: Add --localtime flag to make --timestamp localtime not
  39935. UTC (Nick Craig-Wood)
  39936. - Bug Fixes
  39937. - accounting
  39938. - Restore "Max number of stats groups reached" log line
  39939. (Michał Matczuk)
  39940. - Correct exitcode on Transfer Limit Exceeded flag. (Anuar
  39941. Serdaliyev)
  39942. - Reset bytes read during copy retry (Ankur Gupta)
  39943. - Fix race clearing stats (Nick Craig-Wood)
  39944. - copy: Only create empty directories when they don't exist on the
  39945. remote (Ishuah Kariuki)
  39946. - dedupe: Stop dedupe deleting files with identical IDs (Nick
  39947. Craig-Wood)
  39948. - oauth
  39949. - Use custom http client so that --no-check-certificate is
  39950. honored by oauth token fetch (Mark Spieth)
  39951. - Replace deprecated oauth2.NoContext (Lars Lehtonen)
  39952. - operations
  39953. - Fix setting the timestamp on Windows for multithread copy
  39954. (Nick Craig-Wood)
  39955. - Make rcat obey --ignore-checksum (Nick Craig-Wood)
  39956. - Make --max-transfer more accurate (Nick Craig-Wood)
  39957. - rc
  39958. - Fix dropped error (Lars Lehtonen)
  39959. - Fix misplaced http server config (Xiaoxing Ye)
  39960. - Disable duplicate log (ElonH)
  39961. - serve dlna
  39962. - Cds: don't specify childCount at all when unknown (Dan
  39963. Walters)
  39964. - Cds: use modification time as date in dlna metadata (Dan
  39965. Walters)
  39966. - serve restic: Fix tests after restic project removed vendoring
  39967. (Nick Craig-Wood)
  39968. - sync
  39969. - Fix incorrect "nothing to transfer" message using
  39970. --delete-before (Nick Craig-Wood)
  39971. - Only create empty directories when they don't exist on the
  39972. remote (Ishuah Kariuki)
  39973. - Mount
  39974. - Add --async-read flag to disable asynchronous reads (Nick
  39975. Craig-Wood)
  39976. - Ignore --allow-root flag with a warning as it has been removed
  39977. upstream (Nick Craig-Wood)
  39978. - Warn if --allow-non-empty used on Windows and clarify docs (Nick
  39979. Craig-Wood)
  39980. - Constrain to go1.13 or above otherwise bazil.org/fuse fails to
  39981. compile (Nick Craig-Wood)
  39982. - Fix fail because of too long volume name (evileye)
  39983. - Report 1PB free for unknown disk sizes (Nick Craig-Wood)
  39984. - Map more rclone errors into file systems errors (Nick
  39985. Craig-Wood)
  39986. - Fix disappearing cwd problem (Nick Craig-Wood)
  39987. - Use ReaddirPlus on Windows to improve directory listing
  39988. performance (Nick Craig-Wood)
  39989. - Send a hint as to whether the filesystem is case insensitive or
  39990. not (Nick Craig-Wood)
  39991. - Add rc command mount/types (Nick Craig-Wood)
  39992. - Change maximum leaf name length to 1024 bytes (Nick Craig-Wood)
  39993. - VFS
  39994. - Add --vfs-read-wait and --vfs-write-wait flags to control time
  39995. waiting for a sequential read/write (Nick Craig-Wood)
  39996. - Change default --vfs-read-wait to 20ms (it was 5ms and not
  39997. configurable) (Nick Craig-Wood)
  39998. - Make df output more consistent on a rclone mount. (Yves G)
  39999. - Report 1PB free for unknown disk sizes (Nick Craig-Wood)
  40000. - Fix race condition caused by unlocked reading of Dir.path (Nick
  40001. Craig-Wood)
  40002. - Make File lock and Dir lock not overlap to avoid deadlock (Nick
  40003. Craig-Wood)
  40004. - Implement lock ordering between File and Dir to eliminate
  40005. deadlocks (Nick Craig-Wood)
  40006. - Factor the vfs cache into its own package (Nick Craig-Wood)
  40007. - Pin the Fs in use in the Fs cache (Nick Craig-Wood)
  40008. - Add SetSys() methods to Node to allow caching stuff on a node
  40009. (Nick Craig-Wood)
  40010. - Ignore file not found errors from Hash in Read.Release (Nick
  40011. Craig-Wood)
  40012. - Fix hang in read wait code (Nick Craig-Wood)
  40013. - Local
  40014. - Speed up multi thread downloads by using sparse files on Windows
  40015. (Nick Craig-Wood)
  40016. - Implement --local-no-sparse flag for disabling sparse files
  40017. (Nick Craig-Wood)
  40018. - Implement rclone backend noop for testing purposes (Nick
  40019. Craig-Wood)
  40020. - Fix "file not found" errors on post transfer Hash calculation
  40021. (Nick Craig-Wood)
  40022. - Cache
  40023. - Implement rclone backend stats command (Nick Craig-Wood)
  40024. - Fix Server Side Copy with Temp Upload (Brandon McNama)
  40025. - Remove Unused Functions (Lars Lehtonen)
  40026. - Disable race tests until bbolt is fixed (Nick Craig-Wood)
  40027. - Move methods used for testing into test file (greatroar)
  40028. - Add Pin and Unpin and canonicalised lookup (Nick Craig-Wood)
  40029. - Use proper import path go.etcd.io/bbolt (Robert-André Mauchin)
  40030. - Crypt
  40031. - Calculate hashes for uploads from local disk (Nick Craig-Wood)
  40032. - This allows encrypted Jottacloud uploads without using local
  40033. disk
  40034. - This means encrypted s3/b2 uploads will now have hashes
  40035. - Added rclone backend decode/encode commands to replicate
  40036. functionality of cryptdecode (Anagh Kumar Baranwal)
  40037. - Get rid of the unused Cipher interface as it obfuscated the code
  40038. (Nick Craig-Wood)
  40039. - Azure Blob
  40040. - Implement streaming of unknown sized files so rcat is now
  40041. supported (Nick Craig-Wood)
  40042. - Implement memory pooling to control memory use (Nick Craig-Wood)
  40043. - Add --azureblob-disable-checksum flag (Nick Craig-Wood)
  40044. - Retry InvalidBlobOrBlock error as it may indicate block
  40045. concurrency problems (Nick Craig-Wood)
  40046. - Remove unused Object.parseTimeString() (Lars Lehtonen)
  40047. - Fix permission error on SAS URL limited to container (Nick
  40048. Craig-Wood)
  40049. - B2
  40050. - Add support for --header-upload and --header-download (Tim
  40051. Gallant)
  40052. - Ignore directory markers at the root also (Nick Craig-Wood)
  40053. - Force the case of the SHA1 to lowercase (Nick Craig-Wood)
  40054. - Remove unused largeUpload.clearUploadURL() (Lars Lehtonen)
  40055. - Box
  40056. - Add support for --header-upload and --header-download (Tim
  40057. Gallant)
  40058. - Implement About to read size used (Nick Craig-Wood)
  40059. - Add token renew function for jwt auth (David Bramwell)
  40060. - Added support for interchangeable root folder for Box backend
  40061. (Sunil Patra)
  40062. - Remove unnecessary iat from jws claims (David)
  40063. - Drive
  40064. - Follow shortcuts by default, skip with --drive-skip-shortcuts
  40065. (Nick Craig-Wood)
  40066. - Implement rclone backend shortcut command for creating shortcuts
  40067. (Nick Craig-Wood)
  40068. - Added rclone backend command to change service_account_file and
  40069. chunk_size (Anagh Kumar Baranwal)
  40070. - Fix missing files when using --fast-list and
  40071. --drive-shared-with-me (Nick Craig-Wood)
  40072. - Fix duplicate items when using --drive-shared-with-me (Nick
  40073. Craig-Wood)
  40074. - Extend --drive-stop-on-upload-limit to respond to
  40075. teamDriveFileLimitExceeded. (harry)
  40076. - Don't delete files with multiple parents to avoid data loss
  40077. (Nick Craig-Wood)
  40078. - Server side copy docs use default description if empty (Nick
  40079. Craig-Wood)
  40080. - Dropbox
  40081. - Make error insufficient space to be fatal (harry)
  40082. - Add info about required redirect url (Elan Ruusamäe)
  40083. - Fichier
  40084. - Add support for --header-upload and --header-download (Tim
  40085. Gallant)
  40086. - Implement custom pacer to deal with the new rate limiting
  40087. (buengese)
  40088. - FTP
  40089. - Fix lockup when using concurrency limit on failed connections
  40090. (Nick Craig-Wood)
  40091. - Fix lockup on failed upload when using concurrency limit (Nick
  40092. Craig-Wood)
  40093. - Fix lockup on Close failures when using concurrency limit (Nick
  40094. Craig-Wood)
  40095. - Work around pureftp sending spurious 150 messages (Nick
  40096. Craig-Wood)
  40097. - Google Cloud Storage
  40098. - Add support for --header-upload and --header-download (Nick
  40099. Craig-Wood)
  40100. - Add ARCHIVE storage class to help (Adam Stroud)
  40101. - Ignore directory markers at the root (Nick Craig-Wood)
  40102. - Googlephotos
  40103. - Make the start year configurable (Daven)
  40104. - Add support for --header-upload and --header-download (Tim
  40105. Gallant)
  40106. - Create feature/favorites directory (Brandon Philips)
  40107. - Fix "concurrent map write" error (Nick Craig-Wood)
  40108. - Don't put an image in error message (Nick Craig-Wood)
  40109. - HTTP
  40110. - Improved directory listing with new template from Caddy project
  40111. (calisro)
  40112. - Jottacloud
  40113. - Implement --jottacloud-trashed-only (buengese)
  40114. - Add support for --header-upload and --header-download (Tim
  40115. Gallant)
  40116. - Use RawURLEncoding when decoding base64 encoded login token
  40117. (buengese)
  40118. - Implement cleanup (buengese)
  40119. - Update docs regarding cleanup, removed remains from old auth,
  40120. and added warning about special mountpoints. (albertony)
  40121. - Mailru
  40122. - Describe 2FA requirements (valery1707)
  40123. - Onedrive
  40124. - Implement --onedrive-server-side-across-configs (Nick
  40125. Craig-Wood)
  40126. - Add support for --header-upload and --header-download (Tim
  40127. Gallant)
  40128. - Fix occasional 416 errors on multipart uploads (Nick Craig-Wood)
  40129. - Added maximum chunk size limit warning in the docs (Harry)
  40130. - Fix missing drive on config (Nick Craig-Wood)
  40131. - Make error quotaLimitReached to be fatal (harry)
  40132. - Opendrive
  40133. - Add support for --header-upload and --header-download (Tim
  40134. Gallant)
  40135. - Pcloud
  40136. - Added support for interchangeable root folder for pCloud backend
  40137. (Sunil Patra)
  40138. - Add support for --header-upload and --header-download (Tim
  40139. Gallant)
  40140. - Fix initial config "Auth state doesn't match" message (Nick
  40141. Craig-Wood)
  40142. - Premiumizeme
  40143. - Add support for --header-upload and --header-download (Tim
  40144. Gallant)
  40145. - Prune unused functions (Lars Lehtonen)
  40146. - Putio
  40147. - Add support for --header-upload and --header-download (Nick
  40148. Craig-Wood)
  40149. - Make downloading files use the rclone http Client (Nick
  40150. Craig-Wood)
  40151. - Fix parsing of remotes with leading and trailing / (Nick
  40152. Craig-Wood)
  40153. - Qingstor
  40154. - Make rclone cleanup remove pending multipart uploads older than
  40155. 24h (Nick Craig-Wood)
  40156. - Try harder to cancel failed multipart uploads (Nick Craig-Wood)
  40157. - Prune multiUploader.list() (Lars Lehtonen)
  40158. - Lint fix (Lars Lehtonen)
  40159. - S3
  40160. - Add support for --header-upload and --header-download (Tim
  40161. Gallant)
  40162. - Use memory pool for buffer allocations (Maciej Zimnoch)
  40163. - Add SSE-C support for AWS, Ceph, and MinIO (Jack Anderson)
  40164. - Fail fast multipart upload (Michał Matczuk)
  40165. - Report errors on bucket creation (mkdir) correctly (Nick
  40166. Craig-Wood)
  40167. - Specify that Minio supports URL encoding in listings (Nick
  40168. Craig-Wood)
  40169. - Added 500 as retryErrorCode (Michał Matczuk)
  40170. - Use --low-level-retries as the number of SDK retries (Aleksandar
  40171. Janković)
  40172. - Fix multipart abort context (Aleksandar Jankovic)
  40173. - Replace deprecated session.New() with session.NewSession() (Lars
  40174. Lehtonen)
  40175. - Use the provided size parameter when allocating a new memory
  40176. pool (Joachim Brandon LeBlanc)
  40177. - Use rclone's low level retries instead of AWS SDK to fix listing
  40178. retries (Nick Craig-Wood)
  40179. - Ignore directory markers at the root also (Nick Craig-Wood)
  40180. - Use single memory pool (Michał Matczuk)
  40181. - Do not resize buf on put to memBuf (Michał Matczuk)
  40182. - Improve docs for --s3-disable-checksum (Nick Craig-Wood)
  40183. - Don't leak memory or tokens in edge cases for multipart upload
  40184. (Nick Craig-Wood)
  40185. - Seafile
  40186. - Implement 2FA (Fred)
  40187. - SFTP
  40188. - Added --sftp-pem-key to support inline key files (calisro)
  40189. - Fix post transfer copies failing with 0 size when using
  40190. set_modtime=false (Nick Craig-Wood)
  40191. - Sharefile
  40192. - Add support for --header-upload and --header-download (Tim
  40193. Gallant)
  40194. - Sugarsync
  40195. - Add support for --header-upload and --header-download (Tim
  40196. Gallant)
  40197. - Swift
  40198. - Add support for --header-upload and --header-download (Nick
  40199. Craig-Wood)
  40200. - Fix cosmetic issue in error message (Martin Michlmayr)
  40201. - Union
  40202. - Implement multiple writable remotes (Max Sum)
  40203. - Fix server-side copy (Max Sum)
  40204. - Implement ListR (Max Sum)
  40205. - Enable ListR when upstreams contain local (Max Sum)
  40206. - WebDAV
  40207. - Add support for --header-upload and --header-download (Tim
  40208. Gallant)
  40209. - Fix X-OC-Mtime header for Transip compatibility (Nick
  40210. Craig-Wood)
  40211. - Report full and consistent usage with about (Yves G)
  40212. - Yandex
  40213. - Add support for --header-upload and --header-download (Tim
  40214. Gallant)
  40215. v1.51.0 - 2020-02-01
  40216. - New backends
  40217. - Memory (Nick Craig-Wood)
  40218. - Sugarsync (Nick Craig-Wood)
  40219. - New Features
  40220. - Adjust all backends to have --backend-encoding parameter (Nick
  40221. Craig-Wood)
  40222. - this enables the encoding for special characters to be
  40223. adjusted or disabled
  40224. - Add --max-duration flag to control the maximum duration of a
  40225. transfer session (boosh)
  40226. - Add --expect-continue-timeout flag, default 1s (Nick Craig-Wood)
  40227. - Add --no-check-dest flag for copying without testing the
  40228. destination (Nick Craig-Wood)
  40229. - Implement --order-by flag to order transfers (Nick Craig-Wood)
  40230. - accounting
  40231. - Don't show entries in both transferring and checking (Nick
  40232. Craig-Wood)
  40233. - Add option to delete stats (Aleksandar Jankovic)
  40234. - build
  40235. - Compress the test builds with gzip (Nick Craig-Wood)
  40236. - Implement a framework for starting test servers during tests
  40237. (Nick Craig-Wood)
  40238. - cmd: Always print elapsed time to tenth place seconds in
  40239. progress (Gary Kim)
  40240. - config
  40241. - Add --password-command to allow dynamic config password
  40242. (Damon Permezel)
  40243. - Give config questions default values (Nick Craig-Wood)
  40244. - Check a remote exists when creating a new one (Nick
  40245. Craig-Wood)
  40246. - copyurl: Add --stdout flag to write to stdout (Nick Craig-Wood)
  40247. - dedupe: Implement keep smallest too (Nick Craig-Wood)
  40248. - hashsum: Add flag --base64 flag (landall)
  40249. - lsf: Speed up on s3/swift/etc by not reading mimetype by default
  40250. (Nick Craig-Wood)
  40251. - lsjson: Add --no-mimetype flag (Nick Craig-Wood)
  40252. - rc: Add methods to turn on blocking and mutex profiling (Nick
  40253. Craig-Wood)
  40254. - rcd
  40255. - Adding group parameter to stats (Chaitanya)
  40256. - Move webgui apart; option to disable browser (Xiaoxing Ye)
  40257. - serve sftp: Add support for public key with auth proxy (Paul
  40258. Tinsley)
  40259. - stats: Show deletes in stats and hide zero stats (anuar45)
  40260. - Bug Fixes
  40261. - accounting
  40262. - Fix error counter counting multiple times (Ankur Gupta)
  40263. - Fix error count shown as checks (Cnly)
  40264. - Clear finished transfer in stats-reset (Maciej Zimnoch)
  40265. - Added StatsInfo locking in statsGroups sum function (Michał
  40266. Matczuk)
  40267. - asyncreader: Fix EOF error (buengese)
  40268. - check: Fix --one-way recursing more directories than it needs to
  40269. (Nick Craig-Wood)
  40270. - chunkedreader: Disable hash calculation for first segment (Nick
  40271. Craig-Wood)
  40272. - config
  40273. - Do not open browser on headless on drive/gcs/google photos
  40274. (Xiaoxing Ye)
  40275. - SetValueAndSave ignore error if config section does not
  40276. exist yet (buengese)
  40277. - cmd: Fix completion with an encrypted config (Danil Semelenov)
  40278. - dbhashsum: Stop it returning UNSUPPORTED on dropbox (Nick
  40279. Craig-Wood)
  40280. - dedupe: Add missing modes to help string (Nick Craig-Wood)
  40281. - operations
  40282. - Fix dedupe continuing on errors like
  40283. insufficientFilePersimmon (SezalAgrawal)
  40284. - Clear accounting before low level retry (Maciej Zimnoch)
  40285. - Write debug message when hashes could not be checked (Ole
  40286. Schütt)
  40287. - Move interface assertion to tests to remove pflag dependency
  40288. (Nick Craig-Wood)
  40289. - Make NewOverrideObjectInfo public and factor uses (Nick
  40290. Craig-Wood)
  40291. - proxy: Replace use of bcrypt with sha256 (Nick Craig-Wood)
  40292. - vendor
  40293. - Update bazil.org/fuse to fix FreeBSD 12.1 (Nick Craig-Wood)
  40294. - Update github.com/t3rm1n4l/go-mega to fix mega "illegal
  40295. base64 data at input byte 22" (Nick Craig-Wood)
  40296. - Update termbox-go to fix ncdu command on FreeBSD (Kuang-che
  40297. Wu)
  40298. - Update t3rm1n4l/go-mega - fixes mega: couldn't login:
  40299. crypto/aes: invalid key size 0 (Nick Craig-Wood)
  40300. - Mount
  40301. - Enable async reads for a 20% speedup (Nick Craig-Wood)
  40302. - Replace use of WriteAt with Write for cache mode >= writes and
  40303. O_APPEND (Brett Dutro)
  40304. - Make sure we call unmount when exiting (Nick Craig-Wood)
  40305. - Don't build on go1.10 as bazil/fuse no longer supports it (Nick
  40306. Craig-Wood)
  40307. - When setting dates discard out of range dates (Nick Craig-Wood)
  40308. - VFS
  40309. - Add a newly created file straight into the directory (Nick
  40310. Craig-Wood)
  40311. - Only calculate one hash for reads for a speedup (Nick
  40312. Craig-Wood)
  40313. - Make ReadAt for non cached files work better with non-sequential
  40314. reads (Nick Craig-Wood)
  40315. - Fix edge cases when reading ModTime from file (Nick Craig-Wood)
  40316. - Make sure existing files opened for write show correct size
  40317. (Nick Craig-Wood)
  40318. - Don't cache the path in RW file objects to fix renaming (Nick
  40319. Craig-Wood)
  40320. - Fix rename of open files when using the VFS cache (Nick
  40321. Craig-Wood)
  40322. - When renaming files in the cache, rename the cache item in
  40323. memory too (Nick Craig-Wood)
  40324. - Fix open file renaming on drive when using
  40325. --vfs-cache-mode writes (Nick Craig-Wood)
  40326. - Fix incorrect modtime for mv into mount with
  40327. --vfs-cache-modes writes (Nick Craig-Wood)
  40328. - On rename, rename in cache too if the file exists (Anagh Kumar
  40329. Baranwal)
  40330. - Local
  40331. - Make source file being updated errors be NoLowLevelRetry errors
  40332. (Nick Craig-Wood)
  40333. - Fix update of hidden files on Windows (Nick Craig-Wood)
  40334. - Cache
  40335. - Follow move of upstream library github.com/coreos/bbolt
  40336. github.com/etcd-io/bbolt (Nick Craig-Wood)
  40337. - Fix fatal error: concurrent map writes (Nick Craig-Wood)
  40338. - Crypt
  40339. - Reorder the filename encryption options (Thomas Eales)
  40340. - Correctly handle trailing dot (buengese)
  40341. - Chunker
  40342. - Reduce length of temporary suffix (Ivan Andreev)
  40343. - Drive
  40344. - Add --drive-stop-on-upload-limit flag to stop syncs when upload
  40345. limit reached (Nick Craig-Wood)
  40346. - Add --drive-use-shared-date to use date file was shared instead
  40347. of modified date (Garry McNulty)
  40348. - Make sure invalid auth for teamdrives always reports an error
  40349. (Nick Craig-Wood)
  40350. - Fix --fast-list when using appDataFolder (Nick Craig-Wood)
  40351. - Use multipart resumable uploads for streaming and uploads in
  40352. mount (Nick Craig-Wood)
  40353. - Log an ERROR if an incomplete search is returned (Nick
  40354. Craig-Wood)
  40355. - Hide dangerous config from the configurator (Nick Craig-Wood)
  40356. - Dropbox
  40357. - Treat insufficient_space errors as non retriable errors (Nick
  40358. Craig-Wood)
  40359. - Jottacloud
  40360. - Use new auth method used by official client (buengese)
  40361. - Add URL to generate Login Token to config wizard (Nick
  40362. Craig-Wood)
  40363. - Add support whitelabel versions (buengese)
  40364. - Koofr
  40365. - Use rclone HTTP client. (jaKa)
  40366. - Onedrive
  40367. - Add Sites.Read.All permission (Benjamin Richter)
  40368. - Add support "Retry-After" header (Motonori IWAMURO)
  40369. - Opendrive
  40370. - Implement --opendrive-chunk-size (Nick Craig-Wood)
  40371. - S3
  40372. - Re-implement multipart upload to fix memory issues (Nick
  40373. Craig-Wood)
  40374. - Add --s3-copy-cutoff for size to switch to multipart copy (Nick
  40375. Craig-Wood)
  40376. - Add new region Asia Pacific (Hong Kong) (Outvi V)
  40377. - Reduce memory usage streaming files by reducing max stream
  40378. upload size (Nick Craig-Wood)
  40379. - Add --s3-list-chunk option for bucket listing (Thomas
  40380. Kriechbaumer)
  40381. - Force path style bucket access to off for AWS deprecation (Nick
  40382. Craig-Wood)
  40383. - Use AWS web identity role provider if available (Tennix)
  40384. - Add StackPath Object Storage Support (Dave Koston)
  40385. - Fix ExpiryWindow value (Aleksandar Jankovic)
  40386. - Fix DisableChecksum condition (Aleksandar Janković)
  40387. - Fix URL decoding of NextMarker (Nick Craig-Wood)
  40388. - SFTP
  40389. - Add --sftp-skip-links to skip symlinks and non regular files
  40390. (Nick Craig-Wood)
  40391. - Retry Creation of Connection (Sebastian Brandt)
  40392. - Fix "failed to parse private key file: ssh: not an encrypted
  40393. key" error (Nick Craig-Wood)
  40394. - Open files for update write only to fix AWS SFTP interop (Nick
  40395. Craig-Wood)
  40396. - Swift
  40397. - Reserve segments of dynamic large object when delete objects in
  40398. container what was enabled versioning. (Nguyễn Hữu Luân)
  40399. - Fix parsing of X-Object-Manifest (Nick Craig-Wood)
  40400. - Update OVH API endpoint (unbelauscht)
  40401. - WebDAV
  40402. - Make nextcloud only upload SHA1 checksums (Nick Craig-Wood)
  40403. - Fix case of "Bearer" in Authorization: header to agree with RFC
  40404. (Nick Craig-Wood)
  40405. - Add Referer header to fix problems with WAFs (Nick Craig-Wood)
  40406. v1.50.2 - 2019-11-19
  40407. - Bug Fixes
  40408. - accounting: Fix memory leak on retries operations (Nick
  40409. Craig-Wood)
  40410. - Drive
  40411. - Fix listing of the root directory with drive.files scope (Nick
  40412. Craig-Wood)
  40413. - Fix --drive-root-folder-id with team/shared drives (Nick
  40414. Craig-Wood)
  40415. v1.50.1 - 2019-11-02
  40416. - Bug Fixes
  40417. - hash: Fix accidentally changed hash names for DropboxHash and
  40418. CRC-32 (Nick Craig-Wood)
  40419. - fshttp: Fix error reporting on tpslimit token bucket errors
  40420. (Nick Craig-Wood)
  40421. - fshttp: Don't print token bucket errors on context cancelled
  40422. (Nick Craig-Wood)
  40423. - Local
  40424. - Fix listings of . on Windows (Nick Craig-Wood)
  40425. - Onedrive
  40426. - Fix DirMove/Move after Onedrive change (Xiaoxing Ye)
  40427. v1.50.0 - 2019-10-26
  40428. - New backends
  40429. - Citrix Sharefile (Nick Craig-Wood)
  40430. - Chunker - an overlay backend to split files into smaller parts
  40431. (Ivan Andreev)
  40432. - Mail.ru Cloud (Ivan Andreev)
  40433. - New Features
  40434. - encodings (Fabian Möller & Nick Craig-Wood)
  40435. - All backends now use file name encoding to ensure any file
  40436. name can be written to any backend.
  40437. - See the restricted file name docs for more info and the
  40438. local backend docs.
  40439. - Some file names may look different in rclone if you are
  40440. using any control characters in names or unicode FULLWIDTH
  40441. symbols.
  40442. - build
  40443. - Update to use go1.13 for the build (Nick Craig-Wood)
  40444. - Drop support for go1.9 (Nick Craig-Wood)
  40445. - Build rclone with GitHub actions (Nick Craig-Wood)
  40446. - Convert python scripts to python3 (Nick Craig-Wood)
  40447. - Swap Azure/go-ansiterm for mattn/go-colorable (Nick
  40448. Craig-Wood)
  40449. - Dockerfile fixes (Matei David)
  40450. - Add plugin support for backends and commands (Richard Patel)
  40451. - config
  40452. - Use alternating Red/Green in config to make more obvious
  40453. (Nick Craig-Wood)
  40454. - contrib
  40455. - Add sample DLNA server Docker Compose manifest. (pataquets)
  40456. - Add sample WebDAV server Docker Compose manifest.
  40457. (pataquets)
  40458. - copyurl
  40459. - Add --auto-filename flag for using file name from URL in
  40460. destination path (Denis)
  40461. - serve dlna:
  40462. - Many compatibility improvements (Dan Walters)
  40463. - Support for external srt subtitles (Dan Walters)
  40464. - rc
  40465. - Added command core/quit (Saksham Khanna)
  40466. - Bug Fixes
  40467. - sync
  40468. - Make --update/-u not transfer files that haven't changed
  40469. (Nick Craig-Wood)
  40470. - Free objects after they come out of the transfer pipe to
  40471. save memory (Nick Craig-Wood)
  40472. - Fix --files-from without --no-traverse doing a recursive
  40473. scan (Nick Craig-Wood)
  40474. - operations
  40475. - Fix accounting for server-side copies (Nick Craig-Wood)
  40476. - Display 'All duplicates removed' only if dedupe successful
  40477. (Sezal Agrawal)
  40478. - Display 'Deleted X extra copies' only if dedupe successful
  40479. (Sezal Agrawal)
  40480. - accounting
  40481. - Only allow up to 100 completed transfers in the accounting
  40482. list to save memory (Nick Craig-Wood)
  40483. - Cull the old time ranges when possible to save memory (Nick
  40484. Craig-Wood)
  40485. - Fix panic due to server-side copy fallback (Ivan Andreev)
  40486. - Fix memory leak noticeable for transfers of large numbers of
  40487. objects (Nick Craig-Wood)
  40488. - Fix total duration calculation (Nick Craig-Wood)
  40489. - cmd
  40490. - Fix environment variables not setting command line flags
  40491. (Nick Craig-Wood)
  40492. - Make autocomplete compatible with bash's posix mode for
  40493. macOS (Danil Semelenov)
  40494. - Make --progress work in git bash on Windows (Nick
  40495. Craig-Wood)
  40496. - Fix 'compopt: command not found' on autocomplete on macOS
  40497. (Danil Semelenov)
  40498. - config
  40499. - Fix setting of non top level flags from environment
  40500. variables (Nick Craig-Wood)
  40501. - Check config names more carefully and report errors (Nick
  40502. Craig-Wood)
  40503. - Remove error: can't use --size-only and --ignore-size
  40504. together. (Nick Craig-Wood)
  40505. - filter: Prevent mixing options when --files-from is in use
  40506. (Michele Caci)
  40507. - serve sftp: Fix crash on unsupported operations (e.g. Readlink)
  40508. (Nick Craig-Wood)
  40509. - Mount
  40510. - Allow files of unknown size to be read properly (Nick
  40511. Craig-Wood)
  40512. - Skip tests on <= 2 CPUs to avoid lockup (Nick Craig-Wood)
  40513. - Fix panic on File.Open (Nick Craig-Wood)
  40514. - Fix "mount_fusefs: -o timeout=: option not supported" on FreeBSD
  40515. (Nick Craig-Wood)
  40516. - Don't pass huge filenames (>4k) to FUSE as it can't cope (Nick
  40517. Craig-Wood)
  40518. - VFS
  40519. - Add flag --vfs-case-insensitive for windows/macOS mounts (Ivan
  40520. Andreev)
  40521. - Make objects of unknown size readable through the VFS (Nick
  40522. Craig-Wood)
  40523. - Move writeback of dirty data out of close() method into its own
  40524. method (FlushWrites) and remove close() call from Flush() (Brett
  40525. Dutro)
  40526. - Stop empty dirs disappearing when renamed on bucket-based
  40527. remotes (Nick Craig-Wood)
  40528. - Stop change notify polling clearing so much of the directory
  40529. cache (Nick Craig-Wood)
  40530. - Azure Blob
  40531. - Disable logging to the Windows event log (Nick Craig-Wood)
  40532. - B2
  40533. - Remove unverified: prefix on sha1 to improve interop (e.g. with
  40534. CyberDuck) (Nick Craig-Wood)
  40535. - Box
  40536. - Add options to get access token via JWT auth (David)
  40537. - Drive
  40538. - Disable HTTP/2 by default to work around INTERNAL_ERROR problems
  40539. (Nick Craig-Wood)
  40540. - Make sure that drive root ID is always canonical (Nick
  40541. Craig-Wood)
  40542. - Fix --drive-shared-with-me from the root with lsand --fast-list
  40543. (Nick Craig-Wood)
  40544. - Fix ChangeNotify polling for shared drives (Nick Craig-Wood)
  40545. - Fix change notify polling when using appDataFolder (Nick
  40546. Craig-Wood)
  40547. - Dropbox
  40548. - Make disallowed filenames errors not retry (Nick Craig-Wood)
  40549. - Fix nil pointer exception on restricted files (Nick Craig-Wood)
  40550. - Fichier
  40551. - Fix accessing files > 2GB on 32 bit systems (Nick Craig-Wood)
  40552. - FTP
  40553. - Allow disabling EPSV mode (Jon Fautley)
  40554. - HTTP
  40555. - HEAD directory entries in parallel to speedup (Nick Craig-Wood)
  40556. - Add --http-no-head to stop rclone doing HEAD in listings (Nick
  40557. Craig-Wood)
  40558. - Putio
  40559. - Add ability to resume uploads (Cenk Alti)
  40560. - S3
  40561. - Fix signature v2_auth headers (Anthony Rusdi)
  40562. - Fix encoding for control characters (Nick Craig-Wood)
  40563. - Only ask for URL encoded directory listings if we need them on
  40564. Ceph (Nick Craig-Wood)
  40565. - Add option for multipart failure behaviour (Aleksandar Jankovic)
  40566. - Support for multipart copy (庄天翼)
  40567. - Fix nil pointer reference if no metadata returned for object
  40568. (Nick Craig-Wood)
  40569. - SFTP
  40570. - Fix --sftp-ask-password trying to contact the ssh agent (Nick
  40571. Craig-Wood)
  40572. - Fix hashes of files with backslashes (Nick Craig-Wood)
  40573. - Include more ciphers with --sftp-use-insecure-cipher (Carlos
  40574. Ferreyra)
  40575. - WebDAV
  40576. - Parse and return Sharepoint error response (Henning Surmeier)
  40577. v1.49.5 - 2019-10-05
  40578. - Bug Fixes
  40579. - Revert back to go1.12.x for the v1.49.x builds as go1.13.x was
  40580. causing issues (Nick Craig-Wood)
  40581. - Fix rpm packages by using master builds of nfpm (Nick
  40582. Craig-Wood)
  40583. - Fix macOS build after brew changes (Nick Craig-Wood)
  40584. v1.49.4 - 2019-09-29
  40585. - Bug Fixes
  40586. - cmd/rcd: Address ZipSlip vulnerability (Richard Patel)
  40587. - accounting: Fix file handle leak on errors (Nick Craig-Wood)
  40588. - oauthutil: Fix security problem when running with two users on
  40589. the same machine (Nick Craig-Wood)
  40590. - FTP
  40591. - Fix listing of an empty root returning: error dir not found
  40592. (Nick Craig-Wood)
  40593. - S3
  40594. - Fix SetModTime on GLACIER/ARCHIVE objects and implement set/get
  40595. tier (Nick Craig-Wood)
  40596. v1.49.3 - 2019-09-15
  40597. - Bug Fixes
  40598. - accounting
  40599. - Fix total duration calculation (Aleksandar Jankovic)
  40600. - Fix "file already closed" on transfer retries (Nick
  40601. Craig-Wood)
  40602. v1.49.2 - 2019-09-08
  40603. - New Features
  40604. - build: Add Docker workflow support (Alfonso Montero)
  40605. - Bug Fixes
  40606. - accounting: Fix locking in Transfer to avoid deadlock with
  40607. --progress (Nick Craig-Wood)
  40608. - docs: Fix template argument for mktemp in install.sh (Cnly)
  40609. - operations: Fix -u/--update with google photos / files of
  40610. unknown size (Nick Craig-Wood)
  40611. - rc: Fix docs for config/create /update /password (Nick
  40612. Craig-Wood)
  40613. - Google Cloud Storage
  40614. - Fix need for elevated permissions on SetModTime (Nick
  40615. Craig-Wood)
  40616. v1.49.1 - 2019-08-28
  40617. - Bug Fixes
  40618. - config: Fix generated passwords being stored as empty password
  40619. (Nick Craig-Wood)
  40620. - rcd: Added missing parameter for web-gui info logs. (Chaitanya)
  40621. - Googlephotos
  40622. - Fix crash on error response (Nick Craig-Wood)
  40623. - Onedrive
  40624. - Fix crash on error response (Nick Craig-Wood)
  40625. v1.49.0 - 2019-08-26
  40626. - New backends
  40627. - 1fichier (Laura Hausmann)
  40628. - Google Photos (Nick Craig-Wood)
  40629. - Putio (Cenk Alti)
  40630. - premiumize.me (Nick Craig-Wood)
  40631. - New Features
  40632. - Experimental web GUI (Chaitanya Bankanhal)
  40633. - Implement --compare-dest & --copy-dest (yparitcher)
  40634. - Implement --suffix without --backup-dir for backup to current
  40635. dir (yparitcher)
  40636. - config reconnect to re-login (re-run the oauth login) for the
  40637. backend. (Nick Craig-Wood)
  40638. - config userinfo to discover which user you are logged in as.
  40639. (Nick Craig-Wood)
  40640. - config disconnect to disconnect you (log out) from the backend.
  40641. (Nick Craig-Wood)
  40642. - Add --use-json-log for JSON logging (justinalin)
  40643. - Add context propagation to rclone (Aleksandar Jankovic)
  40644. - Reworking internal statistics interfaces so they work with rc
  40645. jobs (Aleksandar Jankovic)
  40646. - Add Higher units for ETA (AbelThar)
  40647. - Update rclone logos to new design (Andreas Chlupka)
  40648. - hash: Add CRC-32 support (Cenk Alti)
  40649. - help showbackend: Fixed advanced option category when there are
  40650. no standard options (buengese)
  40651. - ncdu: Display/Copy to Clipboard Current Path (Gary Kim)
  40652. - operations:
  40653. - Run hashing operations in parallel (Nick Craig-Wood)
  40654. - Don't calculate checksums when using --ignore-checksum (Nick
  40655. Craig-Wood)
  40656. - Check transfer hashes when using --size-only mode (Nick
  40657. Craig-Wood)
  40658. - Disable multi thread copy for local to local copies (Nick
  40659. Craig-Wood)
  40660. - Debug successful hashes as well as failures (Nick
  40661. Craig-Wood)
  40662. - rc
  40663. - Add ability to stop async jobs (Aleksandar Jankovic)
  40664. - Return current settings if core/bwlimit called without
  40665. parameters (Nick Craig-Wood)
  40666. - Rclone-WebUI integration with rclone (Chaitanya Bankanhal)
  40667. - Added command line parameter to control the cross origin
  40668. resource sharing (CORS) in the rcd. (Security Improvement)
  40669. (Chaitanya Bankanhal)
  40670. - Add anchor tags to the docs so links are consistent (Nick
  40671. Craig-Wood)
  40672. - Remove _async key from input parameters after parsing so
  40673. later operations won't get confused (buengese)
  40674. - Add call to clear stats (Aleksandar Jankovic)
  40675. - rcd
  40676. - Auto-login for web-gui (Chaitanya Bankanhal)
  40677. - Implement --baseurl for rcd and web-gui (Chaitanya
  40678. Bankanhal)
  40679. - serve dlna
  40680. - Only select interfaces which can multicast for SSDP (Nick
  40681. Craig-Wood)
  40682. - Add more builtin mime types to cover standard audio/video
  40683. (Nick Craig-Wood)
  40684. - Fix missing mime types on Android causing missing videos
  40685. (Nick Craig-Wood)
  40686. - serve ftp
  40687. - Refactor to bring into line with other serve commands (Nick
  40688. Craig-Wood)
  40689. - Implement --auth-proxy (Nick Craig-Wood)
  40690. - serve http: Implement --baseurl (Nick Craig-Wood)
  40691. - serve restic: Implement --baseurl (Nick Craig-Wood)
  40692. - serve sftp
  40693. - Implement auth proxy (Nick Craig-Wood)
  40694. - Fix detection of whether server is authorized (Nick
  40695. Craig-Wood)
  40696. - serve webdav
  40697. - Implement --baseurl (Nick Craig-Wood)
  40698. - Support --auth-proxy (Nick Craig-Wood)
  40699. - Bug Fixes
  40700. - Make "bad record MAC" a retriable error (Nick Craig-Wood)
  40701. - copyurl: Fix copying files that return HTTP errors (Nick
  40702. Craig-Wood)
  40703. - march: Fix checking sub-directories when using --no-traverse
  40704. (buengese)
  40705. - rc
  40706. - Fix unmarshalable http.AuthFn in options and put in test for
  40707. marshalability (Nick Craig-Wood)
  40708. - Move job expire flags to rc to fix initialization problem
  40709. (Nick Craig-Wood)
  40710. - Fix --loopback with rc/list and others (Nick Craig-Wood)
  40711. - rcat: Fix slowdown on systems with multiple hashes (Nick
  40712. Craig-Wood)
  40713. - rcd: Fix permissions problems on cache directory with web gui
  40714. download (Nick Craig-Wood)
  40715. - Mount
  40716. - Default --daemon-timeout to 15 minutes on macOS and FreeBSD
  40717. (Nick Craig-Wood)
  40718. - Update docs to show mounting from root OK for bucket-based (Nick
  40719. Craig-Wood)
  40720. - Remove nonseekable flag from write files (Nick Craig-Wood)
  40721. - VFS
  40722. - Make write without cache more efficient (Nick Craig-Wood)
  40723. - Fix --vfs-cache-mode minimal and writes ignoring cached files
  40724. (Nick Craig-Wood)
  40725. - Local
  40726. - Add --local-case-sensitive and --local-case-insensitive (Nick
  40727. Craig-Wood)
  40728. - Avoid polluting page cache when uploading local files to remote
  40729. backends (Michał Matczuk)
  40730. - Don't calculate any hashes by default (Nick Craig-Wood)
  40731. - Fadvise run syscall on a dedicated go routine (Michał Matczuk)
  40732. - Azure Blob
  40733. - Azure Storage Emulator support (Sandeep)
  40734. - Updated config help details to remove connection string
  40735. references (Sandeep)
  40736. - Make all operations work from the root (Nick Craig-Wood)
  40737. - B2
  40738. - Implement link sharing (yparitcher)
  40739. - Enable server-side copy to copy between buckets (Nick
  40740. Craig-Wood)
  40741. - Make all operations work from the root (Nick Craig-Wood)
  40742. - Drive
  40743. - Fix server-side copy of big files (Nick Craig-Wood)
  40744. - Update API for teamdrive use (Nick Craig-Wood)
  40745. - Add error for purge with --drive-trashed-only (ginvine)
  40746. - Fichier
  40747. - Make FolderID int and adjust related code (buengese)
  40748. - Google Cloud Storage
  40749. - Reduce oauth scope requested as suggested by Google (Nick
  40750. Craig-Wood)
  40751. - Make all operations work from the root (Nick Craig-Wood)
  40752. - HTTP
  40753. - Add --http-headers flag for setting arbitrary headers (Nick
  40754. Craig-Wood)
  40755. - Jottacloud
  40756. - Use new api for retrieving internal username (buengese)
  40757. - Refactor configuration and minor cleanup (buengese)
  40758. - Koofr
  40759. - Support setting modification times on Koofr backend. (jaKa)
  40760. - Opendrive
  40761. - Refactor to use existing lib/rest facilities for uploads (Nick
  40762. Craig-Wood)
  40763. - Qingstor
  40764. - Upgrade to v3 SDK and fix listing loop (Nick Craig-Wood)
  40765. - Make all operations work from the root (Nick Craig-Wood)
  40766. - S3
  40767. - Add INTELLIGENT_TIERING storage class (Matti Niemenmaa)
  40768. - Make all operations work from the root (Nick Craig-Wood)
  40769. - SFTP
  40770. - Add missing interface check and fix About (Nick Craig-Wood)
  40771. - Completely ignore all modtime checks if SetModTime=false (Jon
  40772. Fautley)
  40773. - Support md5/sha1 with rsync.net (Nick Craig-Wood)
  40774. - Save the md5/sha1 command in use to the config file for
  40775. efficiency (Nick Craig-Wood)
  40776. - Opt-in support for diffie-hellman-group-exchange-sha256
  40777. diffie-hellman-group-exchange-sha1 (Yi FU)
  40778. - Swift
  40779. - Use FixRangeOption to fix 0 length files via the VFS (Nick
  40780. Craig-Wood)
  40781. - Fix upload when using no_chunk to return the correct size (Nick
  40782. Craig-Wood)
  40783. - Make all operations work from the root (Nick Craig-Wood)
  40784. - Fix segments leak during failed large file uploads.
  40785. (nguyenhuuluan434)
  40786. - WebDAV
  40787. - Add --webdav-bearer-token-command (Nick Craig-Wood)
  40788. - Refresh token when it expires with --webdav-bearer-token-command
  40789. (Nick Craig-Wood)
  40790. - Add docs for using bearer_token_command with oidc-agent (Paul
  40791. Millar)
  40792. v1.48.0 - 2019-06-15
  40793. - New commands
  40794. - serve sftp: Serve an rclone remote over SFTP (Nick Craig-Wood)
  40795. - New Features
  40796. - Multi threaded downloads to local storage (Nick Craig-Wood)
  40797. - controlled with --multi-thread-cutoff and
  40798. --multi-thread-streams
  40799. - Use rclone.conf from rclone executable directory to enable
  40800. portable use (albertony)
  40801. - Allow sync of a file and a directory with the same name
  40802. (forgems)
  40803. - this is common on bucket-based remotes, e.g. s3, gcs
  40804. - Add --ignore-case-sync for forced case insensitivity (garry415)
  40805. - Implement --stats-one-line-date and --stats-one-line-date-format
  40806. (Peter Berbec)
  40807. - Log an ERROR for all commands which exit with non-zero status
  40808. (Nick Craig-Wood)
  40809. - Use go-homedir to read the home directory more reliably (Nick
  40810. Craig-Wood)
  40811. - Enable creating encrypted config through external script
  40812. invocation (Wojciech Smigielski)
  40813. - build: Drop support for go1.8 (Nick Craig-Wood)
  40814. - config: Make config create/update encrypt passwords where
  40815. necessary (Nick Craig-Wood)
  40816. - copyurl: Honor --no-check-certificate (Stefan Breunig)
  40817. - install: Linux skip man pages if no mandb (didil)
  40818. - lsf: Support showing the Tier of the object (Nick Craig-Wood)
  40819. - lsjson
  40820. - Added EncryptedPath to output (calisro)
  40821. - Support showing the Tier of the object (Nick Craig-Wood)
  40822. - Add IsBucket field for bucket-based remote listing of the
  40823. root (Nick Craig-Wood)
  40824. - rc
  40825. - Add --loopback flag to run commands directly without a
  40826. server (Nick Craig-Wood)
  40827. - Add operations/fsinfo: Return information about the remote
  40828. (Nick Craig-Wood)
  40829. - Skip auth for OPTIONS request (Nick Craig-Wood)
  40830. - cmd/providers: Add DefaultStr, ValueStr and Type fields
  40831. (Nick Craig-Wood)
  40832. - jobs: Make job expiry timeouts configurable (Aleksandar
  40833. Jankovic)
  40834. - serve dlna reworked and improved (Dan Walters)
  40835. - serve ftp: add --ftp-public-ip flag to specify public IP
  40836. (calistri)
  40837. - serve restic: Add support for --private-repos in serve restic
  40838. (Florian Apolloner)
  40839. - serve webdav: Combine serve webdav and serve http (Gary Kim)
  40840. - size: Ignore negative sizes when calculating total (Garry
  40841. McNulty)
  40842. - Bug Fixes
  40843. - Make move and copy individual files obey --backup-dir (Nick
  40844. Craig-Wood)
  40845. - If --ignore-checksum is in effect, don't calculate checksum
  40846. (Nick Craig-Wood)
  40847. - moveto: Fix case-insensitive same remote move (Gary Kim)
  40848. - rc: Fix serving bucket-based objects with --rc-serve (Nick
  40849. Craig-Wood)
  40850. - serve webdav: Fix serveDir not being updated with changes from
  40851. webdav (Gary Kim)
  40852. - Mount
  40853. - Fix poll interval documentation (Animosity022)
  40854. - VFS
  40855. - Make WriteAt for non cached files work with non-sequential
  40856. writes (Nick Craig-Wood)
  40857. - Local
  40858. - Only calculate the required hashes for big speedup (Nick
  40859. Craig-Wood)
  40860. - Log errors when listing instead of returning an error (Nick
  40861. Craig-Wood)
  40862. - Fix preallocate warning on Linux with ZFS (Nick Craig-Wood)
  40863. - Crypt
  40864. - Make rclone dedupe work through crypt (Nick Craig-Wood)
  40865. - Fix wrapping of ChangeNotify to decrypt directories properly
  40866. (Nick Craig-Wood)
  40867. - Support PublicLink (rclone link) of underlying backend (Nick
  40868. Craig-Wood)
  40869. - Implement Optional methods SetTier, GetTier (Nick Craig-Wood)
  40870. - B2
  40871. - Implement server-side copy (Nick Craig-Wood)
  40872. - Implement SetModTime (Nick Craig-Wood)
  40873. - Drive
  40874. - Fix move and copy from TeamDrive to GDrive (Fionera)
  40875. - Add notes that cleanup works in the background on drive (Nick
  40876. Craig-Wood)
  40877. - Add --drive-server-side-across-configs to default back to old
  40878. server-side copy semantics by default (Nick Craig-Wood)
  40879. - Add --drive-size-as-quota to show storage quota usage for file
  40880. size (Garry McNulty)
  40881. - FTP
  40882. - Add FTP List timeout (Jeff Quinn)
  40883. - Add FTP over TLS support (Gary Kim)
  40884. - Add --ftp-no-check-certificate option for FTPS (Gary Kim)
  40885. - Google Cloud Storage
  40886. - Fix upload errors when uploading pre 1970 files (Nick
  40887. Craig-Wood)
  40888. - Jottacloud
  40889. - Add support for selecting device and mountpoint. (buengese)
  40890. - Mega
  40891. - Add cleanup support (Gary Kim)
  40892. - Onedrive
  40893. - More accurately check if root is found (Cnly)
  40894. - S3
  40895. - Support S3 Accelerated endpoints with
  40896. --s3-use-accelerate-endpoint (Nick Craig-Wood)
  40897. - Add config info for Wasabi's EU Central endpoint (Robert Marko)
  40898. - Make SetModTime work for GLACIER while syncing (Philip Harvey)
  40899. - SFTP
  40900. - Add About support (Gary Kim)
  40901. - Fix about parsing of df results so it can cope with -ve results
  40902. (Nick Craig-Wood)
  40903. - Send custom client version and debug server version (Nick
  40904. Craig-Wood)
  40905. - WebDAV
  40906. - Retry on 423 Locked errors (Nick Craig-Wood)
  40907. v1.47.0 - 2019-04-13
  40908. - New backends
  40909. - Backend for Koofr cloud storage service. (jaKa)
  40910. - New Features
  40911. - Resume downloads if the reader fails in copy (Nick Craig-Wood)
  40912. - this means rclone will restart transfers if the source has
  40913. an error
  40914. - this is most useful for downloads or cloud to cloud copies
  40915. - Use --fast-list for listing operations where it won't use more
  40916. memory (Nick Craig-Wood)
  40917. - this should speed up the following operations on remotes
  40918. which support ListR
  40919. - dedupe, serve restic lsf, ls, lsl, lsjson, lsd, md5sum,
  40920. sha1sum, hashsum, size, delete, cat, settier
  40921. - use --disable ListR to get old behaviour if required
  40922. - Make --files-from traverse the destination unless --no-traverse
  40923. is set (Nick Craig-Wood)
  40924. - this fixes --files-from with Google drive and excessive API
  40925. use in general.
  40926. - Make server-side copy account bytes and obey --max-transfer
  40927. (Nick Craig-Wood)
  40928. - Add --create-empty-src-dirs flag and default to not creating
  40929. empty dirs (ishuah)
  40930. - Add client side TLS/SSL flags
  40931. --ca-cert/--client-cert/--client-key (Nick Craig-Wood)
  40932. - Implement --suffix-keep-extension for use with --suffix (Nick
  40933. Craig-Wood)
  40934. - build:
  40935. - Switch to semver compliant version tags to be go modules
  40936. compliant (Nick Craig-Wood)
  40937. - Update to use go1.12.x for the build (Nick Craig-Wood)
  40938. - serve dlna: Add connection manager service description to
  40939. improve compatibility (Dan Walters)
  40940. - lsf: Add 'e' format to show encrypted names and 'o' for original
  40941. IDs (Nick Craig-Wood)
  40942. - lsjson: Added --files-only and --dirs-only flags (calistri)
  40943. - rc: Implement operations/publiclink the equivalent of
  40944. rclone link (Nick Craig-Wood)
  40945. - Bug Fixes
  40946. - accounting: Fix total ETA when --stats-unit bits is in effect
  40947. (Nick Craig-Wood)
  40948. - Bash TAB completion
  40949. - Use private custom func to fix clash between rclone and
  40950. kubectl (Nick Craig-Wood)
  40951. - Fix for remotes with underscores in their names (Six)
  40952. - Fix completion of remotes (Florian Gamböck)
  40953. - Fix autocompletion of remote paths with spaces (Danil
  40954. Semelenov)
  40955. - serve dlna: Fix root XML service descriptor (Dan Walters)
  40956. - ncdu: Fix display corruption with Chinese characters (Nick
  40957. Craig-Wood)
  40958. - Add SIGTERM to signals which run the exit handlers on unix (Nick
  40959. Craig-Wood)
  40960. - rc: Reload filter when the options are set via the rc (Nick
  40961. Craig-Wood)
  40962. - VFS / Mount
  40963. - Fix FreeBSD: Ignore Truncate if called with no readers and
  40964. already the correct size (Nick Craig-Wood)
  40965. - Read directory and check for a file before mkdir (Nick
  40966. Craig-Wood)
  40967. - Shorten the locking window for vfs/refresh (Nick Craig-Wood)
  40968. - Azure Blob
  40969. - Enable MD5 checksums when uploading files bigger than the
  40970. "Cutoff" (Dr.Rx)
  40971. - Fix SAS URL support (Nick Craig-Wood)
  40972. - B2
  40973. - Allow manual configuration of backblaze downloadUrl (Vince)
  40974. - Ignore already_hidden error on remove (Nick Craig-Wood)
  40975. - Ignore malformed src_last_modified_millis (Nick Craig-Wood)
  40976. - Drive
  40977. - Add --skip-checksum-gphotos to ignore incorrect checksums on
  40978. Google Photos (Nick Craig-Wood)
  40979. - Allow server-side move/copy between different remotes. (Fionera)
  40980. - Add docs on team drives and --fast-list eventual consistency
  40981. (Nestar47)
  40982. - Fix imports of text files (Nick Craig-Wood)
  40983. - Fix range requests on 0 length files (Nick Craig-Wood)
  40984. - Fix creation of duplicates with server-side copy (Nick
  40985. Craig-Wood)
  40986. - Dropbox
  40987. - Retry blank errors to fix long listings (Nick Craig-Wood)
  40988. - FTP
  40989. - Add --ftp-concurrency to limit maximum number of connections
  40990. (Nick Craig-Wood)
  40991. - Google Cloud Storage
  40992. - Fall back to default application credentials (marcintustin)
  40993. - Allow bucket policy only buckets (Nick Craig-Wood)
  40994. - HTTP
  40995. - Add --http-no-slash for websites with directories with no
  40996. slashes (Nick Craig-Wood)
  40997. - Remove duplicates from listings (Nick Craig-Wood)
  40998. - Fix socket leak on 404 errors (Nick Craig-Wood)
  40999. - Jottacloud
  41000. - Fix token refresh (Sebastian Bünger)
  41001. - Add device registration (Oliver Heyme)
  41002. - Onedrive
  41003. - Implement graceful cancel of multipart uploads if rclone is
  41004. interrupted (Cnly)
  41005. - Always add trailing colon to path when addressing items, (Cnly)
  41006. - Return errors instead of panic for invalid uploads (Fabian
  41007. Möller)
  41008. - S3
  41009. - Add support for "Glacier Deep Archive" storage class (Manu)
  41010. - Update Dreamhost endpoint (Nick Craig-Wood)
  41011. - Note incompatibility with CEPH Jewel (Nick Craig-Wood)
  41012. - SFTP
  41013. - Allow custom ssh client config (Alexandru Bumbacea)
  41014. - Swift
  41015. - Obey Retry-After to enable OVH restore from cold storage (Nick
  41016. Craig-Wood)
  41017. - Work around token expiry on CEPH (Nick Craig-Wood)
  41018. - WebDAV
  41019. - Allow IsCollection property to be integer or boolean (Nick
  41020. Craig-Wood)
  41021. - Fix race when creating directories (Nick Craig-Wood)
  41022. - Fix About/df when reading the available/total returns 0 (Nick
  41023. Craig-Wood)
  41024. v1.46 - 2019-02-09
  41025. - New backends
  41026. - Support Alibaba Cloud (Aliyun) OSS via the s3 backend (Nick
  41027. Craig-Wood)
  41028. - New commands
  41029. - serve dlna: serves a remove via DLNA for the local network
  41030. (nicolov)
  41031. - New Features
  41032. - copy, move: Restore deprecated --no-traverse flag (Nick
  41033. Craig-Wood)
  41034. - This is useful for when transferring a small number of files
  41035. into a large destination
  41036. - genautocomplete: Add remote path completion for bash completion
  41037. (Christopher Peterson & Danil Semelenov)
  41038. - Buffer memory handling reworked to return memory to the OS
  41039. better (Nick Craig-Wood)
  41040. - Buffer recycling library to replace sync.Pool
  41041. - Optionally use memory mapped memory for better memory
  41042. shrinking
  41043. - Enable with --use-mmap if having memory problems - not
  41044. default yet
  41045. - Parallelise reading of files specified by --files-from (Nick
  41046. Craig-Wood)
  41047. - check: Add stats showing total files matched. (Dario Guzik)
  41048. - Allow rename/delete open files under Windows (Nick Craig-Wood)
  41049. - lsjson: Use exactly the correct number of decimal places in the
  41050. seconds (Nick Craig-Wood)
  41051. - Add cookie support with cmdline switch --use-cookies for all
  41052. HTTP based remotes (qip)
  41053. - Warn if --checksum is set but there are no hashes available
  41054. (Nick Craig-Wood)
  41055. - Rework rate limiting (pacer) to be more accurate and allow
  41056. bursting (Nick Craig-Wood)
  41057. - Improve error reporting for too many/few arguments in commands
  41058. (Nick Craig-Wood)
  41059. - listremotes: Remove -l short flag as it conflicts with the new
  41060. global flag (weetmuts)
  41061. - Make http serving with auth generate INFO messages on auth fail
  41062. (Nick Craig-Wood)
  41063. - Bug Fixes
  41064. - Fix layout of stats (Nick Craig-Wood)
  41065. - Fix --progress crash under Windows Jenkins (Nick Craig-Wood)
  41066. - Fix transfer of google/onedrive docs by calling Rcat in Copy
  41067. when size is -1 (Cnly)
  41068. - copyurl: Fix checking of --dry-run (Denis Skovpen)
  41069. - Mount
  41070. - Check that mountpoint and local directory to mount don't overlap
  41071. (Nick Craig-Wood)
  41072. - Fix mount size under 32 bit Windows (Nick Craig-Wood)
  41073. - VFS
  41074. - Implement renaming of directories for backends without DirMove
  41075. (Nick Craig-Wood)
  41076. - now all backends except b2 support renaming directories
  41077. - Implement --vfs-cache-max-size to limit the total size of the
  41078. cache (Nick Craig-Wood)
  41079. - Add --dir-perms and --file-perms flags to set default
  41080. permissions (Nick Craig-Wood)
  41081. - Fix deadlock on concurrent operations on a directory (Nick
  41082. Craig-Wood)
  41083. - Fix deadlock between RWFileHandle.close and File.Remove (Nick
  41084. Craig-Wood)
  41085. - Fix renaming/deleting open files with cache mode "writes" under
  41086. Windows (Nick Craig-Wood)
  41087. - Fix panic on rename with --dry-run set (Nick Craig-Wood)
  41088. - Fix vfs/refresh with recurse=true needing the --fast-list flag
  41089. - Local
  41090. - Add support for -l/--links (symbolic link translation)
  41091. (yair@unicorn)
  41092. - this works by showing links as link.rclonelink - see local
  41093. backend docs for more info
  41094. - this errors if used with -L/--copy-links
  41095. - Fix renaming/deleting open files on Windows (Nick Craig-Wood)
  41096. - Crypt
  41097. - Check for maximum length before decrypting filename to fix panic
  41098. (Garry McNulty)
  41099. - Azure Blob
  41100. - Allow building azureblob backend on *BSD (themylogin)
  41101. - Use the rclone HTTP client to support --dump headers,
  41102. --tpslimit, etc. (Nick Craig-Wood)
  41103. - Use the s3 pacer for 0 delay in non error conditions (Nick
  41104. Craig-Wood)
  41105. - Ignore directory markers (Nick Craig-Wood)
  41106. - Stop Mkdir attempting to create existing containers (Nick
  41107. Craig-Wood)
  41108. - B2
  41109. - cleanup: will remove unfinished large files >24hrs old (Garry
  41110. McNulty)
  41111. - For a bucket limited application key check the bucket name (Nick
  41112. Craig-Wood)
  41113. - before this, rclone would use the authorised bucket
  41114. regardless of what you put on the command line
  41115. - Added --b2-disable-checksum flag (Wojciech Smigielski)
  41116. - this enables large files to be uploaded without a SHA-1 hash
  41117. for speed reasons
  41118. - Drive
  41119. - Set default pacer to 100ms for 10 tps (Nick Craig-Wood)
  41120. - This fits the Google defaults much better and reduces the
  41121. 403 errors massively
  41122. - Add --drive-pacer-min-sleep and --drive-pacer-burst to
  41123. control the pacer
  41124. - Improve ChangeNotify support for items with multiple parents
  41125. (Fabian Möller)
  41126. - Fix ListR for items with multiple parents - this fixes oddities
  41127. with vfs/refresh (Fabian Möller)
  41128. - Fix using --drive-impersonate and appfolders (Nick Craig-Wood)
  41129. - Fix google docs in rclone mount for some (not all) applications
  41130. (Nick Craig-Wood)
  41131. - Dropbox
  41132. - Retry-After support for Dropbox backend (Mathieu Carbou)
  41133. - FTP
  41134. - Wait for 60 seconds for a connection to Close then declare it
  41135. dead (Nick Craig-Wood)
  41136. - helps with indefinite hangs on some FTP servers
  41137. - Google Cloud Storage
  41138. - Update google cloud storage endpoints (weetmuts)
  41139. - HTTP
  41140. - Add an example with username and password which is supported but
  41141. wasn't documented (Nick Craig-Wood)
  41142. - Fix backend with --files-from and nonexistent files (Nick
  41143. Craig-Wood)
  41144. - Hubic
  41145. - Make error message more informative if authentication fails
  41146. (Nick Craig-Wood)
  41147. - Jottacloud
  41148. - Resume and deduplication support (Oliver Heyme)
  41149. - Use token auth for all API requests Don't store password anymore
  41150. (Sebastian Bünger)
  41151. - Add support for 2-factor authentication (Sebastian Bünger)
  41152. - Mega
  41153. - Implement v2 account login which fixes logins for newer Mega
  41154. accounts (Nick Craig-Wood)
  41155. - Return error if an unknown length file is attempted to be
  41156. uploaded (Nick Craig-Wood)
  41157. - Add new error codes for better error reporting (Nick Craig-Wood)
  41158. - Onedrive
  41159. - Fix broken support for "shared with me" folders (Alex Chen)
  41160. - Fix root ID not normalised (Cnly)
  41161. - Return err instead of panic on unknown-sized uploads (Cnly)
  41162. - Qingstor
  41163. - Fix go routine leak on multipart upload errors (Nick Craig-Wood)
  41164. - Add upload chunk size/concurrency/cutoff control (Nick
  41165. Craig-Wood)
  41166. - Default --qingstor-upload-concurrency to 1 to work around bug
  41167. (Nick Craig-Wood)
  41168. - S3
  41169. - Implement --s3-upload-cutoff for single part uploads below this
  41170. (Nick Craig-Wood)
  41171. - Change --s3-upload-concurrency default to 4 to increase
  41172. performance (Nick Craig-Wood)
  41173. - Add --s3-bucket-acl to control bucket ACL (Nick Craig-Wood)
  41174. - Auto detect region for buckets on operation failure (Nick
  41175. Craig-Wood)
  41176. - Add GLACIER storage class (William Cocker)
  41177. - Add Scaleway to s3 documentation (Rémy Léone)
  41178. - Add AWS endpoint eu-north-1 (weetmuts)
  41179. - SFTP
  41180. - Add support for PEM encrypted private keys (Fabian Möller)
  41181. - Add option to force the usage of an ssh-agent (Fabian Möller)
  41182. - Perform environment variable expansion on key-file (Fabian
  41183. Möller)
  41184. - Fix rmdir on Windows based servers (e.g. CrushFTP) (Nick
  41185. Craig-Wood)
  41186. - Fix rmdir deleting directory contents on some SFTP servers (Nick
  41187. Craig-Wood)
  41188. - Fix error on dangling symlinks (Nick Craig-Wood)
  41189. - Swift
  41190. - Add --swift-no-chunk to disable segmented uploads in rcat/mount
  41191. (Nick Craig-Wood)
  41192. - Introduce application credential auth support (kayrus)
  41193. - Fix memory usage by slimming Object (Nick Craig-Wood)
  41194. - Fix extra requests on upload (Nick Craig-Wood)
  41195. - Fix reauth on big files (Nick Craig-Wood)
  41196. - Union
  41197. - Fix poll-interval not working (Nick Craig-Wood)
  41198. - WebDAV
  41199. - Support About which means rclone mount will show the correct
  41200. disk size (Nick Craig-Wood)
  41201. - Support MD5 and SHA1 hashes with Owncloud and Nextcloud (Nick
  41202. Craig-Wood)
  41203. - Fail soft on time parsing errors (Nick Craig-Wood)
  41204. - Fix infinite loop on failed directory creation (Nick Craig-Wood)
  41205. - Fix identification of directories for Bitrix Site Manager (Nick
  41206. Craig-Wood)
  41207. - Fix upload of 0 length files on some servers (Nick Craig-Wood)
  41208. - Fix if MKCOL fails with 423 Locked assume the directory exists
  41209. (Nick Craig-Wood)
  41210. v1.45 - 2018-11-24
  41211. - New backends
  41212. - The Yandex backend was re-written - see below for details
  41213. (Sebastian Bünger)
  41214. - New commands
  41215. - rcd: New command just to serve the remote control API (Nick
  41216. Craig-Wood)
  41217. - New Features
  41218. - The remote control API (rc) was greatly expanded to allow full
  41219. control over rclone (Nick Craig-Wood)
  41220. - sensitive operations require authorization or the
  41221. --rc-no-auth flag
  41222. - config/* operations to configure rclone
  41223. - options/* for reading/setting command line flags
  41224. - operations/* for all low level operations, e.g. copy file,
  41225. list directory
  41226. - sync/* for sync, copy and move
  41227. - --rc-files flag to serve files on the rc http server
  41228. - this is for building web native GUIs for rclone
  41229. - Optionally serving objects on the rc http server
  41230. - Ensure rclone fails to start up if the --rc port is in use
  41231. already
  41232. - See the rc docs for more info
  41233. - sync/copy/move
  41234. - Make --files-from only read the objects specified and don't
  41235. scan directories (Nick Craig-Wood)
  41236. - This is a huge speed improvement for destinations with
  41237. lots of files
  41238. - filter: Add --ignore-case flag (Nick Craig-Wood)
  41239. - ncdu: Add remove function ('d' key) (Henning Surmeier)
  41240. - rc command
  41241. - Add --json flag for structured JSON input (Nick Craig-Wood)
  41242. - Add --user and --pass flags and interpret --rc-user,
  41243. --rc-pass, --rc-addr (Nick Craig-Wood)
  41244. - build
  41245. - Require go1.8 or later for compilation (Nick Craig-Wood)
  41246. - Enable softfloat on MIPS arch (Scott Edlund)
  41247. - Integration test framework revamped with a better report and
  41248. better retries (Nick Craig-Wood)
  41249. - Bug Fixes
  41250. - cmd: Make --progress update the stats correctly at the end (Nick
  41251. Craig-Wood)
  41252. - config: Create config directory on save if it is missing (Nick
  41253. Craig-Wood)
  41254. - dedupe: Check for existing filename before renaming a dupe file
  41255. (ssaqua)
  41256. - move: Don't create directories with --dry-run (Nick Craig-Wood)
  41257. - operations: Fix Purge and Rmdirs when dir is not the root (Nick
  41258. Craig-Wood)
  41259. - serve http/webdav/restic: Ensure rclone exits if the port is in
  41260. use (Nick Craig-Wood)
  41261. - Mount
  41262. - Make --volname work for Windows and macOS (Nick Craig-Wood)
  41263. - Azure Blob
  41264. - Avoid context deadline exceeded error by setting a large
  41265. TryTimeout value (brused27)
  41266. - Fix erroneous Rmdir error "directory not empty" (Nick
  41267. Craig-Wood)
  41268. - Wait for up to 60s to create a just deleted container (Nick
  41269. Craig-Wood)
  41270. - Dropbox
  41271. - Add dropbox impersonate support (Jake Coggiano)
  41272. - Jottacloud
  41273. - Fix bug in --fast-list handing of empty folders (albertony)
  41274. - Opendrive
  41275. - Fix transfer of files with + and & in (Nick Craig-Wood)
  41276. - Fix retries of upload chunks (Nick Craig-Wood)
  41277. - S3
  41278. - Set ACL for server-side copies to that provided by the user
  41279. (Nick Craig-Wood)
  41280. - Fix role_arn, credential_source, ... (Erik Swanson)
  41281. - Add config info for Wasabi's US-West endpoint (Henry Ptasinski)
  41282. - SFTP
  41283. - Ensure file hash checking is really disabled (Jon Fautley)
  41284. - Swift
  41285. - Add pacer for retries to make swift more reliable (Nick
  41286. Craig-Wood)
  41287. - WebDAV
  41288. - Add Content-Type to PUT requests (Nick Craig-Wood)
  41289. - Fix config parsing so --webdav-user and --webdav-pass flags work
  41290. (Nick Craig-Wood)
  41291. - Add RFC3339 date format (Ralf Hemberger)
  41292. - Yandex
  41293. - The yandex backend was re-written (Sebastian Bünger)
  41294. - This implements low level retries (Sebastian Bünger)
  41295. - Copy, Move, DirMove, PublicLink and About optional
  41296. interfaces (Sebastian Bünger)
  41297. - Improved general error handling (Sebastian Bünger)
  41298. - Removed ListR for now due to inconsistent behaviour
  41299. (Sebastian Bünger)
  41300. v1.44 - 2018-10-15
  41301. - New commands
  41302. - serve ftp: Add ftp server (Antoine GIRARD)
  41303. - settier: perform storage tier changes on supported remotes
  41304. (sandeepkru)
  41305. - New Features
  41306. - Reworked command line help
  41307. - Make default help less verbose (Nick Craig-Wood)
  41308. - Split flags up into global and backend flags (Nick
  41309. Craig-Wood)
  41310. - Implement specialised help for flags and backends (Nick
  41311. Craig-Wood)
  41312. - Show URL of backend help page when starting config (Nick
  41313. Craig-Wood)
  41314. - stats: Long names now split in center (Joanna Marek)
  41315. - Add --log-format flag for more control over log output (dcpu)
  41316. - rc: Add support for OPTIONS and basic CORS (frenos)
  41317. - stats: show FatalErrors and NoRetryErrors in stats (Cédric
  41318. Connes)
  41319. - Bug Fixes
  41320. - Fix -P not ending with a new line (Nick Craig-Wood)
  41321. - config: don't create default config dir when user supplies
  41322. --config (albertony)
  41323. - Don't print non-ASCII characters with --progress on windows
  41324. (Nick Craig-Wood)
  41325. - Correct logs for excluded items (ssaqua)
  41326. - Mount
  41327. - Remove EXPERIMENTAL tags (Nick Craig-Wood)
  41328. - VFS
  41329. - Fix race condition detected by serve ftp tests (Nick Craig-Wood)
  41330. - Add vfs/poll-interval rc command (Fabian Möller)
  41331. - Enable rename for nearly all remotes using server-side Move or
  41332. Copy (Nick Craig-Wood)
  41333. - Reduce directory cache cleared by poll-interval (Fabian Möller)
  41334. - Remove EXPERIMENTAL tags (Nick Craig-Wood)
  41335. - Local
  41336. - Skip bad symlinks in dir listing with -L enabled (Cédric Connes)
  41337. - Preallocate files on Windows to reduce fragmentation (Nick
  41338. Craig-Wood)
  41339. - Preallocate files on linux with fallocate(2) (Nick Craig-Wood)
  41340. - Cache
  41341. - Add cache/fetch rc function (Fabian Möller)
  41342. - Fix worker scale down (Fabian Möller)
  41343. - Improve performance by not sending info requests for cached
  41344. chunks (dcpu)
  41345. - Fix error return value of cache/fetch rc method (Fabian Möller)
  41346. - Documentation fix for cache-chunk-total-size (Anagh Kumar
  41347. Baranwal)
  41348. - Preserve leading / in wrapped remote path (Fabian Möller)
  41349. - Add plex_insecure option to skip certificate validation (Fabian
  41350. Möller)
  41351. - Remove entries that no longer exist in the source (dcpu)
  41352. - Crypt
  41353. - Preserve leading / in wrapped remote path (Fabian Möller)
  41354. - Alias
  41355. - Fix handling of Windows network paths (Nick Craig-Wood)
  41356. - Azure Blob
  41357. - Add --azureblob-list-chunk parameter (Santiago Rodríguez)
  41358. - Implemented settier command support on azureblob remote.
  41359. (sandeepkru)
  41360. - Work around SDK bug which causes errors for chunk-sized files
  41361. (Nick Craig-Wood)
  41362. - Box
  41363. - Implement link sharing. (Sebastian Bünger)
  41364. - Drive
  41365. - Add --drive-import-formats - google docs can now be imported
  41366. (Fabian Möller)
  41367. - Rewrite mime type and extension handling (Fabian Möller)
  41368. - Add document links (Fabian Möller)
  41369. - Add support for multipart document extensions (Fabian
  41370. Möller)
  41371. - Add support for apps-script to json export (Fabian Möller)
  41372. - Fix escaped chars in documents during list (Fabian Möller)
  41373. - Add --drive-v2-download-min-size a workaround for slow downloads
  41374. (Fabian Möller)
  41375. - Improve directory notifications in ChangeNotify (Fabian Möller)
  41376. - When listing team drives in config, continue on failure (Nick
  41377. Craig-Wood)
  41378. - FTP
  41379. - Add a small pause after failed upload before deleting file (Nick
  41380. Craig-Wood)
  41381. - Google Cloud Storage
  41382. - Fix service_account_file being ignored (Fabian Möller)
  41383. - Jottacloud
  41384. - Minor improvement in quota info (omit if unlimited) (albertony)
  41385. - Add --fast-list support (albertony)
  41386. - Add permanent delete support: --jottacloud-hard-delete
  41387. (albertony)
  41388. - Add link sharing support (albertony)
  41389. - Fix handling of reserved characters. (Sebastian Bünger)
  41390. - Fix socket leak on Object.Remove (Nick Craig-Wood)
  41391. - Onedrive
  41392. - Rework to support Microsoft Graph (Cnly)
  41393. - NB this will require re-authenticating the remote
  41394. - Removed upload cutoff and always do session uploads (Oliver
  41395. Heyme)
  41396. - Use single-part upload for empty files (Cnly)
  41397. - Fix new fields not saved when editing old config (Alex Chen)
  41398. - Fix sometimes special chars in filenames not replaced (Alex
  41399. Chen)
  41400. - Ignore OneNote files by default (Alex Chen)
  41401. - Add link sharing support (jackyzy823)
  41402. - S3
  41403. - Use custom pacer, to retry operations when reasonable (Craig
  41404. Miskell)
  41405. - Use configured server-side-encryption and storage class options
  41406. when calling CopyObject() (Paul Kohout)
  41407. - Make --s3-v2-auth flag (Nick Craig-Wood)
  41408. - Fix v2 auth on files with spaces (Nick Craig-Wood)
  41409. - Union
  41410. - Implement union backend which reads from multiple backends
  41411. (Felix Brucker)
  41412. - Implement optional interfaces (Move, DirMove, Copy, etc.) (Nick
  41413. Craig-Wood)
  41414. - Fix ChangeNotify to support multiple remotes (Fabian Möller)
  41415. - Fix --backup-dir on union backend (Nick Craig-Wood)
  41416. - WebDAV
  41417. - Add another time format (Nick Craig-Wood)
  41418. - Add a small pause after failed upload before deleting file (Nick
  41419. Craig-Wood)
  41420. - Add workaround for missing mtime (buergi)
  41421. - Sharepoint: Renew cookies after 12hrs (Henning Surmeier)
  41422. - Yandex
  41423. - Remove redundant nil checks (teresy)
  41424. v1.43.1 - 2018-09-07
  41425. Point release to fix hubic and azureblob backends.
  41426. - Bug Fixes
  41427. - ncdu: Return error instead of log.Fatal in Show (Fabian Möller)
  41428. - cmd: Fix crash with --progress and --stats 0 (Nick Craig-Wood)
  41429. - docs: Tidy website display (Anagh Kumar Baranwal)
  41430. - Azure Blob:
  41431. - Fix multi-part uploads. (sandeepkru)
  41432. - Hubic
  41433. - Fix uploads (Nick Craig-Wood)
  41434. - Retry auth fetching if it fails to make hubic more reliable
  41435. (Nick Craig-Wood)
  41436. v1.43 - 2018-09-01
  41437. - New backends
  41438. - Jottacloud (Sebastian Bünger)
  41439. - New commands
  41440. - copyurl: copies a URL to a remote (Denis)
  41441. - New Features
  41442. - Reworked config for backends (Nick Craig-Wood)
  41443. - All backend config can now be supplied by command line, env
  41444. var or config file
  41445. - Advanced section in the config wizard for the optional items
  41446. - A large step towards rclone backends being usable in other
  41447. go software
  41448. - Allow on the fly remotes with :backend: syntax
  41449. - Stats revamp
  41450. - Add --progress/-P flag to show interactive progress (Nick
  41451. Craig-Wood)
  41452. - Show the total progress of the sync in the stats (Nick
  41453. Craig-Wood)
  41454. - Add --stats-one-line flag for single line stats (Nick
  41455. Craig-Wood)
  41456. - Added weekday schedule into --bwlimit (Mateusz)
  41457. - lsjson: Add option to show the original object IDs (Fabian
  41458. Möller)
  41459. - serve webdav: Make Content-Type without reading the file and add
  41460. --etag-hash (Nick Craig-Wood)
  41461. - build
  41462. - Build macOS with native compiler (Nick Craig-Wood)
  41463. - Update to use go1.11 for the build (Nick Craig-Wood)
  41464. - rc
  41465. - Added core/stats to return the stats (reddi1)
  41466. - version --check: Prints the current release and beta versions
  41467. (Nick Craig-Wood)
  41468. - Bug Fixes
  41469. - accounting
  41470. - Fix time to completion estimates (Nick Craig-Wood)
  41471. - Fix moving average speed for file stats (Nick Craig-Wood)
  41472. - config: Fix error reading password from piped input (Nick
  41473. Craig-Wood)
  41474. - move: Fix --delete-empty-src-dirs flag to delete all empty dirs
  41475. on move (ishuah)
  41476. - Mount
  41477. - Implement --daemon-timeout flag for OSXFUSE (Nick Craig-Wood)
  41478. - Fix mount --daemon not working with encrypted config (Alex Chen)
  41479. - Clip the number of blocks to 2^32-1 on macOS - fixes borg backup
  41480. (Nick Craig-Wood)
  41481. - VFS
  41482. - Enable vfs-read-chunk-size by default (Fabian Möller)
  41483. - Add the vfs/refresh rc command (Fabian Möller)
  41484. - Add non recursive mode to vfs/refresh rc command (Fabian Möller)
  41485. - Try to seek buffer on read only files (Fabian Möller)
  41486. - Local
  41487. - Fix crash when deprecated --local-no-unicode-normalization is
  41488. supplied (Nick Craig-Wood)
  41489. - Fix mkdir error when trying to copy files to the root of a drive
  41490. on windows (Nick Craig-Wood)
  41491. - Cache
  41492. - Fix nil pointer deref when using lsjson on cached directory
  41493. (Nick Craig-Wood)
  41494. - Fix nil pointer deref for occasional crash on playback (Nick
  41495. Craig-Wood)
  41496. - Crypt
  41497. - Fix accounting when checking hashes on upload (Nick Craig-Wood)
  41498. - Amazon Cloud Drive
  41499. - Make very clear in the docs that rclone has no ACD keys (Nick
  41500. Craig-Wood)
  41501. - Azure Blob
  41502. - Add connection string and SAS URL auth (Nick Craig-Wood)
  41503. - List the container to see if it exists (Nick Craig-Wood)
  41504. - Port new Azure Blob Storage SDK (sandeepkru)
  41505. - Added blob tier, tier between Hot, Cool and Archive.
  41506. (sandeepkru)
  41507. - Remove leading / from paths (Nick Craig-Wood)
  41508. - B2
  41509. - Support Application Keys (Nick Craig-Wood)
  41510. - Remove leading / from paths (Nick Craig-Wood)
  41511. - Box
  41512. - Fix upload of > 2GB files on 32 bit platforms (Nick Craig-Wood)
  41513. - Make --box-commit-retries flag defaulting to 100 to fix large
  41514. uploads (Nick Craig-Wood)
  41515. - Drive
  41516. - Add --drive-keep-revision-forever flag (lewapm)
  41517. - Handle gdocs when filtering file names in list (Fabian Möller)
  41518. - Support using --fast-list for large speedups (Fabian Möller)
  41519. - FTP
  41520. - Fix Put mkParentDir failed: 521 for BunnyCDN (Nick Craig-Wood)
  41521. - Google Cloud Storage
  41522. - Fix index out of range error with --fast-list (Nick Craig-Wood)
  41523. - Jottacloud
  41524. - Fix MD5 error check (Oliver Heyme)
  41525. - Handle empty time values (Martin Polden)
  41526. - Calculate missing MD5s (Oliver Heyme)
  41527. - Docs, fixes and tests for MD5 calculation (Nick Craig-Wood)
  41528. - Add optional MimeTyper interface. (Sebastian Bünger)
  41529. - Implement optional About interface (for df support). (Sebastian
  41530. Bünger)
  41531. - Mega
  41532. - Wait for events instead of arbitrary sleeping (Nick Craig-Wood)
  41533. - Add --mega-hard-delete flag (Nick Craig-Wood)
  41534. - Fix failed logins with upper case chars in email (Nick
  41535. Craig-Wood)
  41536. - Onedrive
  41537. - Shared folder support (Yoni Jah)
  41538. - Implement DirMove (Cnly)
  41539. - Fix rmdir sometimes deleting directories with contents (Nick
  41540. Craig-Wood)
  41541. - Pcloud
  41542. - Delete half uploaded files on upload error (Nick Craig-Wood)
  41543. - Qingstor
  41544. - Remove leading / from paths (Nick Craig-Wood)
  41545. - S3
  41546. - Fix index out of range error with --fast-list (Nick Craig-Wood)
  41547. - Add --s3-force-path-style (Nick Craig-Wood)
  41548. - Add support for KMS Key ID (bsteiss)
  41549. - Remove leading / from paths (Nick Craig-Wood)
  41550. - Swift
  41551. - Add storage_policy (Ruben Vandamme)
  41552. - Make it so just storage_url or auth_token can be overridden
  41553. (Nick Craig-Wood)
  41554. - Fix server-side copy bug for unusual file names (Nick
  41555. Craig-Wood)
  41556. - Remove leading / from paths (Nick Craig-Wood)
  41557. - WebDAV
  41558. - Ensure we call MKCOL with a URL with a trailing / for QNAP
  41559. interop (Nick Craig-Wood)
  41560. - If root ends with / then don't check if it is a file (Nick
  41561. Craig-Wood)
  41562. - Don't accept redirects when reading metadata (Nick Craig-Wood)
  41563. - Add bearer token (Macaroon) support for dCache (Nick Craig-Wood)
  41564. - Document dCache and Macaroons (Onno Zweers)
  41565. - Sharepoint recursion with different depth (Henning)
  41566. - Attempt to remove failed uploads (Nick Craig-Wood)
  41567. - Yandex
  41568. - Fix listing/deleting files in the root (Nick Craig-Wood)
  41569. v1.42 - 2018-06-16
  41570. - New backends
  41571. - OpenDrive (Oliver Heyme, Jakub Karlicek, ncw)
  41572. - New commands
  41573. - deletefile command (Filip Bartodziej)
  41574. - New Features
  41575. - copy, move: Copy single files directly, don't use --files-from
  41576. work-around
  41577. - this makes them much more efficient
  41578. - Implement --max-transfer flag to quit transferring at a limit
  41579. - make exit code 8 for --max-transfer exceeded
  41580. - copy: copy empty source directories to destination (Ishuah
  41581. Kariuki)
  41582. - check: Add --one-way flag (Kasper Byrdal Nielsen)
  41583. - Add siginfo handler for macOS for ctrl-T stats (kubatasiemski)
  41584. - rc
  41585. - add core/gc to run a garbage collection on demand
  41586. - enable go profiling by default on the --rc port
  41587. - return error from remote on failure
  41588. - lsf
  41589. - Add --absolute flag to add a leading / onto path names
  41590. - Add --csv flag for compliant CSV output
  41591. - Add 'm' format specifier to show the MimeType
  41592. - Implement 'i' format for showing object ID
  41593. - lsjson
  41594. - Add MimeType to the output
  41595. - Add ID field to output to show Object ID
  41596. - Add --retries-sleep flag (Benjamin Joseph Dag)
  41597. - Oauth tidy up web page and error handling (Henning Surmeier)
  41598. - Bug Fixes
  41599. - Password prompt output with --log-file fixed for unix (Filip
  41600. Bartodziej)
  41601. - Calculate ModifyWindow each time on the fly to fix various
  41602. problems (Stefan Breunig)
  41603. - Mount
  41604. - Only print "File.rename error" if there actually is an error
  41605. (Stefan Breunig)
  41606. - Delay rename if file has open writers instead of failing
  41607. outright (Stefan Breunig)
  41608. - Ensure atexit gets run on interrupt
  41609. - macOS enhancements
  41610. - Make --noappledouble --noapplexattr
  41611. - Add --volname flag and remove special chars from it
  41612. - Make Get/List/Set/Remove xattr return ENOSYS for efficiency
  41613. - Make --daemon work for macOS without CGO
  41614. - VFS
  41615. - Add --vfs-read-chunk-size and --vfs-read-chunk-size-limit
  41616. (Fabian Möller)
  41617. - Fix ChangeNotify for new or changed folders (Fabian Möller)
  41618. - Local
  41619. - Fix symlink/junction point directory handling under Windows
  41620. - NB you will need to add -L to your command line to copy
  41621. files with reparse points
  41622. - Cache
  41623. - Add non cached dirs on notifications (Remus Bunduc)
  41624. - Allow root to be expired from rc (Remus Bunduc)
  41625. - Clean remaining empty folders from temp upload path (Remus
  41626. Bunduc)
  41627. - Cache lists using batch writes (Remus Bunduc)
  41628. - Use secure websockets for HTTPS Plex addresses (John Clayton)
  41629. - Reconnect plex websocket on failures (Remus Bunduc)
  41630. - Fix panic when running without plex configs (Remus Bunduc)
  41631. - Fix root folder caching (Remus Bunduc)
  41632. - Crypt
  41633. - Check the encrypted hash of files when uploading for extra data
  41634. security
  41635. - Dropbox
  41636. - Make Dropbox for business folders accessible using an initial /
  41637. in the path
  41638. - Google Cloud Storage
  41639. - Low level retry all operations if necessary
  41640. - Google Drive
  41641. - Add --drive-acknowledge-abuse to download flagged files
  41642. - Add --drive-alternate-export to fix large doc export
  41643. - Don't attempt to choose Team Drives when using rclone config
  41644. create
  41645. - Fix change list polling with team drives
  41646. - Fix ChangeNotify for folders (Fabian Möller)
  41647. - Fix about (and df on a mount) for team drives
  41648. - Onedrive
  41649. - Errorhandler for onedrive for business requests (Henning
  41650. Surmeier)
  41651. - S3
  41652. - Adjust upload concurrency with --s3-upload-concurrency
  41653. (themylogin)
  41654. - Fix --s3-chunk-size which was always using the minimum
  41655. - SFTP
  41656. - Add --ssh-path-override flag (Piotr Oleszczyk)
  41657. - Fix slow downloads for long latency connections
  41658. - Webdav
  41659. - Add workarounds for biz.mail.ru
  41660. - Ignore Reason-Phrase in status line to fix 4shared (Rodrigo)
  41661. - Better error message generation
  41662. v1.41 - 2018-04-28
  41663. - New backends
  41664. - Mega support added
  41665. - Webdav now supports SharePoint cookie authentication (hensur)
  41666. - New commands
  41667. - link: create public link to files and folders (Stefan Breunig)
  41668. - about: gets quota info from a remote (a-roussos, ncw)
  41669. - hashsum: a generic tool for any hash to produce md5sum like
  41670. output
  41671. - New Features
  41672. - lsd: Add -R flag and fix and update docs for all ls commands
  41673. - ncdu: added a "refresh" key - CTRL-L (Keith Goldfarb)
  41674. - serve restic: Add append-only mode (Steve Kriss)
  41675. - serve restic: Disallow overwriting files in append-only mode
  41676. (Alexander Neumann)
  41677. - serve restic: Print actual listener address (Matt Holt)
  41678. - size: Add --json flag (Matthew Holt)
  41679. - sync: implement --ignore-errors (Mateusz Pabian)
  41680. - dedupe: Add dedupe largest functionality (Richard Yang)
  41681. - fs: Extend SizeSuffix to include TB and PB for rclone about
  41682. - fs: add --dump goroutines and --dump openfiles for debugging
  41683. - rc: implement core/memstats to print internal memory usage info
  41684. - rc: new call rc/pid (Michael P. Dubner)
  41685. - Compile
  41686. - Drop support for go1.6
  41687. - Release
  41688. - Fix make tarball (Chih-Hsuan Yen)
  41689. - Bug Fixes
  41690. - filter: fix --min-age and --max-age together check
  41691. - fs: limit MaxIdleConns and MaxIdleConnsPerHost in transport
  41692. - lsd,lsf: make sure all times we output are in local time
  41693. - rc: fix setting bwlimit to unlimited
  41694. - rc: take note of the --rc-addr flag too as per the docs
  41695. - Mount
  41696. - Use About to return the correct disk total/used/free (e.g. in
  41697. df)
  41698. - Set --attr-timeout default to 1s - fixes:
  41699. - rclone using too much memory
  41700. - rclone not serving files to samba
  41701. - excessive time listing directories
  41702. - Fix df -i (upstream fix)
  41703. - VFS
  41704. - Filter files . and .. from directory listing
  41705. - Only make the VFS cache if --vfs-cache-mode > Off
  41706. - Local
  41707. - Add --local-no-check-updated to disable updated file checks
  41708. - Retry remove on Windows sharing violation error
  41709. - Cache
  41710. - Flush the memory cache after close
  41711. - Purge file data on notification
  41712. - Always forget parent dir for notifications
  41713. - Integrate with Plex websocket
  41714. - Add rc cache/stats (seuffert)
  41715. - Add info log on notification
  41716. - Box
  41717. - Fix failure reading large directories - parse file/directory
  41718. size as float
  41719. - Dropbox
  41720. - Fix crypt+obfuscate on dropbox
  41721. - Fix repeatedly uploading the same files
  41722. - FTP
  41723. - Work around strange response from box FTP server
  41724. - More workarounds for FTP servers to fix mkParentDir error
  41725. - Fix no error on listing nonexistent directory
  41726. - Google Cloud Storage
  41727. - Add service_account_credentials (Matt Holt)
  41728. - Detect bucket presence by listing it - minimises permissions
  41729. needed
  41730. - Ignore zero length directory markers
  41731. - Google Drive
  41732. - Add service_account_credentials (Matt Holt)
  41733. - Fix directory move leaving a hardlinked directory behind
  41734. - Return proper google errors when Opening files
  41735. - When initialized with a filepath, optional features used
  41736. incorrect root path (Stefan Breunig)
  41737. - HTTP
  41738. - Fix sync for servers which don't return Content-Length in HEAD
  41739. - Onedrive
  41740. - Add QuickXorHash support for OneDrive for business
  41741. - Fix socket leak in multipart session upload
  41742. - S3
  41743. - Look in S3 named profile files for credentials
  41744. - Add --s3-disable-checksum to disable checksum uploading (Chris
  41745. Redekop)
  41746. - Hierarchical configuration support (Giri Badanahatti)
  41747. - Add in config for all the supported S3 providers
  41748. - Add One Zone Infrequent Access storage class (Craig Rachel)
  41749. - Add --use-server-modtime support (Peter Baumgartner)
  41750. - Add --s3-chunk-size option to control multipart uploads
  41751. - Ignore zero length directory markers
  41752. - SFTP
  41753. - Update docs to match code, fix typos and clarify
  41754. disable_hashcheck prompt (Michael G. Noll)
  41755. - Update docs with Synology quirks
  41756. - Fail soft with a debug on hash failure
  41757. - Swift
  41758. - Add --use-server-modtime support (Peter Baumgartner)
  41759. - Webdav
  41760. - Support SharePoint cookie authentication (hensur)
  41761. - Strip leading and trailing / off root
  41762. v1.40 - 2018-03-19
  41763. - New backends
  41764. - Alias backend to create aliases for existing remote names
  41765. (Fabian Möller)
  41766. - New commands
  41767. - lsf: list for parsing purposes (Jakub Tasiemski)
  41768. - by default this is a simple non recursive list of files and
  41769. directories
  41770. - it can be configured to add more info in an easy to parse
  41771. way
  41772. - serve restic: for serving a remote as a Restic REST endpoint
  41773. - This enables restic to use any backends that rclone can
  41774. access
  41775. - Thanks Alexander Neumann for help, patches and review
  41776. - rc: enable the remote control of a running rclone
  41777. - The running rclone must be started with --rc and related
  41778. flags.
  41779. - Currently there is support for bwlimit, and flushing for
  41780. mount and cache.
  41781. - New Features
  41782. - --max-delete flag to add a delete threshold (Bjørn Erik
  41783. Pedersen)
  41784. - All backends now support RangeOption for ranged Open
  41785. - cat: Use RangeOption for limited fetches to make more
  41786. efficient
  41787. - cryptcheck: make reading of nonce more efficient with
  41788. RangeOption
  41789. - serve http/webdav/restic
  41790. - support SSL/TLS
  41791. - add --user --pass and --htpasswd for authentication
  41792. - copy/move: detect file size change during copy/move and abort
  41793. transfer (ishuah)
  41794. - cryptdecode: added option to return encrypted file names.
  41795. (ishuah)
  41796. - lsjson: add --encrypted to show encrypted name (Jakub Tasiemski)
  41797. - Add --stats-file-name-length to specify the printed file name
  41798. length for stats (Will Gunn)
  41799. - Compile
  41800. - Code base was shuffled and factored
  41801. - backends moved into a backend directory
  41802. - large packages split up
  41803. - See the CONTRIBUTING.md doc for info as to what lives where
  41804. now
  41805. - Update to using go1.10 as the default go version
  41806. - Implement daily full integration tests
  41807. - Release
  41808. - Include a source tarball and sign it and the binaries
  41809. - Sign the git tags as part of the release process
  41810. - Add .deb and .rpm packages as part of the build
  41811. - Make a beta release for all branches on the main repo (but not
  41812. pull requests)
  41813. - Bug Fixes
  41814. - config: fixes errors on nonexistent config by loading config
  41815. file only on first access
  41816. - config: retry saving the config after failure (Mateusz)
  41817. - sync: when using --backup-dir don't delete files if we can't set
  41818. their modtime
  41819. - this fixes odd behaviour with Dropbox and --backup-dir
  41820. - fshttp: fix idle timeouts for HTTP connections
  41821. - serve http: fix serving files with : in - fixes
  41822. - Fix --exclude-if-present to ignore directories which it doesn't
  41823. have permission for (Iakov Davydov)
  41824. - Make accounting work properly with crypt and b2
  41825. - remove --no-traverse flag because it is obsolete
  41826. - Mount
  41827. - Add --attr-timeout flag to control attribute caching in kernel
  41828. - this now defaults to 0 which is correct but less efficient
  41829. - see the mount docs for more info
  41830. - Add --daemon flag to allow mount to run in the background
  41831. (ishuah)
  41832. - Fix: Return ENOSYS rather than EIO on attempted link
  41833. - This fixes FileZilla accessing an rclone mount served over
  41834. sftp.
  41835. - Fix setting modtime twice
  41836. - Mount tests now run on CI for Linux (mount & cmount)/Mac/Windows
  41837. - Many bugs fixed in the VFS layer - see below
  41838. - VFS
  41839. - Many fixes for --vfs-cache-mode writes and above
  41840. - Update cached copy if we know it has changed (fixes stale
  41841. data)
  41842. - Clean path names before using them in the cache
  41843. - Disable cache cleaner if --vfs-cache-poll-interval=0
  41844. - Fill and clean the cache immediately on startup
  41845. - Fix Windows opening every file when it stats the file
  41846. - Fix applying modtime for an open Write Handle
  41847. - Fix creation of files when truncating
  41848. - Write 0 bytes when flushing unwritten handles to avoid race
  41849. conditions in FUSE
  41850. - Downgrade "poll-interval is not supported" message to Info
  41851. - Make OpenFile and friends return EINVAL if O_RDONLY and O_TRUNC
  41852. - Local
  41853. - Downgrade "invalid cross-device link: trying copy" to debug
  41854. - Make DirMove return fs.ErrorCantDirMove to allow fallback to
  41855. Copy for cross device
  41856. - Fix race conditions updating the hashes
  41857. - Cache
  41858. - Add support for polling - cache will update when remote changes
  41859. on supported backends
  41860. - Reduce log level for Plex api
  41861. - Fix dir cache issue
  41862. - Implement --cache-db-wait-time flag
  41863. - Improve efficiency with RangeOption and RangeSeek
  41864. - Fix dirmove with temp fs enabled
  41865. - Notify vfs when using temp fs
  41866. - Offline uploading
  41867. - Remote control support for path flushing
  41868. - Amazon cloud drive
  41869. - Rclone no longer has any working keys - disable integration
  41870. tests
  41871. - Implement DirChangeNotify to notify cache/vfs/mount of changes
  41872. - Azureblob
  41873. - Don't check for bucket/container presence if listing was OK
  41874. - this makes rclone do one less request per invocation
  41875. - Improve accounting for chunked uploads
  41876. - Backblaze B2
  41877. - Don't check for bucket/container presence if listing was OK
  41878. - this makes rclone do one less request per invocation
  41879. - Box
  41880. - Improve accounting for chunked uploads
  41881. - Dropbox
  41882. - Fix custom oauth client parameters
  41883. - Google Cloud Storage
  41884. - Don't check for bucket/container presence if listing was OK
  41885. - this makes rclone do one less request per invocation
  41886. - Google Drive
  41887. - Migrate to api v3 (Fabian Möller)
  41888. - Add scope configuration and root folder selection
  41889. - Add --drive-impersonate for service accounts
  41890. - thanks to everyone who tested, explored and contributed docs
  41891. - Add --drive-use-created-date to use created date as modified
  41892. date (nbuchanan)
  41893. - Request the export formats only when required
  41894. - This makes rclone quicker when there are no google docs
  41895. - Fix finding paths with latin1 chars (a workaround for a drive
  41896. bug)
  41897. - Fix copying of a single Google doc file
  41898. - Fix --drive-auth-owner-only to look in all directories
  41899. - HTTP
  41900. - Fix handling of directories with & in
  41901. - Onedrive
  41902. - Removed upload cutoff and always do session uploads
  41903. - this stops the creation of multiple versions on business
  41904. onedrive
  41905. - Overwrite object size value with real size when reading file.
  41906. (Victor)
  41907. - this fixes oddities when onedrive misreports the size of
  41908. images
  41909. - Pcloud
  41910. - Remove unused chunked upload flag and code
  41911. - Qingstor
  41912. - Don't check for bucket/container presence if listing was OK
  41913. - this makes rclone do one less request per invocation
  41914. - S3
  41915. - Support hashes for multipart files (Chris Redekop)
  41916. - Initial support for IBM COS (S3) (Giri Badanahatti)
  41917. - Update docs to discourage use of v2 auth with CEPH and others
  41918. - Don't check for bucket/container presence if listing was OK
  41919. - this makes rclone do one less request per invocation
  41920. - Fix server-side copy and set modtime on files with + in
  41921. - SFTP
  41922. - Add option to disable remote hash check command execution (Jon
  41923. Fautley)
  41924. - Add --sftp-ask-password flag to prompt for password when needed
  41925. (Leo R. Lundgren)
  41926. - Add set_modtime configuration option
  41927. - Fix following of symlinks
  41928. - Fix reading config file outside of Fs setup
  41929. - Fix reading $USER in username fallback not $HOME
  41930. - Fix running under crontab - Use correct OS way of reading
  41931. username
  41932. - Swift
  41933. - Fix refresh of authentication token
  41934. - in v1.39 a bug was introduced which ignored new tokens -
  41935. this fixes it
  41936. - Fix extra HEAD transaction when uploading a new file
  41937. - Don't check for bucket/container presence if listing was OK
  41938. - this makes rclone do one less request per invocation
  41939. - Webdav
  41940. - Add new time formats to support mydrive.ch and others
  41941. v1.39 - 2017-12-23
  41942. - New backends
  41943. - WebDAV
  41944. - tested with nextcloud, owncloud, put.io and others!
  41945. - Pcloud
  41946. - cache - wraps a cache around other backends (Remus Bunduc)
  41947. - useful in combination with mount
  41948. - NB this feature is in beta so use with care
  41949. - New commands
  41950. - serve command with subcommands:
  41951. - serve webdav: this implements a webdav server for any rclone
  41952. remote.
  41953. - serve http: command to serve a remote over HTTP
  41954. - config: add sub commands for full config file management
  41955. - create/delete/dump/edit/file/password/providers/show/update
  41956. - touch: to create or update the timestamp of a file (Jakub
  41957. Tasiemski)
  41958. - New Features
  41959. - curl install for rclone (Filip Bartodziej)
  41960. - --stats now shows percentage, size, rate and ETA in condensed
  41961. form (Ishuah Kariuki)
  41962. - --exclude-if-present to exclude a directory if a file is present
  41963. (Iakov Davydov)
  41964. - rmdirs: add --leave-root flag (lewapm)
  41965. - move: add --delete-empty-src-dirs flag to remove dirs after move
  41966. (Ishuah Kariuki)
  41967. - Add --dump flag, introduce --dump requests, responses and remove
  41968. --dump-auth, --dump-filters
  41969. - Obscure X-Auth-Token: from headers when dumping too
  41970. - Document and implement exit codes for different failure modes
  41971. (Ishuah Kariuki)
  41972. - Compile
  41973. - Bug Fixes
  41974. - Retry lots more different types of errors to make multipart
  41975. transfers more reliable
  41976. - Save the config before asking for a token, fixes disappearing
  41977. oauth config
  41978. - Warn the user if --include and --exclude are used together
  41979. (Ernest Borowski)
  41980. - Fix duplicate files (e.g. on Google drive) causing spurious
  41981. copies
  41982. - Allow trailing and leading whitespace for passwords (Jason Rose)
  41983. - ncdu: fix crashes on empty directories
  41984. - rcat: fix goroutine leak
  41985. - moveto/copyto: Fix to allow copying to the same name
  41986. - Mount
  41987. - --vfs-cache mode to make writes into mounts more reliable.
  41988. - this requires caching files on the disk (see --cache-dir)
  41989. - As this is a new feature, use with care
  41990. - Use sdnotify to signal systemd the mount is ready (Fabian
  41991. Möller)
  41992. - Check if directory is not empty before mounting (Ernest
  41993. Borowski)
  41994. - Local
  41995. - Add error message for cross file system moves
  41996. - Fix equality check for times
  41997. - Dropbox
  41998. - Rework multipart upload
  41999. - buffer the chunks when uploading large files so they can be
  42000. retried
  42001. - change default chunk size to 48MB now we are buffering them
  42002. in memory
  42003. - retry every error after the first chunk is done successfully
  42004. - Fix error when renaming directories
  42005. - Swift
  42006. - Fix crash on bad authentication
  42007. - Google Drive
  42008. - Add service account support (Tim Cooijmans)
  42009. - S3
  42010. - Make it work properly with Digital Ocean Spaces (Andrew
  42011. Starr-Bochicchio)
  42012. - Fix crash if a bad listing is received
  42013. - Add support for ECS task IAM roles (David Minor)
  42014. - Backblaze B2
  42015. - Fix multipart upload retries
  42016. - Fix --hard-delete to make it work 100% of the time
  42017. - Swift
  42018. - Allow authentication with storage URL and auth key (Giovanni
  42019. Pizzi)
  42020. - Add new fields for swift configuration to support IBM Bluemix
  42021. Swift (Pierre Carlson)
  42022. - Add OS_TENANT_ID and OS_USER_ID to config
  42023. - Allow configs with user id instead of user name
  42024. - Check if swift segments container exists before creating (John
  42025. Leach)
  42026. - Fix memory leak in swift transfers (upstream fix)
  42027. - SFTP
  42028. - Add option to enable the use of aes128-cbc cipher (Jon Fautley)
  42029. - Amazon cloud drive
  42030. - Fix download of large files failing with "Only one auth
  42031. mechanism allowed"
  42032. - crypt
  42033. - Option to encrypt directory names or leave them intact
  42034. - Implement DirChangeNotify (Fabian Möller)
  42035. - onedrive
  42036. - Add option to choose resourceURL during setup of OneDrive
  42037. Business account if more than one is available for user
  42038. v1.38 - 2017-09-30
  42039. - New backends
  42040. - Azure Blob Storage (thanks Andrei Dragomir)
  42041. - Box
  42042. - Onedrive for Business (thanks Oliver Heyme)
  42043. - QingStor from QingCloud (thanks wuyu)
  42044. - New commands
  42045. - rcat - read from standard input and stream upload
  42046. - tree - shows a nicely formatted recursive listing
  42047. - cryptdecode - decode encrypted file names (thanks ishuah)
  42048. - config show - print the config file
  42049. - config file - print the config file location
  42050. - New Features
  42051. - Empty directories are deleted on sync
  42052. - dedupe - implement merging of duplicate directories
  42053. - check and cryptcheck made more consistent and use less memory
  42054. - cleanup for remaining remotes (thanks ishuah)
  42055. - --immutable for ensuring that files don't change (thanks Jacob
  42056. McNamee)
  42057. - --user-agent option (thanks Alex McGrath Kraak)
  42058. - --disable flag to disable optional features
  42059. - --bind flag for choosing the local addr on outgoing connections
  42060. - Support for zsh auto-completion (thanks bpicode)
  42061. - Stop normalizing file names but do a normalized compare in sync
  42062. - Compile
  42063. - Update to using go1.9 as the default go version
  42064. - Remove snapd build due to maintenance problems
  42065. - Bug Fixes
  42066. - Improve retriable error detection which makes multipart uploads
  42067. better
  42068. - Make check obey --ignore-size
  42069. - Fix bwlimit toggle in conjunction with schedules (thanks
  42070. cbruegg)
  42071. - config ensures newly written config is on the same mount
  42072. - Local
  42073. - Revert to copy when moving file across file system boundaries
  42074. - --skip-links to suppress symlink warnings (thanks Zhiming Wang)
  42075. - Mount
  42076. - Reuse rcat internals to support uploads from all remotes
  42077. - Dropbox
  42078. - Fix "entry doesn't belong in directory" error
  42079. - Stop using deprecated API methods
  42080. - Swift
  42081. - Fix server-side copy to empty container with --fast-list
  42082. - Google Drive
  42083. - Change the default for --drive-use-trash to true
  42084. - S3
  42085. - Set session token when using STS (thanks Girish Ramakrishnan)
  42086. - Glacier docs and error messages (thanks Jan Varho)
  42087. - Read 1000 (not 1024) items in dir listings to fix Wasabi
  42088. - Backblaze B2
  42089. - Fix SHA1 mismatch when downloading files with no SHA1
  42090. - Calculate missing hashes on the fly instead of spooling
  42091. - --b2-hard-delete to permanently delete (not hide) files (thanks
  42092. John Papandriopoulos)
  42093. - Hubic
  42094. - Fix creating containers - no longer have to use the default
  42095. container
  42096. - Swift
  42097. - Optionally configure from a standard set of OpenStack
  42098. environment vars
  42099. - Add endpoint_type config
  42100. - Google Cloud Storage
  42101. - Fix bucket creation to work with limited permission users
  42102. - SFTP
  42103. - Implement connection pooling for multiple ssh connections
  42104. - Limit new connections per second
  42105. - Add support for MD5 and SHA1 hashes where available (thanks
  42106. Christian Brüggemann)
  42107. - HTTP
  42108. - Fix URL encoding issues
  42109. - Fix directories with : in
  42110. - Fix panic with URL encoded content
  42111. v1.37 - 2017-07-22
  42112. - New backends
  42113. - FTP - thanks to Antonio Messina
  42114. - HTTP - thanks to Vasiliy Tolstov
  42115. - New commands
  42116. - rclone ncdu - for exploring a remote with a text based user
  42117. interface.
  42118. - rclone lsjson - for listing with a machine-readable output
  42119. - rclone dbhashsum - to show Dropbox style hashes of files (local
  42120. or Dropbox)
  42121. - New Features
  42122. - Implement --fast-list flag
  42123. - This allows remotes to list recursively if they can
  42124. - This uses less transactions (important if you pay for them)
  42125. - This may or may not be quicker
  42126. - This will use more memory as it has to hold the listing in
  42127. memory
  42128. - --old-sync-method deprecated - the remaining uses are
  42129. covered by --fast-list
  42130. - This involved a major re-write of all the listing code
  42131. - Add --tpslimit and --tpslimit-burst to limit transactions per
  42132. second
  42133. - this is useful in conjunction with rclone mount to limit
  42134. external apps
  42135. - Add --stats-log-level so can see --stats without -v
  42136. - Print password prompts to stderr - Hraban Luyat
  42137. - Warn about duplicate files when syncing
  42138. - Oauth improvements
  42139. - allow auth_url and token_url to be set in the config file
  42140. - Print redirection URI if using own credentials.
  42141. - Don't Mkdir at the start of sync to save transactions
  42142. - Compile
  42143. - Update build to go1.8.3
  42144. - Require go1.6 for building rclone
  42145. - Compile 386 builds with "GO386=387" for maximum compatibility
  42146. - Bug Fixes
  42147. - Fix menu selection when no remotes
  42148. - Config saving reworked to not kill the file if disk gets full
  42149. - Don't delete remote if name does not change while renaming
  42150. - moveto, copyto: report transfers and checks as per move and copy
  42151. - Local
  42152. - Add --local-no-unicode-normalization flag - Bob Potter
  42153. - Mount
  42154. - Now supported on Windows using cgofuse and WinFsp - thanks to
  42155. Bill Zissimopoulos for much help
  42156. - Compare checksums on upload/download via FUSE
  42157. - Unmount when program ends with SIGINT (Ctrl+C) or SIGTERM -
  42158. Jérôme Vizcaino
  42159. - On read only open of file, make open pending until first read
  42160. - Make --read-only reject modify operations
  42161. - Implement ModTime via FUSE for remotes that support it
  42162. - Allow modTime to be changed even before all writers are closed
  42163. - Fix panic on renames
  42164. - Fix hang on errored upload
  42165. - Crypt
  42166. - Report the name:root as specified by the user
  42167. - Add an "obfuscate" option for filename encryption - Stephen
  42168. Harris
  42169. - Amazon Drive
  42170. - Fix initialization order for token renewer
  42171. - Remove revoked credentials, allow oauth proxy config and update
  42172. docs
  42173. - B2
  42174. - Reduce minimum chunk size to 5MB
  42175. - Drive
  42176. - Add team drive support
  42177. - Reduce bandwidth by adding fields for partial responses - Martin
  42178. Kristensen
  42179. - Implement --drive-shared-with-me flag to view shared with me
  42180. files - Danny Tsai
  42181. - Add --drive-trashed-only to read only the files in the trash
  42182. - Remove obsolete --drive-full-list
  42183. - Add missing seek to start on retries of chunked uploads
  42184. - Fix stats accounting for upload
  42185. - Convert / in names to a unicode equivalent (/)
  42186. - Poll for Google Drive changes when mounted
  42187. - OneDrive
  42188. - Fix the uploading of files with spaces
  42189. - Fix initialization order for token renewer
  42190. - Display speeds accurately when uploading - Yoni Jah
  42191. - Swap to using http://localhost:53682/ as redirect URL - Michael
  42192. Ledin
  42193. - Retry on token expired error, reset upload body on retry - Yoni
  42194. Jah
  42195. - Google Cloud Storage
  42196. - Add ability to specify location and storage class via config and
  42197. command line - thanks gdm85
  42198. - Create container if necessary on server-side copy
  42199. - Increase directory listing chunk to 1000 to increase performance
  42200. - Obtain a refresh token for GCS - Steven Lu
  42201. - Yandex
  42202. - Fix the name reported in log messages (was empty)
  42203. - Correct error return for listing empty directory
  42204. - Dropbox
  42205. - Rewritten to use the v2 API
  42206. - Now supports ModTime
  42207. - Can only set by uploading the file again
  42208. - If you uploaded with an old rclone, rclone may upload
  42209. everything again
  42210. - Use --size-only or --checksum to avoid this
  42211. - Now supports the Dropbox content hashing scheme
  42212. - Now supports low level retries
  42213. - S3
  42214. - Work around eventual consistency in bucket creation
  42215. - Create container if necessary on server-side copy
  42216. - Add us-east-2 (Ohio) and eu-west-2 (London) S3 regions - Zahiar
  42217. Ahmed
  42218. - Swift, Hubic
  42219. - Fix zero length directory markers showing in the subdirectory
  42220. listing
  42221. - this caused lots of duplicate transfers
  42222. - Fix paged directory listings
  42223. - this caused duplicate directory errors
  42224. - Create container if necessary on server-side copy
  42225. - Increase directory listing chunk to 1000 to increase performance
  42226. - Make sensible error if the user forgets the container
  42227. - SFTP
  42228. - Add support for using ssh key files
  42229. - Fix under Windows
  42230. - Fix ssh agent on Windows
  42231. - Adapt to latest version of library - Igor Kharin
  42232. v1.36 - 2017-03-18
  42233. - New Features
  42234. - SFTP remote (Jack Schmidt)
  42235. - Re-implement sync routine to work a directory at a time reducing
  42236. memory usage
  42237. - Logging revamped to be more inline with rsync - now much
  42238. quieter * -v only shows transfers * -vv is for full debug *
  42239. --syslog to log to syslog on capable platforms
  42240. - Implement --backup-dir and --suffix
  42241. - Implement --track-renames (initial implementation by Bjørn Erik
  42242. Pedersen)
  42243. - Add time-based bandwidth limits (Lukas Loesche)
  42244. - rclone cryptcheck: checks integrity of crypt remotes
  42245. - Allow all config file variables and options to be set from
  42246. environment variables
  42247. - Add --buffer-size parameter to control buffer size for copy
  42248. - Make --delete-after the default
  42249. - Add --ignore-checksum flag (fixed by Hisham Zarka)
  42250. - rclone check: Add --download flag to check all the data, not
  42251. just hashes
  42252. - rclone cat: add --head, --tail, --offset, --count and --discard
  42253. - rclone config: when choosing from a list, allow the value to be
  42254. entered too
  42255. - rclone config: allow rename and copy of remotes
  42256. - rclone obscure: for generating encrypted passwords for rclone's
  42257. config (T.C. Ferguson)
  42258. - Comply with XDG Base Directory specification (Dario Giovannetti)
  42259. - this moves the default location of the config file in a
  42260. backwards compatible way
  42261. - Release changes
  42262. - Ubuntu snap support (Dedsec1)
  42263. - Compile with go 1.8
  42264. - MIPS/Linux big and little endian support
  42265. - Bug Fixes
  42266. - Fix copyto copying things to the wrong place if the destination
  42267. dir didn't exist
  42268. - Fix parsing of remotes in moveto and copyto
  42269. - Fix --delete-before deleting files on copy
  42270. - Fix --files-from with an empty file copying everything
  42271. - Fix sync: don't update mod times if --dry-run set
  42272. - Fix MimeType propagation
  42273. - Fix filters to add ** rules to directory rules
  42274. - Local
  42275. - Implement -L, --copy-links flag to allow rclone to follow
  42276. symlinks
  42277. - Open files in write only mode so rclone can write to an rclone
  42278. mount
  42279. - Fix unnormalised unicode causing problems reading directories
  42280. - Fix interaction between -x flag and --max-depth
  42281. - Mount
  42282. - Implement proper directory handling (mkdir, rmdir, renaming)
  42283. - Make include and exclude filters apply to mount
  42284. - Implement read and write async buffers - control with
  42285. --buffer-size
  42286. - Fix fsync on for directories
  42287. - Fix retry on network failure when reading off crypt
  42288. - Crypt
  42289. - Add --crypt-show-mapping to show encrypted file mapping
  42290. - Fix crypt writer getting stuck in a loop
  42291. - IMPORTANT this bug had the potential to cause data
  42292. corruption when
  42293. - reading data from a network based remote and
  42294. - writing to a crypt on Google Drive
  42295. - Use the cryptcheck command to validate your data if you are
  42296. concerned
  42297. - If syncing two crypt remotes, sync the unencrypted remote
  42298. - Amazon Drive
  42299. - Fix panics on Move (rename)
  42300. - Fix panic on token expiry
  42301. - B2
  42302. - Fix inconsistent listings and rclone check
  42303. - Fix uploading empty files with go1.8
  42304. - Constrain memory usage when doing multipart uploads
  42305. - Fix upload url not being refreshed properly
  42306. - Drive
  42307. - Fix Rmdir on directories with trashed files
  42308. - Fix "Ignoring unknown object" when downloading
  42309. - Add --drive-list-chunk
  42310. - Add --drive-skip-gdocs (Károly Oláh)
  42311. - OneDrive
  42312. - Implement Move
  42313. - Fix Copy
  42314. - Fix overwrite detection in Copy
  42315. - Fix waitForJob to parse errors correctly
  42316. - Use token renewer to stop auth errors on long uploads
  42317. - Fix uploading empty files with go1.8
  42318. - Google Cloud Storage
  42319. - Fix depth 1 directory listings
  42320. - Yandex
  42321. - Fix single level directory listing
  42322. - Dropbox
  42323. - Normalise the case for single level directory listings
  42324. - Fix depth 1 listing
  42325. - S3
  42326. - Added ca-central-1 region (Jon Yergatian)
  42327. v1.35 - 2017-01-02
  42328. - New Features
  42329. - moveto and copyto commands for choosing a destination name on
  42330. copy/move
  42331. - rmdirs command to recursively delete empty directories
  42332. - Allow repeated --include/--exclude/--filter options
  42333. - Only show transfer stats on commands which transfer stuff
  42334. - show stats on any command using the --stats flag
  42335. - Allow overlapping directories in move when server-side dir move
  42336. is supported
  42337. - Add --stats-unit option - thanks Scott McGillivray
  42338. - Bug Fixes
  42339. - Fix the config file being overwritten when two rclone instances
  42340. are running
  42341. - Make rclone lsd obey the filters properly
  42342. - Fix compilation on mips
  42343. - Fix not transferring files that don't differ in size
  42344. - Fix panic on nil retry/fatal error
  42345. - Mount
  42346. - Retry reads on error - should help with reliability a lot
  42347. - Report the modification times for directories from the remote
  42348. - Add bandwidth accounting and limiting (fixes --bwlimit)
  42349. - If --stats provided will show stats and which files are
  42350. transferring
  42351. - Support R/W files if truncate is set.
  42352. - Implement statfs interface so df works
  42353. - Note that write is now supported on Amazon Drive
  42354. - Report number of blocks in a file - thanks Stefan Breunig
  42355. - Crypt
  42356. - Prevent the user pointing crypt at itself
  42357. - Fix failed to authenticate decrypted block errors
  42358. - these will now return the underlying unexpected EOF instead
  42359. - Amazon Drive
  42360. - Add support for server-side move and directory move - thanks
  42361. Stefan Breunig
  42362. - Fix nil pointer deref on size attribute
  42363. - B2
  42364. - Use new prefix and delimiter parameters in directory listings
  42365. - This makes --max-depth 1 dir listings as used in mount much
  42366. faster
  42367. - Reauth the account while doing uploads too - should help with
  42368. token expiry
  42369. - Drive
  42370. - Make DirMove more efficient and complain about moving the root
  42371. - Create destination directory on Move()
  42372. v1.34 - 2016-11-06
  42373. - New Features
  42374. - Stop single file and --files-from operations iterating through
  42375. the source bucket.
  42376. - Stop removing failed upload to cloud storage remotes
  42377. - Make ContentType be preserved for cloud to cloud copies
  42378. - Add support to toggle bandwidth limits via SIGUSR2 - thanks
  42379. Marco Paganini
  42380. - rclone check shows count of hashes that couldn't be checked
  42381. - rclone listremotes command
  42382. - Support linux/arm64 build - thanks Fredrik Fornwall
  42383. - Remove Authorization: lines from --dump-headers output
  42384. - Bug Fixes
  42385. - Ignore files with control characters in the names
  42386. - Fix rclone move command
  42387. - Delete src files which already existed in dst
  42388. - Fix deletion of src file when dst file older
  42389. - Fix rclone check on encrypted file systems
  42390. - Make failed uploads not count as "Transferred"
  42391. - Make sure high level retries show with -q
  42392. - Use a vendor directory with godep for repeatable builds
  42393. - rclone mount - FUSE
  42394. - Implement FUSE mount options
  42395. - --no-modtime, --debug-fuse, --read-only, --allow-non-empty,
  42396. --allow-root, --allow-other
  42397. - --default-permissions, --write-back-cache, --max-read-ahead,
  42398. --umask, --uid, --gid
  42399. - Add --dir-cache-time to control caching of directory entries
  42400. - Implement seek for files opened for read (useful for video
  42401. players)
  42402. - with -no-seek flag to disable
  42403. - Fix crash on 32 bit ARM (alignment of 64 bit counter)
  42404. - ...and many more internal fixes and improvements!
  42405. - Crypt
  42406. - Don't show encrypted password in configurator to stop confusion
  42407. - Amazon Drive
  42408. - New wait for upload option --acd-upload-wait-per-gb
  42409. - upload timeouts scale by file size and can be disabled
  42410. - Add 502 Bad Gateway to list of errors we retry
  42411. - Fix overwriting a file with a zero length file
  42412. - Fix ACD file size warning limit - thanks Felix Bünemann
  42413. - Local
  42414. - Unix: implement -x/--one-file-system to stay on a single file
  42415. system
  42416. - thanks Durval Menezes and Luiz Carlos Rumbelsperger Viana
  42417. - Windows: ignore the symlink bit on files
  42418. - Windows: Ignore directory-based junction points
  42419. - B2
  42420. - Make sure each upload has at least one upload slot - fixes
  42421. strange upload stats
  42422. - Fix uploads when using crypt
  42423. - Fix download of large files (sha1 mismatch)
  42424. - Return error when we try to create a bucket which someone else
  42425. owns
  42426. - Update B2 docs with Data usage, and Crypt section - thanks
  42427. Tomasz Mazur
  42428. - S3
  42429. - Command line and config file support for
  42430. - Setting/overriding ACL - thanks Radek Šenfeld
  42431. - Setting storage class - thanks Asko Tamm
  42432. - Drive
  42433. - Make exponential backoff work exactly as per Google
  42434. specification
  42435. - add .epub, .odp and .tsv as export formats.
  42436. - Swift
  42437. - Don't read metadata for directory marker objects
  42438. v1.33 - 2016-08-24
  42439. - New Features
  42440. - Implement encryption
  42441. - data encrypted in NACL secretbox format
  42442. - with optional file name encryption
  42443. - New commands
  42444. - rclone mount - implements FUSE mounting of remotes
  42445. (EXPERIMENTAL)
  42446. - works on Linux, FreeBSD and OS X (need testers for the
  42447. last 2!)
  42448. - rclone cat - outputs remote file or files to the terminal
  42449. - rclone genautocomplete - command to make a bash completion
  42450. script for rclone
  42451. - Editing a remote using rclone config now goes through the wizard
  42452. - Compile with go 1.7 - this fixes rclone on macOS Sierra and on
  42453. 386 processors
  42454. - Use cobra for sub commands and docs generation
  42455. - drive
  42456. - Document how to make your own client_id
  42457. - s3
  42458. - User-configurable Amazon S3 ACL (thanks Radek Šenfeld)
  42459. - b2
  42460. - Fix stats accounting for upload - no more jumping to 100% done
  42461. - On cleanup delete hide marker if it is the current file
  42462. - New B2 API endpoint (thanks Per Cederberg)
  42463. - Set maximum backoff to 5 Minutes
  42464. - onedrive
  42465. - Fix URL escaping in file names - e.g. uploading files with + in
  42466. them.
  42467. - amazon cloud drive
  42468. - Fix token expiry during large uploads
  42469. - Work around 408 REQUEST_TIMEOUT and 504 GATEWAY_TIMEOUT errors
  42470. - local
  42471. - Fix filenames with invalid UTF-8 not being uploaded
  42472. - Fix problem with some UTF-8 characters on OS X
  42473. v1.32 - 2016-07-13
  42474. - Backblaze B2
  42475. - Fix upload of files large files not in root
  42476. v1.31 - 2016-07-13
  42477. - New Features
  42478. - Reduce memory on sync by about 50%
  42479. - Implement --no-traverse flag to stop copy traversing the
  42480. destination remote.
  42481. - This can be used to reduce memory usage down to the smallest
  42482. possible.
  42483. - Useful to copy a small number of files into a large
  42484. destination folder.
  42485. - Implement cleanup command for emptying trash / removing old
  42486. versions of files
  42487. - Currently B2 only
  42488. - Single file handling improved
  42489. - Now copied with --files-from
  42490. - Automatically sets --no-traverse when copying a single file
  42491. - Info on using installing with ansible - thanks Stefan Weichinger
  42492. - Implement --no-update-modtime flag to stop rclone fixing the
  42493. remote modified times.
  42494. - Bug Fixes
  42495. - Fix move command - stop it running for overlapping Fses - this
  42496. was causing data loss.
  42497. - Local
  42498. - Fix incomplete hashes - this was causing problems for B2.
  42499. - Amazon Drive
  42500. - Rename Amazon Cloud Drive to Amazon Drive - no changes to config
  42501. file needed.
  42502. - Swift
  42503. - Add support for non-default project domain - thanks Antonio
  42504. Messina.
  42505. - S3
  42506. - Add instructions on how to use rclone with minio.
  42507. - Add ap-northeast-2 (Seoul) and ap-south-1 (Mumbai) regions.
  42508. - Skip setting the modified time for objects > 5GB as it isn't
  42509. possible.
  42510. - Backblaze B2
  42511. - Add --b2-versions flag so old versions can be listed and
  42512. retrieved.
  42513. - Treat 403 errors (e.g. cap exceeded) as fatal.
  42514. - Implement cleanup command for deleting old file versions.
  42515. - Make error handling compliant with B2 integrations notes.
  42516. - Fix handling of token expiry.
  42517. - Implement --b2-test-mode to set X-Bz-Test-Mode header.
  42518. - Set cutoff for chunked upload to 200MB as per B2 guidelines.
  42519. - Make upload multi-threaded.
  42520. - Dropbox
  42521. - Don't retry 461 errors.
  42522. v1.30 - 2016-06-18
  42523. - New Features
  42524. - Directory listing code reworked for more features and better
  42525. error reporting (thanks to Klaus Post for help). This enables
  42526. - Directory include filtering for efficiency
  42527. - --max-depth parameter
  42528. - Better error reporting
  42529. - More to come
  42530. - Retry more errors
  42531. - Add --ignore-size flag - for uploading images to onedrive
  42532. - Log -v output to stdout by default
  42533. - Display the transfer stats in more human-readable form
  42534. - Make 0 size files specifiable with --max-size 0b
  42535. - Add b suffix so we can specify bytes in --bwlimit, --min-size,
  42536. etc.
  42537. - Use "password:" instead of "password>" prompt - thanks Klaus
  42538. Post and Leigh Klotz
  42539. - Bug Fixes
  42540. - Fix retry doing one too many retries
  42541. - Local
  42542. - Fix problems with OS X and UTF-8 characters
  42543. - Amazon Drive
  42544. - Check a file exists before uploading to help with 408 Conflict
  42545. errors
  42546. - Reauth on 401 errors - this has been causing a lot of problems
  42547. - Work around spurious 403 errors
  42548. - Restart directory listings on error
  42549. - Google Drive
  42550. - Check a file exists before uploading to help with duplicates
  42551. - Fix retry of multipart uploads
  42552. - Backblaze B2
  42553. - Implement large file uploading
  42554. - S3
  42555. - Add AES256 server-side encryption for - thanks Justin R. Wilson
  42556. - Google Cloud Storage
  42557. - Make sure we don't use conflicting content types on upload
  42558. - Add service account support - thanks Michal Witkowski
  42559. - Swift
  42560. - Add auth version parameter
  42561. - Add domain option for openstack (v3 auth) - thanks Fabian Ruff
  42562. v1.29 - 2016-04-18
  42563. - New Features
  42564. - Implement -I, --ignore-times for unconditional upload
  42565. - Improve dedupecommand
  42566. - Now removes identical copies without asking
  42567. - Now obeys --dry-run
  42568. - Implement --dedupe-mode for non interactive running
  42569. - --dedupe-mode interactive - interactive the default.
  42570. - --dedupe-mode skip - removes identical files then skips
  42571. anything left.
  42572. - --dedupe-mode first - removes identical files then keeps
  42573. the first one.
  42574. - --dedupe-mode newest - removes identical files then
  42575. keeps the newest one.
  42576. - --dedupe-mode oldest - removes identical files then
  42577. keeps the oldest one.
  42578. - --dedupe-mode rename - removes identical files then
  42579. renames the rest to be different.
  42580. - Bug fixes
  42581. - Make rclone check obey the --size-only flag.
  42582. - Use "application/octet-stream" if discovered mime type is
  42583. invalid.
  42584. - Fix missing "quit" option when there are no remotes.
  42585. - Google Drive
  42586. - Increase default chunk size to 8 MB - increases upload speed of
  42587. big files
  42588. - Speed up directory listings and make more reliable
  42589. - Add missing retries for Move and DirMove - increases reliability
  42590. - Preserve mime type on file update
  42591. - Backblaze B2
  42592. - Enable mod time syncing
  42593. - This means that B2 will now check modification times
  42594. - It will upload new files to update the modification times
  42595. - (there isn't an API to just set the mod time.)
  42596. - If you want the old behaviour use --size-only.
  42597. - Update API to new version
  42598. - Fix parsing of mod time when not in metadata
  42599. - Swift/Hubic
  42600. - Don't return an MD5SUM for static large objects
  42601. - S3
  42602. - Fix uploading files bigger than 50GB
  42603. v1.28 - 2016-03-01
  42604. - New Features
  42605. - Configuration file encryption - thanks Klaus Post
  42606. - Improve rclone config adding more help and making it easier to
  42607. understand
  42608. - Implement -u/--update so creation times can be used on all
  42609. remotes
  42610. - Implement --low-level-retries flag
  42611. - Optionally disable gzip compression on downloads with
  42612. --no-gzip-encoding
  42613. - Bug fixes
  42614. - Don't make directories if --dry-run set
  42615. - Fix and document the move command
  42616. - Fix redirecting stderr on unix-like OSes when using --log-file
  42617. - Fix delete command to wait until all finished - fixes missing
  42618. deletes.
  42619. - Backblaze B2
  42620. - Use one upload URL per go routine fixes
  42621. more than one upload using auth token
  42622. - Add pacing, retries and reauthentication - fixes token expiry
  42623. problems
  42624. - Upload without using a temporary file from local (and remotes
  42625. which support SHA1)
  42626. - Fix reading metadata for all files when it shouldn't have been
  42627. - Drive
  42628. - Fix listing drive documents at root
  42629. - Disable copy and move for Google docs
  42630. - Swift
  42631. - Fix uploading of chunked files with non ASCII characters
  42632. - Allow setting of storage_url in the config - thanks Xavier Lucas
  42633. - S3
  42634. - Allow IAM role and credentials from environment variables -
  42635. thanks Brian Stengaard
  42636. - Allow low privilege users to use S3 (check if directory exists
  42637. during Mkdir) - thanks Jakub Gedeon
  42638. - Amazon Drive
  42639. - Retry on more things to make directory listings more reliable
  42640. v1.27 - 2016-01-31
  42641. - New Features
  42642. - Easier headless configuration with rclone authorize
  42643. - Add support for multiple hash types - we now check SHA1 as well
  42644. as MD5 hashes.
  42645. - delete command which does obey the filters (unlike purge)
  42646. - dedupe command to deduplicate a remote. Useful with Google
  42647. Drive.
  42648. - Add --ignore-existing flag to skip all files that exist on
  42649. destination.
  42650. - Add --delete-before, --delete-during, --delete-after flags.
  42651. - Add --memprofile flag to debug memory use.
  42652. - Warn the user about files with same name but different case
  42653. - Make --include rules add their implicit exclude * at the end of
  42654. the filter list
  42655. - Deprecate compiling with go1.3
  42656. - Amazon Drive
  42657. - Fix download of files > 10 GB
  42658. - Fix directory traversal ("Next token is expired") for large
  42659. directory listings
  42660. - Remove 409 conflict from error codes we will retry - stops very
  42661. long pauses
  42662. - Backblaze B2
  42663. - SHA1 hashes now checked by rclone core
  42664. - Drive
  42665. - Add --drive-auth-owner-only to only consider files owned by the
  42666. user - thanks Björn Harrtell
  42667. - Export Google documents
  42668. - Dropbox
  42669. - Make file exclusion error controllable with -q
  42670. - Swift
  42671. - Fix upload from unprivileged user.
  42672. - S3
  42673. - Fix updating of mod times of files with + in.
  42674. - Local
  42675. - Add local file system option to disable UNC on Windows.
  42676. v1.26 - 2016-01-02
  42677. - New Features
  42678. - Yandex storage backend - thank you Dmitry Burdeev ("dibu")
  42679. - Implement Backblaze B2 storage backend
  42680. - Add --min-age and --max-age flags - thank you Adriano Aurélio
  42681. Meirelles
  42682. - Make ls/lsl/md5sum/size/check obey includes and excludes
  42683. - Fixes
  42684. - Fix crash in http logging
  42685. - Upload releases to github too
  42686. - Swift
  42687. - Fix sync for chunked files
  42688. - OneDrive
  42689. - Re-enable server-side copy
  42690. - Don't mask HTTP error codes with JSON decode error
  42691. - S3
  42692. - Fix corrupting Content-Type on mod time update (thanks Joseph
  42693. Spurrier)
  42694. v1.25 - 2015-11-14
  42695. - New features
  42696. - Implement Hubic storage system
  42697. - Fixes
  42698. - Fix deletion of some excluded files without --delete-excluded
  42699. - This could have deleted files unexpectedly on sync
  42700. - Always check first with --dry-run!
  42701. - Swift
  42702. - Stop SetModTime losing metadata (e.g. X-Object-Manifest)
  42703. - This could have caused data loss for files > 5GB in size
  42704. - Use ContentType from Object to avoid lookups in listings
  42705. - OneDrive
  42706. - disable server-side copy as it seems to be broken at Microsoft
  42707. v1.24 - 2015-11-07
  42708. - New features
  42709. - Add support for Microsoft OneDrive
  42710. - Add --no-check-certificate option to disable server certificate
  42711. verification
  42712. - Add async readahead buffer for faster transfer of big files
  42713. - Fixes
  42714. - Allow spaces in remotes and check remote names for validity at
  42715. creation time
  42716. - Allow '&' and disallow ':' in Windows filenames.
  42717. - Swift
  42718. - Ignore directory marker objects where appropriate - allows
  42719. working with Hubic
  42720. - Don't delete the container if fs wasn't at root
  42721. - S3
  42722. - Don't delete the bucket if fs wasn't at root
  42723. - Google Cloud Storage
  42724. - Don't delete the bucket if fs wasn't at root
  42725. v1.23 - 2015-10-03
  42726. - New features
  42727. - Implement rclone size for measuring remotes
  42728. - Fixes
  42729. - Fix headless config for drive and gcs
  42730. - Tell the user they should try again if the webserver method
  42731. failed
  42732. - Improve output of --dump-headers
  42733. - S3
  42734. - Allow anonymous access to public buckets
  42735. - Swift
  42736. - Stop chunked operations logging "Failed to read info: Object Not
  42737. Found"
  42738. - Use Content-Length on uploads for extra reliability
  42739. v1.22 - 2015-09-28
  42740. - Implement rsync like include and exclude flags
  42741. - swift
  42742. - Support files > 5GB - thanks Sergey Tolmachev
  42743. v1.21 - 2015-09-22
  42744. - New features
  42745. - Display individual transfer progress
  42746. - Make lsl output times in localtime
  42747. - Fixes
  42748. - Fix allowing user to override credentials again in Drive, GCS
  42749. and ACD
  42750. - Amazon Drive
  42751. - Implement compliant pacing scheme
  42752. - Google Drive
  42753. - Make directory reads concurrent for increased speed.
  42754. v1.20 - 2015-09-15
  42755. - New features
  42756. - Amazon Drive support
  42757. - Oauth support redone - fix many bugs and improve usability
  42758. - Use "golang.org/x/oauth2" as oauth library of choice
  42759. - Improve oauth usability for smoother initial signup
  42760. - drive, googlecloudstorage: optionally use auto config for
  42761. the oauth token
  42762. - Implement --dump-headers and --dump-bodies debug flags
  42763. - Show multiple matched commands if abbreviation too short
  42764. - Implement server-side move where possible
  42765. - local
  42766. - Always use UNC paths internally on Windows - fixes a lot of bugs
  42767. - dropbox
  42768. - force use of our custom transport which makes timeouts work
  42769. - Thanks to Klaus Post for lots of help with this release
  42770. v1.19 - 2015-08-28
  42771. - New features
  42772. - Server side copies for s3/swift/drive/dropbox/gcs
  42773. - Move command - uses server-side copies if it can
  42774. - Implement --retries flag - tries 3 times by default
  42775. - Build for plan9/amd64 and solaris/amd64 too
  42776. - Fixes
  42777. - Make a current version download with a fixed URL for scripting
  42778. - Ignore rmdir in limited fs rather than throwing error
  42779. - dropbox
  42780. - Increase chunk size to improve upload speeds massively
  42781. - Issue an error message when trying to upload bad file name
  42782. v1.18 - 2015-08-17
  42783. - drive
  42784. - Add --drive-use-trash flag so rclone trashes instead of deletes
  42785. - Add "Forbidden to download" message for files with no
  42786. downloadURL
  42787. - dropbox
  42788. - Remove datastore
  42789. - This was deprecated and it caused a lot of problems
  42790. - Modification times and MD5SUMs no longer stored
  42791. - Fix uploading files > 2GB
  42792. - s3
  42793. - use official AWS SDK from github.com/aws/aws-sdk-go
  42794. - NB will most likely require you to delete and recreate remote
  42795. - enable multipart upload which enables files > 5GB
  42796. - tested with Ceph / RadosGW / S3 emulation
  42797. - many thanks to Sam Liston and Brian Haymore at the Utah Center
  42798. for High Performance Computing for a Ceph test account
  42799. - misc
  42800. - Show errors when reading the config file
  42801. - Do not print stats in quiet mode - thanks Leonid Shalupov
  42802. - Add FAQ
  42803. - Fix created directories not obeying umask
  42804. - Linux installation instructions - thanks Shimon Doodkin
  42805. v1.17 - 2015-06-14
  42806. - dropbox: fix case insensitivity issues - thanks Leonid Shalupov
  42807. v1.16 - 2015-06-09
  42808. - Fix uploading big files which was causing timeouts or panics
  42809. - Don't check md5sum after download with --size-only
  42810. v1.15 - 2015-06-06
  42811. - Add --checksum flag to only discard transfers by MD5SUM - thanks
  42812. Alex Couper
  42813. - Implement --size-only flag to sync on size not checksum & modtime
  42814. - Expand docs and remove duplicated information
  42815. - Document rclone's limitations with directories
  42816. - dropbox: update docs about case insensitivity
  42817. v1.14 - 2015-05-21
  42818. - local: fix encoding of non utf-8 file names - fixes a duplicate file
  42819. problem
  42820. - drive: docs about rate limiting
  42821. - google cloud storage: Fix compile after API change in
  42822. "google.golang.org/api/storage/v1"
  42823. v1.13 - 2015-05-10
  42824. - Revise documentation (especially sync)
  42825. - Implement --timeout and --conntimeout
  42826. - s3: ignore etags from multipart uploads which aren't md5sums
  42827. v1.12 - 2015-03-15
  42828. - drive: Use chunked upload for files above a certain size
  42829. - drive: add --drive-chunk-size and --drive-upload-cutoff parameters
  42830. - drive: switch to insert from update when a failed copy deletes the
  42831. upload
  42832. - core: Log duplicate files if they are detected
  42833. v1.11 - 2015-03-04
  42834. - swift: add region parameter
  42835. - drive: fix crash on failed to update remote mtime
  42836. - In remote paths, change native directory separators to /
  42837. - Add synchronization to ls/lsl/lsd output to stop corruptions
  42838. - Ensure all stats/log messages to go stderr
  42839. - Add --log-file flag to log everything (including panics) to file
  42840. - Make it possible to disable stats printing with --stats=0
  42841. - Implement --bwlimit to limit data transfer bandwidth
  42842. v1.10 - 2015-02-12
  42843. - s3: list an unlimited number of items
  42844. - Fix getting stuck in the configurator
  42845. v1.09 - 2015-02-07
  42846. - windows: Stop drive letters (e.g. C:) getting mixed up with remotes
  42847. (e.g. drive:)
  42848. - local: Fix directory separators on Windows
  42849. - drive: fix rate limit exceeded errors
  42850. v1.08 - 2015-02-04
  42851. - drive: fix subdirectory listing to not list entire drive
  42852. - drive: Fix SetModTime
  42853. - dropbox: adapt code to recent library changes
  42854. v1.07 - 2014-12-23
  42855. - google cloud storage: fix memory leak
  42856. v1.06 - 2014-12-12
  42857. - Fix "Couldn't find home directory" on OSX
  42858. - swift: Add tenant parameter
  42859. - Use new location of Google API packages
  42860. v1.05 - 2014-08-09
  42861. - Improved tests and consequently lots of minor fixes
  42862. - core: Fix race detected by go race detector
  42863. - core: Fixes after running errcheck
  42864. - drive: reset root directory on Rmdir and Purge
  42865. - fs: Document that Purger returns error on empty directory, test and
  42866. fix
  42867. - google cloud storage: fix ListDir on subdirectory
  42868. - google cloud storage: re-read metadata in SetModTime
  42869. - s3: make reading metadata more reliable to work around eventual
  42870. consistency problems
  42871. - s3: strip trailing / from ListDir()
  42872. - swift: return directories without / in ListDir
  42873. v1.04 - 2014-07-21
  42874. - google cloud storage: Fix crash on Update
  42875. v1.03 - 2014-07-20
  42876. - swift, s3, dropbox: fix updated files being marked as corrupted
  42877. - Make compile with go 1.1 again
  42878. v1.02 - 2014-07-19
  42879. - Implement Dropbox remote
  42880. - Implement Google Cloud Storage remote
  42881. - Verify Md5sums and Sizes after copies
  42882. - Remove times from "ls" command - lists sizes only
  42883. - Add add "lsl" - lists times and sizes
  42884. - Add "md5sum" command
  42885. v1.01 - 2014-07-04
  42886. - drive: fix transfer of big files using up lots of memory
  42887. v1.00 - 2014-07-03
  42888. - drive: fix whole second dates
  42889. v0.99 - 2014-06-26
  42890. - Fix --dry-run not working
  42891. - Make compatible with go 1.1
  42892. v0.98 - 2014-05-30
  42893. - s3: Treat missing Content-Length as 0 for some ceph installations
  42894. - rclonetest: add file with a space in
  42895. v0.97 - 2014-05-05
  42896. - Implement copying of single files
  42897. - s3 & swift: support paths inside containers/buckets
  42898. v0.96 - 2014-04-24
  42899. - drive: Fix multiple files of same name being created
  42900. - drive: Use o.Update and fs.Put to optimise transfers
  42901. - Add version number, -V and --version
  42902. v0.95 - 2014-03-28
  42903. - rclone.org: website, docs and graphics
  42904. - drive: fix path parsing
  42905. v0.94 - 2014-03-27
  42906. - Change remote format one last time
  42907. - GNU style flags
  42908. v0.93 - 2014-03-16
  42909. - drive: store token in config file
  42910. - cross compile other versions
  42911. - set strict permissions on config file
  42912. v0.92 - 2014-03-15
  42913. - Config fixes and --config option
  42914. v0.91 - 2014-03-15
  42915. - Make config file
  42916. v0.90 - 2013-06-27
  42917. - Project named rclone
  42918. v0.00 - 2012-11-18
  42919. - Project started
  42920. Bugs and Limitations
  42921. Limitations
  42922. Directory timestamps aren't preserved on some backends
  42923. As of v1.66, rclone supports syncing directory modtimes, if the backend
  42924. supports it. Some backends do not support it -- see overview for a
  42925. complete list. Additionally, note that empty directories are not synced
  42926. by default (this can be enabled with --create-empty-src-dirs.)
  42927. Rclone struggles with millions of files in a directory/bucket
  42928. Currently rclone loads each directory/bucket entirely into memory before
  42929. using it. Since each rclone object takes 0.5k-1k of memory this can take
  42930. a very long time and use a large amount of memory.
  42931. Millions of files in a directory tends to occur on bucket-based remotes
  42932. (e.g. S3 buckets) since those remotes do not segregate subdirectories
  42933. within the bucket.
  42934. Bucket-based remotes and folders
  42935. Bucket-based remotes (e.g. S3/GCS/Swift/B2) do not have a concept of
  42936. directories. Rclone therefore cannot create directories in them which
  42937. means that empty directories on a bucket-based remote will tend to
  42938. disappear.
  42939. Some software creates empty keys ending in / as directory markers.
  42940. Rclone doesn't do this as it potentially creates more objects and costs
  42941. more. This ability may be added in the future (probably via a
  42942. flag/option).
  42943. Bugs
  42944. Bugs are stored in rclone's GitHub project:
  42945. - Reported bugs
  42946. - Known issues
  42947. Frequently Asked Questions
  42948. Do all cloud storage systems support all rclone commands
  42949. Yes they do. All the rclone commands (e.g. sync, copy, etc.) will work
  42950. on all the remote storage systems.
  42951. Can I copy the config from one machine to another
  42952. Sure! Rclone stores all of its config in a single file. If you want to
  42953. find this file, run rclone config file which will tell you where it is.
  42954. See the remote setup docs for more info.
  42955. How do I configure rclone on a remote / headless box with no browser?
  42956. This has now been documented in its own remote setup page.
  42957. Can rclone sync directly from drive to s3
  42958. Rclone can sync between two remote cloud storage systems just fine.
  42959. Note that it effectively downloads the file and uploads it again, so the
  42960. node running rclone would need to have lots of bandwidth.
  42961. The syncs would be incremental (on a file by file basis).
  42962. e.g.
  42963. rclone sync --interactive drive:Folder s3:bucket
  42964. Using rclone from multiple locations at the same time
  42965. You can use rclone from multiple places at the same time if you choose
  42966. different subdirectory for the output, e.g.
  42967. Server A> rclone sync --interactive /tmp/whatever remote:ServerA
  42968. Server B> rclone sync --interactive /tmp/whatever remote:ServerB
  42969. If you sync to the same directory then you should use rclone copy
  42970. otherwise the two instances of rclone may delete each other's files,
  42971. e.g.
  42972. Server A> rclone copy /tmp/whatever remote:Backup
  42973. Server B> rclone copy /tmp/whatever remote:Backup
  42974. The file names you upload from Server A and Server B should be different
  42975. in this case, otherwise some file systems (e.g. Drive) may make
  42976. duplicates.
  42977. Why doesn't rclone support partial transfers / binary diffs like rsync?
  42978. Rclone stores each file you transfer as a native object on the remote
  42979. cloud storage system. This means that you can see the files you upload
  42980. as expected using alternative access methods (e.g. using the Google
  42981. Drive web interface). There is a 1:1 mapping between files on your hard
  42982. disk and objects created in the cloud storage system.
  42983. Cloud storage systems (at least none I've come across yet) don't support
  42984. partially uploading an object. You can't take an existing object, and
  42985. change some bytes in the middle of it.
  42986. It would be possible to make a sync system which stored binary diffs
  42987. instead of whole objects like rclone does, but that would break the 1:1
  42988. mapping of files on your hard disk to objects in the remote cloud
  42989. storage system.
  42990. All the cloud storage systems support partial downloads of content, so
  42991. it would be possible to make partial downloads work. However to make
  42992. this work efficiently this would require storing a significant amount of
  42993. metadata, which breaks the desired 1:1 mapping of files to objects.
  42994. Can rclone do bi-directional sync?
  42995. Yes, since rclone v1.58.0, bidirectional cloud sync is available.
  42996. Can I use rclone with an HTTP proxy?
  42997. Yes. rclone will follow the standard environment variables for proxies,
  42998. similar to cURL and other programs.
  42999. In general the variables are called http_proxy (for services reached
  43000. over http) and https_proxy (for services reached over https). Most
  43001. public services will be using https, but you may wish to set both.
  43002. The content of the variable is protocol://server:port. The protocol
  43003. value is the one used to talk to the proxy server, itself, and is
  43004. commonly either http or socks5.
  43005. Slightly annoyingly, there is no standard for the name; some
  43006. applications may use http_proxy but another one HTTP_PROXY. The Go
  43007. libraries used by rclone will try both variations, but you may wish to
  43008. set all possibilities. So, on Linux, you may end up with code similar to
  43009. export http_proxy=http://proxyserver:12345
  43010. export https_proxy=$http_proxy
  43011. export HTTP_PROXY=$http_proxy
  43012. export HTTPS_PROXY=$http_proxy
  43013. Note: If the proxy server requires a username and password, then use
  43014. export http_proxy=http://username:password@proxyserver:12345
  43015. export https_proxy=$http_proxy
  43016. export HTTP_PROXY=$http_proxy
  43017. export HTTPS_PROXY=$http_proxy
  43018. The NO_PROXY allows you to disable the proxy for specific hosts. Hosts
  43019. must be comma separated, and can contain domains or parts. For instance
  43020. "foo.com" also matches "bar.foo.com".
  43021. e.g.
  43022. export no_proxy=localhost,127.0.0.0/8,my.host.name
  43023. export NO_PROXY=$no_proxy
  43024. Note that the FTP backend does not support ftp_proxy yet.
  43025. Rclone gives x509: failed to load system roots and no roots provided error
  43026. This means that rclone can't find the SSL root certificates. Likely you
  43027. are running rclone on a NAS with a cut-down Linux OS, or possibly on
  43028. Solaris.
  43029. Rclone (via the Go runtime) tries to load the root certificates from
  43030. these places on Linux.
  43031. "/etc/ssl/certs/ca-certificates.crt", // Debian/Ubuntu/Gentoo etc.
  43032. "/etc/pki/tls/certs/ca-bundle.crt", // Fedora/RHEL
  43033. "/etc/ssl/ca-bundle.pem", // OpenSUSE
  43034. "/etc/pki/tls/cacert.pem", // OpenELEC
  43035. So doing something like this should fix the problem. It also sets the
  43036. time which is important for SSL to work properly.
  43037. mkdir -p /etc/ssl/certs/
  43038. curl -o /etc/ssl/certs/ca-certificates.crt https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt
  43039. ntpclient -s -h pool.ntp.org
  43040. The two environment variables SSL_CERT_FILE and SSL_CERT_DIR, mentioned
  43041. in the x509 package, provide an additional way to provide the SSL root
  43042. certificates.
  43043. Note that you may need to add the --insecure option to the curl command
  43044. line if it doesn't work without.
  43045. curl --insecure -o /etc/ssl/certs/ca-certificates.crt https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt
  43046. Rclone gives Failed to load config file: function not implemented error
  43047. Likely this means that you are running rclone on Linux version not
  43048. supported by the go runtime, ie earlier than version 2.6.23.
  43049. See the system requirements section in the go install docs for full
  43050. details.
  43051. All my uploaded docx/xlsx/pptx files appear as archive/zip
  43052. This is caused by uploading these files from a Windows computer which
  43053. hasn't got the Microsoft Office suite installed. The easiest way to fix
  43054. is to install the Word viewer and the Microsoft Office Compatibility
  43055. Pack for Word, Excel, and PowerPoint 2007 and later versions' file
  43056. formats
  43057. tcp lookup some.domain.com no such host
  43058. This happens when rclone cannot resolve a domain. Please check that your
  43059. DNS setup is generally working, e.g.
  43060. # both should print a long list of possible IP addresses
  43061. dig www.googleapis.com # resolve using your default DNS
  43062. dig www.googleapis.com @8.8.8.8 # resolve with Google's DNS server
  43063. If you are using systemd-resolved (default on Arch Linux), ensure it is
  43064. at version 233 or higher. Previous releases contain a bug which causes
  43065. not all domains to be resolved properly.
  43066. The Go resolver decision can be influenced with the GODEBUG=netdns=...
  43067. environment variable. This also allows to resolve certain issues with
  43068. DNS resolution. On Windows or MacOS systems, try forcing use of the
  43069. internal Go resolver by setting GODEBUG=netdns=go at runtime. On other
  43070. systems (Linux, *BSD, etc) try forcing use of the system name resolver
  43071. by setting GODEBUG=netdns=cgo (and recompile rclone from source with CGO
  43072. enabled if necessary). See the name resolution section in the go docs.
  43073. Failed to start auth webserver on Windows
  43074. Error: config failed to refresh token: failed to start auth webserver: listen tcp 127.0.0.1:53682: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
  43075. ...
  43076. yyyy/mm/dd hh:mm:ss Fatal error: config failed to refresh token: failed to start auth webserver: listen tcp 127.0.0.1:53682: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
  43077. This is sometimes caused by the Host Network Service causing issues with
  43078. opening the port on the host.
  43079. A simple solution may be restarting the Host Network Service with eg.
  43080. Powershell
  43081. Restart-Service hns
  43082. The total size reported in the stats for a sync is wrong and keeps changing
  43083. It is likely you have more than 10,000 files that need to be synced. By
  43084. default, rclone only gets 10,000 files ahead in a sync so as not to use
  43085. up too much memory. You can change this default with the --max-backlog
  43086. flag.
  43087. Rclone is using too much memory or appears to have a memory leak
  43088. Rclone is written in Go which uses a garbage collector. The default
  43089. settings for the garbage collector mean that it runs when the heap size
  43090. has doubled.
  43091. However it is possible to tune the garbage collector to use less memory
  43092. by setting GOGC to a lower value, say export GOGC=20. This will make the
  43093. garbage collector work harder, reducing memory size at the expense of
  43094. CPU usage.
  43095. The most common cause of rclone using lots of memory is a single
  43096. directory with thousands or millions of files in. Rclone has to load
  43097. this entirely into memory as rclone objects. Each rclone object takes
  43098. 0.5k-1k of memory.
  43099. Rclone changes fullwidth Unicode punctuation marks in file names
  43100. For example: On a Windows system, you have a file with name Test:1.jpg,
  43101. where : is the Unicode fullwidth colon symbol. When using rclone to
  43102. copy this to your Google Drive, you will notice that the file gets
  43103. renamed to Test:1.jpg, where : is the regular (halfwidth) colon.
  43104. The reason for such renames is the way rclone handles different
  43105. restricted filenames on different cloud storage systems. It tries to
  43106. avoid ambiguous file names as much and allow moving files between many
  43107. cloud storage systems transparently, by replacing invalid characters
  43108. with similar looking Unicode characters when transferring to one storage
  43109. system, and replacing back again when transferring to a different
  43110. storage system where the original characters are supported. When the
  43111. same Unicode characters are intentionally used in file names, this
  43112. replacement strategy leads to unwanted renames. Read more here.
  43113. License
  43114. This is free software under the terms of the MIT license (check the
  43115. COPYING file included with the source code).
  43116. Copyright (C) 2019 by Nick Craig-Wood https://www.craig-wood.com/nick/
  43117. Permission is hereby granted, free of charge, to any person obtaining a copy
  43118. of this software and associated documentation files (the "Software"), to deal
  43119. in the Software without restriction, including without limitation the rights
  43120. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  43121. copies of the Software, and to permit persons to whom the Software is
  43122. furnished to do so, subject to the following conditions:
  43123. The above copyright notice and this permission notice shall be included in
  43124. all copies or substantial portions of the Software.
  43125. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  43126. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  43127. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  43128. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  43129. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  43130. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  43131. THE SOFTWARE.
  43132. Authors and contributors
  43133. Authors
  43134. - Nick Craig-Wood nick@craig-wood.com
  43135. Contributors
  43136. {{< rem
  43137. email addresses removed from here need to be added to bin/.ignore-emails to make sure update-authors.py doesn't immediately put them back in again.
  43138. >}}
  43139. - Alex Couper amcouper@gmail.com
  43140. - Leonid Shalupov leonid@shalupov.com shalupov@diverse.org.ru
  43141. - Shimon Doodkin helpmepro1@gmail.com
  43142. - Colin Nicholson colin@colinn.com
  43143. - Klaus Post klauspost@gmail.com
  43144. - Sergey Tolmachev tolsi.ru@gmail.com
  43145. - Adriano Aurélio Meirelles adriano@atinge.com
  43146. - C. Bess cbess@users.noreply.github.com
  43147. - Dmitry Burdeev dibu28@gmail.com
  43148. - Joseph Spurrier github@josephspurrier.com
  43149. - Björn Harrtell bjorn@wololo.org
  43150. - Xavier Lucas xavier.lucas@corp.ovh.com
  43151. - Werner Beroux werner@beroux.com
  43152. - Brian Stengaard brian@stengaard.eu
  43153. - Jakub Gedeon jgedeon@sofi.com
  43154. - Jim Tittsler jwt@onjapan.net
  43155. - Michal Witkowski michal@improbable.io
  43156. - Fabian Ruff fabian.ruff@sap.com
  43157. - Leigh Klotz klotz@quixey.com
  43158. - Romain Lapray lapray.romain@gmail.com
  43159. - Justin R. Wilson jrw972@gmail.com
  43160. - Antonio Messina antonio.s.messina@gmail.com
  43161. - Stefan G. Weichinger office@oops.co.at
  43162. - Per Cederberg cederberg@gmail.com
  43163. - Radek Šenfeld rush@logic.cz
  43164. - Fredrik Fornwall fredrik@fornwall.net
  43165. - Asko Tamm asko@deekit.net
  43166. - xor-zz xor@gstocco.com
  43167. - Tomasz Mazur tmazur90@gmail.com
  43168. - Marco Paganini paganini@paganini.net
  43169. - Felix Bünemann buenemann@louis.info
  43170. - Durval Menezes jmrclone@durval.com
  43171. - Luiz Carlos Rumbelsperger Viana maxd13_luiz_carlos@hotmail.com
  43172. - Stefan Breunig stefan-github@yrden.de
  43173. - Alishan Ladhani ali-l@users.noreply.github.com
  43174. - 0xJAKE 0xJAKE@users.noreply.github.com
  43175. - Thibault Molleman thibaultmol@users.noreply.github.com
  43176. - Scott McGillivray scott.mcgillivray@gmail.com
  43177. - Bjørn Erik Pedersen bjorn.erik.pedersen@gmail.com
  43178. - Lukas Loesche lukas@mesosphere.io
  43179. - emyarod emyarod@users.noreply.github.com
  43180. - T.C. Ferguson tcf909@gmail.com
  43181. - Brandur brandur@mutelight.org
  43182. - Dario Giovannetti dev@dariogiovannetti.net
  43183. - Károly Oláh okaresz@aol.com
  43184. - Jon Yergatian jon@macfanatic.ca
  43185. - Jack Schmidt github@mowsey.org
  43186. - Dedsec1 Dedsec1@users.noreply.github.com
  43187. - Hisham Zarka hzarka@gmail.com
  43188. - Jérôme Vizcaino jerome.vizcaino@gmail.com
  43189. - Mike Tesch mjt6129@rit.edu
  43190. - Marvin Watson marvwatson@users.noreply.github.com
  43191. - Danny Tsai danny8376@gmail.com
  43192. - Yoni Jah yonjah+git@gmail.com yonjah+github@gmail.com
  43193. - Stephen Harris github@spuddy.org sweharris@users.noreply.github.com
  43194. - Ihor Dvoretskyi ihor.dvoretskyi@gmail.com
  43195. - Jon Craton jncraton@gmail.com
  43196. - Hraban Luyat hraban@0brg.net
  43197. - Michael Ledin mledin89@gmail.com
  43198. - Martin Kristensen me@azgul.com
  43199. - Too Much IO toomuchio@users.noreply.github.com
  43200. - Anisse Astier anisse@astier.eu
  43201. - Zahiar Ahmed zahiar@live.com
  43202. - Igor Kharin igorkharin@gmail.com
  43203. - Bill Zissimopoulos billziss@navimatics.com
  43204. - Bob Potter bobby.potter@gmail.com
  43205. - Steven Lu tacticalazn@gmail.com
  43206. - Sjur Fredriksen sjurtf@ifi.uio.no
  43207. - Ruwbin hubus12345@gmail.com
  43208. - Fabian Möller fabianm88@gmail.com f.moeller@nynex.de
  43209. - Edward Q. Bridges github@eqbridges.com
  43210. - Vasiliy Tolstov v.tolstov@selfip.ru
  43211. - Harshavardhana harsha@minio.io
  43212. - sainaen sainaen@gmail.com
  43213. - gdm85 gdm85@users.noreply.github.com
  43214. - Yaroslav Halchenko debian@onerussian.com
  43215. - John Papandriopoulos jpap@users.noreply.github.com
  43216. - Zhiming Wang zmwangx@gmail.com
  43217. - Andy Pilate cubox@cubox.me
  43218. - Oliver Heyme olihey@googlemail.com olihey@users.noreply.github.com
  43219. de8olihe@lego.com
  43220. - wuyu wuyu@yunify.com
  43221. - Andrei Dragomir adragomi@adobe.com
  43222. - Christian Brüggemann mail@cbruegg.com
  43223. - Alex McGrath Kraak amkdude@gmail.com
  43224. - bpicode bjoern.pirnay@googlemail.com
  43225. - Daniel Jagszent daniel@jagszent.de
  43226. - Josiah White thegenius2009@gmail.com
  43227. - Ishuah Kariuki kariuki@ishuah.com ishuah91@gmail.com
  43228. - Jan Varho jan@varho.org
  43229. - Girish Ramakrishnan girish@cloudron.io
  43230. - LingMan LingMan@users.noreply.github.com
  43231. - Jacob McNamee jacobmcnamee@gmail.com
  43232. - jersou jertux@gmail.com
  43233. - thierry thierry@substantiel.fr
  43234. - Simon Leinen simon.leinen@gmail.com ubuntu@s3-test.novalocal
  43235. - Dan Dascalescu ddascalescu+github@gmail.com
  43236. - Jason Rose jason@jro.io
  43237. - Andrew Starr-Bochicchio a.starr.b@gmail.com
  43238. - John Leach john@johnleach.co.uk
  43239. - Corban Raun craun@instructure.com
  43240. - Pierre Carlson mpcarl@us.ibm.com
  43241. - Ernest Borowski er.borowski@gmail.com
  43242. - Remus Bunduc remus.bunduc@gmail.com
  43243. - Iakov Davydov iakov.davydov@unil.ch dav05.gith@myths.ru
  43244. - Jakub Tasiemski tasiemski@gmail.com
  43245. - David Minor dminor@saymedia.com
  43246. - Tim Cooijmans cooijmans.tim@gmail.com
  43247. - Laurence liuxy6@gmail.com
  43248. - Giovanni Pizzi gio.piz@gmail.com
  43249. - Filip Bartodziej filipbartodziej@gmail.com
  43250. - Jon Fautley jon@dead.li
  43251. - lewapm 32110057+lewapm@users.noreply.github.com
  43252. - Yassine Imounachen yassine256@gmail.com
  43253. - Chris Redekop chris-redekop@users.noreply.github.com
  43254. chris.redekop@gmail.com
  43255. - Jon Fautley jon@adenoid.appstal.co.uk
  43256. - Will Gunn WillGunn@users.noreply.github.com
  43257. - Lucas Bremgartner lucas@bremis.ch
  43258. - Jody Frankowski jody.frankowski@gmail.com
  43259. - Andreas Roussos arouss1980@gmail.com
  43260. - nbuchanan nbuchanan@utah.gov
  43261. - Durval Menezes rclone@durval.com
  43262. - Victor vb-github@viblo.se
  43263. - Mateusz pabian.mateusz@gmail.com
  43264. - Daniel Loader spicypixel@gmail.com
  43265. - David0rk davidork@gmail.com
  43266. - Alexander Neumann alexander@bumpern.de
  43267. - Giri Badanahatti gbadanahatti@us.ibm.com@Giris-MacBook-Pro.local
  43268. - Leo R. Lundgren leo@finalresort.org
  43269. - wolfv wolfv6@users.noreply.github.com
  43270. - Dave Pedu dave@davepedu.com
  43271. - Stefan Lindblom lindblom@spotify.com
  43272. - seuffert oliver@seuffert.biz
  43273. - gbadanahatti 37121690+gbadanahatti@users.noreply.github.com
  43274. - Keith Goldfarb barkofdelight@gmail.com
  43275. - Steve Kriss steve@heptio.com
  43276. - Chih-Hsuan Yen yan12125@gmail.com
  43277. - Alexander Neumann fd0@users.noreply.github.com
  43278. - Matt Holt mholt@users.noreply.github.com
  43279. - Eri Bastos bastos.eri@gmail.com
  43280. - Michael P. Dubner pywebmail@list.ru
  43281. - Antoine GIRARD sapk@users.noreply.github.com
  43282. - Mateusz Piotrowski mpp302@gmail.com
  43283. - Animosity022 animosity22@users.noreply.github.com
  43284. earl.texter@gmail.com
  43285. - Peter Baumgartner pete@lincolnloop.com
  43286. - Craig Rachel craig@craigrachel.com
  43287. - Michael G. Noll miguno@users.noreply.github.com
  43288. - hensur me@hensur.de
  43289. - Oliver Heyme de8olihe@lego.com
  43290. - Richard Yang richard@yenforyang.com
  43291. - Piotr Oleszczyk piotr.oleszczyk@gmail.com
  43292. - Rodrigo rodarima@gmail.com
  43293. - NoLooseEnds NoLooseEnds@users.noreply.github.com
  43294. - Jakub Karlicek jakub@karlicek.me
  43295. - John Clayton john@codemonkeylabs.com
  43296. - Kasper Byrdal Nielsen byrdal76@gmail.com
  43297. - Benjamin Joseph Dag bjdag1234@users.noreply.github.com
  43298. - themylogin themylogin@gmail.com
  43299. - Onno Zweers onno.zweers@surfsara.nl
  43300. - Jasper Lievisse Adriaanse jasper@humppa.nl
  43301. - sandeepkru sandeep.ummadi@gmail.com
  43302. sandeepkru@users.noreply.github.com
  43303. - HerrH atomtigerzoo@users.noreply.github.com
  43304. - Andrew 4030760+sparkyman215@users.noreply.github.com
  43305. - dan smith XX1011@gmail.com
  43306. - Oleg Kovalov iamolegkovalov@gmail.com
  43307. - Ruben Vandamme github-com-00ff86@vandamme.email
  43308. - Cnly minecnly@gmail.com
  43309. - Andres Alvarez 1671935+kir4h@users.noreply.github.com
  43310. - reddi1 xreddi@gmail.com
  43311. - Matt Tucker matthewtckr@gmail.com
  43312. - Sebastian Bünger buengese@gmail.com buengese@protonmail.com
  43313. - Martin Polden mpolden@mpolden.no
  43314. - Alex Chen Cnly@users.noreply.github.com
  43315. - Denis deniskovpen@gmail.com
  43316. - bsteiss 35940619+bsteiss@users.noreply.github.com
  43317. - Cédric Connes cedric.connes@gmail.com
  43318. - Dr. Tobias Quathamer toddy15@users.noreply.github.com
  43319. - dcpu 42736967+dcpu@users.noreply.github.com
  43320. - Sheldon Rupp me@shel.io
  43321. - albertony 12441419+albertony@users.noreply.github.com
  43322. - cron410 cron410@gmail.com
  43323. - Anagh Kumar Baranwal 6824881+darthShadow@users.noreply.github.com
  43324. - Felix Brucker felix@felixbrucker.com
  43325. - Santiago Rodríguez scollazo@users.noreply.github.com
  43326. - Craig Miskell craig.miskell@fluxfederation.com
  43327. - Antoine GIRARD sapk@sapk.fr
  43328. - Joanna Marek joanna.marek@u2i.com
  43329. - frenos frenos@users.noreply.github.com
  43330. - ssaqua ssaqua@users.noreply.github.com
  43331. - xnaas me@xnaas.info
  43332. - Frantisek Fuka fuka@fuxoft.cz
  43333. - Paul Kohout pauljkohout@yahoo.com
  43334. - dcpu 43330287+dcpu@users.noreply.github.com
  43335. - jackyzy823 jackyzy823@gmail.com
  43336. - David Haguenauer ml@kurokatta.org
  43337. - teresy hi.teresy@gmail.com
  43338. - buergi patbuergi@gmx.de
  43339. - Florian Gamboeck mail@floga.de
  43340. - Ralf Hemberger 10364191+rhemberger@users.noreply.github.com
  43341. - Scott Edlund sedlund@users.noreply.github.com
  43342. - Erik Swanson erik@retailnext.net
  43343. - Jake Coggiano jake@stripe.com
  43344. - brused27 brused27@noemailaddress
  43345. - Peter Kaminski kaminski@istori.com
  43346. - Henry Ptasinski henry@logout.com
  43347. - Alexander kharkovalexander@gmail.com
  43348. - Garry McNulty garrmcnu@gmail.com
  43349. - Mathieu Carbou mathieu.carbou@gmail.com
  43350. - Mark Otway mark@otway.com
  43351. - William Cocker 37018962+WilliamCocker@users.noreply.github.com
  43352. - François Leurent 131.js@cloudyks.org
  43353. - Arkadius Stefanski arkste@gmail.com
  43354. - Jay dev@jaygoel.com
  43355. - andrea rota a@xelera.eu
  43356. - nicolov nicolov@users.noreply.github.com
  43357. - Matt Joiner anacrolix@gmail.com
  43358. - Dario Guzik dario@guzik.com.ar
  43359. - qip qip@users.noreply.github.com
  43360. - yair@unicorn yair@unicorn
  43361. - Matt Robinson brimstone@the.narro.ws
  43362. - kayrus kay.diam@gmail.com
  43363. - Rémy Léone remy.leone@gmail.com
  43364. - Wojciech Smigielski wojciech.hieronim.smigielski@gmail.com
  43365. - weetmuts oehrstroem@gmail.com
  43366. - Jonathan vanillajonathan@users.noreply.github.com
  43367. - James Carpenter orbsmiv@users.noreply.github.com
  43368. - Vince vince0villamora@gmail.com
  43369. - Nestar47 47841759+Nestar47@users.noreply.github.com
  43370. - Six brbsix@gmail.com
  43371. - Alexandru Bumbacea alexandru.bumbacea@booking.com
  43372. - calisro robert.calistri@gmail.com
  43373. - Dr.Rx david.rey@nventive.com
  43374. - marcintustin marcintustin@users.noreply.github.com
  43375. - jaKa Močnik jaka@koofr.net
  43376. - Fionera fionera@fionera.de
  43377. - Dan Walters dan@walters.io
  43378. - Danil Semelenov sgtpep@users.noreply.github.com
  43379. - xopez 28950736+xopez@users.noreply.github.com
  43380. - Ben Boeckel mathstuf@gmail.com
  43381. - Manu manu@snapdragon.cc
  43382. - Kyle E. Mitchell kyle@kemitchell.com
  43383. - Gary Kim gary@garykim.dev
  43384. - Jon jonathn@github.com
  43385. - Jeff Quinn jeffrey.quinn@bluevoyant.com
  43386. - Peter Berbec peter@berbec.com
  43387. - didil 1284255+didil@users.noreply.github.com
  43388. - id01 gaviniboom@gmail.com
  43389. - Robert Marko robimarko@gmail.com
  43390. - Philip Harvey 32467456+pharveybattelle@users.noreply.github.com
  43391. - JorisE JorisE@users.noreply.github.com
  43392. - garry415 garry.415@gmail.com
  43393. - forgems forgems@gmail.com
  43394. - Florian Apolloner florian@apolloner.eu
  43395. - Aleksandar Janković office@ajankovic.com
  43396. ajankovic@users.noreply.github.com
  43397. - Maran maran@protonmail.com
  43398. - nguyenhuuluan434 nguyenhuuluan434@gmail.com
  43399. - Laura Hausmann zotan@zotan.pw laura@hausmann.dev
  43400. - yparitcher y@paritcher.com
  43401. - AbelThar abela.tharen@gmail.com
  43402. - Matti Niemenmaa matti.niemenmaa+git@iki.fi
  43403. - Russell Davis russelldavis@users.noreply.github.com
  43404. - Yi FU yi.fu@tink.se
  43405. - Paul Millar paul.millar@desy.de
  43406. - justinalin justinalin@qnap.com
  43407. - EliEron subanimehd@gmail.com
  43408. - justina777 chiahuei.lin@gmail.com
  43409. - Chaitanya Bankanhal bchaitanya15@gmail.com
  43410. - Michał Matczuk michal@scylladb.com
  43411. - Macavirus macavirus@zoho.com
  43412. - Abhinav Sharma abhi18av@outlook.com
  43413. - ginvine 34869051+ginvine@users.noreply.github.com
  43414. - Patrick Wang mail6543210@yahoo.com.tw
  43415. - Cenk Alti cenkalti@gmail.com
  43416. - Andreas Chlupka andy@chlupka.com
  43417. - Alfonso Montero amontero@tinet.org
  43418. - Ivan Andreev ivandeex@gmail.com
  43419. - David Baumgold david@davidbaumgold.com
  43420. - Lars Lehtonen lars.lehtonen@gmail.com
  43421. - Matei David matei.david@gmail.com
  43422. - David david.bramwell@endemolshine.com
  43423. - Anthony Rusdi 33247310+antrusd@users.noreply.github.com
  43424. - Richard Patel me@terorie.dev
  43425. - 庄天翼 zty0826@gmail.com
  43426. - SwitchJS dev@switchjs.com
  43427. - Raphael PowershellNinja@users.noreply.github.com
  43428. - Sezal Agrawal sezalagrawal@gmail.com
  43429. - Tyler TylerNakamura@users.noreply.github.com
  43430. - Brett Dutro brett.dutro@gmail.com
  43431. - Vighnesh SK booterror99@gmail.com
  43432. - Arijit Biswas dibbyo456@gmail.com
  43433. - Michele Caci michele.caci@gmail.com
  43434. - AlexandrBoltris ua2fgb@gmail.com
  43435. - Bryce Larson blarson@saltstack.com
  43436. - Carlos Ferreyra crypticmind@gmail.com
  43437. - Saksham Khanna sakshamkhanna@outlook.com
  43438. - dausruddin 5763466+dausruddin@users.noreply.github.com
  43439. - zero-24 zero-24@users.noreply.github.com
  43440. - Xiaoxing Ye ye@xiaoxing.us
  43441. - Barry Muldrey barry@muldrey.net
  43442. - Sebastian Brandt sebastian.brandt@friday.de
  43443. - Marco Molteni marco.molteni@mailbox.org
  43444. - Ankur Gupta 7876747+ankur0493@users.noreply.github.com
  43445. - Maciej Zimnoch maciej@scylladb.com
  43446. - anuar45 serdaliyev.anuar@gmail.com
  43447. - Fernando ferferga@users.noreply.github.com
  43448. - David Cole david.cole@sohonet.com
  43449. - Wei He git@weispot.com
  43450. - Outvi V 19144373+outloudvi@users.noreply.github.com
  43451. - Thomas Kriechbaumer thomas@kriechbaumer.name
  43452. - Tennix tennix@users.noreply.github.com
  43453. - Ole Schütt ole@schuett.name
  43454. - Kuang-che Wu kcwu@csie.org
  43455. - Thomas Eales wingsuit@users.noreply.github.com
  43456. - Paul Tinsley paul.tinsley@vitalsource.com
  43457. - Felix Hungenberg git@shiftgeist.com
  43458. - Benjamin Richter github@dev.telepath.de
  43459. - landall cst_zf@qq.com
  43460. - thestigma thestigma@gmail.com
  43461. - jtagcat 38327267+jtagcat@users.noreply.github.com
  43462. - Damon Permezel permezel@me.com
  43463. - boosh boosh@users.noreply.github.com
  43464. - unbelauscht 58393353+unbelauscht@users.noreply.github.com
  43465. - Motonori IWAMURO vmi@nifty.com
  43466. - Benjapol Worakan benwrk@live.com
  43467. - Dave Koston dave.koston@stackpath.com
  43468. - Durval Menezes DurvalMenezes@users.noreply.github.com
  43469. - Tim Gallant me@timgallant.us
  43470. - Frederick Zhang frederick888@tsundere.moe
  43471. - valery1707 valery1707@gmail.com
  43472. - Yves G theYinYeti@yalis.fr
  43473. - Shing Kit Chan chanshingkit@gmail.com
  43474. - Franklyn Tackitt franklyn@tackitt.net
  43475. - Robert-André Mauchin zebob.m@gmail.com
  43476. - evileye 48332831+ibiruai@users.noreply.github.com
  43477. - Joachim Brandon LeBlanc brandon@leblanc.codes
  43478. - Patryk Jakuszew patryk.jakuszew@gmail.com
  43479. - fishbullet shindu666@gmail.com
  43480. - greatroar <@>
  43481. - Bernd Schoolmann mail@quexten.com
  43482. - Elan Ruusamäe glen@pld-linux.org
  43483. - Max Sum max@lolyculture.com
  43484. - Mark Spieth mspieth@users.noreply.github.com
  43485. - harry me@harry.plus
  43486. - Samantha McVey samantham@posteo.net
  43487. - Jack Anderson jack.anderson@metaswitch.com
  43488. - Michael G draget@speciesm.net
  43489. - Brandon Philips brandon@ifup.org
  43490. - Daven dooven@users.noreply.github.com
  43491. - Martin Stone martin@d7415.co.uk
  43492. - David Bramwell 13053834+dbramwell@users.noreply.github.com
  43493. - Sunil Patra snl_su@live.com
  43494. - Adam Stroud adam.stroud@gmail.com
  43495. - Kush kushsharma@users.noreply.github.com
  43496. - Matan Rosenberg matan129@gmail.com
  43497. - gitch1 63495046+gitch1@users.noreply.github.com
  43498. - ElonH elonhhuang@gmail.com
  43499. - Fred fred@creativeprojects.tech
  43500. - Sébastien Gross renard@users.noreply.github.com
  43501. - Maxime Suret 11944422+msuret@users.noreply.github.com
  43502. - Caleb Case caleb@storj.io calebcase@gmail.com
  43503. - Ben Zenker imbenzenker@gmail.com
  43504. - Martin Michlmayr tbm@cyrius.com
  43505. - Brandon McNama bmcnama@pagerduty.com
  43506. - Daniel Slyman github@skylayer.eu
  43507. - Alex Guerrero guerrero@users.noreply.github.com
  43508. - Matteo Pietro Dazzi matteopietro.dazzi@gft.com
  43509. - edwardxml 56691903+edwardxml@users.noreply.github.com
  43510. - Roman Kredentser shareed2k@gmail.com
  43511. - Kamil Trzciński ayufan@ayufan.eu
  43512. - Zac Rubin z-0@users.noreply.github.com
  43513. - Vincent Feltz psycho@feltzv.fr
  43514. - Heiko Bornholdt bornholdt@informatik.uni-hamburg.de
  43515. - Matteo Pietro Dazzi matteopietro.dazzi@gmail.com
  43516. - jtagcat gitlab@c7.ee
  43517. - Petri Salminen petri@salminen.dev
  43518. - Tim Burke tim.burke@gmail.com
  43519. - Kai Lüke kai@kinvolk.io
  43520. - Garrett Squire github@garrettsquire.com
  43521. - Evan Harris eharris@puremagic.com
  43522. - Kevin keyam@microsoft.com
  43523. - Morten Linderud morten@linderud.pw
  43524. - Dmitry Ustalov dmitry.ustalov@gmail.com
  43525. - Jack 196648+jdeng@users.noreply.github.com
  43526. - kcris cristian.tarsoaga@gmail.com
  43527. - tyhuber1 68970760+tyhuber1@users.noreply.github.com
  43528. - David Ibarra david.ibarra@realty.com
  43529. - Tim Gallant tim@lilt.com
  43530. - Kaloyan Raev kaloyan@storj.io
  43531. - Jay McEntire jay.mcentire@gmail.com
  43532. - Leo Luan leoluan@us.ibm.com
  43533. - aus 549081+aus@users.noreply.github.com
  43534. - Aaron Gokaslan agokaslan@fb.com
  43535. - Egor Margineanu egmar@users.noreply.github.com
  43536. - Lucas Kanashiro lucas.kanashiro@canonical.com
  43537. - WarpedPixel WarpedPixel@users.noreply.github.com
  43538. - Sam Edwards sam@samedwards.ca
  43539. - wjielai gouki0123@gmail.com
  43540. - Muffin King jinxz_k@live.com
  43541. - Christopher Stewart 6573710+1f47a@users.noreply.github.com
  43542. - Russell Cattelan cattelan@digitalelves.com
  43543. - gyutw 30371241+gyutw@users.noreply.github.com
  43544. - Hekmon edouardhur@gmail.com
  43545. - LaSombra lasombra@users.noreply.github.com
  43546. - Dov Murik dov.murik@gmail.com
  43547. - Ameer Dawood ameer1234567890@gmail.com
  43548. - Dan Hipschman dan.hipschman@opendoor.com
  43549. - Josh Soref jsoref@users.noreply.github.com
  43550. - David david@staron.nl
  43551. - Ingo ingo@hoffmann.cx
  43552. - Adam Plánský adamplansky@users.noreply.github.com
  43553. adamplansky@gmail.com
  43554. - Manish Gupta manishgupta.ait@gmail.com
  43555. - Deepak Sah sah.sslpu@gmail.com
  43556. - Marcin Zelent marcin@zelent.net
  43557. - zhucan zhucan.k8s@gmail.com
  43558. - James Lim james.lim@samsara.com
  43559. - Laurens Janssen BD69BM@insim.biz
  43560. - Bob Bagwill bobbagwill@gmail.com
  43561. - Nathan Collins colli372@msu.edu
  43562. - lostheli
  43563. - kelv kelvin@acks.org
  43564. - Milly milly.ca@gmail.com
  43565. - gtorelly gtorelly@gmail.com
  43566. - Brad Ackerman brad@facefault.org
  43567. - Mitsuo Heijo mitsuo.heijo@gmail.com
  43568. - Claudio Bantaloukas rockdreamer@gmail.com
  43569. - Benjamin Gustin gustin.ben@gmail.com
  43570. - Ingo Weiss ingo@redhat.com
  43571. - Kerry Su me@sshockwave.net
  43572. - Ilyess Bachiri ilyess.bachiri@sonder.com
  43573. - Yury Stankevich urykhy@gmail.com
  43574. - kice wslikerqs@gmail.com
  43575. - Denis Neuling denisneuling@gmail.com
  43576. - Janne Johansson icepic.dz@gmail.com
  43577. - Patrik Nordlén patriki@gmail.com
  43578. - CokeMine aptx4561@gmail.com
  43579. - Sơn Trần-Nguyễn github@sntran.com
  43580. - lluuaapp 266615+lluuaapp@users.noreply.github.com
  43581. - Zach Kipp kipp.zach@gmail.com
  43582. - Riccardo Iaconelli riccardo@kde.org
  43583. - Sakuragawa Misty gyc990326@gmail.com
  43584. - Nicolas Rueff nicolas@rueff.fr
  43585. - Pau Rodriguez-Estivill prodrigestivill@gmail.com
  43586. - Bob Pusateri BobPusateri@users.noreply.github.com
  43587. - Alex JOST 25005220+dimejo@users.noreply.github.com
  43588. - Alexey Tabakman samosad.ru@gmail.com
  43589. - David Sze sze.david@gmail.com
  43590. - cynthia kwok cynthia.m.kwok@gmail.com
  43591. - Miron Veryanskiy MironVeryanskiy@gmail.com
  43592. - K265 k.265@qq.com
  43593. - Vesnyx Vesnyx@users.noreply.github.com
  43594. - Dmitry Chepurovskiy me@dm3ch.net
  43595. - Rauno Ots rauno.ots@cgi.com
  43596. - Georg Neugschwandtner georg.neugschwandtner@gmx.net
  43597. - pvalls polvallsrue@gmail.com
  43598. - Robert Thomas 31854736+wolveix@users.noreply.github.com
  43599. - Romeo Kienzler romeo.kienzler@gmail.com
  43600. - tYYGH tYYGH@users.noreply.github.com
  43601. - georne 77802995+georne@users.noreply.github.com
  43602. - Maxwell Calman mcalman@MacBook-Pro.local
  43603. - Naveen Honest Raj naveendurai19@gmail.com
  43604. - Lucas Messenger lmesseng@cisco.com
  43605. - Manish Kumar krmanish260@gmail.com
  43606. - x0b x0bdev@gmail.com
  43607. - CERN through the CS3MESH4EOSC Project
  43608. - Nick Gaya nicholasgaya+github@gmail.com
  43609. - Ashok Gelal 401055+ashokgelal@users.noreply.github.com
  43610. - Dominik Mydlil dominik.mydlil@outlook.com
  43611. - Nazar Mishturak nazarmx@gmail.com
  43612. - Ansh Mittal iamAnshMittal@gmail.com
  43613. - noabody noabody@yahoo.com
  43614. - OleFrost 82263101+olefrost@users.noreply.github.com
  43615. - Kenny Parsons kennyparsons93@gmail.com
  43616. - Jeffrey Tolar tolar.jeffrey@gmail.com
  43617. - jtagcat git-514635f7@jtag.cat
  43618. - Tatsuya Noyori
  43619. 63089076+public-tatsuya-noyori@users.noreply.github.com
  43620. - lewisxy lewisxy@users.noreply.github.com
  43621. - Nolan Woods nolan_w@sfu.ca
  43622. - Gautam Kumar 25435568+gautamajay52@users.noreply.github.com
  43623. - Chris Macklin chris.macklin@10xgenomics.com
  43624. - Antoon Prins antoon.prins@surfsara.nl
  43625. - Alexey Ivanov rbtz@dropbox.com
  43626. - Serge Pouliquen sp31415@free.fr
  43627. - acsfer carlos@reendex.com
  43628. - Tom tom@tom-fitzhenry.me.uk
  43629. - Tyson Moore tyson@tyson.me
  43630. - database64128 free122448@hotmail.com
  43631. - Chris Lu chrislusf@users.noreply.github.com
  43632. - Reid Buzby reid@rethink.software
  43633. - darrenrhs darrenrhs@gmail.com
  43634. - Florian Penzkofer fp@nullptr.de
  43635. - Xuanchen Wu 117010292@link.cuhk.edu.cn
  43636. - partev petrosyan@gmail.com
  43637. - Dmitry Sitnikov fo2@inbox.ru
  43638. - Haochen Tong i@hexchain.org
  43639. - Michael Hanselmann public@hansmi.ch
  43640. - Chuan Zh zhchuan7@gmail.com
  43641. - Antoine GIRARD antoine.girard@sapk.fr
  43642. - Justin Winokur (Jwink3101) Jwink3101@users.noreply.github.com
  43643. - Mariano Absatz (git) scm@baby.com.ar
  43644. - Greg Sadetsky lepetitg@gmail.com
  43645. - yedamo logindaveye@gmail.com
  43646. - hota lindwurm.q@gmail.com
  43647. - vinibali vinibali1@gmail.com
  43648. - Ken Enrique Morel ken.morel.santana@gmail.com
  43649. - Justin Hellings justin.hellings@gmail.com
  43650. - Parth Shukla pparth@pparth.net
  43651. - wzl wangzl31@outlook.com
  43652. - HNGamingUK connor@earnshawhome.co.uk
  43653. - Jonta 359397+Jonta@users.noreply.github.com
  43654. - YenForYang YenForYang@users.noreply.github.com
  43655. - SimJoSt / Joda Stößer git@simjo.st
  43656. - Logeshwaran waranlogesh@gmail.com
  43657. - Rajat Goel rajat@dropbox.com
  43658. - r0kk3rz r0kk3rz@gmail.com
  43659. - Matthew Sevey mjsevey@gmail.com
  43660. - Filip Rysavy fil@siasky.net
  43661. - Ian Levesque ian@ianlevesque.org
  43662. - Thomas Stachl thomas@stachl.me
  43663. - Dmitry Bogatov git#v1@kaction.cc
  43664. - thomae 4493560+thomae@users.noreply.github.com
  43665. - trevyn trevyn-git@protonmail.com
  43666. - David Liu david.yx.liu@oracle.com
  43667. - Chris Nelson stuff@cjnaz.com
  43668. - Felix Bünemann felix.buenemann@gmail.com
  43669. - Atílio Antônio atiliodadalto@hotmail.com
  43670. - Carlo Mion mion00@gmail.com
  43671. - Chris Lu chris.lu@gmail.com
  43672. - Vitor Arruda vitor.pimenta.arruda@gmail.com
  43673. - bbabich bbabich@datamossa.com
  43674. - David dp.davide.palma@gmail.com
  43675. - Borna Butkovic borna@favicode.net
  43676. - Fredric Arklid fredric.arklid@consid.se
  43677. - Andy Jackson Andrew.Jackson@bl.uk
  43678. - Sinan Tan i@tinytangent.com
  43679. - deinferno 14363193+deinferno@users.noreply.github.com
  43680. - rsapkf rsapkfff@pm.me
  43681. - Will Holtz wholtz@gmail.com
  43682. - GGG KILLER gggkiller2@gmail.com
  43683. - Logeshwaran Murugesan logeshwaran@testpress.in
  43684. - Lu Wang coolwanglu@gmail.com
  43685. - Bumsu Hyeon ksitht@gmail.com
  43686. - Shmz Ozggrn 98463324+ShmzOzggrn@users.noreply.github.com
  43687. - Kim kim@jotta.no
  43688. - Niels van de Weem n.van.de.weem@smile.nl
  43689. - Koopa codingkoopa@gmail.com
  43690. - Yunhai Luo yunhai-luo@hotmail.com
  43691. - Charlie Jiang w@chariri.moe
  43692. - Alain Nussbaumer alain.nussbaumer@alleluia.ch
  43693. - Vanessasaurus 814322+vsoch@users.noreply.github.com
  43694. - Isaac Levy isaac.r.levy@gmail.com
  43695. - Gourav T workflowautomation@protonmail.com
  43696. - Paulo Martins paulo.pontes.m@gmail.com
  43697. - viveknathani viveknathani2402@gmail.com
  43698. - Eng Zer Jun engzerjun@gmail.com
  43699. - Abhiraj abhiraj.official15@gmail.com
  43700. - Márton Elek elek@apache.org elek@users.noreply.github.com
  43701. - Vincent Murphy vdm@vdm.ie
  43702. - ctrl-q 34975747+ctrl-q@users.noreply.github.com
  43703. - Nil Alexandrov nalexand@akamai.com
  43704. - GuoXingbin 101376330+guoxingbin@users.noreply.github.com
  43705. - Berkan Teber berkan@berkanteber.com
  43706. - Tobias Klauser tklauser@distanz.ch
  43707. - KARBOWSKI Piotr piotr.karbowski@gmail.com
  43708. - GH geeklihui@foxmail.com
  43709. - rafma0 int.main@gmail.com
  43710. - Adrien Rey-Jarthon jobs@adrienjarthon.com
  43711. - Nick Gooding 73336146+nickgooding@users.noreply.github.com
  43712. - Leroy van Logchem lr.vanlogchem@gmail.com
  43713. - Zsolt Ero zsolt.ero@gmail.com
  43714. - Lesmiscore nao20010128@gmail.com
  43715. - ehsantdy ehsan.tadayon@arvancloud.com ehsantadayon85@gmail.com
  43716. - SwazRGB 65694696+swazrgb@users.noreply.github.com
  43717. - Mateusz Puczyński mati6095@gmail.com
  43718. - Michael C Tiernan - MIT-Research Computing Project mtiernan@mit.edu
  43719. - Kaspian 34658474+KaspianDev@users.noreply.github.com
  43720. - Werner EvilOlaf@users.noreply.github.com
  43721. - Hugal31 hugo.laloge@gmail.com
  43722. - Christian Galo 36752715+cgalo5758@users.noreply.github.com
  43723. - Erik van Velzen erik@evanv.nl
  43724. - Derek Battams derek@battams.ca
  43725. - Paul devnoname120@gmail.com
  43726. - SimonLiu simonliu009@users.noreply.github.com
  43727. - Hugo Laloge hla@lescompanions.com
  43728. - Mr-Kanister 68117355+Mr-Kanister@users.noreply.github.com
  43729. - Rob Pickerill r.pickerill@gmail.com
  43730. - Andrey to.merge@gmail.com
  43731. - Eric Wolf 19wolf@gmail.com
  43732. - Nick nick.naumann@mailbox.tu-dresden.de
  43733. - Jason Zheng jszheng17@gmail.com
  43734. - Matthew Vernon mvernon@wikimedia.org
  43735. - Noah Hsu i@nn.ci
  43736. - m00594701 mengpengbo@huawei.com
  43737. - Art M. Gallagher artmg50@gmail.com
  43738. - Sven Gerber 49589423+svengerber@users.noreply.github.com
  43739. - CrossR r.cross@lancaster.ac.uk
  43740. - Maciej Radzikowski maciej@radzikowski.com.pl
  43741. - Scott Grimes scott.grimes@spaciq.com
  43742. - Phil Shackleton 71221528+philshacks@users.noreply.github.com
  43743. - eNV25 env252525@gmail.com
  43744. - Caleb inventor96@users.noreply.github.com
  43745. - J-P Treen jp@wraptious.com
  43746. - Martin Czygan 53705+miku@users.noreply.github.com
  43747. - buda sandrojijavadze@protonmail.com
  43748. - mirekphd 36706320+mirekphd@users.noreply.github.com
  43749. - vyloy vyloy@qq.com
  43750. - Anthrazz 25553648+Anthrazz@users.noreply.github.com
  43751. - zzr93 34027824+zzr93@users.noreply.github.com
  43752. - Paul Norman penorman@mac.com
  43753. - Lorenzo Maiorfi maiorfi@gmail.com
  43754. - Claudio Maradonna penguyman@stronzi.org
  43755. - Ovidiu Victor Tatar ovi.tatar@googlemail.com
  43756. - Evan Spensley epspensley@gmail.com
  43757. - Yen Hu 61753151+0x59656e@users.noreply.github.com
  43758. - Steve Kowalik steven@wedontsleep.org
  43759. - Jordi Gonzalez Muñoz jordigonzm@gmail.com
  43760. - Joram Schrijver i@joram.io
  43761. - Mark Trolley marktrolley@gmail.com
  43762. - João Henrique Franco joaohenrique.franco@gmail.com
  43763. - anonion aman207@users.noreply.github.com
  43764. - Ryan Morey 4590343+rmorey@users.noreply.github.com
  43765. - Simon Bos simonbos9@gmail.com
  43766. - YFdyh000 yfdyh000@gmail.com * Josh Soref
  43767. 2119212+jsoref@users.noreply.github.com
  43768. - Øyvind Heddeland Instefjord instefjord@outlook.com
  43769. - Dmitry Deniskin 110819396+ddeniskin@users.noreply.github.com
  43770. - Alexander Knorr 106825+opexxx@users.noreply.github.com
  43771. - Richard Bateman richard@batemansr.us
  43772. - Dimitri Papadopoulos Orfanos
  43773. 3234522+DimitriPapadopoulos@users.noreply.github.com
  43774. - Lorenzo Milesi lorenzo.milesi@yetopen.com
  43775. - Isaac Aymerich isaac.aymerich@gmail.com
  43776. - YanceyChiew 35898533+YanceyChiew@users.noreply.github.com
  43777. - Manoj Ghosh msays2000@gmail.com
  43778. - Bachue Zhou bachue.shu@gmail.com
  43779. - Manoj Ghosh manoj.ghosh@oracle.com
  43780. - Tom Mombourquette tom@devnode.com
  43781. - Robert Newson rnewson@apache.org
  43782. - Samuel Johnson esamueljohnson@gmail.com
  43783. - coultonluke luke@luke.org.uk
  43784. - Anthony Pessy anthony@cogniteev.com
  43785. - Philip Harvey pharvey@battelleecology.org
  43786. - dgouju dgouju@users.noreply.github.com
  43787. - Clément Notin clement.notin@gmail.com
  43788. - x3-apptech 66947598+x3-apptech@users.noreply.github.com
  43789. - Arnie97 arnie97@gmail.com
  43790. - Roel Arents 2691308+roelarents@users.noreply.github.com
  43791. - Aaron Gokaslan aaronGokaslan@gmail.com
  43792. - techknowlogick matti@mdranta.net
  43793. - rkettelerij richard@mindloops.nl
  43794. - Kamui fin-kamui@pm.me
  43795. - asdffdsazqqq 90116442+asdffdsazqqq@users.noreply.github.com
  43796. - Nathaniel Wesley Filardo nfilardo@microsoft.com
  43797. - ycdtosa ycdtosa@users.noreply.github.com
  43798. - Erik Agterdenbos agterdenbos@users.noreply.github.com
  43799. - Kevin Verstaen 48050031+kverstae@users.noreply.github.com
  43800. - MohammadReza mrvashian@gmail.com
  43801. - vanplus 60313789+vanplus@users.noreply.github.com
  43802. - Jack 16779171+jkpe@users.noreply.github.com
  43803. - Abdullah Saglam abdullah.saglam@stonebranch.com
  43804. - Marks Polakovs github@markspolakovs.me
  43805. - piyushgarg piyushgarg80@gmail.com
  43806. - Kaloyan Raev kaloyan-raev@users.noreply.github.com
  43807. - IMTheNachoMan imthenachoman@gmail.com
  43808. - alankrit alankrit@google.com
  43809. - Bryan Kaplan <#@bryankaplan.com>
  43810. - LXY 767763591@qq.com
  43811. - Simmon Li (he/him) li.simmon@gmail.com
  43812. - happyxhw 44490504+happyxhw@users.noreply.github.com
  43813. - Simmon Li (he/him) hello@crespire.dev
  43814. - Matthias Baur baurmatt@users.noreply.github.com
  43815. - Hunter Wittenborn hunter@hunterwittenborn.com
  43816. - logopk peter@kreuser.name
  43817. - Gerard Bosch 30733556+gerardbosch@users.noreply.github.com
  43818. - ToBeFree github@tfrei.de
  43819. - NodudeWasTaken 75137537+NodudeWasTaken@users.noreply.github.com
  43820. - Peter Brunner peter@lugoues.net
  43821. - Ninh Pham dongian.rapclubkhtn@gmail.com
  43822. - Ryan Caezar Itang sitiom@proton.me
  43823. - Peter Brunner peter@psykhe.com
  43824. - Leandro Sacchet leandro.sacchet@animati.com.br
  43825. - dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  43826. - cycneuramus 56681631+cycneuramus@users.noreply.github.com
  43827. - Arnavion me@arnavion.dev
  43828. - Christopher Merry christopher.merry@mlb.com
  43829. - Thibault Coupin thibault.coupin@gmail.com
  43830. - Richard Tweed RichardoC@users.noreply.github.com
  43831. - Zach Kipp Zacho2@users.noreply.github.com
  43832. - yuudi 26199752+yuudi@users.noreply.github.com
  43833. - NickIAm NickIAm@users.noreply.github.com
  43834. - Juang, Yi-Lin frankyjuang@gmail.com
  43835. - jumbi77 jumbi77@users.noreply.github.com
  43836. - Aditya Basu ab.aditya.basu@gmail.com
  43837. - ed s@ocv.me
  43838. - Drew Parsons dparsons@emerall.com
  43839. - Joel joelnb@users.noreply.github.com
  43840. - wiserain mail275@gmail.com
  43841. - Roel Arents roel.arents@kadaster.nl
  43842. - Shyim github@shyim.de
  43843. - Rintze Zelle 78232505+rzelle-lallemand@users.noreply.github.com
  43844. - Damo damoclark@users.noreply.github.com
  43845. - WeidiDeng weidi_deng@icloud.com
  43846. - Brian Starkey stark3y@gmail.com
  43847. - jladbrook jhladbrook@gmail.com
  43848. - Loren Gordon lorengordon@users.noreply.github.com
  43849. - dlitster davidlitster@gmail.com
  43850. - Tobias Gion tobias@gion.io
  43851. - Jānis Bebrītis janis.bebritis@wunder.io
  43852. - Adam K github.com@ak.tidy.email
  43853. - Andrei Smirnov smirnov.captain@gmail.com
  43854. - Janne Hellsten jjhellst@gmail.com
  43855. - cc 12904584+shvc@users.noreply.github.com
  43856. - Tareq Sharafy tareq.sha@gmail.com
  43857. - kapitainsky dariuszb@me.com
  43858. - douchen playgoobug@gmail.com
  43859. - Sam Lai 70988+slai@users.noreply.github.com
  43860. - URenko 18209292+URenko@users.noreply.github.com
  43861. - Stanislav Gromov kullfar@gmail.com
  43862. - Paulo Schreiner paulo.schreiner@delivion.de
  43863. - Mariusz Suchodolski mariusz@suchodol.ski
  43864. - danielkrajnik dan94kra@gmail.com
  43865. - Peter Fern github@0xc0dedbad.com
  43866. - zzq i@zhangzqs.cn
  43867. - mac-15 usman.ilamdin@phpstudios.com
  43868. - Sawada Tsunayoshi 34431649+TsunayoshiSawada@users.noreply.github.com
  43869. - Dean Attali daattali@gmail.com
  43870. - Fjodor42 molgaard@gmail.com
  43871. - BakaWang wa11579@hotmail.com
  43872. - Mahad 56235065+Mahad-lab@users.noreply.github.com
  43873. - Vladislav Vorobev x.miere@gmail.com
  43874. - darix darix@users.noreply.github.com
  43875. - Benjamin 36415086+bbenjamin-sys@users.noreply.github.com
  43876. - Chun-Hung Tseng henrybear327@users.noreply.github.com
  43877. - Ricardo D'O. Albanus rdalbanus@users.noreply.github.com
  43878. - gabriel-suela gscsuela@gmail.com
  43879. - Tiago Boeing contato@tiagoboeing.com
  43880. - Edwin Mackenzie-Owen edwin.mowen@gmail.com
  43881. - Niklas Hambüchen mail@nh2.me
  43882. - yuudi yuudi@users.noreply.github.com
  43883. - Zach github@prozach.org
  43884. - nielash 31582349+nielash@users.noreply.github.com
  43885. - Julian Lepinski lepinsk@users.noreply.github.com
  43886. - Raymond Berger RayBB@users.noreply.github.com
  43887. - Nihaal Sangha nihaal.git@gmail.com
  43888. - Masamune3210 1053504+Masamune3210@users.noreply.github.com
  43889. - James Braza jamesbraza@gmail.com
  43890. - antoinetran antoinetran@users.noreply.github.com
  43891. - alexia me@alexia.lol
  43892. - nielash nielronash@gmail.com
  43893. - Vitor Gomes vitor.gomes@delivion.de mail@vitorgomes.com
  43894. - Jacob Hands jacob@gogit.io
  43895. - hideo aoyama 100831251+boukendesho@users.noreply.github.com
  43896. - Roberto Ricci io@r-ricci.it
  43897. - Bjørn Smith bjornsmith@gmail.com
  43898. - Alishan Ladhani 8869764+aladh@users.noreply.github.com
  43899. - zjx20 zhoujianxiong2@gmail.com
  43900. - Oksana 142890647+oks-maytech@users.noreply.github.com
  43901. - Volodymyr Kit v.kit@maytech.net
  43902. - David Pedersen limero@me.com
  43903. - Drew Stinnett drew@drewlink.com
  43904. - Pat Patterson pat@backblaze.com
  43905. - Herby Gillot herby.gillot@gmail.com
  43906. - Nikita Shoshin shoshin_nikita@fastmail.com
  43907. - rinsuki 428rinsuki+git@gmail.com
  43908. - Beyond Meat 51850644+beyondmeat@users.noreply.github.com
  43909. - Saleh Dindar salh@fb.com
  43910. - Volodymyr 142890760+vkit-maytech@users.noreply.github.com
  43911. - Gabriel Espinoza 31670639+gspinoza@users.noreply.github.com
  43912. - Keigo Imai keigo.imai@gmail.com
  43913. - Ivan Yanitra iyanitra@tesla-consulting.com
  43914. - alfish2000 alfish2000@gmail.com
  43915. - wuxingzhong qq330332812@gmail.com
  43916. - Adithya Kumar akumar42@protonmail.com
  43917. - Tayo-pasedaRJ 138471223+Tayo-pasedaRJ@users.noreply.github.com
  43918. - Peter Kreuser logo@kreuser.name
  43919. - Piyush
  43920. - fotile96 fotile96@users.noreply.github.com
  43921. - Luc Ritchie luc.ritchie@gmail.com
  43922. - cynful cynful@users.noreply.github.com
  43923. - wjielai wjielai@tencent.com
  43924. - Jack Deng jackdeng@gmail.com
  43925. - Mikubill 31246794+Mikubill@users.noreply.github.com
  43926. - Artur Neumann artur@jankaritech.com
  43927. - Saw-jan saw.jan.grg3e@gmail.com
  43928. - Oksana Zhykina o.zhykina@maytech.net
  43929. - karan karan.gupta92@gmail.com
  43930. - viktor viktor@yakovchuk.net
  43931. - moongdal moongdal@tutanota.com
  43932. - Mina Galić freebsd@igalic.co
  43933. - Alen Šiljak dev@alensiljak.eu.org
  43934. - 你知道未来吗 rkonfj@gmail.com
  43935. - Abhinav Dhiman 8640877+ahnv@users.noreply.github.com
  43936. - halms 7513146+halms@users.noreply.github.com
  43937. - ben-ba benjamin.brauner@gmx.de
  43938. - Eli Orzitzer e_orz@yahoo.com
  43939. - Anthony Metzidis anthony.metzidis@gmail.com
  43940. - emyarod afw5059@gmail.com
  43941. - keongalvin keongalvin@gmail.com
  43942. - rarspace01 rarspace01@users.noreply.github.com
  43943. - Paul Stern paulstern45@gmail.com
  43944. - Nikhil Ahuja nikhilahuja@live.com
  43945. - Harshit Budhraja 52413945+harshit-budhraja@users.noreply.github.com
  43946. - Tera 24725862+teraa@users.noreply.github.com
  43947. - Kyle Reynolds kylereynoldsdev@gmail.com
  43948. - Michael Eischer michael.eischer@gmx.de
  43949. - Thomas Müller 1005065+DeepDiver1975@users.noreply.github.com
  43950. - DanielEgbers 27849724+DanielEgbers@users.noreply.github.com
  43951. - Jack Provance 49460795+njprov@users.noreply.github.com
  43952. - Gabriel Ramos 109390599+gabrielramos02@users.noreply.github.com
  43953. - Dan McArdle d@nmcardle.com
  43954. - Joe Cai joe.cai@bigcommerce.com
  43955. - Anders Swanson anders.swanson@oracle.com
  43956. - huajin tong 137764712+thirdkeyword@users.noreply.github.com
  43957. Contact the rclone project
  43958. Forum
  43959. Forum for questions and general discussion:
  43960. - https://forum.rclone.org
  43961. Business support
  43962. For business support or sponsorship enquiries please see:
  43963. - https://rclone.com/
  43964. - sponsorship@rclone.com
  43965. GitHub repository
  43966. The project's repository is located at:
  43967. - https://github.com/rclone/rclone
  43968. There you can file bug reports or contribute with pull requests.
  43969. Twitter
  43970. You can also follow Nick on twitter for rclone announcements:
  43971. - [@njcw](https://twitter.com/njcw)
  43972. Email
  43973. Or if all else fails or you want to ask something private or
  43974. confidential
  43975. - info@rclone.com
  43976. Please don't email requests for help to this address - those are better
  43977. directed to the forum unless you'd like to sign up for business support.