restic backup(1)                                              restic backup(1)



NNAAMMEE
       restic-backup - Create a new backup of files and/or directories



SSYYNNOOPPSSIISS
       rreessttiicc bbaacckkuupp [[ffllaaggss]] FFIILLEE//DDIIRR [[FFIILLEE//DDIIRR]] ......



DDEESSCCRRIIPPTTIIOONN
       The  "backup"  command  creates  a new snapshot and saves the files and
       directories given as the arguments.



EEXXIITT SSTTAATTUUSS
       Exit status is 0 if the command was successful.  Exit status  is  1  if
       there  was  a  fatal  error (no snapshot created).  Exit status is 3 if
       some source data could not be read (incomplete snapshot created).



OOPPTTIIOONNSS
       --nn, ----ddrryy--rruunn[=false]      do not upload or write any data,  just  show
       what would be done


       --ee,  ----eexxcclluuddee=[]       exclude  a  ppaatttteerrnn  (can be specified multiple
       times)


       ----eexxcclluuddee--ccaacchheess[=false]       excludes  cache  directories  that   are
       marked  with  a CACHEDIR.TAG file. See https://bford.info/cachedir/ for
       the Cache Directory Tagging Standard


       ----eexxcclluuddee--ffiillee=[]      read exclude patterns from a ffiillee (can be speci‐
       fied multiple times)


       ----eexxcclluuddee--iiff--pprreesseenntt=[]       takes ffiilleennaammee[[::hheeaaddeerr]], exclude contents
       of directories containing filename (except filename itself)  if  header
       of that file is as provided (can be specified multiple times)


       ----eexxcclluuddee--llaarrggeerr--tthhaann=""       max  ssiizzee  of  the files to be backed up
       (allowed suffixes: k/K, m/M, g/G, t/T)


       ----ffiilleess--ffrroomm=[]      read the files to backup from ffiillee  (can  be  com‐
       bined with file args; can be specified multiple times)


       ----ffiilleess--ffrroomm--rraaww=[]       read  the  files  to backup from ffiillee (can be
       combined with file args; can be specified multiple times)


       ----ffiilleess--ffrroomm--vveerrbbaattiimm=[]      read the files to backup from  ffiillee  (can
       be combined with file args; can be specified multiple times)


       --ff,  ----ffoorrccee[=false]      force re-reading the target files/directories
       (overrides the "parent" flag)


       --hh, ----hheellpp[=false]      help for backup


       --HH, ----hhoosstt=""      set the hhoossttnnaammee for the snapshot manually. To  pre‐
       vent an expensive rescan use the "parent" flag


       ----iieexxcclluuddee=[]       same as --exclude ppaatttteerrnn but ignores the casing of
       filenames


       ----iieexxcclluuddee--ffiillee=[]      same as --exclude-file but  ignores  casing  of
       ffiilleenames in patterns


       ----iiggnnoorree--ccttiimmee[=false]      ignore ctime changes when checking for mod‐
       ified files


       ----iiggnnoorree--iinnooddee[=false]      ignore inode number changes  when  checking
       for modified files


       --xx,  ----oonnee--ffiillee--ssyysstteemm[=false]       exclude  other file systems, don't
       cross filesystem boundaries and subvolumes


       ----ppaarreenntt=""      use this parent ssnnaappsshhoott (default:  last  snapshot  in
       the  repo  that has the same target files/directories, and is not newer
       than the snapshot time)


       ----ssttddiinn[=false]      read backup from stdin


       ----ssttddiinn--ffiilleennaammee="stdin"      ffiilleennaammee to use when reading from stdin


       ----ttaagg=[]      add ttaaggss for the new snapshot in the format ttaagg[[,,ttaagg,,......]]
       (can be specified multiple times)


       ----ttiimmee=""      ttiimmee of the backup (ex. '2012-11-01 22:08:41') (default:
       now)


       ----wwiitthh--aattiimmee[=false]      store the atime for all files and directories



OOPPTTIIOONNSS IINNHHEERRIITTEEDD FFRROOMM PPAARREENNTT CCOOMMMMAANNDDSS
       ----ccaacceerrtt=[]      ffiillee to load root certificates from (default: use sys‐
       tem certificates)


       ----ccaacchhee--ddiirr=""       set  the  cache  ddiirreeccttoorryy.  (default:  use system
       default cache directory)


       ----cclleeaannuupp--ccaacchhee[=false]      auto remove old cache directories


       ----iinnsseeccuurree--ttllss[=false]      skip TLS certificate verification when con‐
       necting to the repo (insecure)


       ----jjssoonn[=false]       set  output mode to JSON for commands that support
       it


       ----kkeeyy--hhiinntt=""      kkeeyy ID of key  to  try  decrypting  first  (default:
       $RESTIC_KEY_HINT)


       ----lliimmiitt--ddoowwnnllooaadd=0       limits  downloads  to a maximum rate in KiB/s.
       (default: unlimited)


       ----lliimmiitt--uuppllooaadd=0      limits  uploads  to  a  maximum  rate  in  KiB/s.
       (default: unlimited)


       ----nnoo--ccaacchhee[=false]      do not use a local cache


       ----nnoo--lloocckk[=false]       do  not  lock  the repository, this allows some
       operations on read-only repositories


       --oo, ----ooppttiioonn=[]      set extended option (kkeeyy==vvaalluuee, can  be  specified
       multiple times)


       ----ppaasssswwoorrdd--ccoommmmaanndd=""      shell ccoommmmaanndd to obtain the repository pass‐
       word from (default: $RESTIC_PASSWORD_COMMAND)


       --pp, ----ppaasssswwoorrdd--ffiillee=""      ffiillee to read the repository  password  from
       (default: $RESTIC_PASSWORD_FILE)


       --qq, ----qquuiieett[=false]      do not output comprehensive progress report


       --rr,  ----rreeppoo=""       rreeppoossiittoorryy  to backup to or restore from (default:
       $RESTIC_REPOSITORY)


       ----rreeppoossiittoorryy--ffiillee=""      ffiillee to read  the  repository  location  from
       (default: $RESTIC_REPOSITORY_FILE)


       ----ttllss--cclliieenntt--cceerrtt=""       path  to  a  ffiillee containing PEM encoded TLS
       client certificate and private key


       --vv, ----vveerrbboossee[=0]      be verbose (specify multiple times  or  a  level
       using --verbose=nn, max level/times is 3)



SSEEEE AALLSSOO
       rreessttiicc((11))



generated by rreessttiicc ggeenneerraattee       Jan 2017                   restic backup(1)
