1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[361],{2739:function(e,n,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cli/general",function(){return a(4937)}])},4937:function(e,n,a){"use strict";a.r(n),a.d(n,{__toc:function(){return s}});var i=a(2676),t=a(9552),o=a(161),r=a(134);a(3571);var c=a(605);let s=[{depth:2,value:"-c, --config",id:"-c---config"},{depth:2,value:"--ci",id:"--ci"},{depth:2,value:"-v, --verbose",id:"-v---verbose"},{depth:2,value:"--restic-bin",id:"--restic-bin"}];function l(e){let n=Object.assign({h1:"h1",h2:"h2",code:"code",p:"p",pre:"pre",span:"span",a:"a"},(0,c.a)(),e.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h1,{children:"General"}),"\n",(0,i.jsx)(n.h2,{id:"-c---config",children:(0,i.jsx)(n.code,{children:"-c, --config"})}),"\n",(0,i.jsxs)(n.p,{children:["Specify the config file to be used (must use .yml as an extension).\nIf omitted ",(0,i.jsx)(n.code,{children:"autorestic"})," will search for for a ",(0,i.jsx)(n.code,{children:".autorestic.yml"})," in the current directory and your home directory."]}),"\n",(0,i.jsx)(n.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsx)(n.code,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"autorestic"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"-c"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"/path/to/my/config.yml"})]})})}),"\n",(0,i.jsx)(n.h2,{id:"--ci",children:(0,i.jsx)(n.code,{children:"--ci"})}),"\n",(0,i.jsxs)(n.p,{children:["Run the CLI in CI Mode, which means there will be no interactivity, no colors and automatically sets the ",(0,i.jsx)(n.code,{children:"--verbose"})," flag."]}),"\n",(0,i.jsx)(n.p,{children:"This can be useful when you want to run cron e.g. as all the output will be saved."}),"\n",(0,i.jsx)(n.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsx)(n.code,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"autorestic"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"--ci"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"backup"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"-a"})]})})}),"\n",(0,i.jsx)(n.h2,{id:"-v---verbose",children:(0,i.jsx)(n.code,{children:"-v, --verbose"})}),"\n",(0,i.jsx)(n.p,{children:"Verbose mode will show the output of the native restic commands that are otherwise not printed out. Useful for debugging or logging in automated tasks."}),"\n",(0,i.jsx)(n.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsx)(n.code,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"autorestic"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"--verbose"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"backup"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"-a"})]})})}),"\n",(0,i.jsx)(n.h2,{id:"--restic-bin",children:(0,i.jsx)(n.code,{children:"--restic-bin"})}),"\n",(0,i.jsxs)(n.p,{children:["With ",(0,i.jsx)(n.code,{children:"--restic-bin"})," you can specify to run a specific restic binary. This can be useful if you want to ",(0,i.jsx)(n.a,{href:"https://restic.readthedocs.io/en/stable/080_examples.html#full-backup-without-root",children:"create a custom binary with root access that can be executed by any user"}),"."]}),"\n",(0,i.jsx)(n.pre,{"data-language":"bash","data-theme":"default",children:(0,i.jsx)(n.code,{"data-language":"bash","data-theme":"default",children:(0,i.jsxs)(n.span,{className:"line",children:[(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-function)"},children:"autorestic"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"},children:"--restic-bin"}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(n.span,{style:{color:"var(--shiki-token-string)"}
1,children:"/some/path/to/my/custom/restic/binary"})]})})})]})}let d={MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,c.a)(),e.components);return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(l,{...e})}):l(e)},pageOpts:{filePath:"pages/cli/general.md",route:"/cli/general",timestamp:1729165785e3,pageMap:[{kind:"Meta",data:{index:"Home",quick:"Quick Start",installation:"Installation",config:"Configuration",location:"Locations",backend:"Backend",cli:"CLI",migration:"Migration",community:"Community",contributors:"Contributors",docker:"Docker",examples:"Examples",qa:"Qa"}},{kind:"Folder",name:"backend",route:"/backend",children:[{kind:"Meta",data:{index:"Overview",available:"Available backends",options:"Options",env:"Environment"}},{kind:"MdxPage",name:"available",route:"/backend/available"},{kind:"MdxPage",name:"env",route:"/backend/env"},{kind:"MdxPage",name:"index",route:"/backend"},{kind:"MdxPage",name:"options",route:"/backend/options"}]},{kind:"Folder",name:"cli",route:"/cli",children:[{kind:"Meta",data:{general:"General",backup:"Backup",check:"Check",completion:"Completion",cron:"Cron",exec:"Exec",forget:"Forget",info:"Info",install:"Install",restore:"Restore",uninstall:"Uninstall",unlock:"Unlock",upgrade:"Upgrade"}},{kind:"MdxPage",name:"backup",route:"/cli/backup"},{kind:"MdxPage",name:"check",route:"/cli/check"},{kind:"MdxPage",name:"completion",route:"/cli/completion"},{kind:"MdxPage",name:"cron",route:"/cli/cron"},{kind:"MdxPage",name:"exec",route:"/cli/exec"},{kind:"MdxPage",name:"forget",route:"/cli/forget"},{kind:"MdxPage",name:"general",route:"/cli/general"},{kind:"MdxPage",name:"info",route:"/cli/info"},{kind:"MdxPage",name:"install",route:"/cli/install"},{kind:"MdxPage",name:"restore",route:"/cli/restore"},{kind:"MdxPage",name:"uninstall",route:"/cli/uninstall"},{kind:"MdxPage",name:"unlock",route:"/cli/unlock"},{kind:"MdxPage",name:"upgrade",route:"/cli/upgrade"}]},{kind:"MdxPage",name:"community",route:"/community"},{kind:"MdxPage",name:"config",route:"/config"},{kind:"MdxPage",name:"contributors",route:"/contributors"},{kind:"MdxPage",name:"docker",route:"/docker"},{kind:"MdxPage",name:"examples",route:"/examples"},{kind:"MdxPage",name:"index",route:"/"},{kind:"MdxPage",name:"installation",route:"/installation"},{kind:"Folder",name:"location",route:"/location",children:[{kind:"Meta",data:{index:"Overview",hooks:"Hooks",options:"Options",cron:"Cronjobs",docker:"Docker volumes"}},{kind:"MdxPage",name:"cron",route:"/location/cron"},{kind:"MdxPage",name:"docker",route:"/location/docker"},{kind:"MdxPage",name:"hooks",route:"/location/hooks"},{kind:"MdxPage",name:"index",route:"/location"},{kind:"Folder",name:"options",route:"/location/options",children:[{kind:"Meta",data:{index:"Overview",copy:"Copy",exclude:"Exclude",forget:"Forget"}},{kind:"MdxPage",name:"copy",route:"/location/options/copy"},{kind:"MdxPage",name:"exclude",route:"/location/options/exclude"},{kind:"MdxPage",name:"forget",route:"/location/options/forget"},{kind:"MdxPage",name:"index",route:"/location/options"}]}]},{kind:"Folder",name:"migration",route:"/migration",children:[{kind:"MdxPage",name:"0.x_1.0",route:"/migration/0.x_1.0"},{kind:"MdxPage",name:"1.4_1.5",route:"/migration/1.4_1.5"},{kind:"Meta",data:{"0.x_1.0":"0.x â 1.0","1.4_1.5":"1.4 â 1.5"}}]},{kind:"MdxPage",name:"migration",route:"/migration"},{kind:"MdxPage",name:"qa",route:"/qa"},{kind:"MdxPage",name:"quick",route:"/quick"}],flexsearch:{codeblocks:!0},title:"General",headings:s},pageNextRoute:"/cli/general",nextraLayout:o.ZP,themeConfig:r.Z};n.default=(0,t.j)(d)},134:function(e,n,a){"use strict";var i=a(2676);n.Z={logo:(0,i.jsx)("span",{children:"Autorestic"}),docsRepositoryBase:"https://github.com/cupcakearmy/autorestic/tree/master/docs",project:{link:"https://github.com/cupcakearmy/autorestic"},sidebar:{defaultMenuCollapseLevel:1},feedback:{content:"Question? An error? Give feedback â"},footer:{text:(0,i.jsxs)("span",{children:["MIT ",new Date().getFullYear()," \xa9"," ",(0,i.jsx)("a",{href:"https://github.com/cupcakearmy",target:"_blank",children:"cupcakearmy"}),"."]})}}},5184:function(){}},function(e){e.O(0,[455,888,774,179],function(){return e(e.s=2739)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.