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.
- Just
cp/ddthe contents of the LUKS container like I would any other file? ddthe LUKS container itself - in other words, close the container and copy/clone the mapped volume, which is encrypted?ddthe logical LVM volume - in other words, close/“unmap”/whatever the logical volume anddd?ddthe 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. 😊


@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
@akunohana this is how I do it
Thanks! Judging from this and a quick glance on some tldr entries, it has pretty handy options/switches! :)
@akunohana posting my script made me go back and clean it up. Haha.