PITR on Win32 - Archive and Restore Command Strings

Поиск
Список
Период
Сортировка
От markir@coretech.co.nz
Тема PITR on Win32 - Archive and Restore Command Strings
Дата
Msg-id 1091871968.d2133ca2f344c@mail.coretech.co.nz
обсуждение исходный текст
Ответы Re: PITR on Win32 - Archive and Restore Command Strings
Список pgsql-hackers-win32
Given that I was doing a bit of testing on win32 anyway, I just couldn't help
myself...

There is a bit of a trap if using '%p' in archive_command - it has seperators
like '/' instead of '\', so does not work for some windows commands (like
'copy' for instance).

I had to put in the complete path for pg_xlog, e.g:

archive_command = 'copy c:\\databases\\pgdata\\pg_xlog\\%f
c:\\databases\\pgarchive\\%f'

and similarly during recovery, e.g:

restore_command = 'copy c:\\databases\\pgarchive\\%f
c:\\databases\\pgdata\\pg_xlog\\%f'


Is there a format that is equivalent to '%p' but outputs a windows style path?

regards

Mark

P.S : PITR itself worked perfectly, rolling forward 106 logs....


В списке pgsql-hackers-win32 по дате отправления:

Предыдущее
От: markir@coretech.co.nz
Дата:
Сообщение: Re: Eventlog
Следующее
От: Andreas Pflug
Дата:
Сообщение: Re: make fails if path has spaces