ExternalUSB+LUKS+LVM

From DrewWiki
Revision as of 16:09, 22 September 2009 by Drew (talk | contribs) (New page: cryptsetup luksFormat /dev/sdb cryptsetup luksOpen /dev/sdb external pvcreate /dev/mapper/external vgcreate vg-backup /dev/mapper/external lvcreate -l 17884 vg-backup mkfs.ext4 -m 0 /dev/v...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

cryptsetup luksFormat /dev/sdb cryptsetup luksOpen /dev/sdb external pvcreate /dev/mapper/external vgcreate vg-backup /dev/mapper/external lvcreate -l 17884 vg-backup mkfs.ext4 -m 0 /dev/vg-backup/lvol0

mount /dev/vg-backup/lvol0 /mnt/backup

umount /mnt/backup lvchange -a n /dev/vg-backup/lvol0 vgchange -a n vg-backup

cryptsetup luksClose /dev/sdb

rsync -av --delete --log-file=/root/raid5_backup.log --exclude /mnt/raid5/drew/video /mnt/raid5/ /mnt/backup

• Dry Run rsync -avn --delete --log-file=/root/raid5_backup.log --exclude drew/video /mnt/raid5/ /mnt/backup