YMMV

* your mileage may vary

Saturday, 31 January 2015

Beaglebone Black (BBB) Backup Image of eMMC using DD

Steps to follow to make a backup of the eMMC drive using DD:

Use at own risk - caution.

boot BBB to the SD card in

confirm eMMC is mmcblk1 using lsblk (otherwise backup could be corrupt)


assume backup to a target server to store backup

  • dd if=/dev/mmcblk1 | ssh user@targetserver 'dd of=sd-backup.img'
To restore a local drive from the image on the server, reverse the command (again making sure you are running of the SD card):
  • ssh user@targetserver 'dd if=sd-backup.img' | dd of=/dev/mmcblk1

3 comments:

  1. Hi, thanks for the example,

    It is also possible to make a backup/restore inside an USB key (3 MiB/Sec ... quarter of an hour)

    1. mount the USB key
    2. backup: sudo pv -tpreb /dev/mmcblk1 | dd of="/media/usb_disk/back.img"
    3. restore: pv -tpreb "/media/usb_disk/back.img" | sudo dd of="/dev/mmcblk1"

    ... pv is used to display the copy progress and the current speed

    ReplyDelete
  2. hi

    thanks for your useful tips
    i want to know that by this method it will backup whole the settings an installed library and packages or only the files datas?

    armin

    ReplyDelete
  3. It will a full image

    ReplyDelete