Difference between revisions of "Explorer/RaspberryPi/BackupRestore"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
* Backup | * Backup | ||
dd bs=512 count=1 if=/dev/sde of=mbr.img | |||
sync | |||
umount /media/pprz/boot | |||
sudo partclone.fat --clone --source /dev/sde1 --output - | bzip2 -9 > boot.img | |||
umount /media/pprz/rootfs | |||
sudo partclone.extfs --clone --source /dev/sde2 --output - | bzip2 -9 > system.img | |||
* Restore | * Restore | ||
dd bs=512 count=1 of=/dev/sde if=mbr.img | |||
sync | |||
sudo partprobe | |||
umount /media/pprz/* | |||
sudo bunzip2 -c boot.img | sudo partclone.vfat --restore --source - --output /dev/sde1 | |||
sudo bunzip2 -c system.img | sudo partclone.extfs --restore --source - --output /dev/sde2 | |||
* [[Explorer/RaspberryPi]] | * [[Explorer/RaspberryPi]] |
Latest revision as of 02:53, 26 June 2020
- Backup
dd bs=512 count=1 if=/dev/sde of=mbr.img sync umount /media/pprz/boot sudo partclone.fat --clone --source /dev/sde1 --output - | bzip2 -9 > boot.img umount /media/pprz/rootfs sudo partclone.extfs --clone --source /dev/sde2 --output - | bzip2 -9 > system.img
- Restore
dd bs=512 count=1 of=/dev/sde if=mbr.img sync sudo partprobe umount /media/pprz/* sudo bunzip2 -c boot.img | sudo partclone.vfat --restore --source - --output /dev/sde1 sudo bunzip2 -c system.img | sudo partclone.extfs --restore --source - --output /dev/sde2