Ravinou / borgwarehouse

A fast and modern WebUI for a BorgBackup's central repository server.
https://borgwarehouse.com
GNU Affero General Public License v3.0
314 stars 22 forks source link

[BUG] Quota not updating in WebUI #247

Closed mirisbowring closed 6 days ago

mirisbowring commented 6 days ago

Hi,

i created a Repo via the UI and did an initial Backup via the command line to the server. Everything works like a charm, data is backed up and i can access it.

Unfortunately the WebUI does not show how much of the Quota has been used:

image

When i hover the bar it is still 0% though 5GB has already been used.

I have the docker compose running on Unraid and compiled it with a different user (since 1001 is already used by someone)

Have a nice Day!

Ravinou commented 6 days ago

Hi, did you set the cron ? Check the doc here.

mirisbowring commented 6 days ago

Man RTF! 😄 Sry i just forgot about that part! I've put the two calls into a user script and now it works like a charm!

Would it be possible to call those jobs after a backup instead of a cronjob basis? My disks are spinning down usually and i don't want to wake them regularly just for this check. Ideally, My Backup would finish and then this scripts get called

Ravinou commented 6 days ago

It's true that the documentation I've produced is an enormous amount of work, so I like to know that it's read and that it's not there for nothing. But it's been a long time since I've seen an RTFM, thanks for making me laugh haha 😄

To answer your question, I have no way of knowing when a backup ends at the borgwarehouse level. Your backup is end-to-end encrypted. But you can set your BorgBackup client to call the URL at the end if you wish. In short, there are quite a few solutions for this, which is also why the cron was taken out of BorgWarehouse, so you're free to use it as you see fit ;)

mirisbowring commented 6 days ago

Ah, i found a working solution for this.... I also have running borg serve on another machine and there i am using ssh forced commands (like you). I just added the refresh after the server:

command="borg serve ... ; curl api/refresh",restrict <public-key>

and it is working like a charm. How can I modify the commands of BorgWarehouse? Or would you be willed to add an option for this to the repos (like the append only or lan thing)?