Postgres的pg_basebackup永远不会完成创build备份

我正试图将文件移动到另一台服务器来build立一个奴隶。 我有一个Postgres服务器上的数据库,并试图使用pg_backup创build一个基于文件的备份。 但是,它永远不会执行该命令。

这是输出:

/usr/pgsql-9.2/bin/pg_basebackup -U postgres -D - -P -Ft > pg_backup.backup 11247472/11247472 kB (100%), 1/1 tablespace NOTICE: pg_stop_backup cleanup done, waiting for required WAL segments to be archived WARNING: pg_stop_backup still waiting for all required WAL segments to be archived (60 seconds elapsed) HINT: Check that your archive_command is executing properly. pg_stop_backup can be canceled safely, but the database backup will not be usable without all the WAL segments. WARNING: pg_stop_backup still waiting for all required WAL segments to be archived (120 seconds elapsed) HINT: Check that your archive_command is executing properly. pg_stop_backup can be canceled safely, but the database backup will not be usable without all the WAL segments. WARNING: pg_stop_backup still waiting for all required WAL segments to be archived (240 seconds elapsed) HINT: Check that your archive_command is executing properly. pg_stop_backup can be canceled safely, but the database backup will not be usable without all the WAL segments. WARNING: pg_stop_backup still waiting for all required WAL segments to be archived (480 seconds elapsed) HINT: Check that your archive_command is executing properly. pg_stop_backup can be canceled safely, but the database backup will not be usable without all the WAL segments. WARNING: pg_stop_backup still waiting for all required WAL segments to be archived (960 seconds elapsed) HINT: Check that your archive_command is executing properly. pg_stop_backup can be canceled safely, but the database backup will not be usable without all the WAL segments. 

我已经运行了几个小时,并且它永远不会结束。 数据库大约是11GB。

任何想法,为什么这可能会失败,我可以find错误?

它看起来像你的archive_command ,这是在postgresql.confconfiguration失败。 我们无法帮助您 – 请提供更多信息,至less是什么价值?