USB Backup / external enclosure

  • I'm going to use USB Backup plugin to regularly backup data to 4TB WD HDD installed in Ugreen USB3 enclosure. Here is some information about it:

    ID 174c:55aa ASMedia Technology Inc. Name: ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge


    I have a few questions around that.

    1. My enclosure has a pre-set to spin-down a disk after some inactivity period (few minutes). Should I leave it as it is or try to change this behavior?

    2. I want the sync happen not only on the disk plug-in, but also on a schedule if the drive remains plugged in.


    For #2 I found the old example from ryecoaaron : USB Backup Settings - Just Stopped Working

    Will give it a try but need to clarify something first. This script is using some id to refer to the external disk partition. I'm not sure which particular id I should use.

    I'm checking on my system and see some id as a part of the script name:

    Code
    # ll /var/lib/openmediavault/usbbackup.d
    total 8
    -rwxr-xr-x 1 root root 1636 May 22 10:53 openmediavault-usbbackup-9be5d73708b375775c28a72exxxxxxxx
    -rwxr-xr-x 1 root root 1061 May 22 10:53 rsync-54dfab8e-e9d1-4b36-a9d7-d3afxxxxxxxx

    However, I was not able to correlate this id with any other id on my system, like UUID, etc. How this id is generated?

    • Offizieller Beitrag

    It is the UUID of the drive reported by blkid. BUT, this script is five years old and needs quite a few changes to work on a current OMV system.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | 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 see no match on my system

    What are you trying to match? UUIDs are unique to each system. The one in the script is from my system.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | 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!

  • What are you trying to match?

    My understanding was that the backup script name [in /var/lib/openmediavault/usbbackup.d/] is based on the drive UUID, this is what I see in your script:


    Code
    # your drive
    drive="854fe912-9f08-423d-9bc8-26a404cae6d0"
    
    # run backup script
    /usr/sbin/omv-run -e -s 'USB Backup (device=${drive})' -a 'From: USB Backup <root>' /var/lib/openmediavault/usbbackup.d/sync-${drive}"

    I thought that 854fe912-9f08-423d-9bc8-26a404cae6d0 in this example is the UUID of the USB drive, this id is used as a part of the backup script name. With this wrong assumption I was trying to find a match between my disk UUID and my backup script name.

    After some digging I found that it is not a disk UUID but a job uuid found in ${OMV_CONFIG_FILE}. Now I can either mimic some code from usbbackup script or just hardcode this id it in my own script.

  • AndrewZ

    Hat das Label OMV 4.x hinzugefügt.
  • AndrewZ

    Hat das Label gelöst hinzugefügt.

Jetzt mitmachen!

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