Passing password passphrase to borgmatic inside a bash script. #363
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#363
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?
The Original recomended systemd method dosn't work for me; trying to execute a systemd service from a script but bormatic ask for password passphrase when executing a backup.
I would love to use an alias with something like Pass( The Linux Pasword Manager ) in the lines of:
pass_import=
pass show borgmatic | head -n1
that would promp for my master password and grab the password for my encypted borgmatic passphrase... thing is is it possible to pass that to borgmatic so it dosent need user input during execution?
borgmatic version: [1.5.10]
borgmatic installation method: [AUR]
Borg version: [1.1.13]
Python version: [3.8.5]
operating system and version: [Arch Linux]
Thanks for the question! Have you tried the
encryption_passcommand
option? It would look something like this in borgmatic's configuration:However, I don't believe the
| head -n1
portion will work, because Borg doesn't support running actual shell commands like that to get the passphrase. However, Borg does have an example usingpass
directly: https://borgbackup.readthedocs.io/en/stable/quickstart.html#passphrase-notesSo maybe give that a shot, and if that doesn't work, Borg's documentation needs updating to show a working
pass
example (if possible)?Closing due to inactivity. However, please feel free to reopen if you'd like to discuss further.