Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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>
    Code:
    gpg -e -r "<my user>" file.tar
    that all works fine, and i get file.tar.gpg...
    but when i try to decrypt the file later by doing:
    Code:
    gpg -d file.tar.gpg
    It spits out:
    Code:
    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
    over and over and over again
    I have no idea why its doing this...any ideas?

  2. #2
    Just 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 10:03 PM.

  3. #3
    Just Joined! emperor559's Avatar
    Join Date
    Apr 2008
    Posts
    5
    You need to use the -o or --output option for gpg to output it to a file

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •