borgbackup works in webinterface, but cronjobs don't work

  • Hello,


    I successfully configured (i think) borgbackupo on my omv5 virtual machine
    Running borg from webinterface works fine (as far I can see).
    But the cron jobs throws errors:
    I get mails about failing hourly jobs.


    Looking into cronjob script, it seems, that a variable isn't set correctly:



    Bash
    root@omv5:/etc/cron.hourly# cat /var/lib/openmediavault/borgbackup/hourly.d/borgbackup-2cd25511-2a21-407e-a6f3-97389fe1f96d
    #!/bin/sh
    
    
    # This file is auto-generated by openmediavault (https://www.openmediavault.org)
    # WARNING: Do not edit this file, your changes will get lost.
    
    
    # Setting this, so the repo does not need to be given on the commandline:
    export BORG_REPO='{{ ns.uri }}'

    On my omv installation (omv4 this lines is replcaed with the correct path to the remote repo.

    Bash
    root@omv:~# cat /var/lib/openmediavault/borgbackup/hourly.d/borgbackup-02e22c68-6ee5-4176-981e-89ab5df63ec3 
    #!/bin/sh
    
    
    # Setting this, so the repo does not need to be given on the commandline:
    export BORG_REPO='borgbackup@servername:reponame'

    soething seems to be wrong with the implementation of borg backup on omv5?


    Thank you for the great omv! I'm running it since Version 2 and it's such a pleasure to use it!


    Best regards
    Thomas

    • Offizieller Beitrag

    soething seems to be wrong with the implementation of borg backup on omv5?

    No need to post in the forum and github at the same time. I posted on the issue. I definitely think this is a problem with your system since it is working fine on mine.

    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!

  • Hello,


    sorry about that, I wasn't unure about the right place and where the right person is reading...


    It was also unclear if there is an user error or an "real" bug...


    What should be the prefered way in your opinion?


    Anyway, thanks for fixing, I installed the update and ist works now!


    Best regards
    Thomas

    • Offizieller Beitrag

    I guess if you know it is a bug, file an issue on github. For anything else, posting on the forum is fine. More people see it on the forum. I should see it either way. Glad it is working now.

    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!

Jetzt mitmachen!

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