LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 07-24-2007, 02:03 AM   #1
DaneelGiskard
LQ Newbie
 
Registered: Apr 2007
Posts: 24

Rep: Reputation: 15
Encrypted incremental backups?


Hi all,

I'm using rsync for performing daily incremental backups of my data as described on this page: http://www.mikerubel.org/computers/rsync_snapshots/ .

Basically:
rm -rf backup.3
mv backup.2 backup.3
mv backup.1 backup.2
cp -al backup.0 backup.1
rsync -a --delete source_directory/ backup.0/


I face the problem that the backup disk is insecure, i.e., everybody in our group can access it.

Currently I decrypt the backup files before running the backup and encrypt them again afterwards. This is both insecure and inefficient.

Is ist possible, e.g., through pipes and programs like openssl / gnupg to encrypt / decrypt the backup files "on the fly"? I'm looking for a more integrated (and therefore more secure) solution than what I do currently.

What do you do to perform secure incremental backups?

Many thanks,
Michael
 
Old 07-24-2007, 07:59 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
I would use a separate disk partition to store the backups and encrypt that partition. In fact, that's what I actually do. The nice thing about encrypting the entire disk partition is that you don't have decrypted files on disk.

You can use the built in encryption in Linux but I have found that this can be a problem. Linux distributions do not all support the same encryption algorithms. I started using True Crypt a couple of years ago. Now it doesn't matter what the Linux distribution that I'm using supports natively. True Crypt provides a common encryption platform whether you change Linux distributions or if you are using Linux and Windows to read the same disk partition.

Look for the truecrypt tag on this web site (LQ) for more information about using True Crypt.

www.truecrypt.org

Last edited by stress_junkie; 07-24-2007 at 08:02 AM.
 
Old 07-24-2007, 08:30 AM   #3
DaneelGiskard
LQ Newbie
 
Registered: Apr 2007
Posts: 24

Original Poster
Rep: Reputation: 15
Hi!

Many thanks. In the meantime I found a program called "duplicate" which fullfills my requirements. It combine rsync with gnupg and seems to work well for encrypted incremental updates.

All the best,
Michael
 
Old 07-25-2007, 06:57 AM   #4
bakfupai
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: CentOS, RHEL, SourceMage, OpenBSD
Posts: 40

Rep: Reputation: 15
Just for the record, there is actually a program for windows that can read dm-crypt volumes. It's called FreeOTFE and you can get it here:
http://www.freeotfe.org/

I've tried it and it works but read the documentation here:
http://www.freeotfe.org/docs/Linux_volumes.htm
 
  


Reply


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
Tar won't correctly restore from incremental backups therealbeale Linux - Software 1 08-31-2006 10:02 PM
Are incremental backups possible/safe? imagirlgeek Linux - Newbie 4 08-25-2004 04:11 PM
incremental & differential backups to CD? SheldonPlankton Linux - General 0 06-30-2004 05:33 PM
Rsync for incremental backups? Phaethar Linux - Software 3 12-04-2003 01:27 PM
Incremental tar backups Pepe Linux - General 5 03-18-2002 03:31 AM


All times are GMT -5. The time now is 08:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration