-- 026_backup_runs.sql -- Offsite DR backup run history, fed by /usr/local/bin/offsite-backup.sh on CT 300 -- (Core-4 vzdump -> Farm/Won). Powers the Sacred Valley "Backups" card. CREATE TABLE IF NOT EXISTS backup_runs ( id serial PRIMARY KEY, ran_at timestamptz NOT NULL DEFAULT now(), ok boolean NOT NULL DEFAULT true, total_bytes bigint, won_free_bytes bigint, guests jsonb, -- [{vmid,name,bytes}] duration_sec integer );