x
This commit is contained in:
1 parent
3afe32db7d
commit
5b81cc810a
1 file changed
+1
-1
@@ -147,7 +147,7 @@ export default function BackupDatabasePage() {
|
||||
<p>ssh ti@kitizone.com</p>
|
||||
<p className="text-slate-500 mt-3"># ตรวจสอบชื่อ database จาก .env</p>
|
||||
<p>{'cat /home/ti/projects/homaroma-api/.env | grep DATABASE_URL'}</p>
|
||||
<p className="text-slate-500 mt-3"># สร้าง pg_dump (แทนที่ <dbname> ด้วยชื่อจริง)</p>
|
||||
<p className="text-slate-500 mt-3">{'# สร้าง pg_dump (แทนที่ <dbname> ด้วยชื่อจริง)'}</p>
|
||||
<p>{'pg_dump -U postgres <dbname> > ~/backup_$(date +%Y%m%d_%H%M).sql'}</p>
|
||||
<p className="text-slate-500 mt-3"># Download กลับมาเครื่อง local</p>
|
||||
<p>{'scp ti@kitizone.com:~/backup_*.sql ./'}</p>
|
||||
|
||||
Reference in new issue
Block a user