Add Back up now for Fragnet game servers

Operators can ask the game panel for a backup of a server whose plan has room for backups (Back up on the row, Back up now beside its backups). The panel makes it in the background; the page re-reads every 20 s until it is done. Refused here for a plan with no room, a suspended server, one already being backed up, or the same server within 30 s; the panel's own refusals (plan full, rate limit, permission) are shown in its words. Written to the audit log.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-06 19:48:46 +01:00
1 parent 31f4debb9a
commit f9991a49af
9 files changed
+326 -11

No files matched your search

+2
View File
@@ -3674,6 +3674,8 @@ export const api = {
fragnet: {
list: () => request<{ accounts: FragnetAccount[] }>("/api/fragnet"),
power: (integrationId: number, serverId: string, signal: FragnetSignal) => request<void>(`/api/fragnet/${integrationId}/servers/${serverId}/power`, { method: "POST", body: JSON.stringify({ signal }) }),
/** Asks the panel to make a backup of one game server now. It is made in the background. */
backup: (integrationId: number, serverId: string) => request<{ name: string; uuid: string | null }>(`/api/fragnet/${integrationId}/servers/${serverId}/backup`, { method: "POST" }),
refresh: (integrationId: number) => request<{ status: { ok: boolean; error: string | null } }>(`/api/fragnet/${integrationId}/refresh`, { method: "POST" }),
},
hetzner: {