#!/bin/bash umount /dev/sdc1 umount /dev/sdc2 umount /dev/sdc3 # Sauvegarde du MBR: dd if=/dev/sdc of=mbr.bin bs=512 count=1 # Sauvegarde des 3 partitions: partclone.vfat -c -d -s /dev/sdc1 | pigz > sdc1.BOOT.partclone.fat32.gz partclone.ext4 -c -d -s /dev/sdc2 | pigz > sdc2.RECALBOX.partclone.ext4.gz partclone.ext4 -c -d -s /dev/sdc3 | pigz | split -d -b 4000M - sdc3.SHARE.partclone.ext4.gz. md5sum * > md5sums chmod 777 *