Re: Secure backup of encrypted partition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



n Mon, 16 Jun 2003 14:23:41 -0500
Rob McGee <i812@xxxxxxxxxxxx> wrote:

> On Mon, Jun 16, 2003 at 08:43:59PM +0200,
>   Anonymous via the Cypherpunks Tonga Remailer wrote:
> > When I use tar -o ...... $FILE | gpg -c ......
> > 
> > (please sobebody help to write a working example)
> 
> See "tar --help". I don't know what your -o is supposed to do.
> Generally GNU tar writes to stdout by default, so you just do
> something like this:
>   tar -cp files-to-backup | gpg -c > outputfile
> Then decrypt with this:
>   gpg outputfile > secret.tar
> or restore with this:
>   gpg outputfile | tar -xp
> 
> > and my swap is encrypted, can some unencrypted temp files be 
> > created in /tmp or another dir?
> 
> I think neither tar nor gpg does this. (If gpg does, it's a SERIOUS
> security hole!) But to be safe, if you're using bash:
>   export TMPDIR=/path/to/an/encrypted/fs
> IIUC most things will use $TMPDIR for temporary files, but some may be
> hard-coded to use /tmp.
> 
>     Rob - /dev/rob0
> -

tar -O is eqv tar --to--stdout

Have gpg designed to encrypt ~Gigabytes of files from stdin without unsecure ~tmp
files creation


-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux