Jelajahi Sumber

Add log file for borgmatic

jherve 1 bulan lalu
induk
melakukan
35bad26ea5
2 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 1 0
      pc_backup/config/borgmatic/common.yaml
  2. 1 0
      pc_backup/start.py

+ 1 - 0
pc_backup/config/borgmatic/common.yaml

@@ -4,6 +4,7 @@ repositories:
 
 remote_path: borg-1.4
 ssh_command: ssh -i /var/run/secrets/${SSH_KEY_NAME}
+log_file: /root/.local/share/borgmatic/log
 
 encryption_passphrase: "{credential container ${BORG_PASSPHRASE_NAME}}"
 compression: lz4

+ 1 - 0
pc_backup/start.py

@@ -172,6 +172,7 @@ class BorgmaticContainer:
             "borg_config:/root/.config/borg",
             "borg_cache:/root/.cache/borg",
             "borgmatic_state:/root/.local/state/borgmatic",
+            "borgmatic_log:/root/.local/share/borgmatic",
         ]
         if config.ssh_auth_sock:
             volumes += [f"{config.ssh_auth_sock}:{config.ssh_auth_sock}:Z"]