Repository navigation
Releases
v1.0.5
Fixes the permission pickers crashing on panel 1.2.11. Requires panel >=1.2.10 (unchanged).
- The account and server
gdrivepermission groups now have an icon (the cloud upload icon of the Google Drive page). Panel 1.2.11 draws an icon for every permission group, so Account → API Keys → Create and creating or editing a subuser crashed with React error #130 while Google Drive Backups was installed. No other changes.
v1.0.4
Security release. Requires panel >=1.2.10.
- You can no longer link or unlink a Google account while impersonating a user.
- Pushing a backup now also needs
backups.download, restoring needsbackups.restore, and the backup list shows only servers where you havebackups.read. - Push and restore are refused on suspended, transferring, installing or restoring servers, as the panel's own backup routes are.
v1.0.3
What's Changed
Fixed errors when compiling on Calagopus Panel 1.2.7, fix sent by teddytuned on Discord.
Install
Upload dev_caloptreyx_gdrive.c7s.zip under Admin → Extensions, or copy it to build/extensions/ and docker compose restart web.
Full Changelog: v1.0.2...v1.0.3
v1.0.2 - Calagopus 1.2.6 Compatibility, Deduplication & User Retention Limits
What's Changed
- Calagopus 1.2.6 Compatibility: Fixed download_url arguments for ServerBackup in Calagopus panel 1.2.6.
- Backup Deduplication:
- Older duplicate backup files in Google Drive sharing the same backup UUID or matching untagged filenames are automatically pruned.
- Incomplete 0-byte upload sessions left in Drive are automatically cleaned up.
- User Retention Limit & Settings:
- Users can now set their own backup retention limit directly from their Google Drive account page (Account → Google Drive).
- Added database migration 20261018180000_gdrive_user_retention adding keep_copies to gdrive_connections.
- Added a "Clean Up Duplicates & Old Backups" button to immediately purge redundant files and enforce retention bounds across all servers.
- Added PUT /api/client/extensions/dev.caloptreyx.gdrive/settings and POST /api/client/extensions/dev.caloptreyx.gdrive/cleanup endpoints.
Thanks to .pato for doing the majority of this
Install
Upload dev_caloptreyx_gdrive.c7s.zip under Admin → Extensions, or copy it to build/extensions/ and docker compose restart web.
Full Changelog: v1.0.1...v1.0.2
v1.0.1 - Bug fix
This release fixes an issue with download_url by adding the missing Option<&str> arg for newer panels.
Thanks to .pato for telling about this issue and giving the fix.
Full Changelog: v1.0.0...v1.0.1
Install
Upload dev_caloptreyx_gdrive.c7s.zip under Admin → Extensions, or copy it to build/extensions/ and docker compose restart web.
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.