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

  • 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 5.5.12 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    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

  • 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 5.5.12 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

Participate now!

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