postgresql数据库的备份与恢复 https://www.postgresql.org/docs/current/backup-dump.html 值得注意的是需要以postgres用户执行 su postgres pg_dump firets >firets.db