Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > by-pkgid > a86ad1cb461a41cdff3e5e5dcdeb12a6 > files > 22

afio-2.5-6mdv2010.0.i586.rpm

#!/bin/sh
#
# This example shows how to configure afio to write pgp encrypted archives.
#
# Setting the PGPPASS environment variable is unsafe.
# 
# If you are using bash, you can use the input redirection by opening a second
# input stream linked to a file containing your pass phrase. Be careful about
# that file's permissions!
#
# working with any shell, but unsafe:
#
#export PGPPASS="your pass phrase"
#find * | afio -ov -Z -U -P "pgp" -Q "-fe" -Q "user_id_for_encryption" -Q "y" archive_file
#
# better, only working with bash(?):
#
export PGPPASSFD=3
find * | afio -ov -Z -U -P "pgp" -Q "-fe" -Q "user_id_for_encryption" -3 3 archive_file 3<passphrasefile