Created
November 24, 2018 16:17
-
-
Save tondrej/763bd507f56ce33665aec3da663eef0d to your computer and use it in GitHub Desktop.
restore.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# http://errietta.me/blog/luks-clonezilla/ | |
cryptsetup luksOpen /dev/sda5 crypt | |
modprobe dm-mod | |
vgchange -ay | |
tar -jxvf sda1.img.tar.bz2 | |
partclone.ext4 -r -s ./sda1.img -o /dev/sda1 | |
rm sda1.img | |
tar -jxvf mint.img.tar.bz2 | |
partclone.ext4 -r -s ./mint.img -o /dev/mapper/mint--vg-root | |
rm mint.img |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment