User Tools

Site Tools


blog:create_encrypted_tar_files

This is an old revision of the document!


Create encrypted tar files

# tar -zcf – todays_backup|openssl enc -aes-256-cbc -salt -pass pass:yourpassword -out todays_backup.tgz.aes-256-cbc

Replace yourpassword with a password of your own. Keep the password to yourself, and keep it carefully. The above command will generate a file called todays_backup.tgz.aes-256-cbc. This file can only be decompressed using this password.

To extract your protected archive file todays_backup.des3 use the following command:

# openssl enc -d -aes-256-cbc -out todays_backup.tgz

Ref: http://www.simplehelp.net/2009/02/19/adding-encryption-to-protect-your-backups-on-linux/

~~LINKBACK~~

Discussion

Enter your comment. Wiki syntax is allowed:
   _  __   __  ___  _   __  ____    __  ___
  / |/ /  /  |/  / | | / / / __ \  /  |/  /
 /    /  / /|_/ /  | |/ / / /_/ / / /|_/ / 
/_/|_/  /_/  /_/   |___/  \____/ /_/  /_/
 
blog/create_encrypted_tar_files.1274861512.txt.gz · Last modified: 2010-05-26 10:11 by brb