submitted 2 months ago* (last edited 2 months ago) by to c/techsupport@lemmy.world
 

In this economy, I somehow managed to get my hands on a brand new 18TB IronWolf Pro HDD for $500.

I have four 4TB SSDs on top of which I have made a logical volume with lvm, which in turn I encrypted with LUKS. Now, I want to backup everything inside that LUKS container, but I'm a little but unsure of which "layer" to copy or to clone.

  1. Just cp/dd the contents of the LUKS container like I would any other file?
  2. dd the LUKS container itself - in other words, close the container and copy/clone the mapped volume, which is encrypted?
  3. dd the logical LVM volume - in other words, close/"unmap"/whatever the logical volume and dd?
  4. dd the underlying raw disks? Although I don't see how that would be recoverable/usable/readable on the backup HDD.

The data is not critical. It's just some Linux ISOs that would be nice to have backed up so that I don't have to download them again.

Edit: the HDD is to be installed on the same system as the SSDs. The HDD is also going to be encrypted, but without a logical volume, since it has enough space on its own.

Please advise. ๐Ÿ˜Š

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [S] 1 point 2 months ago* (4 children)

Thanks! The HDD is to be installed on the same system as the SSDs. The HDD is also going to be encrypted, but without a logical volume, since it has enough space on its own.

I haven't worked muh with rsync, but I guess this is a good opportunity to learn! What's its advantages over dd, which I find plain and simple otherwise?

  • source
  • parent
  • hideshow 4 child comments
  • [โ€“] 2 points 2 months ago (3 children)

    @akunohana The nice thing about rsync is that it doesn't really trust the connection, which is good even in local copies between hard drives. It means that if something is disrupted it can be continued again.

    It's also very nice that --dry-run is an option. I have scripts that use rsync internally and I make sure dry is an option in each.

    This seems a nice write-up on it all:

    https://www.digitalocean.com/community/tutorials/how-to-use-rsync-to-sync-local-and-remote-directories

  • source
  • parent
  • hideshow 3 child comments
  • [โ€“] 1 point 2 months ago (2 children)