Repository navigation
v1.0.0 - The initial release
First release of the Google Drive Backups extension for Calagopus Panel (requires >=1.2.2, :heavy image).
Features
- One account page (
Account → Google Drive): connect Google, push backups, browse
the backup folder with drill-down like a file manager, and restore — all from the panel. - One OAuth client for the whole panel. The admin configures Google once; every user
just clicks Connect. Thedrive.filescope means Drive only exposes files this app
created — it can never read the rest of anyone's Drive. - Manual and automatic pushes: a Push button on every finished backup, plus an optional
listener that queues each backup as it completes. A reconcile sweep picks up backups
missed while the panel was down, so auto-push never silently skips one. - Resumable, verified uploads: the archive is pulled from the node's own address and
uploaded with a resumable session — an interrupted transfer resumes instead of restarting,
and the staged bytes are checked to actually be the gzip archive, so a download URL that
answers200with an error page fails the push with the bytes it got instead of shipping
them. - Push rules: include/exclude globs on the server name gate automatic pushes — the
manual Push button always works. Database backups can be pushed behind one switch. - A folder per server, created on first push and browsable from the Files table.
- Keep-last-N retention: after each upload only a server's newest N copies stay in
Drive; older ones go to the Drive trash (the freshly uploaded file is never pruned). - Cleanup with the backup: when a backup is deleted from the panel, its Drive copy is
trashed too (optional, on by default). - Visibility: live progress and cancel in the Uploads table, a Drive storage quota badge
next to panel-side totals, and Google's own error reasons surfaced verbatim, so a failed
upload is actually diagnosable. - Reconnect banner: when Google invalidates a stored grant, that account's uploads pause
and the page says so; re-linking resumes them automatically. - Shared drives: paste the id of a folder inside a shared drive and uploads nest under it.
- Restore from Drive: the Files and Backups tables carry a Restore button that streams
the archive back out of Drive, through the panel, into Wings — single-use 15-minute token,
no link-sharing, no public URL, no Wings changes. A Drive-only archive whose panel row was
deleted is imported as a backup row first, so it shows up in the backups list like any other.
Install
Upload dev_caloptreyx_gdrive.c7s.zip under Admin → Extensions, or copy it to build/extensions/ and docker compose restart web.