Find the answer to your Linux question:
Results 1 to 5 of 5
Hello, i have around 20 backup files tar.gz with sensitive data. The sizes of these files are from around 200MB to around 20GB I want to secure these files so ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User postcd's Avatar
    Join Date
    Apr 2011
    Posts
    311

    How to encrypt / password protect big linux file?


    Hello,

    i have around 20 backup files tar.gz with sensitive data. The sizes of these files are from around 200MB to around 20GB

    I want to secure these files so no one can read, use its contents. only me

    the method of encrypting, password protecting them should be fast, so for example in case of 20GB file, it wont take more than like 10 minutes of server work to "encrypt it"

    it should be able to "encrypt/decrypt" them from linux command line.

    Please do you have any ideas on how to do it?

  2. #2
    Linux Engineer
    Join Date
    Dec 2013
    Posts
    1,078
    gpg is a standard cl tool that will do it.

    "man gpg" should cover it.

  3. #3
    Linux Engineer docbop's Avatar
    Join Date
    Nov 2009
    Location
    Woodshed, CA
    Posts
    905
    We used to gzip our large database files to reduce the size, then use openssl to encrypt them before moving them to offsite backup.

  4. #4
    Linux User postcd's Avatar
    Join Date
    Apr 2011
    Posts
    311
    Thx, i tested openssl, there are examples on the internet. use SE to find. I wont use gpg because to bother generate key, unless GPG is much faster than openssl, which i dont know. Another found options: truecrypt (did not worked on my openvz vps), ccrypt
    Last edited by postcd; 01-10-2014 at 10:32 AM.

  5. #5
    Linux User sgosnell's Avatar
    Join Date
    Oct 2010
    Location
    Baja Oklahoma
    Posts
    464
    You don't need to generate a key every time you encrypt a file with gpg. If you're doing that, you're doing it wrong.

Posting Permissions

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