BorgBackup plugin - commas in filenames

  • Quick question: This plugin [edit: on OMV6] uses commas to separate directory names to include/exclude. How do we specify names that contain embedded commas? I've tried wrapping them in single or double quotes, and escaping the comma with a backslash, but in each case the generated copnfiguration file ends up splitting on the embedded comma.


    Hope that description makes sense.

    • Official Post

    When a comma is a delimiter, you can't use it in the filename.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.1 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    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!

  • Unfortunately the names in question are automatically generated. I could edit the generated script manually, but that would of course get overwritten with any changes made in the (very convenient) UI. Not a major issue in this case, it was only some directories I was using for test purposes. Thought I'd ask in case it crops up anywhere else.


    Thanks for responding so promptly.

    • Official Post

    Unfortunately the names in question are automatically generated.

    What is generating them?

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.1 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    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!

  • I think these directories are created by a document library system called Calibre, it's a while since I touched it. Its naming scheme might be configurable but, as I said, I was just using this collection of files and directories for test purposes, I can easily use something else for that. I was hoping there might be some convention for coping with embedded commas, or configurable separators or something, in case it ever comes up as a real world requirement. Probably not very likely though, so no worries.


    By the way, are there any tutorials or on creating plugins that you'd recommend? I found this guide but it targets a very old version of OMV. I remember reading that converting plugins for successive versions can be quite involved so I wouldn't be surprised if that guide is quite out of date.

    • Official Post

    are there any tutorials or on creating plugins that you'd recommend?

    That guide will help with everything but the web interface side on OMV 6.x. Looking at other plugins is the best way to learn. I can answer questions as well. What kind of plugin(s) were thinking about?

    I was hoping there might be some convention for coping with embedded commas, or configurable separators or something, in case it ever comes up as a real world requirement.

    It wouldn't be hard to change but it would break existing installs. And blindly converting a comma to the new separator might have unwanted effects.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.1 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    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!

  • That guide will help with everything but the web interface side on OMV 6.x. Looking at other plugins is the best way to learn. I can answer questions as well. What kind of plugin(s) were thinking about?

    OK, thanks. I don't have anything particular in mind, it's little more than curiosity at the moment - wondering what sort of things are possible, how difficult it is and what skills are needed. Any suggestions for a suitable existing to use as the basis for some sort of "Hello World" plugin?

    It wouldn't be hard to change but it would break existing installs.

    Understood - I'm not asking for a change.

    • Official Post

    what skills are needed

    php, bash, yaml, saltstack/jinja2.


    Any suggestions for a suitable existing to use as the basis for some sort of "Hello World" plugin?

    Either https://github.com/OpenMediaVa…/openmediavault-diskclone (simplest plugin I maintain) or https://github.com/OpenMediaVa…s/openmediavault-minidlna

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.1 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    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!

    • Official Post

    I don't know anything about saltstack but I'm familiar with the others to varying degrees.

    The saltstack part is pretty easy since it isn't really delving into inner workings on saltstack.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.1 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    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!

Participate now!

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