All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] How to backup entire encrypted HDD?
@ 2013-04-11  4:12 John Gomez
  2013-04-11  9:39 ` orinoco
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: John Gomez @ 2013-04-11  4:12 UTC (permalink / raw)
  To: dm-crypt@saout.de

[-- Attachment #1: Type: text/plain, Size: 1309 bytes --]

Hello,
Can someone please add a section to the cryptsetup FAQ that explains how to backup a HDD with whole disk encryption?


I have a 500GB 
HD encrypted with LUKS, partitioned with LVM (I think) and formatted ext4. The /boot partition is on a USB stick. I want to make a backup of the HDD. Say my first 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 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.  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 (or GNU ddrescue or similar) using the parameters if=/sda of=/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 an image of the entire drive?  Is there any other way to verify the integrity of the backup?

Any suggestions are appreciated.


Thank you
JG

[-- Attachment #2: Type: text/html, Size: 1968 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-04-11 15:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-11  4:12 [dm-crypt] How to backup entire encrypted HDD? John Gomez
2013-04-11  9:39 ` orinoco
2013-04-11 13:47 ` Robert Nichols
2013-04-11 15:16 ` Arno Wagner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.