OMV 7 - Disk Clone Destination

  • I wanted to try using the Disk Clone plugin to backup my SD Card on my RPI4 and ran into an issue where the Destination does not show any File Systems or Shares under the Destination line.


    The share is there, I can see it on any system through SMB. There are other drives present as well but none are showing up when clicking on the pulldown for the destination. They are all present when I click on the Source.



    Is there something obvious I am overlooking?

    7.4.16-1 (Sandworm)

    Raspberry Pi 4 Model B Rev 1.5

    Linux 6.6.62+rpt-rpi-v8

  • Disk clone is for disk-to-disk.

    What you want is the backup plugin.


    On the CM4, I used a cmd line on a scheduled job.


    Later I can post it here.

    On phone now.

  • I would appreciate that Soma, thank you!

    These are the commands.


    Make sure the OUTPUT (of=) point's to where you want it to.(use a proper external PATH of your system)


    The INPUT if=/dev/mmcblk0 is the SDcard (on the CM, is the eMMC)

    If using a USB stick, the dev is sdX (where X is a specific letter that might change on boot/reboot)


    I installed PRIOR pigz (sudo apt install pigz) since it can use the 4 cores of the Pi/CM4 when compressing the previous created image.


    Code
    #Pi/CM Full backup command when on SDcard/eMMC
    sudo dd bs=4M if=/dev/mmcblk0 of=/srv/dev-disk-by-uuid-xxxx-yyyy-zzzzz/OS-Backup/piOS-`date +%y-%m-%d`.img conv=fsync status=progress
    
    #Compress img with pigz
    sudo pigz -vk /srv/dev-disk-by-uuid-xxxx-yyyy-zzzzz/OS-Backup/piOS-`date +%y-%m-%d`.img
    
    #Delete uncompressed images
    sudo rm -f /srv/dev-disk-by-uuid-xxxx-yyyy-zzzzz/OS-Backup/piOS-*.img


    In order to be sure that the image work's, flash it to a same/bigger size media (SDcard/USB stick) and boot the Pi with it.

    See if all is like it was with the old media.


    If you have questions, ask, ;)

    • Official Post

    I wanted to try using the Disk Clone plugin to backup my SD Card on my RPI4 and ran into an issue where the Destination does not show any File Systems or Shares under the Destination line.

    As far as I know, this plugin is used to clone the system disk from the GUI. So I think you need to connect an empty disk/SD card/USB pendrive to be able to clone, that's why the GUI is not showing you possible destinations of the cloned disk. Try it by connecting an empty disk.

    Keep in mind that once cloned you must disconnect the second disk. Both will have the same uuid and if you reboot with both drives connected at the same time you will have problems.

  • As far as I know, this plugin is used to clone the system disk from the GUI. So I think you need to connect an empty disk/SD card/USB pendrive to be able to clone,.....

    Oh, yes the destination has stuff on it and I assumed (doh!) that the cloning would simply overwrite everything with the same format and content.

    7.4.16-1 (Sandworm)

    Raspberry Pi 4 Model B Rev 1.5

    Linux 6.6.62+rpt-rpi-v8

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!