Multiple files

Eric Buchanan freebsd at usol.com
Fri Feb 4 01:50:35 CET 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I just used tar and gpg to encrypt the file as shown earlier, and it decrypted 
fine, but when I went to untar it, I got this error:

backup/temp/
backup/temp/misc/
backup/temp/misc/autprint.mrk
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Error exit delayed from previous errors

This is version 1.4.0 on FreeBSD 4.11. It only decrypts the first tiny bit of 
the decrypted tar archive. It also repeated the exact same error messages 
when I ran "gpg -r root  --encrypt-files -sta b.tar" and then after 
decrypting I run  "tar xvf b.tar." My OpenBSD installation is hosed right now 
so I can't try repeating this on another platform. 

Any ideas? TIA,
Eric Buchanan

El Jue 03 Feb 2005 09:54 AM, Todd escribió:
> Johan Wevers wrote:
> > Kevin Smith wrote:
> >>Is there a way to encrypt multiple files at one time...say I want to
> >>encrypt EVERY file in a folder called tobeencrypted...any easy way??
> >
> > #!/bin/bash
> > for i in *; do gpg -e -r myname $i; done
>
> Or, in 1.2.5 and above, use the multifile option:
>
>     gpg --multifile --encrypt tobeencrypted/*
>
> That would get you an individually encrypted file for each file in the
> directory.  You might also want to just tar up the directory and then
> encrypt that.
>
>     tar -cf - dir/ | gpg -r 0x0123456 --encrypt -o dir.tar.gpg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCAsbe//GaROrFlAkRAnEnAKDrEWzsmWM4RWYAYE4RKQOSUbDWaQCeIc+4
9Koqv5hDqBS4oJ/5w4Z9mIw=
=yUmJ
-----END PGP SIGNATURE-----



More information about the Gnupg-users mailing list