[{"data":1,"prerenderedAt":184},["ShallowReactive",2],{"panduan-article-panduan-backup-dan-restore-database-postgresql-via-terminal":3},{"article":4,"category":171},{"id":5,"title":6,"body":7,"created_at":158,"description":159,"extension":160,"featured":161,"meta":162,"navigation":163,"ogImage":164,"path":165,"robots":164,"schemaOrg":164,"seo":166,"sitemap":167,"stem":168,"updated_at":169,"__hash__":170},"knowledgeBase\u002Fpanduan\u002Fhosting\u002Fpanduan-backup-dan-restore-database-postgresql-via-terminal.md","Panduan Backup dan Restore Database PostgreSQL via Terminal",{"type":8,"value":9,"toc":144},"minimark",[10,14,19,22,35,39,44,52,57,61,64,69,93,97,100,104,111,116,120,125,130],[11,12,13],"p",{},"Panduan ini menjelaskan cara melakukan pencadangan (backup) dan pemulihan (restore) database PostgreSQL menggunakan Command Line Interface (CLI).",[15,16,18],"h2",{"id":17},"i-prasyarat","I. Prasyarat",[11,20,21],{},"Sebelum memulai, pastikan Anda memiliki:",[23,24,25,29,32],"ul",{},[26,27,28],"li",{},"Akses Terminal",[26,30,31],{},"PostgreSQL.",[26,33,34],{},"Ruang penyimpanan yang cukup untuk menampung file hasil backup.",[15,36,38],{"id":37},"ii-metode-backup-postgresql","II. Metode Backup PostgreSQL",[40,41,43],"h3",{"id":42},"_1-backup-satu-database-format-sql","1. Backup Satu Database (Format .sql)",[11,45,46,47,51],{},"Gunakan perintah ",[48,49,50],"code",{},"pg_dump"," untuk mengekstrak database ke dalam file teks SQL.",[11,53,54],{},[48,55,56],{},"pg_dump -U nama_user -d nama_database > nama_file_backup.sql",[40,58,60],{"id":59},"_2-backup-dengan-kompresi-format-dump","2. Backup dengan Kompresi (Format .dump)",[11,62,63],{},"Sangat direkomendasikan untuk database besar agar ukuran file lebih kecil dan proses restore lebih fleksibel.",[11,65,66],{},[48,67,68],{},"pg_dump -U nama_user -F c -f nama_file_backup.dump nama_database",[23,70,71,85],{},[26,72,73,79,80,84],{},[74,75,76],"strong",{},[74,77,78],{},"-F c",": Menggunakan format ",[81,82,83],"em",{},"custom"," (terkompresi).",[26,86,87,92],{},[74,88,89],{},[74,90,91],{},"-f",": Menentukan nama file output.",[15,94,96],{"id":95},"iii-cara-restore-pemulihan-data","III. Cara Restore (Pemulihan) Data",[11,98,99],{},"Proses restore bergantung pada format file backup yang Anda miliki:",[40,101,103],{"id":102},"_1-restore-dari-file-sql-plain-text","1. Restore dari File .sql (Plain Text)",[11,105,106,107,110],{},"Gunakan utilitas ",[48,108,109],{},"psql",":",[11,112,113],{},[48,114,115],{},"psql -U nama_user -d nama_database -f nama_file_backup.sql",[40,117,119],{"id":118},"_2-restore-dari-file-dump-custom-format","2. Restore dari File .dump (Custom Format)",[11,121,106,122,110],{},[48,123,124],{},"pg_restore",[11,126,127],{},[48,128,129],{},"pg_restore -U nama_user -d nama_database -v nama_file_backup.dump",[23,131,132],{},[26,133,134,139,140,143],{},[74,135,136],{},[74,137,138],{},"-v",": ",[81,141,142],{},"Verbose mode"," (menampilkan detail proses di terminal).",{"title":145,"searchDepth":146,"depth":146,"links":147},"",2,[148,149,154],{"id":17,"depth":146,"text":18},{"id":37,"depth":146,"text":38,"children":150},[151,153],{"id":42,"depth":152,"text":43},3,{"id":59,"depth":152,"text":60},{"id":95,"depth":146,"text":96,"children":155},[156,157],{"id":102,"depth":152,"text":103},{"id":118,"depth":152,"text":119},"2026-04-07","Panduan ini menjelaskan cara melakukan pencadangan (backup) dan pemulihan (restore) database PostgreSQL menggunakan Command Line Interface (CLI).I. Prasyar...","md",false,{},true,null,"\u002Fpanduan\u002Fhosting\u002Fpanduan-backup-dan-restore-database-postgresql-via-terminal",{"title":6,"description":159},{"loc":165},"panduan\u002Fhosting\u002Fpanduan-backup-dan-restore-database-postgresql-via-terminal","2026-04-08","M8FGEi1bkbCgFuIRrwlqIi6DUm5iQ2v1JEE3NqwC9-I",{"id":172,"title":145,"body":173,"description":177,"extension":160,"meta":178,"name":179,"navigation":163,"path":180,"seo":181,"stem":182,"__hash__":183},"knowledgeBaseCategories\u002Fpanduan\u002Fhosting\u002Findex.md",{"type":8,"value":174,"toc":175},[],{"title":145,"searchDepth":146,"depth":146,"links":176},[],"Pengelolaan akun _hosting_ secara umum.",{},"Hosting","\u002Fpanduan\u002Fhosting",{"description":177},"panduan\u002Fhosting\u002Findex","woLZFaCOqN1tbBRzjzz5NsY7TjoV4LBmInsPC5jCfhE",1793089351203]