apt-get install cryptsetup
sudo mkswap -f /dev/sda6 sudo swapon /dev/sda6
/dev/hda6 none swap sw,pri=1 0 0
echo "volume password" | sudo cryptsetup luksOpen /dev/mapper/vg-lv my_encrypted_volume mount /dev/mapper/my_encrypted_volume /mount/point
sudo umount /media/my_device sudo cryptsetup luksClose my_encrypted_volume
lsblk
sudo cryptsetup luksFormat /dev/mapper/<vg name>-<lv name>
sudo cryptsetup luksOpen /dev/mapper/<vg name>-<lv name> mapper/<vg name>-<lv name>_crypt sudo mkfs.ext4 /dev/mapper/<vg name>-<lv name>_crypt
sudo mount /dev/mapper/<vg name>-<lv name>_crypt /mountpoint
rsync -av --progress --exclude '/home/user/VirtualBox VMs' /home/user /mountpoint/