borgweb icon indicating copy to clipboard operation
borgweb copied to clipboard

Extend borgweb to monitor several repositories

Open henfri opened this issue 8 years ago • 8 comments

Hello,

currently, borgweb monitors one repository only. I would like to see all my repositories (local and remote) at a glance.

Especially together with https://github.com/borgbackup/borgweb/issues/107

Greetings, Hendrik

henfri avatar Oct 30 '17 11:10 henfri

What it does is:

  • have 1 command to start a backup
  • have 1 directory to look at for backup logs

While one could just multiply that (1 -> N), the question is whether that make sense for the scenario it was made for (borgweb running on same linux server that is to be backed up, so it runs together with the borg client, not on the borg repo server).

You can also just start some 1 script that does multiple backups and have them all write their log into the 1 log directory (sorting/selection would have to be checked here).

ThomasWaldmann avatar Oct 30 '17 14:10 ThomasWaldmann

Hello,

I understand what borg does. A while ago we had this discussion via IRC and you suggested I capture this as an Issue. I do understand that this was not what borgweb was intended to. But frankly: borgweb as it is today does not do very much, but is a good start. I think that borg is great. What needs to be improved though is the user interface. From my experience the most risky thing about backups is that they tend to stop working. They need to be monitored. And this is something where crashplan (see above) is good in. Why not learn from it.

So, whether it is borgweb or something else: Is my intent clear?

Greetings, Hendrik

henfri avatar Oct 30 '17 17:10 henfri

@ThomasWaldmann I have started this in my fork are you still happy for it to go ahead ? screenshot from 2019-01-25 19-21-34

turtle0x1 avatar Jan 25 '19 19:01 turtle0x1

if the UI could be in a way so it does not waste must screen width for simple use cases (1 repo), that would be fine.

ThomasWaldmann avatar Jan 25 '19 19:01 ThomasWaldmann

It requires a new variable BACKUP_REPOS in the config.py which looks something like;

    BACKUP_REPOS = {
        "test": {
            "repo_path": "/root/repo",
            "backup_commands": [
                "a",
                "b",
                "c"
            ]
        }
    }

My plan was to restructure the ui so you can "start backups" for individual backups for each repo instead of one backup button for one command, will this be an issue?

turtle0x1 avatar Jan 25 '19 20:01 turtle0x1

Maybe have a look at borgmatic, wether the same config format could be used.

ThomasWaldmann avatar Jan 25 '19 22:01 ThomasWaldmann

The format is completly incompatible with the current backend might aswell re-write it to work with borgmatic cli instead of borg itself?

turtle0x1 avatar Jan 25 '19 23:01 turtle0x1

i don't personally use borgmatic, so not sure if it makes sense. my idea was rather about "do not invent yet another config file format".

ThomasWaldmann avatar Jan 26 '19 05:01 ThomasWaldmann