Advertisement
stephendt

Borg Backup test.yaml

Dec 3rd, 2018
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.65 KB | None | 0 0
  1. # Where to look for files to backup, and where to store those backups. See
  2. # https://borgbackup.readthedocs.io/en/stable/quickstart.html and
  3. # https://borgbackup.readthedocs.io/en/stable/usage.html#borg-create for details.
  4. location:
  5. # List of source directories to backup (required). Globs and tildes are expanded.
  6. source_directories:
  7. - /home
  8. - /mnt/data01
  9.  
  10. # Paths to local or remote repositories (required). Tildes are expanded. Multiple
  11. # repositories are backed up to in sequence. See ssh_command for SSH options like
  12. # identity file or port.
  13. repositories:
  14. - owner@192.168.1.211:/mnt/e/Test/test.borg
  15.  
  16. # Stay in same file system (do not cross mount points).
  17. #one_file_system: true
  18.  
  19. # Use Borg's --read-special flag to allow backup of block and other special
  20. # devices. Use with caution, as it will lead to problems if used when
  21. # backing up special devices such as /dev/zero.
  22. #read_special: false
  23.  
  24. # Record bsdflags (e.g. NODUMP, IMMUTABLE) in archive. Defaults to true.
  25. #bsd_flags: true
  26.  
  27. # Mode in which to operate the files cache. See
  28. # https://borgbackup.readthedocs.io/en/stable/usage/create.html#description for
  29. # details.
  30. #files_cache: ctime,size,inode
  31.  
  32. # Alternate Borg local executable. Defaults to "borg".
  33. #local_path: borg1
  34.  
  35. # Alternate Borg remote executable. Defaults to "borg".
  36. #remote_path: borg1
  37.  
  38. # Any paths matching these patterns are included/excluded from backups. Globs are
  39. # expanded. (Tildes are not.) Note that Borg considers this option experimental.
  40. # See the output of "borg help patterns" for more details. Quote any value if it
  41. # contains leading punctuation, so it parses correctly.
  42. #patterns:
  43. # - R /
  44. # - '- /home/*/.cache'
  45. # - + /home/susan
  46. # - '- /home/*'
  47.  
  48. # Read include/exclude patterns from one or more separate named files, one pattern
  49. # per line. Note that Borg considers this option experimental. See the output of
  50. # "borg help patterns" for more details.
  51. #patterns_from:
  52. # - /etc/borgmatic/patterns
  53.  
  54. # Any paths matching these patterns are excluded from backups. Globs and tildes
  55. # are expanded. See the output of "borg help patterns" for more details.
  56. #exclude_patterns:
  57. # - '*.pyc'
  58. # - ~/*/.cache
  59. # - /etc/ssl
  60.  
  61. # Read exclude patterns from one or more separate named files, one pattern per
  62. # line. See the output of "borg help patterns" for more details.
  63. #exclude_from:
  64. # - /etc/borgmatic/excludes
  65.  
  66. # Exclude directories that contain a CACHEDIR.TAG file. See
  67. # http://www.brynosaurus.com/cachedir/spec.html for details.
  68. #exclude_caches: true
  69.  
  70. # Exclude directories that contain a file with the given filename.
  71. #exclude_if_present: .nobackup
  72.  
  73. # Repository storage options. See
  74. # https://borgbackup.readthedocs.io/en/stable/usage.html#borg-create and
  75. # https://borgbackup.readthedocs.io/en/stable/usage/general.html#environment-variables for
  76. # details.
  77. #storage:
  78. # The standard output of this command is used to unlock the encryption key. Only
  79. # use on repositories that were initialized with passcommand/repokey encryption.
  80. # Note that if both encryption_passcommand and encryption_passphrase are set,
  81. # then encryption_passphrase takes precedence.
  82. #encryption_passcommand: secret-tool lookup borg-repository repo-name
  83.  
  84. # Passphrase to unlock the encryption key with. Only use on repositories that were
  85. # initialized with passphrase/repokey encryption. Quote the value if it contains
  86. # punctuation, so it parses correctly. And backslash any quote or backslash
  87. # literals as well.
  88. #encryption_passphrase: "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"
  89.  
  90. # Number of seconds between each checkpoint during a long-running backup. See
  91. # https://borgbackup.readthedocs.io/en/stable/faq.html#if-a-backup-stops-mid-way-does-the-already-backed-up-data-stay-there
  92. # for details. Defaults to checkpoints every 1800 seconds (30 minutes).
  93. #checkpoint_interval: 1800
  94.  
  95. # Specify the parameters passed to then chunker (CHUNK_MIN_EXP, CHUNK_MAX_EXP,
  96. # HASH_MASK_BITS, HASH_WINDOW_SIZE). See https://borgbackup.readthedocs.io/en/stable/internals.html
  97. # for details.
  98. #chunker_params: 19,23,21,4095
  99.  
  100. # Type of compression to use when creating archives. See
  101. # https://borgbackup.readthedocs.org/en/stable/usage.html#borg-create for details.
  102. # Defaults to no compression.
  103. #compression: lz4
  104.  
  105. # Remote network upload rate limit in kiBytes/second.
  106. #remote_rate_limit: 100
  107.  
  108. # Command to use instead of just "ssh". This can be used to specify ssh options.
  109. #ssh_command: ssh -i /path/to/private/key
  110.  
  111. # Umask to be used for borg create.
  112. #umask: 0077
  113.  
  114. # Maximum seconds to wait for acquiring a repository/cache lock.
  115. #lock_wait: 5
  116.  
  117. # Name of the archive. Borg placeholders can be used. See the output of
  118. # "borg help placeholders" for details. Default is
  119. # "{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f}". If you specify this option, you must
  120. # also specify a prefix in the retention section to avoid accidental pruning of
  121. # archives with a different archive name format. And you should also specify a
  122. # prefix in the consistency section as well.
  123. #archive_name_format: '{hostname}-documents-{now}'
  124.  
  125. # Retention policy for how many backups to keep in each category. See
  126. # https://borgbackup.readthedocs.org/en/stable/usage.html#borg-prune for details.
  127. # At least one of the "keep" options is required for pruning to work.
  128. retention:
  129. # Keep all archives within this time interval.
  130. #keep_within: 3H
  131.  
  132. # Number of secondly archives to keep.
  133. #keep_secondly: 60
  134.  
  135. # Number of minutely archives to keep.
  136. #keep_minutely: 60
  137.  
  138. # Number of hourly archives to keep.
  139. #keep_hourly: 24
  140.  
  141. # Number of daily archives to keep.
  142. keep_daily: 7
  143.  
  144. # Number of weekly archives to keep.
  145. keep_weekly: 4
  146.  
  147. # Number of monthly archives to keep.
  148. keep_monthly: 3
  149.  
  150. # Number of yearly archives to keep.
  151. #keep_yearly: 1
  152.  
  153. # When pruning, only consider archive names starting with this prefix.
  154. # Borg placeholders can be used. See the output of "borg help placeholders" for
  155. # details. Default is "{hostname}-".
  156. #prefix: sourcehostname
  157.  
  158. # Consistency checks to run after backups. See
  159. # https://borgbackup.readthedocs.org/en/stable/usage.html#borg-check and
  160. # https://borgbackup.readthedocs.org/en/stable/usage.html#borg-extract for details.
  161. #consistency:
  162. # List of one or more consistency checks to run: "repository", "archives", and/or
  163. # "extract". Defaults to "repository" and "archives". Set to "disabled" to disable
  164. # all consistency checks. "repository" checks the consistency of the repository,
  165. # "archive" checks all of the archives, and "extract" does an extraction dry-run
  166. # of just the most recent archive.
  167. #checks:
  168. # - repository
  169. # - archives
  170.  
  171. # Paths to a subset of the repositories in the location section on which to run
  172. # consistency checks. Handy in case some of your repositories are very large, and
  173. # so running consistency checks on them would take too long. Defaults to running
  174. # consistency checks on all repositories configured in the location section.
  175. #check_repositories:
  176. # - user@backupserver:sourcehostname.borg
  177.  
  178. # Restrict the number of checked archives to the last n. Applies only to the "archives" check.
  179. #check_last: 3
  180.  
  181. # When performing the "archives" check, only consider archive names starting with
  182. # this prefix. Borg placeholders can be used. See the output of
  183. # "borg help placeholders" for details. Default is "{hostname}-".
  184. #prefix: sourcehostname
  185.  
  186. # Shell commands or scripts to execute before and after a backup or if an error has occurred.
  187. # IMPORTANT: All provided commands and scripts are executed with user permissions of borgmatic.
  188. # Do not forget to set secure permissions on this file as well as on any script listed (chmod 0700) to
  189. # prevent potential shell injection or privilege escalation.
  190. #hooks:
  191. # List of one or more shell commands or scripts to execute before creating a backup.
  192. #before_backup:
  193. # - echo "`date` - Starting a backup job."
  194.  
  195. # List of one or more shell commands or scripts to execute after creating a backup.
  196. #after_backup:
  197. # - echo "`date` - Backup created."
  198.  
  199. # List of one or more shell commands or scripts to execute in case an exception has occurred.
  200. #on_error:
  201. # - echo "`date` - Error while creating a backup."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement