Results 1 to 3 of 3
I have quite a few log files i need to tarball, encrypt, and copy the files to a usb thumb drive.
I do:
Code:
tar -cf file.tar <directory where files ...
- 08-06-2006 #1Just Joined!
- Join Date
- Jul 2005
- Location
- look out your window
- Posts
- 72
Encrypting a tarball
I have quite a few log files i need to tarball, encrypt, and copy the files to a usb thumb drive.
I do:
Code:tar -cf file.tar <directory where files are>
that all works fine, and i get file.tar.gpg...Code:gpg -e -r "<my user>" file.tar
but when i try to decrypt the file later by doing:
It spits out:Code:gpg -d file.tar.gpg
over and over and over againCode:2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c
I have no idea why its doing this...any ideas?
- 08-07-2006 #2Just Joined!
- Join Date
- Aug 2006
- Posts
- 3
Try looking in the man pages for reference. You should get a better result by using gpg --decrypt-files file.tar.gpg and entering the passphrase.
Good hunting!
Trying looking in the man pages for reference, in the meantime use the switch --decrypt-files with gpg and that should get you where you need to be. The -d reference you are using may be old/outdated. If you don't have man pages use the net for the version of the command you are using.Last edited by bigtomrodney; 08-07-2006 at 11:03 PM.
- 08-15-2008 #3
You need to use the -o or --output option for gpg to output it to a file



