Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KOkGoY5EJZdT for ; Thu, 11 Apr 2013 06:12:43 +0200 (CEST) Received: from nm16.bullet.mail.bf1.yahoo.com (nm16.bullet.mail.bf1.yahoo.com [98.139.212.175]) by mail.saout.de (Postfix) with SMTP for ; Thu, 11 Apr 2013 06:12:43 +0200 (CEST) Message-ID: <1365653560.6456.YahooMailNeo@web162401.mail.bf1.yahoo.com> Date: Wed, 10 Apr 2013 21:12:40 -0700 (PDT) From: John Gomez MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-1911863903-799828711-1365653560=:6456" Subject: [dm-crypt] How to backup entire encrypted HDD? Reply-To: John Gomez List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "dm-crypt@saout.de" ---1911863903-799828711-1365653560=:6456 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hello,=0ACan someone please add a section to the cryptsetup FAQ that explai= ns how to backup a HDD with whole disk encryption?=0A=0A=0AI have a 500GB = =0AHD encrypted with LUKS, partitioned with LVM (I think) and formatted ext= 4. The /boot partition is on a USB stick. I want to make a backup of the HD= D. Say my first drive is /sda and the backup drive is /sdx and I want the b= ackup to go in /sdx3.=0A=0AAFAIK, I have two choices;=0A1: Create an encryp= ted partition on /sdx say, /sdx3, mount and decrypt /sda, then use rsync to= copy the filesystem from /sda to /sdx3. Not the worst choice but there are= flaws.=A0 What if I want to do this over a network?=A0 What if I want to d= o this on /sdx that is already partitioned? (If /sdx is already partitioned= I can not encrypt the partition /sdx3. Is this correct?)=0A=0A2: Use dd (o= r GNU ddrescue or similar) using the parameters if=3D/sda of=3D/sdx3/backup= .img.=A0 Then the problems are: how do I view the files?=A0 This post descr= ibes mounting an image of a partition: http://www.rebelzero.com/howto/backu= p-and-restore-files-tofrom-a-luks-encrypted-partition-image-file/189.=A0 Do= es anyone know a better way to do this?=A0 Will this work for an image of t= he entire drive?=A0 Is there any other way to verify the integrity of the b= ackup?=0A=0AAny suggestions are appreciated.=0A=0A=0AThank you=0AJG=0A ---1911863903-799828711-1365653560=:6456 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,Can someone please add a section to the cryptsetup FAQ that expl= ains how to backup a HDD with whole disk encryption?

I have a 500GB =0AHD encrypte= d with LUKS, partitioned with LVM (I think) and formatted ext4. The /boot p= artition is on a USB stick. I want to make a=0A backup of the HDD. Say my f= irst drive is /sda and the backup drive is /sdx and I want the backup to go= in /sdx3.

AFAIK, I have two choices;
1: Create an encrypted part= ition on /sdx say, /sdx3, mount and decrypt /sda, then use rsync to copy th= e filesystem from /sda to /sdx3. Not the worst choice but there are flaws.&= nbsp; What if I want to do this over a network?  What if I want to do = this on /sdx that is already partitioned? (If /sdx is already partitioned I= can not encrypt the partition /sdx3. Is this correct?)

2: Use dd (o= r GNU ddrescue or similar) using the parameters if=3D/sda of=3D/sdx3/backup= .img.  Then the problems are: how do I view the files?  This post= describes mounting an image of a partition: http://www.rebelzero.com/howto= /backup-and-restore-files-tofrom-a-luks-encrypted-partition-image-file/189.=   Does anyone know a better way to do this?  Will this work for a= n image of the entire drive?  Is there any other way to verify the integrity of the backup?

Any suggestion= s are appreciated.

Thank you
JG
---1911863903-799828711-1365653560=:6456--