You are not logged in.

#1 2017-02-17 14:28:55

leonidas
Member
From: Greece
Registered: 2012-08-31
Posts: 49
Website

[Solved] how to provide passwords to duplicity?

When I execute my backup script, pinentry ask me to provide the passwords for encrypt-key and sign-key.
I have already export them as variables in my script (PASSPHRASE, SIGN_PASSPHRASE) but pinentry ask them again. When I provide them to pinentry it doesn't reask them (until next reboot or killing gpg-agent).
How can I automatically provide the passwords for encrypt and sign keys without interruption from pinentry?
My backup script:

#!/bin/bash
export GOOGLE_DRIVE_SETTINGS=~/.duplicity/credentials
export PASSPHRASE=<password1>
export SIGN_PASSPHRASE=<password2>

duplicity --encrypt-key <key1> --sign-key <key2>  /home/user/data  gdocs://<user>@gmail.com/backup

Last edited by leonidas (2017-02-17 20:02:04)

Offline

#2 2017-02-17 17:14:58

leonidas
Member
From: Greece
Registered: 2012-08-31
Posts: 49
Website

Re: [Solved] how to provide passwords to duplicity?

That solved the problem:

https://wiki.archlinux.org/index.php/Gn … passphrase

but now the enigmail doesn't work. It doesn't ask for password to decrypt messages.

I'' try to remove pinentry-mode loopback from  ~/.gnupg/gpg.conf and check if it will fix the enigmail and pass gpg --pinentry-mode loopback to duplicity

Offline

Board footer

Powered by FluxBB