I'm playing around with duplicity via a script that looks like this:export PASSPHRASE=SomeLongGeneratedHardToCrackKeyduplicity /etc scp://FtpUserID@ftp.domain.com/etcunset PASSPHRASEHere's a link to the ubuntu documentation.If I want to set the PASSPHRASE from the command line instead of setting it from the script how do I do that?I tried (Via the command line):PASSPHRASE='SomeLongGeneratedHardToCrackKey'export -n PASSPHRASEHowever this does not work.  Duplicity still asks me to enter the passphrase for the gpg key.Thoughts?TIA,Ole
Exporting a Shell Variable From the Command Line
bash;duplicity
Shells are designed so that scripts and interactive command line sessions look the same. That means that you can effectively retype:export PASSPHRASE=SomeLongGeneratedHardToCrackKeyduplicity /etc scp://FtpUserID@ftp.domain.com/etcunset PASSPHRASESince exporting for variables for a particular command only is common, there's a shortcut for it:PASSPHRASE=SomeLongGeneratedHardToCrackKey \duplicity /etc scp://FtpUserID@ftp.domain.com/etcexport -n doesn't work because export -n is the opposite of export as help export explains: ...  -n    remove the export property from each NAME ...