borgbackup / borgweb

Web UI for Borg Backup
https://borgweb.readthedocs.io/en/latest/
Other
356 stars 40 forks source link

Extend borgweb to monitor several repositories #108

Open henfri opened 7 years ago

henfri commented 7 years ago

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

ThomasWaldmann commented 7 years ago

What it does is:

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).

henfri commented 7 years ago

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

turtle0x1 commented 5 years ago

@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

ThomasWaldmann commented 5 years ago

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.

turtle0x1 commented 5 years ago

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?

ThomasWaldmann commented 5 years ago

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

turtle0x1 commented 5 years ago

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

ThomasWaldmann commented 5 years ago

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".