Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 01-18-2010, 10:52 AM   #1
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Rep: Reputation: 33
Encrypting Backup Files


I m going to create a backup script for my files/folders...

This script creates tar.gz of the folders/files you want.

This i want is to encrypt these .tar.gz files and when i need them to decrypt them. Does anyone have an idea on how to encrypt these files ?

my script looks like this :

BACKUPDATE=$(date +%d%m%Y)

cd /home/n3t

echo "taking Backup of your home/n3t/Downloads dir"
tar -czvf /media/disk/BACKUP/home/Downloads/$BACKUPDATE.tar.gz ./Downloads
Thanks for any answer
Old 01-18-2010, 11:14 AM   #2
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 116Reputation: 116
File Encryption:

Disk Encryption:
Old 01-19-2010, 09:14 PM   #3
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
I recommend gnupg (as mentioned in the "file encryption" article above), or openssl's enc program.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
debian 5 - encrypting files - how to? dlugasx Linux - Security 2 10-27-2009 04:30 PM
Encrypting backup folder and rsync? toaster.waffle Linux - Security 3 05-31-2008 04:28 AM
command line tool for encrypting files! Shioni Linux - Security 4 09-26-2006 05:38 PM
encrypting files in linux darkangel29 Linux - Software 1 11-27-2005 03:17 PM
software for encrypting files? mifan Linux - Security 8 08-13-2005 10:13 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration