-
-
Save viliampucik/3004f88f73a365735747dd214d1c200d to your computer and use it in GitHub Desktop.
Disk and Filesystem Backup and Restore
This file contains 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
# Backup | |
sudo dd if=/dev/mmcblk0 count=1 bs=512 of=mmcblk0.mbr | |
sudo fsarchiver savefs mmcblk0.fsa /dev/mmcblk0p1 /dev/mmcblk0p2 -v -j 4 | |
# Info | |
fsarchiver archinfo mmcblk0.fsa | |
# Restore | |
sudo dd if=mmcblk0.mbr count=1 bs=512 of=/dev/mmcblk0 | |
sudo partprobe /dev/mmcblk0 | |
sudo fsarchiver restfs mmcblk0.fsa id=0,dest=/dev/mmcblk0p1 id=1,dest=/dev/mmcblk0p2 -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment