Website 1.4.0: nightly database backups and background jobs
As Accounts and Cross Events: a gzipped pg_dump every night (02:20) into backend/backups/, the same website-*.sql.gz files crosscode makes before updates, with Admin -> Backups (back up now, download, how many to keep). The heartbeat, event feed and YouTube move from plain timers onto pg-boss with the backup, and Admin -> Background jobs switches each on or off, changes its schedule or runs it now. The heartbeat now reports the newest backup (before: always none, so the Hub warned) and the real job state. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/** The admin's sections, in groups (the sidebar) with a line each (the dashboard's tiles). */
|
||||
import {
|
||||
Building2, CalendarDays, FileText, HandHeart, Image as ImageIcon, LayoutDashboard, Link2, Mic, Palette, ScrollText,
|
||||
Send, Settings, UserCog, Users, type LucideIcon,
|
||||
Building2, CalendarDays, DatabaseBackup, FileText, HandHeart, Image as ImageIcon, LayoutDashboard, Link2, Mic, Palette, ScrollText,
|
||||
Send, Settings, Timer, UserCog, Users, type LucideIcon,
|
||||
} from "lucide-react";
|
||||
|
||||
export type NavItem = { href: string; label: string; description: string; icon: LucideIcon; managers?: boolean };
|
||||
@@ -41,6 +41,14 @@ export const NAV_GROUPS: { title: string | null; items: NavItem[] }[] = [
|
||||
{ href: "/admin/audit", label: "Audit log", description: "Who changed what, and when", icon: ScrollText, managers: true },
|
||||
],
|
||||
},
|
||||
{
|
||||
// 1.4.0, as Accounts and Cross Events.
|
||||
title: "Looking after it",
|
||||
items: [
|
||||
{ href: "/admin/backups", label: "Backups", description: "Copies of your site's database: back up now, download, how many to keep", icon: DatabaseBackup, managers: true },
|
||||
{ href: "/admin/jobs", label: "Background jobs", description: "What runs on a schedule, and when: switch each on or off", icon: Timer, managers: true },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export const NAV: NavItem[] = NAV_GROUPS.flatMap((g) => g.items);
|
||||
|
||||
Reference in New Issue
Block a user