Borgamtic asks 3 times for the archive password during a backup #351

Closed
opened 2020-08-10 17:15:55 +00:00 by SergiyKolesnikov · 3 comments

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:

sudo borgmatic init --encryption repokey

Run backup with:

sudo borgmatic

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

#### 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: ``` sudo borgmatic init --encryption repokey ``` Run backup with: ``` sudo borgmatic ``` #### 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
Owner

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 the encryption_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!

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 the `encryption_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](https://torsion.org/borgmatic/docs/reference/configuration/) for more information. Please let me know if that does it for you!
witten added the
question / support
label 2020-08-10 17:20:38 +00:00

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.

Thanks for the super quick answer! Now I see that the same [info is available in the docs](https://torsion.org/borgmatic/docs/how-to/set-up-backups/#encryption). 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.
Owner

Glad to hear that does it! I'll definitely reword that section for clarity. I appreciate the feedback.

Glad to hear that does it! I'll definitely reword that section for clarity. I appreciate the feedback.
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#351
No description provided.