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 des3 -salt -k yourpassword | dd of=todays_backup.des3

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.des3. This file can only be decompressed using this password.

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

# dd if= todays_backup.des3 |openssl des3 -d -k yourpassword |tar zxf -

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.1274856259.txt.gz · Last modified: 2010-05-26 08:44 by brb