Show backup storage usage: totals per schedule and destination, plus sizes for volume backups

Aperta
#5,884 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
nextjs, typescript
Ambito
api, backend, database

Direzione di ricerca

Start by reading the existing database backup file listing added in #5260 and the backup.listBackupFiles API, then trace how backup schedules and volume backups are represented. The issue proposes rclone size --json for schedule totals and a volume files dialog; the destination totals and API query are optional. Done means displaying accurate file counts and sizes for schedules, with volume backup files and download links.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement
What problem will this feature address?

I can't tell how much storage my backups are using. v0.31.0 (#5260) added a file list with a Size column for database backups, which helps, but:

  • There is no total for a backup schedule, so working out what one database costs in S3 means adding up the files by hand.
  • There is no total per destination, so I can't see which apps or databases take up most of a bucket, or how close I am to a quota.
  • Volume backups have no file list at all, so their sizes are not visible anywhere in Dokploy.
  • backup.listBackupFiles returns at most 100 files, so totals computed from it are wrong once a schedule has more than 100 files.

Because of this, keep-latest settings and storage costs are hard to tune without opening the S3 provider's console.

Describe the solution you'd like
  1. Show the file count and total size for each backup schedule (database and volume) in its backup list, computed over the schedule's prefix with rclone size --json.
  2. Give volume backups the same files dialog that database backups got in #5260, with the Size column and download links.
  3. Optionally, show total usage per destination under Settings > S3 Destinations.
  4. Expose the totals through the API (for example a backup.storageUsage query by backupId, volumeBackupId, or destinationId) so CLI and automation users can read them.

Totals can be computed when the dialog opens or after each backup run. Caching the last value with a timestamp would avoid listing the bucket on every page load.

Describe alternatives you've considered
  • Adding up the Size field from backup.listBackupFiles on the client side. This works for small schedules but is capped at 100 files and doesn't cover volume backups.
  • Checking bucket usage in the S3 provider's console. That means leaving Dokploy, and most providers don't break usage down by prefix.
  • Running rclone size by hand against the destination. Accurate, but it needs the credentials copied out of Dokploy.
Additional context

Related: #3566 and #5206 (compression for volume backups). Once compression lands, size numbers would also show how much it saves.

Will you send a PR to implement it?

Yes (happy to work on it if the maintainers are on board with the approach)

Lingua principale
TypeScript
Stelle
38.8k
Fork
3.2k
Merge medio
1g 10h
PR unite (30g)
110

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Dokploy/dokploy

Tutte le issue di Dokploy/dokploy

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.