#3376 PR merged: Using Blockclone to save a disk image of a RPi system

Labels: enhancement, fixed / solved / done

gdha opened issue at 2025-01-02 14:13:

Pull Request Details:
  • Type: New Feature

  • Impact: Low

  • Reference to related issue (URL): #3333

  • How was this pull request tested? Manually see #3333

  • Description of the changes in this pull request: See the usr/share/rear/conf/examples/blockclone.conf file which contains a full description.

ds2k5 commented at 2025-01-27 15:56:

Thanks, is a local DISK (USB-Disk) also possible ?

schlomo commented at 2025-01-27 16:07:

Thanks, is a local DISK (USB-Disk) also possible ?

Hi @ds2k5 can you please share more context? What would you expect from ReaR beyond what a plain dd if=/dev/sda of=/dev/sdb would accomplish?

ds2k5 commented at 2025-01-27 16:46:

mount /dev/sdb /mnt
dd if /dev/mmcblk0 /mnt/sdcard.img

schlomo commented at 2025-01-27 17:22:

@ds2k5 well, yes. So I'm wondering what you expect from ReaR to accomplish for RPI. It seems for me that doing what you said (mount, dd) is much simpler than configuring ReaR with BACKUP=BLOCKCLONE.

That is why it would help me to better understand your use case and what you expect from ReaR that you couldn't accomplish otherwise easily.

ds2k5 commented at 2025-01-27 17:26:

sorry my english poor....

Rear should do the job of DD but with less space need for image.
But it should be a solution that the Backup could be written simple to new sdcard
if the 1.st SDCard is dead for example.

schlomo commented at 2025-01-27 17:37:

If you want the new SD card to be directly usable then it will need to be at least as large as your original SD card. If you want to create an image of the main SD card that takes up less space before you put it onto a new SD card, then the BLOCKCLONE mode implemented in this PR will do the job - which is why we ask for your feedback before merging it.

gdha commented at 2025-02-24 12:34:

@rear/contributors If there are no objections then I would like to merge the PR by tomorrow evening?


[Export of Github issue for rear/rear.]