LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.

Notices


Reply
  Search this Thread
Old 11-03-2008, 05:48 AM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Rep: Reputation: 39
encrypting tar files saved to tape


Hi there --

We typically do tar jobs of entire directories to one of several tape drives. These drives can be DAT, DLT, SDLT, or LTO-4. One example would be the following:

Quote:
LOCATION: /diskarray/stripe7/usr/home
TAPE DEVICE FILE: /dev/rmt/5mn
COMMAND: tar -cvf * /dev/rmt/5mn
A new directive in our company has made mandatory encryption of all backups. Therefore, once the tar command shown above is completed, the files on tape would need to be encrypted.

We have openssl installed on our system, and the command syntax that would appear to apply here, using the above example would be as follows:

Code:
openssl des3 -salt -in /dev/rmt/5mn -out /dev/rmt/5mn.des3
After the above is completed, an encryption password would be entered by the administrator.

Is the above procedure the correct method? Also, is there any inherent danger to the tape or drive if the encryption is attempted on either? Thanks.
 
Old 11-03-2008, 07:50 AM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
I don't think that will work because /dev/rmt/5mn is a device file and not a regular file. What you'll most likely need to do is tar to a file instead of your device encrypt the file and then tar the encrypted file to your tape device. There are certain tape drives that do encryption you might want to look into those as well since that would let you do it in one step.
 
Old 11-03-2008, 07:59 AM   #3
AuroraCA
Member
 
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
Here is a way to do it all in a single command line:

http://kerneltrap.org/node/2737
 
Old 11-05-2008, 11:04 PM   #4
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Thumbs up

Quote:
Originally Posted by AuroraCA View Post
Here is a way to do it all in a single command line:

http://kerneltrap.org/node/2737
good info, i used ccrypt third party software, this one is good.


ENCRYPTION:

Code:
tar -zcvf - stuff|openssl des3 -salt -k secretpassword | dd of=stuff.des3
This will create stuff.des3...don't forget the password you put in place of secretpassword.

Code:
 dd if=stuff.des3 |openssl des3 -d -k secretpassword|tar zxf -
Ok above there is a "-" at the end... this will extract everything.
 
  


Reply



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
Encrypting Folders, Files and Partitions (What are the best Linux programs to use?) Amdx2_x64 Linux - Security 5 08-19-2008 07:22 PM
command line tool for encrypting files! Shioni Linux - Security 4 09-26-2006 04:38 PM
Doom 3: Using native installer and can't locate saved game files or config files JBailey742 Linux - Games 11 08-14-2006 06:09 PM
encrypting files in linux darkangel29 Linux - Software 1 11-27-2005 02:17 PM
software for encrypting files? mifan Linux - Security 8 08-13-2005 09:13 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX

All times are GMT -5. The time now is 02:43 PM.

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