Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > PostgreSQL > Postgresql 8.2 WAL


Автор: QryStaL 21.11.2007, 11:34
archive_command (string) 
The shell command to execute to archive a completed segment of the WAL file series. Any %p in the string is replaced by the path name of the file to archive, and any %f is replaced by the file name only. (The path name is relative to the working directory of the server, i.e., the cluster's data directory.)

Для Windows указан следующий пример:
archive_command = 'copy "%p" /mnt/server/archivedir/"%f"'  # Windows

Я пишу что-то типа 'copy "C:\Program Files\PostgreSQL\8.2\data\pg_xlog\000000010000000000000000" "d:\db1\back1"', но после команды SELECT pg_start_backup('label'), а затем SELECT pg_stop_backup() в указанной директории "d:\db1\back1" пусто.
Кто-нибудь настраивал это архивирование под винду? Киньте плз реальный пример строки archive_command.

Автор: QryStaL 21.11.2007, 12:13
После дополнительных исследований выяснилось, что указанная команда вообще не выполняется в любом виде (писал что-то типа "start notepad"). Непонятно, в какую сторону дальше копать...

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)