Using GPG to encrypt tape backups

Carl Litt carl@execulink.com
Wed Aug 7 04:29:02 2002


Yeah, I guess that would work.  Missed it in the man page.

Regardless, I am still not getting proper backups to the tape.  I
get this error at the end of the backup:

gpg: /dev/nst0: write error: Invalid argument
gpg: iobuf_flush failed on close: file write error

I get this regardless of whether I use -o /dev/nst0 or whether I redirect 
stdout to /dev/nst0.  When trying to verify the backup I get this:

gpg: block_filter 0x80e2a28: read error (size=12118,a->size=12118)
gpg: block_filter: pending bytes!

It appears that GPG can't close the output file descriptor properly when 
it's a tape device.  Shouldn't I be able to use GPG as a pipe filter
in this manner?

Carl


On Mon, 5 Aug 2002, Steve Butler wrote:

> Did you try the --yes option with --batch?
> 
> -----Original Message-----
> From: Carl Litt [mailto:litt@execulink.com]
> Sent: Friday, August 02, 2002 5:02 PM
> To: gnupg-users@gnupg.org
> Subject: Using GPG to encrypt tape backups
> 
> 
> I'm trying to use GPG as a filter to encrypt my tape backups:
> 
> tar cf - backup | gpg -e -r myID -z 9 -o /dev/nst0
> 
> The problem is that GPG wants to prompt because /dev/nst0 exists.
> If I answer "y" it works fine, but I'm trying to automate this.  If I use
> --batch, it complains about the existing file and aborts.
> 
> I have also tried without the output option, instead redirecting
> stdout to /dev/nst0, but I get "write error: Invalid argument" errors.
> I even tried piping gpg to dd of=/dev/nst0 bs=512, but no go either.
> 
> It does't seem to be possible to use gpg as a filter in this manner.
> Does anyone have any ideas?  I would like to see an option to
> overwrite the output file, but chances are slim that will be done.
> Creating a temporary file and dumping that is not an option.
> 
> Thanks,
> 
> Carl Litt
> Network Administrator
> Execulink Internet
> 
> 
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
> 
> 
> CONFIDENTIALITY NOTICE:  This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
> 
> 
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
> 
>