openmediavault-backup 6.0.7 plugin

    • Offizieller Beitrag

    I pushed 6.0.8 to the repo an hour ago.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I pushed 6.0.8 to the repo an hour ago.

    Oh, sorry. OK I've updated. It's not trying to copy the Windows partition but it still wants to copy esppart which is all of /dev/sda before it copies the grub files.
    If I comment out

    Code
          dd if=${esppart} bs=1M conv=sync,noerror status=progress | gzip -c > "${backupDir}/${OMV_BACKUP_FILE_PREFIX}-${date}.espdd.gz"

    I get a complete backup with just /dev/sda1:


    Code
    Public/omvbackup
    total 3.2G
    -rw-rw-rw-+ 1 root users  981 Sep 14 18:30 backup-omv-2022-09-14_18-30-12.blkid
    -rw-rw-rw-+ 1 root users 3.2G Sep 14 18:36 backup-omv-2022-09-14_18-30-12.dd.gz
    -rw-rw-rw-+ 1 root users  556 Sep 14 18:30 backup-omv-2022-09-14_18-30-12.fdisk
    -rw-rw-rw-+ 1 root users  446 Sep 14 18:30 backup-omv-2022-09-14_18-30-12.grub
    -rw-rw-rw-+ 1 root users 1.4K Sep 14 18:30 backup-omv-2022-09-14_18-30-12.grubparts
    -rw-rw-rw-+ 1 root users  882 Sep 14 18:30 backup-omv-2022-09-14_18-30-12.packages
    • Offizieller Beitrag

    but it still wants to copy esppart which is all of /dev/sda before it copies the grub files.
    If I comment out

    Why? It only creates the backup if you need it (using gpt). How big is the backup file?

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    It had reached 15GB when I interrupted it.

    You esp partition should be 1G at the biggest. How big is it?

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • My esp (EFI System Partition) is 105MB. It is the second partition on the NVMe Windows drive.

    However omv-backup somehow ends up with '/dev/sda' for esppart (I added an echo "esppart = '${esppart}}'." line) and /dev/sda is 4TB

    • Offizieller Beitrag

    Could you run the follow as root?


    num_parts=$(parted -m /dev/sda print | tail -n1 | cut -b1)

    echo $num_parts

    grubparts_bs_calc=$(((128 * num_parts) + 1024))

    echo $grubparts_bs

    parted -m /dev/sda print | awk -F ":" '$7 ~ /esp/ { print $1 }')

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    The problem seems to be that the esp is not on the root drive.

    that makes sense. That is something I really didn't want to have to support because it gets difficult in bash.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • No problem. I understand that it's a very particular case.
    I put /dev/nvme0n1 under 'root device' in the gui. I needed to make one little tweak because the partitions on the NVMe are named with a 'p'

    so I changed esppart="${root}${esp}" to esppart="${root}p${esp}" and it happily copied my esp.

  • Output of what I think is a successful backup

    Thanks for all your help!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!