Compare commits
No commits in common. "f709d2d3187fcb888dba9d24abbf83d2655ca508" and "fccb283057dbd23aa6ff4ddd1d76e00bf7ac4115" have entirely different histories.
f709d2d318
...
fccb283057
|
|
@ -1,5 +1,5 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Database, BookOpen, Download, RefreshCw, CheckCircle, AlertCircle } from 'lucide-react';
|
import { Database, BookOpen, Download, RefreshCw, CheckCircle, AlertCircle, ShieldCheck } from 'lucide-react';
|
||||||
|
|
||||||
interface DatabaseBackupTabProps {
|
interface DatabaseBackupTabProps {
|
||||||
dbInfo: any | null;
|
dbInfo: any | null;
|
||||||
|
|
@ -190,6 +190,36 @@ export const DatabaseBackupTab: React.FC<DatabaseBackupTabProps> = ({
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue