Borg Plugin - where to set options for backup jobs e.g. --json or --log-json

  • Hi,


    I want to play around with some of the Borg options to get more value out of the log files. I've read that I have to add options like --json to each backup job, for example in the command borg create ... --json. Maybe a silly newbie question, but I’m not quite sure where exactly to put those Borg options in the plugin :)


    Thanks for any help and advice!

    • Official Post

    You can't. What more are you trying to get out of the log files? and which log files? The list checkbox in the archive creation makes the output verbose. most people don't want more than that.

    omv 8.1.1-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.7 | compose 8.1.5 | cterm 8.0 | borgbackup 8.1.7 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1.1


    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 wanna send info like backup name, date/time of the backup, number of files, backup size, and success status over to Home Assistant to get a simple overview of my backups there.


    If there’s no easy way to have these options, I’m thinking about creating a Python log parser to extract the info. JSON output would’ve been easier, but I’m fine with doing the extra work.

    • Official Post

    If there’s no easy way to have these options

    There is no easy to do it with the plugin options as they are. That isn't saying the option couldn't be added to the plugin. I was just trying to figure out why you wanted it. For parsing makes sense. I can see what it would take to make it an environment variable (not in the web interface).

    omv 8.1.1-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.7 | compose 8.1.5 | cterm 8.0 | borgbackup 8.1.7 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1.1


    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!