refactor(backups): remove disaster recovery restore instructions card

This commit is contained in:
Urvish Prajapati 2026-11-02 16:03:47 +05:30
parent 660b7493e9
commit a6061c1de1
1 changed files with 1 additions and 31 deletions

View File

@ -1,5 +1,5 @@
import React from 'react';
import { Database, BookOpen, Download, RefreshCw, CheckCircle, AlertCircle, ShieldCheck } from 'lucide-react';
import { Database, BookOpen, Download, RefreshCw, CheckCircle, AlertCircle } from 'lucide-react';
interface DatabaseBackupTabProps {
dbInfo: any | null;
@ -190,36 +190,6 @@ export const DatabaseBackupTab: React.FC<DatabaseBackupTabProps> = ({
</div>
</div>
</div>
{/* Recovery Instructions */}
<div className="bg-slate-50/80 border border-slate-200 rounded-3xl p-6 space-y-4">
<div className="flex items-center gap-2">
<ShieldCheck className="h-5 w-5 text-indigo-600" />
<h3 className="text-sm font-black text-slate-800">Disaster Recovery & Restore Instructions</h3>
</div>
<p className="text-xs text-slate-500 font-medium">
In the event of a system rebuild or migration, you can restore any downloaded snapshot file directly using standard PostgreSQL CLI utilities:
</p>
<div className="bg-slate-900 rounded-2xl p-4 font-mono text-xs text-slate-200 space-y-2 overflow-x-auto shadow-inner">
<div className="text-slate-400 text-[11px] font-semibold"># 1. Restore directly via pipeline into Docker or host database:</div>
<div className="text-emerald-400 font-bold">
gunzip -c panaceadb_backup_full_latest.sql.gz | docker exec -i panacea-postgres psql -U postgres -d panaceadb
</div>
<div className="text-slate-400 text-[11px] font-semibold pt-1"># 2. Or uncompress first and inspect the raw SQL statements:</div>
<div className="text-indigo-300">
gunzip panaceadb_backup_full_latest.sql.gz
</div>
<div className="text-indigo-300">
head -n 40 panaceadb_backup_full_latest.sql
</div>
</div>
<div className="flex items-center justify-between text-[11px] text-slate-400 font-semibold pt-1">
<span>PostgreSQL Engine: {dbInfo?.postgres_version || '16.14'}</span>
<span>Internal Host: {dbInfo?.host || 'db'}:{dbInfo?.port || 5432}</span>
</div>
</div>
</div>
);
};