【发布时间】:2022-10-25 20:41:13
【问题描述】:
我正在尝试使用 Linux 上的 pg_basebackup 从 Windows 上运行的 PostgreSQL 远程服务器进行备份。 我收到如下错误。
$ ./pg_basebackup -D backup/remote2 -X stream
--tablespace-mapping="C:\Users\***\postgres\pgbuild\bin\temp\tablespace01"=/home/***/postgres/build/bin/backup/tbs/tbs01
-h ***.***.***.*** -p 5432 -U username
pg_basebackup: error: old directory is not an absolute path in tablespace mapping: C:\Users\***\postgres\pgbuild\bin\temp\tablespace01
我在互联网上找不到任何跨平台(Windows 到 linux)执行备份的示例。 pg_basebackup 甚至允许吗?
【问题讨论】:
标签: postgresql database-administration