Borgmatic ask for password 3 - 5 times every time I launc it #831

Closed
opened 2024-02-21 16:36:34 +00:00 by GASierra · 3 comments

What I'm trying to do and why

I'm triying to run cron with the next line:

@hourly ~/.local/pipx/venvs/borgmatic/bin/borgmatic --config ~/.config/borgmatic/config.yaml --verbosity 2

Steps to reproduce


# List of source directories and files to back up. Globs and tildes
# are expanded. Do not backslash spaces in path names.
source_directories:
    - /home

# A required list of local or remote repositories with paths and
# optional labels (which can be used with the --repository flag to
# select a repository). Tildes are expanded. Multiple repositories are
# backed up to in sequence. Borg placeholders can be used. See the
# output of "borg help placeholders" for details. See ssh_command for
# SSH options like identity file or port. If systemd service is used,
# then add local repository paths in the systemd service file to the
# ReadWritePaths list. Prior to borgmatic 1.7.10, repositories was a
# list of plain path strings.
repositories:
    - path: ssh://redacted.repo.borgbase.com/./repo
      label: backupserver

# Passphrase to unlock the encryption key with. Only use on
# repositories that were initialized with passphrase/repokey/keyfile
# encryption. Quote the value if it contains punctuation, so it parses
# correctly. And backslash any quote or backslash literals as well.
# Defaults to not set.
encryption_passphrase: "abc123."

# Number of minutely archives to keep.
keep_minutely: 60

Actual behavior

Borgmatic reads the config file, but skips encryption_passphrase,

