11-07-2019, 12:23 AM
Hello,
I use either DD or Partclone[1]. DD is reliable in recreating the whole image but backing up 64gb of data when 6gb is used is time consuming..
Partclone will back up a partition to a file and backs up only used space. I use sfdisk --dump to keep the partition layout the same.
I usually do something like
sfdisk --dump /dev/mmcblk1 > mmcblk1.sfdisk.dump
partclone.ext4 -s /dev/mmcblk1p1 -o ./pinebookpro-mmcblk1p1.partclone -c -N
partclone.ext4 -s /dev/mmcblk1p2 -o ./pinebookpro-mmcblk1p2.partclone -c -N
You can restore to a larger partition without issue and I *think* you can restore to a smaller partition if the used space of the back is (obviously), less then the available space. And it works with a wide variety of file system types.
[1] https://partclone.org
I use either DD or Partclone[1]. DD is reliable in recreating the whole image but backing up 64gb of data when 6gb is used is time consuming..
Partclone will back up a partition to a file and backs up only used space. I use sfdisk --dump to keep the partition layout the same.
I usually do something like
sfdisk --dump /dev/mmcblk1 > mmcblk1.sfdisk.dump
partclone.ext4 -s /dev/mmcblk1p1 -o ./pinebookpro-mmcblk1p1.partclone -c -N
partclone.ext4 -s /dev/mmcblk1p2 -o ./pinebookpro-mmcblk1p2.partclone -c -N
You can restore to a larger partition without issue and I *think* you can restore to a smaller partition if the used space of the back is (obviously), less then the available space. And it works with a wide variety of file system types.
[1] https://partclone.org