Add a vim modeline with indentation settings.
[matthijs/upstream/backupninja.git] / FAQ
1 Q: duplicity works fine when run standalone, but complains about gpg
2 "public key not found" when run from backupninja
3
4 A: We bet you're using sudo to run both duplicity and backupninja, and have been
5 using sudo as well when generating the GnuPG key pair used by duplicity.
6
7 Quick fix: generate a new GnuPG key pair in a root shell, or using
8 "sudo -H" instead of plain sudo.
9
10 Another solution: import the GnuPG keypair into the root user's keyring, taking
11 care of running "gpg --update-trustdb" in a root shell or using "sudo -H"
12 afterwards, in order to tag this keypair as "ultimately trusted".
13
14 Detailed explanation: sudo does not change $HOME by default, so GnuPG saved the
15 newly generated key pair to your own keyring, rather than to the root user's
16 keyring. Running "sudo duplicity" hides the problem, as it uses your own
17 keyring. Running "sudo backupninja" reveals the problem, as backupninja uses
18 "su" to make sure it runs duplicity in a real root environment, i.e. using the
19 root user's GnuPG keyring.