浏览代码

Change default retries to 0

cadamswaite 4 年之前
父节点
当前提交
510449ce65
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      borgmatic/commands/borgmatic.py
  2. 1 1
      borgmatic/config/schema.yaml

+ 1 - 1
borgmatic/commands/borgmatic.py

@@ -53,7 +53,7 @@ def run_configuration(config_filename, config, arguments):
 
     local_path = location.get('local_path', 'borg')
     remote_path = location.get('remote_path')
-    retries = storage.get('retries',1)
+    retries = storage.get('retries', 0)
     borg_environment.initialize(storage)
     encountered_error = None
     error_repository = ''

+ 1 - 1
borgmatic/config/schema.yaml

@@ -253,7 +253,7 @@ properties:
                 type: integer
                 description: |
                     Number of times to retry a backup before failing. Defaults
-                    to 1.
+                    to 0 (i.e. does not attempt retry).
                 example: 3
             temporary_directory:
                 type: string