openmediavault-backup 6.0.7 plugin

  • I installed the openmediavault-backup 6.0.7 plugin. However when I start a backup, it seems to be backing up the entire drive, not just the system partition.

    My system partition is 6GB with another partition on the 4TB drive containing the data, but the backup file had reached 45GB before I interrupted the backup by rebooting.
    There must be something I am not seeing about selecting what to backup.

    • Offizieller Beitrag

    Did you choose ddfull? Kind of hard to help without knowing how you set it up.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


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


    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

    dd will only back the os partition and possibly the uefi partition. Output when running a manual backup would help. So would the output of: sudo fdisk -l

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


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


    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!

  • But the data partition /dev/sda3 is mounted by fstab:

    Code
    /dev/disk/by-uuid/e3e9800d-bfe5-464b-8eb5-09ada3b35739          /srv/dev-disk-by-uuid-e3e9800d-bfe5-464b-8eb5-09ada3b35739      ext4    defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2

    so it seems that the backup includes /srv and its subfolders? Did I do something wrong when creating a share on /sda3 ?

    • Offizieller Beitrag

    so it seems that the backup includes /srv and its subfolders?

    Nope. https://github.com/OpenMediaVa…/usr/sbin/omv-backup#L130 The beginning output of a manual run of the backup would really help show what is going on.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


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


    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

    I'm not sure what you mean by "The beginning output of a manual run

    That was what I needed. Notice how it says the device file is /dev/sda1? That is what it backs up - that partition. The same variable that outputs that display line is what gets backed up by the line I linked to above.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


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


    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!

  • So that would resolve to:

    Code
     dd if=/dev/sda1 bs=1M conv=sync,noerror status=progress | gzip -c > /srv/dev-disk-by-uuid-e3e9800d-bfe5-464b-8eb5-09ada3b35739Public/omvbackup/backup-omv-2022-09-14_00-59-07.espdd.gz

    right?

    Then why is the backup-omv*.gz file growing past the size of /sda1?

    • Offizieller Beitrag

    Then why is the backup-omv*.gz file growing past the size of /sda1?

    Not sure. Shouldn't be possible. Are you sure you didn't read a number wrong?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


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


    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!

  • and it just keeps growing

    • Offizieller Beitrag

    backup-omv-2022-09-14_00-59-07.espdd.gz

    Notice the esp part of the filename? Evidently your system is uefi and the plugin is determining the wrong partition for the esp partition. What is the output of: grep -w /boot /proc/mounts | awk '{ print $1 }'

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


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


    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!

  • Zitat

    the plugin is determining the wrong partition for the esp partition

    That's right. grep -w /boot /proc/mounts | awk '{ print $1 }' returns /dev/nvme0n1p2 which is my Windows drive.
    I have Windows on one drive (NVMe) and OMV/Debian on another (SATA HDD).

    • Offizieller Beitrag

    While I don't understand why you would dual boot windows on a nas that is meant to be headless, I really don't understand why your windows partition is showing up as your /boot device. What is the output of: mount

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


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


    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!

  • Zitat

    While I don't understand why you would dual boot windows on a nas

    Before I dedicate a machine to OMV, I am familiarizing myself with it. This Windows PC had a 4TB drive that I had just emptied, and so I installed OMV on it and have been getting to know the system. Eventually OMV will be on its own headless system. I also have OMV on my Western Digital My Cloud Home, but it's Arrakis so I will be updating that soon.


    The line from mount that I guess you're looking for is /dev/nvme0n1p2 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)

    That's the EFI partition on the Windows disk.

  • Here's the rest of the output of mount:

    • Offizieller Beitrag

    The line from mount that I guess you're looking for is

    Yep. The plugin doesn't accommodate for dual boot systems evidently. Can you confirm that the following command gives no output:
    awk '$2 == "/boot" { print $1 }' /proc/mounts

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


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


    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

    Yes, no output.

    I will push the change in a bit.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


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


    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!

  • As a temporary fix for my case, I commented out the lines dd-ing esppart and bootpart (which were /dev/sda and /dev/nvmeon1p2 respectively).

    Only root (/dev/sda1) was copied and I able to get a backup using the plugin.
    I added some output before each 'dd', here is the result:

Jetzt mitmachen!

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