前言
暂时记录一下备份和恢复
备份
二进制的方式备份
1 |
|
恢复
通过pg_restore恢复数据
1 | pg_restore -c -U joplin -h 127.0.0.1 -p 5432 -d joplin_db joplin_db-2022-08-04.dmp |
暂时记录一下备份和恢复
1 | #!/bin/bash |
1 | pg_restore -c -U joplin -h 127.0.0.1 -p 5432 -d joplin_db joplin_db-2022-08-04.dmp |
原文作者:Momo
原文链接:https://mo.xmomo521.top/2022/08/04/PostgreSQL-备份与恢复/
发表日期:August 4th 2022, 3:19:38 pm
更新日期:August 4th 2022, 3:21:16 pm
版权声明:本文采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: true
tags: true