gpg password not exported
Hi
On debian 7 : i've installed backupninja and duplicity I want encrypted and signed backups
BUT backupninja does not export the PASSPHRASE to duplicity
The following patch solve the issue .. BUT i don't really now if su -m switch is safe
--- /tmp/dup 2014-02-28 15:26:21.046281563 +0100 +++ /usr/share/backupninja/dup 2014-02-28 15:26:28.278361957 +0100 @@ -334,7 +334,7 @@ export PASSPHRASE=$password export FTP_PASSWORD=$ftp_password output=`nice -n $nicelevel \ - su -c \ + su -m -c \ "$execstr_precmd duplicity $execstr_command $execstr_options $execstr_source --exclude '**' / $execstr_serverpart >$outputfile 2>&1"` exit_code=$? debug $output
hope this will help
(from redmine: created on 2014-02-28)
Edited by Guillaume Subiron