/home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for pre-everything hook
BORG_PASSPHRASE=*** BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=*** BORG_EXIT_CODES=*** borg --version --debug --show-rc
/home/prueba/.config/borgmatic/config.yaml.bk: Borg 1.2.7
backupserver: Running actions for repository
/home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for pre-actions hook
/home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for pre-backup hook
backupserver: Creating archive
ssh://redacted.repo.borgbase.com/./repo: Calling mariadb_databases hook function remove_data_source_dumps
ssh://redacted.repo.borgbase.com/./repo: Removing MariaDB data source dumps
ssh://redacted.repo.borgbase.com/./repo: Calling mysql_databases hook function remove_data_source_dumps
ssh://redacted.repo.borgbase.com/./repo: Removing MySQL data source dumps
ssh://redacted.repo.borgbase.com/./repo: Calling mongodb_databases hook function remove_data_source_dumps
ssh://redacted.repo.borgbase.com/./repo: Removing MongoDB data source dumps
ssh://redacted.repo.borgbase.com/./repo: Calling postgresql_databases hook function remove_data_source_dumps
ssh://redacted.repo.borgbase.com/./repo: Removing PostgreSQL data source dumps
ssh://redacted.repo.borgbase.com/./repo: Calling sqlite_databases hook function remove_data_source_dumps
ssh://redacted.repo.borgbase.com/./repo: Removing SQLite data source dumps
BORG_PASSPHRASE=*** BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=*** BORG_EXIT_CODES=*** borg create --lock-wait 5 --debug --show-rc ssh://redacted.repo.borgbase.com/./repo::{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f} /home
using builtin fallback logging configuration
33 self tests completed in 0.14 seconds
SSH command line: ['ssh', 'redacte.repo.borgbase.com', 'borg', 'serve', '--debug']
Enter passphrase for key '/home/prueba/.ssh/id_ed25519': 
Remote: using builtin fallback logging configuration
Remote: borg selftest disabled via BORG_SELFTEST env variable
Remote: using builtin fallback logging configuration
Remote: Initialized logging system for JSON-based protocol
Remote: Resolving repository path b'/./repo'
Remote: Resolved repository path to '/srv/repos/dkl0i4dl/repo'
Remote: Verified integrity of /srv/repos/dkl0i4dl/repo/index.219
TAM-verified manifest
security: read previous location 'ssh://redacted.repo.borgbase.com/./repo'
security: read manifest timestamp '2024-02-20T16:45:09.128927'
security: determined newest manifest timestamp as 2024-02-20T16:45:09.128927
security: repository checks ok, allowing access
Creating archive at "ssh://redacted.repo.borgbase.com/./repo::prueba-2024-02-21T15:44:38.001174"
Verified integrity of /home/prueba/.cache/borg/6f993434e7bd640de4fb2c4c656fd41b41b8b88eda27ddcdf34f5ee80d8170fe/chunks
Reading files cache ...
Verified integrity of /home/prueba/.cache/borg/6f993434e7bd640de4fb2c4c656fd41b41b8b88eda27ddcdf34f5ee80d8170fe/files
security: read previous location 'ssh://redacted.repo.borgbase.com/./repo'
security: read manifest timestamp '2024-02-20T16:45:09.128927'
security: determined newest manifest timestamp as 2024-02-20T16:45:09.128927
security: repository checks ok, allowing access
Processing files ...
Remote: Cleaned up 0 uncommitted segment files (== everything after segment 219).
Remote: Verified integrity of /srv/repos/dkl0i4dl/repo/hints.219
Remote: Storage quota: 1.40 GB out of 10.00 GB used.
/home/restic: dir_open: [Errno 13] Permission denied: 'restic'
Remote: check_free_space: few segments, not requiring a full free segment
Remote: check_free_space: calculated working space for compact as 24 bytes
Remote: check_free_space: required bytes 7630172, free bytes 47046965084160
Remote: Storage quota: 1.43 GB out of 10.00 GB used.
security: saving state for 6f993434e7bd640de4fb2c4c656fd41b41b8b88eda27ddcdf34f5ee80d8170fe to /home/prueba/.config/borg/security/6f993434e7bd640de4fb2c4c656fd41b41b8b88eda27ddcdf34f5ee80d8170fe
security: current location   ssh://redacted.repo.borgbase.com/./repo
security: key type           5
security: manifest timestamp 2024-02-21T15:45:00.054591
RemoteRepository: 34.70 MB bytes sent, 10.21 kB bytes received, 641 messages sent
terminating with warning status, rc 1
/home/prueba/.config/borgmatic/config.yaml.bk: Calling mariadb_databases hook function remove_data_source_dumps
/home/prueba/.config/borgmatic/config.yaml.bk: Removing MariaDB data source dumps
/home/prueba/.config/borgmatic/config.yaml.bk: Calling mysql_databases hook function remove_data_source_dumps
/home/prueba/.config/borgmatic/config.yaml.bk: Removing MySQL data source dumps
/home/prueba/.config/borgmatic/config.yaml.bk: Calling mongodb_databases hook function remove_data_source_dumps
/home/prueba/.config/borgmatic/config.yaml.bk: Removing MongoDB data source dumps
/home/prueba/.config/borgmatic/config.yaml.bk: Calling postgresql_databases hook function remove_data_source_dumps
/home/prueba/.config/borgmatic/config.yaml.bk: Removing PostgreSQL data source dumps
/home/prueba/.config/borgmatic/config.yaml.bk: Calling sqlite_databases hook function remove_data_source_dumps
/home/prueba/.config/borgmatic/config.yaml.bk: Removing SQLite data source dumps
/home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for post-backup hook
/home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for pre-prune hook
backupserver: Pruning archives
BORG_PASSPHRASE=*** BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=*** BORG_EXIT_CODES=*** borg prune --keep-minutely 60 --glob-archives {hostname}-* --lock-wait 5 --debug --show-rc ssh://redacted.repo.borgbase.com/./repo
using builtin fallback logging configuration
33 self tests completed in 0.14 seconds
SSH command line: ['ssh', 'redacted.repo.borgbase.com', 'borg', 'serve', '--debug']
Enter passphrase for key '/home/prueba/.ssh/id_ed25519': 
Remote: using builtin fallback logging configuration
Remote: borg selftest disabled via BORG_SELFTEST env variable
Remote: using builtin fallback logging configuration
Remote: Initialized logging system for JSON-based protocol
Remote: Resolving repository path b'/./repo'
Remote: Resolved repository path to '/srv/repos/dkl0i4dl/repo'
Remote: Verified integrity of /srv/repos/dkl0i4dl/repo/index.223
TAM-verified manifest
security: read previous location 'ssh://redacted.repo.borgbase.com/./repo'
security: read manifest timestamp '2024-02-21T15:45:00.054591'
security: determined newest manifest timestamp as 2024-02-21T15:45:00.054591
security: repository checks ok, allowing access
Verified integrity of /home/prueba/.cache/borg/6f993434e7bd640de4fb2c4c656fd41b41b8b88eda27ddcdf34f5ee80d8170fe/chunks
security: read previous location 'ssh://redacted.repo.borgbase.com/./repo'
security: read manifest timestamp '2024-02-21T15:45:00.054591'
security: determined newest manifest timestamp as 2024-02-21T15:45:00.054591
security: repository checks ok, allowing access
RemoteRepository: 216 B bytes sent, 3.69 kB bytes received, 5 messages sent
terminating with success status, rc 0
/home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for post-prune hook
/home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for pre-compact hook
backupserver: Compacting segments
BORG_PASSPHRASE=*** BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=*** BORG_EXIT_CODES=*** borg compact --lock-wait 5 --debug --show-rc ssh://redacted.repo.borgbase.com/./repo
using builtin fallback logging configuration
33 self tests completed in 0.14 seconds
SSH command line: ['ssh', 'redacted.repo.borgbase.com', 'borg', 'serve', '--debug']
Enter passphrase for key '/home/prueba/.ssh/id_ed25519': 
Remote: using builtin fallback logging configuration
Remote: borg selftest disabled via BORG_SELFTEST env variable
Remote: using builtin fallback logging configuration
Remote: Initialized logging system for JSON-based protocol
Remote: Resolving repository path b'/./repo'
Remote: Resolved repository path to '/srv/repos/dkl0i4dl/repo'
Remote: Verified integrity of /srv/repos/dkl0i4dl/repo/index.223
Remote: Cleaned up 0 uncommitted segment files (== everything after segment 223).
Remote: Verified integrity of /srv/repos/dkl0i4dl/repo/hints.223
Remote: Storage quota: 1.43 GB out of 10.00 GB used.
Remote: check_free_space: few segments, not requiring a full free segment
Remote: check_free_space: calculated working space for compact as 48 bytes
Remote: check_free_space: required bytes 7630256, free bytes 47046965710848
Remote: Storage quota: 1.43 GB out of 10.00 GB used.
Remote: Compaction started (threshold is 10%).
Remote: compacting segment 217 with usage count 0 (maybe freeable: 99.29% [1125 bytes])
Remote: compacting segment 219 with usage count 0 (maybe freeable: 52.94% [9 bytes])
Remote: compacting segment 221 with usage count 0 (maybe freeable: 83.67% [41 bytes])
Remote: compacting segment 222 with usage count 0 (maybe freeable: 99.33% [1195 bytes])
Remote: compacting segment 223 with usage count 0 (maybe freeable: 52.94% [9 bytes])
Remote: compacting segment 224 with usage count 0 (maybe freeable: 83.67% [41 bytes])
Remote: compacting segment 226 with usage count 0 (maybe freeable: 52.94% [9 bytes])
Remote: complete_xfer: wrote commit at segment 227
Remote: complete_xfer: deleting unused segment 217
Remote: complete_xfer: deleting unused segment 219
Remote: complete_xfer: deleting unused segment 221
Remote: complete_xfer: deleting unused segment 222
Remote: complete_xfer: deleting unused segment 223
Remote: complete_xfer: deleting unused segment 224
Remote: complete_xfer: deleting unused segment 226
Remote: compaction freed about 2.32 kB repository space.
Remote: compaction completed.
RemoteRepository: 1.47 kB bytes sent, 8.11 kB bytes received, 5 messages sent
terminating with success status, rc 0
/home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for post-compact hook
/home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for pre-check hook
backupserver: Running consistency checks
BORG_PASSPHRASE=*** BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=*** BORG_EXIT_CODES=*** borg info --lock-wait 5 --json ssh://redacted.repo.borgbase.com/./repo
Enter passphrase for key '/home/prueba/.ssh/id_ed25519': 
Reading check time from /home/prueba/.borgmatic/checks/6f993434e7bd640de4fb2c4c656fd41b41b8b88eda27ddcdf34f5ee80d8170fe/repository
Skipping repository check due to configured frequency; 28 days, 23:51:08.234994 until next check (use --force to check anyway)
Reading check time from /home/prueba/.borgmatic/checks/6f993434e7bd640de4fb2c4c656fd41b41b8b88eda27ddcdf34f5ee80d8170fe/archives/5b39eb3d2ace2c2200255dd92f1565be627b366f3fa7f32ee9113f7fd548afc6
Reading check time from /home/prueba/.borgmatic/checks/6f993434e7bd640de4fb2c4c656fd41b41b8b88eda27ddcdf34f5ee80d8170fe/archives/all
Skipping archives check due to configured frequency; 28 days, 23:51:08.234337 until next check (use --force to check anyway)
/home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for post-check hook
/home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for post-actions hook
/home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for post-everything hook

