I need to create off-site full backups of an LVM block device. Thinking the old
dd over SSH method.
To ensure I have a consistent backup, should I create an LVM snapshot first?
So new changed blocks are written to the snapshot logical volume while I
dd the original logical volume?
Then I'll just
lvremove the snapshot to continue writing to the main logical volume.
Also I see that everyone says
dd is the slowest and most inefficient way of doing this. What's the other option?
I can't see how you can get much faster for a full backup of a block device, without compression.
EDIT: Ok one thing I just remembered is that of course
dd will transfer the blocks regardless of data at the FS-level. So for a 300GB LV with a single 1K text file,
dd will transfer the full 300GB worth of blocks. Fair enough. The LV I'll be doing this to is kept at about 80% so not too worried about the extra 20% being transferred each time.