Borgamtic asks 3 times for the archive password during a backup #351
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#351
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
During a backup borgmatic asks for the archive password 3 times: for "Pruning archives", "Creating archive", and "Starting archive consistency check..." steps.
I am not sure if it is by design. If not, it would be much more conviniet to enter the password only once.
Steps to reproduce (if a bug)
Init with:
Run backup with:
Expected behavior (if a bug)
Ask for the archive password only once.
Environment
borgmatic version: 1.5.1
borgmatic installation method: Debian package
Borg version: 1.1.13
Python version: 3.8
operating system and version: Debian testing bullseye
Thank you for filing this! If you are referring to the encryption password, then my recommendation is to put the password in borgmatic's configuration file with the
encryption_passphrase
option. Or, if you prefer, you can run an external program to collect the passphrase with theencryption_passcommand
option.Finally, if you really don't want your passphrase sitting in borgmatic's configuration file, you can use the
BORG_PASSPHRASE
environment variable instead.See the configuration reference for more information.
Please let me know if that does it for you!
Thanks for the super quick answer! Now I see that the same info is available in the docs.
I think, I didn't pay a proper attention to it because the section starts with "Note that if you plan to run borgmatic on a schedule with cron". I planned to run borgmatic manually, so probably I just skipped the section. Maybe rewording that first sentence would help to avoid the confusion.
In my case, I am the only user with the root access and the disk is encrypted, so I will go with the easiest solution and put the encryption passpprase into the borgmatic's configuration file.
Glad to hear that does it! I'll definitely reword that section for clarity. I appreciate the feedback.