summary:
/home/prueba/.config/borgmatic/config.yaml.bk: Loading configuration file
/home/prueba/.config/borgmatic/config.yaml.bk: Successfully ran configuration file

Expected behavior

Borgmatic should not ask for any password

Other notes / implementation ideas

No response

borgmatic version

1.8.8

borgmatic installation method

pipx

Borg version

borg 1.2.7

Python version

No response

Database version (if applicable)

Python 3.10.12

Operating system and version

PRETTY_NAME="Ubuntu 22.04.4 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.4 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy

### What I'm trying to do and why I'm triying to run cron with the next line: `@hourly ~/.local/pipx/venvs/borgmatic/bin/borgmatic --config ~/.config/borgmatic/config.yaml --verbosity 2` ### Steps to reproduce ``` # List of source directories and files to back up. Globs and tildes # are expanded. Do not backslash spaces in path names. source_directories: - /home # A required list of local or remote repositories with paths and # optional labels (which can be used with the --repository flag to # select a repository). Tildes are expanded. Multiple repositories are # backed up to in sequence. Borg placeholders can be used. See the # output of "borg help placeholders" for details. See ssh_command for # SSH options like identity file or port. If systemd service is used, # then add local repository paths in the systemd service file to the # ReadWritePaths list. Prior to borgmatic 1.7.10, repositories was a # list of plain path strings. repositories: - path: ssh://redacted.repo.borgbase.com/./repo label: backupserver # Passphrase to unlock the encryption key with. Only use on # repositories that were initialized with passphrase/repokey/keyfile # encryption. Quote the value if it contains punctuation, so it parses # correctly. And backslash any quote or backslash literals as well. # Defaults to not set. encryption_passphrase: "abc123." # Number of minutely archives to keep. keep_minutely: 60 ``` ### Actual behavior Borgmatic reads the config file, but skips encryption_passphrase, ``` /home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for pre-everything hook BORG_PASSPHRASE=*** BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=*** BORG_EXIT_CODES=*** borg --version --debug --show-rc /home/prueba/.config/borgmatic/config.yaml.bk: Borg 1.2.7 backupserver: Running actions for repository /home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for pre-actions hook /home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for pre-backup hook backupserver: Creating archive ssh://redacted.repo.borgbase.com/./repo: Calling mariadb_databases hook function remove_data_source_dumps ssh://redacted.repo.borgbase.com/./repo: Removing MariaDB data source dumps ssh://redacted.repo.borgbase.com/./repo: Calling mysql_databases hook function remove_data_source_dumps ssh://redacted.repo.borgbase.com/./repo: Removing MySQL data source dumps ssh://redacted.repo.borgbase.com/./repo: Calling mongodb_databases hook function remove_data_source_dumps ssh://redacted.repo.borgbase.com/./repo: Removing MongoDB data source dumps ssh://redacted.repo.borgbase.com/./repo: Calling postgresql_databases hook function remove_data_source_dumps ssh://redacted.repo.borgbase.com/./repo: Removing PostgreSQL data source dumps ssh://redacted.repo.borgbase.com/./repo: Calling sqlite_databases hook function remove_data_source_dumps ssh://redacted.repo.borgbase.com/./repo: Removing SQLite data source dumps BORG_PASSPHRASE=*** BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=*** BORG_EXIT_CODES=*** borg create --lock-wait 5 --debug --show-rc ssh://redacted.repo.borgbase.com/./repo::{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f} /home using builtin fallback logging configuration 33 self tests completed in 0.14 seconds SSH command line: ['ssh', 'redacte.repo.borgbase.com', 'borg', 'serve', '--debug'] Enter passphrase for key '/home/prueba/.ssh/id_ed25519': Remote: using builtin fallback logging configuration Remote: borg selftest disabled via BORG_SELFTEST env variable Remote: using builtin fallback logging configuration Remote: Initialized logging system for JSON-based protocol Remote: Resolving repository path b'/./repo' Remote: Resolved repository path to '/srv/repos/dkl0i4dl/repo' Remote: Verified integrity of /srv/repos/dkl0i4dl/repo/index.219 TAM-verified manifest security: read previous location 'ssh://redacted.repo.borgbase.com/./repo' security: read manifest timestamp '2024-02-20T16:45:09.128927' security: determined newest manifest timestamp as 2024-02-20T16:45:09.128927 security: repository checks ok, allowing access Creating archive at "ssh://redacted.repo.borgbase.com/./repo::prueba-2024-02-21T15:44:38.001174" Verified integrity of /home/prueba/.cache/borg/6f993434e7bd640de4fb2c4c656fd41b41b8b88eda27ddcdf34f5ee80d8170fe/chunks Reading files cache ... Verified integrity of /home/prueba/.cache/borg/6f993434e7bd640de4fb2c4c656fd41b41b8b88eda27ddcdf34f5ee80d8170fe/files security: read previous location 'ssh://redacted.repo.borgbase.com/./repo' security: read manifest timestamp '2024-02-20T16:45:09.128927' security: determined newest manifest timestamp as 2024-02-20T16:45:09.128927 security: repository checks ok, allowing access Processing files ... Remote: Cleaned up 0 uncommitted segment files (== everything after segment 219). Remote: Verified integrity of /srv/repos/dkl0i4dl/repo/hints.219 Remote: Storage quota: 1.40 GB out of 10.00 GB used. /home/restic: dir_open: [Errno 13] Permission denied: 'restic' Remote: check_free_space: few segments, not requiring a full free segment Remote: check_free_space: calculated working space for compact as 24 bytes Remote: check_free_space: required bytes 7630172, free bytes 47046965084160 Remote: Storage quota: 1.43 GB out of 10.00 GB used. security: saving state for 6f993434e7bd640de4fb2c4c656fd41b41b8b88eda27ddcdf34f5ee80d8170fe to /home/prueba/.config/borg/security/6f993434e7bd640de4fb2c4c656fd41b41b8b88eda27ddcdf34f5ee80d8170fe security: current location ssh://redacted.repo.borgbase.com/./repo security: key type 5 security: manifest timestamp 2024-02-21T15:45:00.054591 RemoteRepository: 34.70 MB bytes sent, 10.21 kB bytes received, 641 messages sent terminating with warning status, rc 1 /home/prueba/.config/borgmatic/config.yaml.bk: Calling mariadb_databases hook function remove_data_source_dumps /home/prueba/.config/borgmatic/config.yaml.bk: Removing MariaDB data source dumps /home/prueba/.config/borgmatic/config.yaml.bk: Calling mysql_databases hook function remove_data_source_dumps /home/prueba/.config/borgmatic/config.yaml.bk: Removing MySQL data source dumps /home/prueba/.config/borgmatic/config.yaml.bk: Calling mongodb_databases hook function remove_data_source_dumps /home/prueba/.config/borgmatic/config.yaml.bk: Removing MongoDB data source dumps /home/prueba/.config/borgmatic/config.yaml.bk: Calling postgresql_databases hook function remove_data_source_dumps /home/prueba/.config/borgmatic/config.yaml.bk: Removing PostgreSQL data source dumps /home/prueba/.config/borgmatic/config.yaml.bk: Calling sqlite_databases hook function remove_data_source_dumps /home/prueba/.config/borgmatic/config.yaml.bk: Removing SQLite data source dumps /home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for post-backup hook /home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for pre-prune hook backupserver: Pruning archives BORG_PASSPHRASE=*** BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=*** BORG_EXIT_CODES=*** borg prune --keep-minutely 60 --glob-archives {hostname}-* --lock-wait 5 --debug --show-rc ssh://redacted.repo.borgbase.com/./repo using builtin fallback logging configuration 33 self tests completed in 0.14 seconds SSH command line: ['ssh', 'redacted.repo.borgbase.com', 'borg', 'serve', '--debug'] Enter passphrase for key '/home/prueba/.ssh/id_ed25519': Remote: using builtin fallback logging configuration Remote: borg selftest disabled via BORG_SELFTEST env variable Remote: using builtin fallback logging configuration Remote: Initialized logging system for JSON-based protocol Remote: Resolving repository path b'/./repo' Remote: Resolved repository path to '/srv/repos/dkl0i4dl/repo' Remote: Verified integrity of /srv/repos/dkl0i4dl/repo/index.223 TAM-verified manifest security: read previous location 'ssh://redacted.repo.borgbase.com/./repo' security: read manifest timestamp '2024-02-21T15:45:00.054591' security: determined newest manifest timestamp as 2024-02-21T15:45:00.054591 security: repository checks ok, allowing access Verified integrity of /home/prueba/.cache/borg/6f993434e7bd640de4fb2c4c656fd41b41b8b88eda27ddcdf34f5ee80d8170fe/chunks security: read previous location 'ssh://redacted.repo.borgbase.com/./repo' security: read manifest timestamp '2024-02-21T15:45:00.054591' security: determined newest manifest timestamp as 2024-02-21T15:45:00.054591 security: repository checks ok, allowing access RemoteRepository: 216 B bytes sent, 3.69 kB bytes received, 5 messages sent terminating with success status, rc 0 /home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for post-prune hook /home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for pre-compact hook backupserver: Compacting segments BORG_PASSPHRASE=*** BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=*** BORG_EXIT_CODES=*** borg compact --lock-wait 5 --debug --show-rc ssh://redacted.repo.borgbase.com/./repo using builtin fallback logging configuration 33 self tests completed in 0.14 seconds SSH command line: ['ssh', 'redacted.repo.borgbase.com', 'borg', 'serve', '--debug'] Enter passphrase for key '/home/prueba/.ssh/id_ed25519': Remote: using builtin fallback logging configuration Remote: borg selftest disabled via BORG_SELFTEST env variable Remote: using builtin fallback logging configuration Remote: Initialized logging system for JSON-based protocol Remote: Resolving repository path b'/./repo' Remote: Resolved repository path to '/srv/repos/dkl0i4dl/repo' Remote: Verified integrity of /srv/repos/dkl0i4dl/repo/index.223 Remote: Cleaned up 0 uncommitted segment files (== everything after segment 223). Remote: Verified integrity of /srv/repos/dkl0i4dl/repo/hints.223 Remote: Storage quota: 1.43 GB out of 10.00 GB used. Remote: check_free_space: few segments, not requiring a full free segment Remote: check_free_space: calculated working space for compact as 48 bytes Remote: check_free_space: required bytes 7630256, free bytes 47046965710848 Remote: Storage quota: 1.43 GB out of 10.00 GB used. Remote: Compaction started (threshold is 10%). Remote: compacting segment 217 with usage count 0 (maybe freeable: 99.29% [1125 bytes]) Remote: compacting segment 219 with usage count 0 (maybe freeable: 52.94% [9 bytes]) Remote: compacting segment 221 with usage count 0 (maybe freeable: 83.67% [41 bytes]) Remote: compacting segment 222 with usage count 0 (maybe freeable: 99.33% [1195 bytes]) Remote: compacting segment 223 with usage count 0 (maybe freeable: 52.94% [9 bytes]) Remote: compacting segment 224 with usage count 0 (maybe freeable: 83.67% [41 bytes]) Remote: compacting segment 226 with usage count 0 (maybe freeable: 52.94% [9 bytes]) Remote: complete_xfer: wrote commit at segment 227 Remote: complete_xfer: deleting unused segment 217 Remote: complete_xfer: deleting unused segment 219 Remote: complete_xfer: deleting unused segment 221 Remote: complete_xfer: deleting unused segment 222 Remote: complete_xfer: deleting unused segment 223 Remote: complete_xfer: deleting unused segment 224 Remote: complete_xfer: deleting unused segment 226 Remote: compaction freed about 2.32 kB repository space. Remote: compaction completed. RemoteRepository: 1.47 kB bytes sent, 8.11 kB bytes received, 5 messages sent terminating with success status, rc 0 /home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for post-compact hook /home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for pre-check hook backupserver: Running consistency checks BORG_PASSPHRASE=*** BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=*** BORG_EXIT_CODES=*** borg info --lock-wait 5 --json ssh://redacted.repo.borgbase.com/./repo Enter passphrase for key '/home/prueba/.ssh/id_ed25519': Reading check time from /home/prueba/.borgmatic/checks/6f993434e7bd640de4fb2c4c656fd41b41b8b88eda27ddcdf34f5ee80d8170fe/repository Skipping repository check due to configured frequency; 28 days, 23:51:08.234994 until next check (use --force to check anyway) Reading check time from /home/prueba/.borgmatic/checks/6f993434e7bd640de4fb2c4c656fd41b41b8b88eda27ddcdf34f5ee80d8170fe/archives/5b39eb3d2ace2c2200255dd92f1565be627b366f3fa7f32ee9113f7fd548afc6 Reading check time from /home/prueba/.borgmatic/checks/6f993434e7bd640de4fb2c4c656fd41b41b8b88eda27ddcdf34f5ee80d8170fe/archives/all Skipping archives check due to configured frequency; 28 days, 23:51:08.234337 until next check (use --force to check anyway) /home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for post-check hook /home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for post-actions hook /home/prueba/.config/borgmatic/config.yaml.bk: No commands to run for post-everything hook summary: /home/prueba/.config/borgmatic/config.yaml.bk: Loading configuration file /home/prueba/.config/borgmatic/config.yaml.bk: Successfully ran configuration file ``` ### Expected behavior Borgmatic should not ask for any password ### Other notes / implementation ideas _No response_ ### borgmatic version 1.8.8 ### borgmatic installation method pipx ### Borg version borg 1.2.7 ### Python version _No response_ ### Database version (if applicable) Python 3.10.12 ### Operating system and version PRETTY_NAME="Ubuntu 22.04.4 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.4 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy
Owner

The Enter passphrase for key '/home/prueba/.ssh/id_ed25519': prompts are actually coming from SSH, not Borg! My guess is that that SSH key was created with a passphrase, and therefore it needs to entered before use. But you might be able to use a keychain-style program to ask for your password once and then feed it to SSH automatically every time it's needed. Alternatively, you could use an SSH key that doesn't have a passphrase on it.

Hope that helps!

The `Enter passphrase for key '/home/prueba/.ssh/id_ed25519':` prompts are actually coming from SSH, not Borg! My guess is that that SSH key was created with a passphrase, and therefore it needs to entered before use. But you might be able to use a [keychain](https://www.funtoo.org/Funtoo:Keychain)-style program to ask for your password once and then feed it to SSH automatically every time it's needed. Alternatively, you could use an SSH key that doesn't have a passphrase on it. Hope that helps!
witten added the
question / support
label 2024-02-21 16:42:19 +00:00
Author

Thank you, it works!

Thank you, it works!
Owner

Glad to hear it!

Glad to hear it!
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#831
No description provided.