---
title: "Postgresql 备份 恢复"
author: "hanyoud"
date: "2008-05-02T17:04:18Z"
tags: ["F#", "PostgreSQL", "SQL"]
slug: "postgresql"
draft: false
lastmod: "2008-05-02T17:04:18Z"
id: 188867
url: "https://hanyoud.iteye.com/blog/188867"
---

备份: pg_dump -i -h localhost -p 5432 -U postgres -F p -v -f 

"/home/root/backup080502.sql" mydatabase







恢复: 用 psq mydatabase 进入数据库, 执行 \i /home/root/backup080502.sql 恢复