【问题标题】:How to take PostgreSQL Database Backup and find the location of Backed up Database in Digital Ocean(Ubuntu)如何进行PostgreSQL数据库备份并在Digital Ocean(Ubuntu)中找到备份数据库的位置
【发布时间】:2019-09-19 00:48:33
【问题描述】:

我已经使用

备份了 PostgreSQL 数据库
pg_dump dbname > dbname.bak

现在,如何将其下载到本地 PC?

【问题讨论】:

    标签: postgresql digital-ocean


    【解决方案1】:

    我发现了答案。 在 Ubuntu 中,试试这个

    sudo su - postgres
    pg_dump db_name > db_name.bak
    

    并在/var/lib/postgresql中找到备份

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-14
      • 2019-09-21
      • 1970-01-01
      • 2019-07-17
      • 2017-02-11
      相关资源
      最近更新 更多