User Tools

Site Tools


linux:backup-with-dd

Backup with dd

sudo dd if=/dev/mmcblkX of=/path/to/image.img status=progress

Backup with gzip

sudo dd if=/dev/mmcblkX | gzip -c > /path/to/image.img.gz

Restore with dd

sudo dd if=/path/to/image.img of=/dev/mmcblkX status=progress

Restore with gzip

gunzip -c /path/to/image.img.gz | sudo dd of=/dev/mmcblkX

Restore xz-image

xzcat /path/to/image.img.xz | sudo dd of=/dev/mmcblk0 status=progress
linux/backup-with-dd.txt · Last modified: 2023/04/03 16:18 by els

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki