BorgBackup Plugin: How to specify BORG_RSH

  • Hi OMV-community !


    I want to use the borgbackup plugin but i do not arrive in specifying my SSH-Key and the SSH port.

    On the command line the following works well:

    Code
    export BORG_RSH='ssh -i /root/myborgkey.ED2551 -p 2228'
    borg info myuser@myhost.sld.tld:/mypath/borg/repo

    But i do not find the way to tell the borgbackup plugin about the ssh key and port to use.


    Can someone point me into the right direction?

    Yours Gerd

  • gerdw

    Changed the title of the thread from “Borg Plugin: How to specify BORG_RSH” to “BorgBackup Plugin: How to specify BORG_RSH”.
    • Official Post

    But i do not find the way to tell the borgbackup plugin about the ssh key and port to use.


    Can someone point me into the right direction?

    You can't. The plugin can't support every conceivable option. I'll have to think about how this could be added. Adding to the scheduled script would be easy but to support the functions in the web interface for the plugin would not be easy in a generic way without adding a field to the repo that most users wouldn't use.

    omv 6.1.0-1 Shaitan | 64 bit | 5.19 proxmox kernel | plugins :: omvextrasorg 6.1.1 | kvm 6.2.5 | mergerfs 6.3.3 | zfs 6.0.12
    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!

  • Thanks for the info, so i can stop looking for it ;)

    I don't mind continuing using borg from the commandline, no need to include an extra option for one user.

    Yours, Gerd

    • Official Post

    Thanks for the info, so i can stop looking for it ;)

    I don't mind continuing using borg from the commandline, no need to include an extra option for one user.

    I'm looking into a way to allow you to add any borg environment variables by just adding them to /etc/default/openmediavault-borgbackup. It will just require a chance to core OMV which I am going to submit a pull request for. Then I can make a change to the plugin. It will take some time since Volker is on vacation.

    omv 6.1.0-1 Shaitan | 64 bit | 5.19 proxmox kernel | plugins :: omvextrasorg 6.1.1 | kvm 6.2.5 | mergerfs 6.3.3 | zfs 6.0.12
    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!

    • Official Post

    Now that OMV 6.0.43 is released with my needed change, 6.3 is in the repo now. Add any environment variables you need to /etc/default/openmediavault-borgbackup.

    omv 6.1.0-1 Shaitan | 64 bit | 5.19 proxmox kernel | plugins :: omvextrasorg 6.1.1 | kvm 6.2.5 | mergerfs 6.3.3 | zfs 6.0.12
    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!

    • Official Post

    6.4 is in the repo. All actions except creation of a repo will use the environment variables in the Environment Variables tab. Because a variable can't be created until a repo exists, creation of a repo will require the variables be placed in /etc/default/openmediavault-borgbackup

    omv 6.1.0-1 Shaitan | 64 bit | 5.19 proxmox kernel | plugins :: omvextrasorg 6.1.1 | kvm 6.2.5 | mergerfs 6.3.3 | zfs 6.0.12
    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!

Participate now!

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