Przeglądaj źródła

News for: ~/.config/borgmatic/config.yaml.

Dan Helfman 7 lat temu
rodzic
commit
dede8f9d4b
2 zmienionych plików z 6 dodań i 2 usunięć
  1. 1 0
      NEWS
  2. 5 2
      borgmatic/config/collect.py

+ 1 - 0
NEWS

@@ -10,6 +10,7 @@
  * #63: Support for Borg --nobsdflags option to skip recording bsdflags (e.g. NODUMP, IMMUTABLE) in
    archive.
  * Update tox.ini to only assume Python 3.x instead of Python 3.4 specifically.
+ * Add ~/.config/borgmatic/config.yaml to default configuration path probing.
 
 1.1.15
  * Support for Borg BORG_PASSCOMMAND environment variable to read a password from an external file.

+ 5 - 2
borgmatic/config/collect.py

@@ -1,8 +1,11 @@
 import os
 
 
-DEFAULT_CONFIG_PATHS = ['/etc/borgmatic/config.yaml', '/etc/borgmatic.d',
-                        os.path.expanduser('~/.config/borgmatic/config.yaml')]
+DEFAULT_CONFIG_PATHS = [
+    '/etc/borgmatic/config.yaml',
+    '/etc/borgmatic.d',
+    os.path.expanduser('~/.config/borgmatic/config.yaml'),
+]
 
 
 def collect_config_filenames(config_paths):